Exact Cholesky and QR Specifications #
IsCholesky and IsQR state the factorization properties using mathlib matrices. The fold-indexing
lemmas track columns appended by the specification recurrences, and
choleskySpec_lower_triangular shows that the Cholesky recurrence sets above-diagonal entries to
zero without a pivot assumption.
FactorizationsReconstruction proves Cholesky reconstruction under symmetry and positive pivots,
and QR reconstruction under positive pivots. FactorizationsOrthonormal supplies QR orthonormality.
These are exact real-arithmetic results about the specification bodies. They do not establish
floating-point stability or the equivalence of Cholesky's implemented_by runtime override.
Specifications #
The mathematical meaning of each factorization, as a predicate over real matrices. Over ℝ,
star = id so conjTranspose = transpose; we phrase everything with ᵀ.
Fold-indexing for the column-building specs #
choleskyColsFn and gramSchmidtFn build their output with a left fold that appends one column per
index. The lemmas here read off the column produced at a given position, bridging the executable
List.foldl form to per-entry reasoning. They are generic over the appended-value function g.
Cholesky factor is lower-triangular #
A structural fact about the executable choleskyFn, proved directly from the column fold: the entry
above the diagonal is forced to 0 by the construction.
Tensor-level statement: the Cholesky factor choleskySpec A is lower-triangular.