A certified inverse or a certified nonzero right-kernel vector.
- invertible {F : Type u} [Field F] {n : ℕ} {A : Matrix (Fin n) (Fin n) F} (value : Matrix (Fin n) (Fin n) F) (right_inv : A * value = 1) (left_inv : value * A = 1) (inv_eq : A⁻¹ = value) : InverseResult A
- singular {F : Type u} [Field F] {n : ℕ} {A : Matrix (Fin n) (Fin n) F} (kernel : Fin n → F) (nonzero : kernel ≠ 0) (annihilates : A.mulVec kernel = 0) (det_eq : A.det = 0) (inv_eq : A⁻¹ = 0) : InverseResult A
Instances For
The complete affine solution space or a certified separating row.
- consistent {F : Type u} [Field F] {n m : ℕ} {A : Matrix (Fin n) (Fin m) F} {b : Fin n → F} (value : Fin m → F) (nullity : ℕ) (basis : Matrix (Fin m) (Fin nullity) F) (solution : A.mulVec value = b) (complete : ∀ (x : Fin m → F), A.mulVec x = b ↔ ∃! c : Fin nullity → F, x = value + basis.mulVec c) : SolveResult A b
- inconsistent {F : Type u} [Field F] {n m : ℕ} {A : Matrix (Fin n) (Fin m) F} {b : Fin n → F} (separator : Fin n → F) (annihilates : Matrix.vecMul separator A = 0) (separates : separator ⬝ᵥ b ≠ 0) (impossible : ¬∃ (x : Fin m → F), A.mulVec x = b) : SolveResult A b
Instances For
The full mathematical statement certified by either solve outcome.
Equations
- (HexMatrixTheory.SolveResult.consistent value nullity basis solution complete).statement = ∀ (x : Fin m → F), A.mulVec x = b ↔ ∃! c : Fin nullity → F, x = value + basis.mulVec c
- (HexMatrixTheory.SolveResult.inconsistent separator annihilates separates impossible).statement = ¬∃ (x : Fin m → F), A.mulVec x = b
Instances For
Decoding belongs to soundness, outside the arithmetic reduction path.
Equations
Instances For
Equations
Instances For
Arbitrary accepted scaled products transport to Mathlib multiplication.
The scaled identity check supplies the matrix inverse equation.
A residual identity accepts every solution, regardless of the producer's choice.
Transport the two independently checked separator conditions.
The proof-facing reduced-row-echelon conditions extracted from a list check.
- sorted (i j : Fin d.rank) : i < j → Hex.Matrix.Lists.entry m d.pivots ↑i < Hex.Matrix.Lists.entry m d.pivots ↑j
Instances For
Reconstruct executable data only in the soundness layer.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Checked row operations and canonical columns give an arbitrary IsRowReduced witness.
The checked basis is exactly the computed free-column basis of the reconstructed RREF.
Span completeness and independence give unique affine coordinates.
The complete check transports the quoted particular solution and full affine basis.
Soundness for both inverse certificate alternatives.
Accepted inverse-product and kernel certificates produce either certified outcome.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Direct residual soundness for literal matrices and vectors.
Soundness for both complete solve certificate alternatives.
Complete positive and negative outcomes from arbitrary accepted list data.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The inverse matrix, when present.
Equations
- (HexMatrixTheory.InverseResult.invertible value right_inv left_inv inv_eq).value? = some value
- (HexMatrixTheory.InverseResult.singular kernel nonzero annihilates det_eq inv_eq).value? = none
Instances For
The nonzero kernel witness in the singular branch.
Equations
- (HexMatrixTheory.InverseResult.invertible value right_inv left_inv inv_eq).kernel? = none
- (HexMatrixTheory.InverseResult.singular kernel nonzero annihilates det_eq inv_eq).kernel? = some kernel
Instances For
The separating row in the inconsistent branch.
Equations
- (HexMatrixTheory.SolveResult.consistent value nullity basis solution complete).separator? = none
- (HexMatrixTheory.SolveResult.inconsistent separator annihilates separates impossible).separator? = some separator
Instances For
A literal matrix is identified with its scaled encoding by cross products.