Rational hitting lists: dense determinant #
Adapted from OpenAI's formalization at revision adc7f1241b42e322a6451854ab7e4b4c146bf78a.
Source: https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/lean/OAI/Computability/RationalHitting/DenseDeterminant.lean
Imports, namespaces, module visibility, documentation, and formatting are adapted for complexitylib. The source theorem statements and mathematical arguments are retained.
theorem
Complexity.RationalHitting.StackLanguage.range_map_to_finRange
{A : Type}
(n : ℕ)
(f : ℕ → A)
:
Enumerate the matrix entries as a list of rows.
Equations
Instances For
@[instance_reducible]
Equations
- One or more equations did not get rendered due to their size.
@[instance_reducible]
@[simp]
theorem
Complexity.RationalHitting.StackLanguage.DenseSquare.get_fin
(a : DenseSquare)
(i j : Fin a.dim)
:
theorem
Complexity.RationalHitting.StackLanguage.Poly.denseDim :
Poly fun (a : DenseSquare) => { val := a.dim }
def
Complexity.RationalHitting.StackLanguage.DenseSquare.of
{n : ℕ}
(A : Matrix (Fin n) (Fin n) ℤ)
:
Package an indexed matrix with its dimension.
Equations
- Complexity.RationalHitting.StackLanguage.DenseSquare.of A = { dim := n, val := A }
Instances For
One Bird determinant stage on dimension-carrying matrices.
Equations
Instances For
@[simp]
theorem
Complexity.RationalHitting.StackLanguage.Poly.denseStep :
Poly fun (a : DenseSquare × DenseSquare) => a.1.step a.2
Advance the Bird stage while preserving the original matrix.
Instances For
theorem
Complexity.RationalHitting.StackLanguage.Poly.denseDet :
Poly fun (A : DenseSquare) => A.val.det