Signs of controlled integer families #
A zero-variable controlled polynomial supplies all the data required by
Frontier's residue-sign theorem. No explicit expansion of the integer or
recognizer for the admissible domain is required. The result is a fixed
F_(max(a,5)+3) function-level certificate.
Adapted from lean-canny.
Main definitions #
Cslib.Complexity.RealAlgebraic.Controlled.integerAccess: zero-variable residue access.
Main results #
Cslib.Complexity.RealAlgebraic.Controlled.sign_mem: signs without expanding integer values.
noncomputable def Cslib.Complexity.RealAlgebraic.Controlled.integerAccess {α : Type} {enc : α ↪ List Bool} {a : ℕ} {P : α → MvPolynomial (Fin 0) ℤ} (C : Controlled P enc a) :
IntegerResidueAccess fun (w : α) => (P w).coeff 0
The constant coefficient is a mathematical specification; only its modular evaluator and short bound are used by the sign algorithm.
theorem Cslib.Complexity.RealAlgebraic.Controlled.integerAccess_mem {α : Type} {enc : α ↪ List Bool} {a : ℕ} {P : α → MvPolynomial (Fin 0) ℤ} (C : Controlled P enc a) :
C.integerAccess.InCountingFunction a enc
Preparing an empty evaluation point is ordinary polynomial-time work.
theorem Cslib.Complexity.RealAlgebraic.Controlled.sign_mem {α : Type} {enc : α ↪ List Bool} {a : ℕ} {P : α → MvPolynomial (Fin 0) ℤ} (C : Controlled P enc a) (D : Turing.MultiTapeTM.Decoder enc) :
(fun (w : α) => ((P w).coeff 0).sign) ∈ CountingFunction (max a 5 + 3) enc Turing.MultiTapeTM.encIntBin
Signs of controlled integer families lie at a fixed counting level, even when their coefficient expansions have exponentially many bits.