Documentation

CslibFrontier.Computability.Complexity.RealAlgebraic.RelativeWordCriterion

Two feasibility tests for an empty real fiber #

An empty real zero fiber can be witnessed by a fixed-width word. Its prefix selects a degree piece of the relative section, and its suffix selects a point in the coordinate root grid of the squared lift. The selection polynomial has a zero, and the counterexample polynomial has none for the same word.

Adapted from RelativeTwoTestCriterion and RelativeWordCriterion in lean-canny at 970f28a5ecefc1327402ade16c068aa4b1b2c183.

theorem Cslib.Complexity.RealAlgebraic.exists_emptyFiber_iff_selectionWord {n m ell : ℕ} (hell : 1 ≤ ell) (he : Even (ell + 1)) (P : MvPolynomial (Fin (n + m)) ℤ) (hP : P.totalDegree ≤ ell) (hpos : ∀ (x : Fin m → ℝ) (z : Fin n → ℝ), 0 ≤ MvPolynomial.eval₂ (Int.castRingHom ℝ) (fun (i : Fin (n + m)) => Fin.addCases z x i) P) (N b : ℕ) (hN : (MvPolynomial.CriticalSystem.finiteRelativeValueSection hell P hP).totalDegree ≤ N) (hb : (MvPolynomial.CriticalSystem.finiteRelativeValueSection hell P hP).coeffNorm1 ≤ 2 ^ b) :
let E := MvPolynomial.CriticalSystem.finiteRelativeValueSection hell P hP; let D := 2 * (N + 1); let d := 2 * (D + 1); have mass := MvPolynomial.degreePieceMassExponent N b * 2; let W := fun (k : ℕ) => E.degreePiecePolynomial N k; let F := fun (k : ℕ) => W k ^ 2; have hW := ⋯; have hF := ⋯; (∃ (x : Fin m → ℝ), ∀ (z : Fin n → ℝ), MvPolynomial.eval₂ (Int.castRingHom ℝ) (fun (i : Fin (n + m)) => Fin.addCases z x i) P ≠ 0) ↔ ∃ (word : List Bool), word.length = N.size + coordinateFingerprintWitnessWidth ((d + 1) ^ (m + 1)) (m + 1) ∧ have k := ↑(Controlled.decodeDegreeChoice N word); have suffix := List.drop N.size word; (∃ (y : Fin (m + 1 + (m + 1)) → ℝ), MvPolynomial.eval₂ (Int.castRingHom ℝ) y (selectionFeasibilityPolynomial (F k) ⋯ mass ⋯ suffix) = 0) ∧ ¬∃ (y : Fin (m + 1 + n + (m + 1)) → ℝ), MvPolynomial.eval₂ (Int.castRingHom ℝ) y (selectionCounterexamplePolynomial (F k) (counterexamplePolynomial P) ⋯ mass ⋯ suffix) = 0

A nonnegative relative polynomial has an empty real zero fiber exactly when a degree-and-coordinate witness word makes the selection system feasible and the counterexample system infeasible. The width depends only on the section degree bound N and the parameter arity m.