Basic parameters and scalar infrastructure for the low individual degree test #
Core parameter data, finite-field models, and coordinate arithmetic.
Note: this module contributes declarations to the comparator statement closure
of mainFormal, which must elaborate in the same environment as the
Mathlib-only Challenge.lean. Keep the full import Mathlib; do not narrow
it. See docs/comparator.md, "Environment alignment".
Equations
Instances For
Equations
- MIPStarRE.LDT.instReprRole = { reprPrec := MIPStarRE.LDT.instReprRole.repr }
Equations
- MIPStarRE.LDT.instReprRole.repr MIPStarRE.LDT.Role.A prec✝ = Repr.addAppParen (Std.Format.nest (if prec✝ ≥ 1024 then 1 else 2) (Std.Format.text "MIPStarRE.LDT.Role.A")).group prec✝
- MIPStarRE.LDT.instReprRole.repr MIPStarRE.LDT.Role.B prec✝ = Repr.addAppParen (Std.Format.nest (if prec✝ ≥ 1024 then 1 else 2) (Std.Format.text "MIPStarRE.LDT.Role.B")).group prec✝
Instances For
Equations
Equations
- MIPStarRE.LDT.instFintypeRole = { elems := { val := ↑MIPStarRE.LDT.Role.enumList, nodup := MIPStarRE.LDT.Role.enumList_nodup }, complete := MIPStarRE.LDT.instFintypeRole._proof_1 }
Equations
Instances For
Parameters for the (m,q,d) low individual degree test.
Besides the usual positivity assumptions, we bundle the paper-faithful witness
that q = p^n is a prime power.
- m : ℕ
- q : ℕ
- d : ℕ
Kept as a compatibility field so existing positivity proofs can continue to use
params.hq; it is derivable fromhqPrimePower.Paper-faithful witness that
qis a prime power.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Build parameters from explicit prime-power data q = p^n.
Equations
- MIPStarRE.LDT.Parameters.ofPrimePower m q d p n hm hp hn hq = { m := m, q := q, d := d, hm := hm, hq := ⋯, hqPrimePower := ⋯ }
Instances For
Build parameters when q itself is prime.
Equations
- MIPStarRE.LDT.Parameters.ofPrime m q d hm hqPrime = { m := m, q := q, d := d, hm := hm, hq := ⋯, hqPrimePower := ⋯ }
Instances For
Convenience constructor for the ubiquitous binary field.
Equations
- MIPStarRE.LDT.Parameters.ofTwo m d hm = MIPStarRE.LDT.Parameters.ofPrime m 2 d hm Nat.prime_two
Instances For
The field-size parameter is strictly larger than 1.
Positivity of the field-size parameter after casting to the repository's real-valued error scalar type.
Equations
The successor test obtained by appending one coordinate.
Equations
Instances For
The predecessor parameters obtained by removing the last coordinate from a non-base ambient dimension.
This is the inverse construction to Parameters.next on the data fields. The
proof fields are inherited from the original parameter bundle, so the inverse is
propositional rather than definitional.
Equations
Instances For
Removing the last coordinate and then applying Parameters.next recovers the
original non-base parameters.
A bundled predecessor for a parameter set known to be a successor dimension.
- pred : Parameters
The predecessor parameter bundle.
The predecessor's successor is the original parameter bundle.
Instances For
Every parameter bundle of dimension strictly larger than one has a bundled predecessor whose successor is propositionally equal to the original bundle.
Equations
- params.successorDecompositionOfOneLtM hm = { pred := params.previous hm, next_eq := ⋯ }
Instances For
A positive dimension that is not the base dimension is strictly larger than one.
Non-base parameters have a bundled predecessor decomposition.
Equations
- params.successorDecompositionOfNeOne hm_ne_one = params.successorDecompositionOfOneLtM ⋯
Instances For
Equations
- MIPStarRE.LDT.Point params = (Fin params.m → MIPStarRE.LDT.Fq params)
Instances For
Equations
- MIPStarRE.LDT.PointTuple params k = (Fin k → MIPStarRE.LDT.Fq params)
Instances For
Prime-power metadata extracted from params.hqPrimePower, exposing the
honest finite-field carrier GaloisField p n underlying the paper's notation
F_q.
Instances For
Recover the prime-power specification bundled inside Parameters.
Equations
- params.primePowerFieldSpec = ⋯.some
Instances For
An honest finite field of order q, obtained from the prime-power
witness bundled in Parameters.
Equations
- MIPStarRE.LDT.HonestFq params spec = GaloisField spec.p spec.n
Instances For
A bundled field model for the paper's F_q, together with a coding equivalence
to the repository's finite carrier Fin q.
- K : Type u_1
- instDecidableEq : DecidableEq (K q)
Instances
The carrier bundled in a FieldModel q has exactly q elements, matching the
paper's finite-field convention |F_q| = q (preliminaries.tex, lines 17--19).
A bundled field model has a nonempty finite carrier.
The finite cardinality of a bundled field model is nonzero.
Build the honest field model from prime-power data.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The canonical field model associated to the paper-faithful prime-power data
stored in params. Lean prefers larger numeric priorities, so this fallback
uses 100 while the params.next transport below uses 200; that lets
instance search reuse an already chosen model when one is available. This
instance is noncomputable because the coding equivalence to Fin q is obtained
from finite cardinality data, so declarations that discover it through
typeclass search may also need to be marked noncomputable when they reduce
the model.
Equations
- MIPStarRE.LDT.instFieldModelQ params = MIPStarRE.LDT.PrimePowerFieldSpec.toFieldModel params params.primePowerFieldSpec
Reuse an already chosen field model for successor parameters. Since Lean
prefers larger numeric priorities, this transport uses 200 so it is tried
before the canonical fallback above.
Equations
Equations
- MIPStarRE.LDT.Scalar params = MIPStarRE.LDT.FieldModel.K params.q
Instances For
Equations
- MIPStarRE.LDT.PolynomialModel params = MvPolynomial (Fin params.m) (MIPStarRE.LDT.Scalar params)
Instances For
Equations
- MIPStarRE.LDT.LinePolynomialModel params = Polynomial (MIPStarRE.LDT.Scalar params)
Instances For
The chosen scalar model for the paper's F_q has exactly q elements
(preliminaries.tex, lines 17--19 and 89--93).
Interpret a coded coordinate in Fin q as a scalar in the chosen field model.
Equations
Instances For
Re-encode a field-model scalar as its canonical representative in Fin q.
Equations
Instances For
The zero coordinate.
Equations
Instances For
Pointwise addition in the coded ambient space.
Equations
- MIPStarRE.LDT.addPoint u v i = MIPStarRE.LDT.addCoord (u i) (v i)
Instances For
Scalar multiplication in the coded ambient space.
Equations
- MIPStarRE.LDT.smulPoint t u i = MIPStarRE.LDT.mulCoord t (u i)
Instances For
The zero point in F_q^m.
Equations
Instances For
The old-coordinate inclusion into the appended coordinate space is injective.
The last coordinate of F_q^(m+1).
Equations
- MIPStarRE.LDT.lastCoord params = ⟨params.m, ⋯⟩
Instances For
No old coordinate is the appended last coordinate.
Append a final coordinate to a point in F_q^m.
Instances For
Truncate the last coordinate of a point in F_q^{m+1}.
Equations
- MIPStarRE.LDT.truncatePoint params u i = u ⟨↑i, ⋯⟩
Instances For
Extract the final coordinate of a point in F_q^{m+1}.
Equations
- MIPStarRE.LDT.pointHeight params u = u (MIPStarRE.LDT.lastCoord params)
Instances For
Decode a coded point as a tuple of scalars in the chosen field model.
Equations
Instances For
Evaluate a multivariate polynomial over the chosen field model on a coded point.
Equations
Instances For
Evaluate a univariate polynomial over the chosen field model on a coded point.