Documentation

CslibFrontier.Computability.Complexity.RealAlgebraic.WordCoordinateFingerprintLabels

Indexed coordinate equations and fingerprint labels #

Each binary address selects a coordinate characteristic polynomial and a fingerprint from the shared word. The controlled univariate family evaluates the resulting integer labels at level a + 20 from a controlled source at level a. The lifted family reads these labels in the original coordinate space at the same level. The matching equations evaluate the leading deformation coefficients in that space at level a + 18 and depend only on the instance and coordinate address.

Adapted from ControlledIndexedLabels in lean-canny at 970f28a5ecefc1327402ade16c068aa4b1b2c183. The leading deformation coefficient is selected over the integers. The witness supplies only the fingerprint parameters.

noncomputable def Cslib.Complexity.RealAlgebraic.wordCoordinateFingerprintLabel {n d : ℕ} (F : MvPolynomial (Fin n) ℤ) (hF : F.totalDegree ≤ d + 1) (mass : ℕ) (hn : 0 < n) (word : List Bool) (j : ℕ) :

Label the roots of the leading deformation coefficient at coordinate j % n, using the fingerprint at address j of the shared word. No range condition on j is needed.

noncomputable def Cslib.Complexity.RealAlgebraic.Controlled.wordCoordinateFingerprintLabels {α : Type} {n : α → ℕ} {enc : α ↪ List Bool} {a : ℕ} {F : (w : α) → MvPolynomial (Fin (n w)) ℤ} (C : Controlled F enc a) (E : Turing.MultiTapeTM.Decoder enc) {d : α → ℕ} (hn : ∀ (w : α), 0 < n w) (hdpos : ∀ (w : α), 1 ≤ d w) (hF : ∀ (w : α), (F w).totalDegree ≤ d w + 1) (hd : Turing.MultiTapeTM.ComputableInPolyTime d enc Turing.MultiTapeTM.encNat) (word : α → List Bool) (hword : Turing.MultiTapeTM.ComputableInPolyTime word enc Turing.MultiTapeTM.encBits) :

A polynomial-time witness word supplies one controlled univariate label per binary address at level a + 20. Positive arity allows every address to select a coordinate.

noncomputable def Cslib.Complexity.RealAlgebraic.wordCoordinateFingerprintTest {n d : ℕ} (F : MvPolynomial (Fin n) ℤ) (hF : F.totalDegree ≤ d + 1) (mass : ℕ) (hn : 0 < n) (word : List Bool) (j : ℕ) :

The fingerprint label at a binary address, placed in the addressed coordinate of the original variable space.

theorem Cslib.Complexity.RealAlgebraic.eval₂_wordCoordinateFingerprintTest {n d : ℕ} {R : Type u_1} [CommSemiring R] (f : ℤ →+* R) (F : MvPolynomial (Fin n) ℤ) (hF : F.totalDegree ≤ d + 1) (mass : ℕ) (hn : 0 < n) (word : List Bool) (x : Fin n → R) (j : ℕ) :

The lifted label evaluates at the addressed coordinate.

noncomputable def Cslib.Complexity.RealAlgebraic.Controlled.wordCoordinateFingerprintTests {α : Type} {n : α → ℕ} {enc : α ↪ List Bool} {a : ℕ} {F : (w : α) → MvPolynomial (Fin (n w)) ℤ} (C : Controlled F enc a) (E : Turing.MultiTapeTM.Decoder enc) {d : α → ℕ} (hn : ∀ (w : α), 0 < n w) (hdpos : ∀ (w : α), 1 ≤ d w) (hF : ∀ (w : α), (F w).totalDegree ≤ d w + 1) (hd : Turing.MultiTapeTM.ComputableInPolyTime d enc Turing.MultiTapeTM.encNat) (word : α → List Bool) (hword : Turing.MultiTapeTM.ComputableInPolyTime word enc Turing.MultiTapeTM.encBits) :
Controlled (fun (q : α × ℕ) => wordCoordinateFingerprintTest (F q.1) ⋯ (C.massExponent q.1) ⋯ (word q.1) q.2) (Turing.MultiTapeTM.encPair enc Turing.MultiTapeTM.encNat) (a + 20)

