Documentation

CslibFrontier.Computability.Complexity.RealAlgebraic.CriticalFeasibilityWitness

Fixed-width witnesses for critical feasibility #

The witness is a framed list of derivative-sign entries and a binary shift, with room for padding. Its width is computable in unary from the binary quotient dimension and unary test count. Decoding any word yields a bounded label and shift. Every label and shift used in the determinant criterion can be represented by a word of the prescribed width.

This adapts RootLabelWitnessEncoding and CodedCriticalCriterion in lean-canny at 970f28a5ecefc1327402ade16c068aa4b1b2c183, using the frontier label types and framing.

Main results #

Raw witness fields for the critical determinant test.

  • Derivative-sign entries, read through the bounded label decoder.

  • shift : ℕ

    Shift, reduced modulo the quotient dimension plus one.

theorem Cslib.Complexity.RealAlgebraic.encCriticalFeasibilityWitness_mk_inO {γ : Type} {encIn : γ ↪ List Bool} {x0 : γ → List RootLabelTestCode} {T0 S0 x1 T1 S1 : γ → ℕ} (h0 : Turing.MultiTapeTM.ComputableInO x0 encIn encRootLabelCode T0 S0) (h1 : Turing.MultiTapeTM.ComputableInO x1 encIn Turing.MultiTapeTM.encNat T1 S1) :
Turing.MultiTapeTM.ComputableInO (fun (x : γ) => { label := x0 x, shift := x1 x }) encIn encCriticalFeasibilityWitness (fun (x : γ) => T0 x + T1 x) fun (x : γ) => S0 x + S1 x
@[reducible, inline]

The outer frame delimits the witness. Bits after the frame are padding.

Read a witness from a word, using the total framed decoder.

Bit width for a padded witness with quotient dimension D and at most N derivative-sign entries.

noncomputable def Cslib.Complexity.RealAlgebraic.criticalFeasibilityDeterminant {n ell : ℕ} (hell : 1 ≤ ell) (b : ℕ) (F : MvPolynomial (Fin n) ℤ) (hF : F.totalDegree ≤ ell) (word : List Bool) :

The determinant at the bounded derivative-sign label and shift read from a witness word.

theorem Cslib.Complexity.RealAlgebraic.exists_zero_iff_neg_criticalFeasibilityDeterminant {n ell b : ℕ} (hell : 2 ≤ ell) (heven : Even (ell + 1)) (F : MvPolynomial (Fin n) ℤ) (hF : F.totalDegree ≤ ell) (hb : F.coeffNorm1 ≤ 2 ^ b) (hFn : ∀ (x : Fin n → ℝ), 0 ≤ (MvPolynomial.eval x) ((MvPolynomial.map (Int.castRingHom ℝ)) F)) :
(∃ (x : Fin n → ℝ), (MvPolynomial.eval x) ((MvPolynomial.map (Int.castRingHom ℝ)) F) = 0) ↔ ∃ (word : List Bool), word.length = criticalFeasibilityWitnessWidth (ell ^ n) (n * ell.size) ∧ criticalFeasibilityDeterminant ⋯ b F hF word < 0

A bounded nonnegative source has a real zero exactly when some witness of the prescribed width makes its decoded critical determinant negative. Soundness uses only bounded decoding, so arbitrary padding or malformed witness bits cannot cause a false positive.