39.1.4. Executable certificates and correspondence🔗
🔗inductive type
A classification retains its polarity.
🔗inductive type
A congruence transform, or an integer positive vector.
🔗inductive type
A coordinate mismatch, or a nonzero vector with nonpositive quadratic value.
Hex.PosDef.Int.certify accepts an executable square integer
matrix and an optional method. Hex.PosDef.Gaussian.certify
uses the general method. Successful returns have been rechecked against
the original rows. Unsupported methods and rejected producer
certificates are separate error constructors.
🔗theorem
Successful return implies independent checker acceptance, without an elimination invariant.
🔗theorem
Gaussian successful-return self-validation is independent of exact-division correctness.
The checkers validate exact shapes before list dot products. Positive
certificates establish positivity for arbitrary test vectors in the
target carrier. Negative certificates give either a non-Hermitian
coordinate or a nonzero vector with real nonpositive quadratic value.
The soundness theorems accept arbitrary certificates, without a producer
provenance assumption.
🔗theoremHex.PosDefTheory.Int.checkPositive_sound.{u_1} (R : Type u_1)
[CommRing R] [PartialOrder R] [StarRing R] [IsStrictOrderedRing R]
[StarOrderedRing R] [CharZero R] [PosMulReflectLT R]
[NoZeroDivisors R] (n : ℕ) (rows : List (List ℤ))
(c : Hex.PosDef.PositiveCert ℤ)
(h : Hex.PosDef.Int.checkPositive n rows c = true) :
(Hex.PosDefTheory.Lists.matrix (Hex.PosDefTheory.intModel R) n
rows).PosDef Hex.PosDefTheory.Int.checkPositive_sound.{u_1}
(R : Type u_1) [CommRing R]
[PartialOrder R] [StarRing R]
[IsStrictOrderedRing R]
[StarOrderedRing R] [CharZero R]
[PosMulReflectLT R] [NoZeroDivisors R]
(n : ℕ) (rows : List (List ℤ))
(c : Hex.PosDef.PositiveCert ℤ)
(h :
Hex.PosDef.Int.checkPositive n rows
c =
true) :
(Hex.PosDefTheory.Lists.matrix
(Hex.PosDefTheory.intModel R) n
rows).PosDef
Integer positive certificates are interpreted directly in the target carrier.
🔗theorem
Integer negative certificates refute positivity independently of production.
🔗theorem
Gaussian congruence certificates imply complex positive definiteness.
🔗theorem
Non-Hermitian coordinates and Gaussian quadratic witnesses both refute positivity.
Rational quotation uses one positive denominator for the whole matrix.
The Theory wrappers transport the checked result along the proved
scaling equation. Real and complex entry equalities are proved by scalar
normalization; classical equality is not evaluated by the checker.
The unrestricted general producers always return a classification. Their
positive outcome is equivalent to positive definiteness of the decoded
matrix; the explicitly selected vector method promises soundness on success.
🔗theorem
The unrestricted integer producer always classifies its input, and returns
positive exactly when its integer interpretation is positive definite.
🔗theorem
The unrestricted Gaussian producer always classifies its input, and returns
positive exactly when its complex interpretation is positive definite.