Rational hitting lists: determinant #
Adapted from OpenAI's formalization at revision adc7f1241b42e322a6451854ab7e4b4c146bf78a.
Source: https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/lean/OAI/Computability/RationalHitting/Determinant.lean
Imports, namespaces, module visibility, documentation, and formatting are adapted for complexitylib. The source theorem statements and mathematical arguments are retained.
A dense square integer matrix stored as a vector of row vectors.
Equations
Instances For
Read a dense integer table as a matrix.
Equations
- Complexity.RationalHitting.DeterminantAlgorithm.denote A i j = (Vector.get A i).get j
Instances For
Materialize every entry of an integer matrix into a dense table.
Equations
- Complexity.RationalHitting.DeterminantAlgorithm.tabulate A = Vector.ofFn fun (i : Fin n) => Vector.ofFn fun (j : Fin n) => A i j
Instances For
One division-free Bird determinant stage on stored tables.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Iterate the division-free determinant stage.
Equations
Instances For
Compute the determinant from the final Bird stage, including dimension zero.
Equations
- One or more equations did not get rendered due to their size.
- Complexity.RationalHitting.DeterminantAlgorithm.determinant x_2 = 1
Instances For
A genuine executable determinant, not Matrix.det's permutation sum.