Documentation

CslibFrontier.Computability.Complexity.RealAlgebraic.ControlledSigns

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 #

Main results #

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.

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.