Documentation

HexLLLMathlib.Checker

theorem HexLLLMathlib.lllReduced_sound {n m : } (b : Hex.Matrix n m) (δ η : ) :

D2 soundness theorem: the executable integer reducedness checker entails both b.independent and the rational isLLLReduced b δ η predicate.

This is one of the two soundness ingredients feeding the combined certCheck_sound of hex-lll §"Certified external selection". The companion same-lattice piece is Hex.Matrix.sameLatticeCert_sound.

Soundness of the selected reducedness clause Hex.lllReducedCheck: whichever side decided; the fixed-precision interval checker (HexLLLMathlib.lllReducedInterval_sound), the exact integer checker chosen by the size predictor, or the exact fallback after interval indecision (both via lllReduced_sound above); acceptance entails the rational isLLLReduced predicate and independence. The predictor Hex.Internal.intervalWins only selects between sound checkers, so no hypothesis about it is needed.

theorem HexLLLMathlib.certCheck_sound {n m : } {B B' : Hex.Matrix n m} {U V : Hex.Matrix n n} {δ η : } :
Hex.certCheck B B' U V δ η = true(∀ (v : Vector m), B.memLattice v B'.memLattice v) B'.independent Hex.isLLLReduced B' δ η

Soundness of the certified-selection checker Hex.certCheck: an accepted certificate (B', U, V) proves that B and B' generate the same integer row lattice, that B' is independent, and that B' is (δ, η)-LLL-reduced.

Composes the two soundness ingredients:

No validity hypothesis on η: the 1/2 ≤ η, η² < δ conditions for the LLL short-vector bound live on short_vector_bound_of_size_bound, not on the checker. This is the single trusted soundness theorem feeding the certified-selection correctness of lll.