Evaluate the word-indexed label at its selected coordinate in the original variable space. The binary address is reduced modulo the positive source arity to select that coordinate.

theorem Cslib.Complexity.RealAlgebraic.Controlled.wordCoordinateFingerprintTests_bounds_eq {α : Type} {n : α → ℕ} {enc : α ↪ List Bool} {a : ℕ} {F : (w : α) → MvPolynomial (Fin (n w)) ℤ} (C : Controlled F enc a) (E : Turing.MultiTapeTM.Decoder enc) {d : α → ℕ} (hn : ∀ (w : α), 0 < n w) (hdpos : ∀ (w : α), 1 ≤ d w) (hF : ∀ (w : α), (F w).totalDegree ≤ d w + 1) (hd : Turing.MultiTapeTM.ComputableInPolyTime d enc Turing.MultiTapeTM.encNat) (word : α → List Bool) (hword : Turing.MultiTapeTM.ComputableInPolyTime word enc Turing.MultiTapeTM.encBits) (w : α) (j : ℕ) :
have labels := C.wordCoordinateFingerprintTests E hn hdpos hF hd word hword; labels.degreeBound (w, j) = labels.degreeBound (w, 0) ∧ labels.massExponent (w, j) = labels.massExponent (w, 0) ∧ labels.cutoff (w, j) = labels.cutoff (w, 0)

The fingerprint rows share the degree bound, norm exponent and prime cutoff at row zero. The modulus cap depends only on the instance, even when different addresses decode different actual moduli from the shared word.

noncomputable def Cslib.Complexity.RealAlgebraic.indexedCoordinateEquation {n d : ℕ} (F : MvPolynomial (Fin n) ℤ) (hF : F.totalDegree ≤ d + 1) (hn : 0 < n) (j : ℕ) :

Place the leading deformation coefficient at the variable selected by a binary address.

The equation evaluates the leading deformation coefficient at the addressed coordinate.

noncomputable def Cslib.Complexity.RealAlgebraic.Controlled.indexedCoordinateEquations {α : Type} {n : α → ℕ} {enc : α ↪ List Bool} {a : ℕ} {F : (w : α) → MvPolynomial (Fin (n w)) ℤ} (C : Controlled F enc a) (E : Turing.MultiTapeTM.Decoder enc) {d : α → ℕ} (hn : ∀ (w : α), 0 < n w) (hdpos : ∀ (w : α), 1 ≤ d w) (hF : ∀ (w : α), (F w).totalDegree ≤ d w + 1) (hd : Turing.MultiTapeTM.ComputableInPolyTime d enc Turing.MultiTapeTM.encNat) :

The coordinate root grid uses the zeros of the integer leading deformation coefficients. This controlled family places each equation at the coordinate selected by its binary address. Its evaluator uses counting level a + 18 and needs no fingerprint word.

theorem Cslib.Complexity.RealAlgebraic.Controlled.indexedCoordinateEquations_bounds_eq {α : Type} {n : α → ℕ} {enc : α ↪ List Bool} {a : ℕ} {F : (w : α) → MvPolynomial (Fin (n w)) ℤ} (C : Controlled F enc a) (E : Turing.MultiTapeTM.Decoder enc) {d : α → ℕ} (hn : ∀ (w : α), 0 < n w) (hdpos : ∀ (w : α), 1 ≤ d w) (hF : ∀ (w : α), (F w).totalDegree ≤ d w + 1) (hd : Turing.MultiTapeTM.ComputableInPolyTime d enc Turing.MultiTapeTM.encNat) (w : α) (j : ℕ) :
have equations := C.indexedCoordinateEquations E hn hdpos hF hd; equations.degreeBound (w, j) = equations.degreeBound (w, 0) ∧ equations.massExponent (w, j) = equations.massExponent (w, 0) ∧ equations.cutoff (w, j) = equations.cutoff (w, 0)

The indexed coordinate equations share bounds across all addresses of the same input.