Documentation

CslibFrontier.Computability.Complexity.RealAlgebraic.ControlledFeasibility

Real zeros of controlled polynomial families #

Squaring preserves real zeros and the counting level of modular evaluation. For the square, the determinant sign decides a fixed-width feasibility witness at level F_(a+24). Existential quantification over those bits gives a Boolean decision one level higher. Two such decisions can test, for one shared fixed-width word, that one polynomial has a real zero and that the other has none.

Adapted from ControlledFeasibilityWitnesses, ControlledFeasibilityFunction, and ControlledFeasibility in lean-canny at 970f28a5ecefc1327402ade16c068aa4b1b2c183, using the frontier's framed witness and critical determinant. The input is the encoded index of a controlled family. Its polynomial is a specification accessed through its modular evaluator.

Main results #

theorem Cslib.Complexity.RealAlgebraic.Controlled.feasibilityFunction_mem {α : Type} {n : α → ℕ} {enc : α ↪ List Bool} {a : ℕ} {P : (w : α) → MvPolynomial (Fin (n w)) ℤ} (C : Controlled P enc a) (E : Turing.MultiTapeTM.Decoder enc) :
(fun (w : α) => decide (∃ (x : Fin (n w) → ℝ), (MvPolynomial.eval x) ((MvPolynomial.map (Int.castRingHom ℝ)) (P w)) = 0)) ∈ CountingFunction (a + 25) enc Turing.MultiTapeTM.encBool

A controlled polynomial family at level F_a admits a Boolean real-zero test at level F_(a+25), using the unary arity and binary bounds supplied by the family.

theorem Cslib.Complexity.RealAlgebraic.Controlled.feasibility_mem {α : Type} {n : α → ℕ} {enc : α ↪ List Bool} {a : ℕ} {P : (w : α) → MvPolynomial (Fin (n w)) ℤ} (C : Controlled P enc a) (E : Turing.MultiTapeTM.Decoder enc) :
{w : α | ∃ (x : Fin (n w) → ℝ), (MvPolynomial.eval x) ((MvPolynomial.map (Int.castRingHom ℝ)) (P w)) = 0} ∈ CountingLevel (a + 26) enc

The real-zero language of an F_a controlled polynomial family is in C_(a+26)P.

theorem Cslib.Complexity.RealAlgebraic.Controlled.boundedFeasibilityTests_mem {α : Type} {enc : α ↪ List Bool} {a : ℕ} {n₁ n₂ : α × List Bool → ℕ} {P₁ : (q : α × List Bool) → MvPolynomial (Fin (n₁ q)) ℤ} {P₂ : (q : α × List Bool) → MvPolynomial (Fin (n₂ q)) ℤ} (C₁ : Controlled P₁ (Turing.MultiTapeTM.encPair enc Turing.MultiTapeTM.encBits) a) (C₂ : Controlled P₂ (Turing.MultiTapeTM.encPair enc Turing.MultiTapeTM.encBits) a) (E : Turing.MultiTapeTM.Decoder enc) (width : α → ℕ) (hw : Turing.MultiTapeTM.ComputableInPolyTime width enc Turing.MultiTapeTM.encUnary) :
{w : α | ∃ (word : List Bool), word.length = width w ∧ (∃ (x : Fin (n₁ (w, word)) → ℝ), MvPolynomial.eval₂ (Int.castRingHom ℝ) x (P₁ (w, word)) = 0) ∧ ¬∃ (y : Fin (n₂ (w, word)) → ℝ), MvPolynomial.eval₂ (Int.castRingHom ℝ) y (P₂ (w, word)) = 0} ∈ CountingLevel (a + 27) enc

Combine two controlled real-zero tests under a shared word of a polynomial-time unary width. Accept if the first polynomial has a real zero and the second has none. Adapted from lean-canny's BoundedTwoTestDecision at 970f28a5ecefc1327402ade16c068aa4b1b2c183.