Binomial measurement row counts and algebraic replacement design assembly (Lemmas 4.1 and 4.7) #
This module assembles the algebraic replacement design construction of Section 4 of the manuscript
The Exponential Time Hypothesis is False ([OpenAI2026ETH], printed pp. 28, 32–34) by
proving the exact binomial fiber count of Lemma 4.1 (p. 28, equation 4.8), the total
measurement row bound of equation (4.16) (p. 32), and a generalized algebraic Lemma 4.7 existence
theorem (pp. 33–34) establishing conditions (1)–(4) of Definition 3.1 (pp. 21–22) together with
the explicit cleared-denominator and ℓ₁-coefficient norm bounds of Lemma 4.6 underlying
condition (5) (formal O(Q log Q + log D) bit-length and native runtime-cost integration remain
separate):
Slot-level antisymmetric and symmetric pair counts (Lemma 4.1 proof, p. 28):
- For each evaluation slot
s : Fin Q, ther × rpair basis splits intoantisymPairs r = {p : Fin r × Fin r | p.2 < p.1}of cardinalityr * (r - 1) / 2(card_antisymPairs, eigenvalue-1) andsymPairs r = {p : Fin r × Fin r | ¬ p.2 < p.1}of cardinalityr * (r + 1) / 2(card_symPairs, eigenvalue+1).
- For each evaluation slot
Exact binomial fiber count and Lemma 4.1 tail bound (p. 28, eq. 4.8):
- For every subset
S : Finset (Fin Q), the set of auxiliary basis labelsβ : AuxLabel Q rwhose antisymmetric slot setantisymSlots β = {s | β.2 s < β.1 s}equalsShas cardinality(r * (r - 1) / 2) ^ #S * (r * (r + 1) / 2) ^ (Q - #S)(card_filter_antisymSlots_eq). - Summing over
S ∈ powersetCard j univgives the exact fiber count#({β : AuxLabel Q r | antisymCount β = j}) = Q.choose j * (r * (r - 1) / 2) ^ j * (r * (r + 1) / 2) ^ (Q - j)(card_filter_antisymCount_eq) and the exact measurement row count#(measurementIndices Q r A₀ R)(card_measurementIndices_eq). - Over
ℚ, for0 < r,(#(measurementIndices Q r A₀ R) : ℚ) = (r ^ (2 * Q) : ℚ) * binomTailProb Q r A₀ R(card_measurementIndices_cast_eq), sobinomTailProb Q r A₀ R ≤ ε(eq. 4.8) implies(#(measurementIndices Q r A₀ R) : ℚ) ≤ ε * (r ^ (2 * Q) : ℚ)(card_measurementIndices_le_of_binomTailProb_le).
- For every subset
Total group measurement row bound (Section 4.5, eq. 4.16, p. 32):
- When
h * r ^ (2 * Q) ≤ 2 * M,M ≤ b * n, andbinomTailProb Q r A₀ R ≤ τ / (r * b), the total number of measurement rows across allrvariable groups satisfies((r * (h * #(measurementIndices Q r A₀ R)) : ℕ) : ℚ) ≤ 2 * τ * (n : ℚ)(card_allGroupMeasurementRows_le_two_mul_tau_mul_n).
- When
Algebraic replacement design assembly (Definition 3.1, pp. 21–22, and Lemma 4.7, pp. 33–34):
ReplacementDesignbundles the variable partitionvarAssign, factor group schedulefactorAssign, copy counth, and injective copy placementplacetogether with the group-size, measurement-row count, measurementℓ₁-norm, degree, evaluation-at-zero, and kernel-invariance properties of Definition 3.1 (1)–(4), plus the explicit cleared-denominator identity andℓ₁coefficient norm bound of Lemma 4.6 (commonDenom Q R = (R - 1)! * Q!) underlying Definition 3.1 (5) (formalO(Q log Q + log D)bit-length and native runtime-cost endpoints remain separate follow-up).exists_replacementDesignproves an algebraic generalization of Lemma 4.7 (printed pp. 33–34) by combining Lemma 4.1, Lemma 4.3, Lemma 4.5 (exists_balanced_schedules_of_scopes), Section 4.5 (fiberRankCopy,varReplacementRow,varMeasurementMatrix), and Lemma 4.6: it requires only0 ≤ τ,M ≤ b * n(omittingn ≤ Mandτ ≤ 1 / 2), and the weaker node-range conditionhI : ∀ a < R - 1, A₀ + a ≤ Q(vacuous atR = 1) rather than full interval containmentI ⊆ [0, Q].
Main definitions #
Cslib.LinearAlgebra.antisymPairs,Cslib.LinearAlgebra.symPairs: antisymmetric (p.2 < p.1) and symmetric/diagonal (¬ p.2 < p.1) pairs inFin r × Fin r.Cslib.LinearAlgebra.antisymSlots: the subset of evaluation slots whereβ.2 s < β.1 s.Cslib.LinearAlgebra.binomTailProb: the binomial tail probabilityPr[W ∉ {A₀, ..., A₀ + R - 1}]forW ∼ Bin(Q, (r - 1) / (2 * r))(eq. 4.8).Cslib.LinearAlgebra.ReplacementDesign: bundled Section 4 replacement design satisfying Definition 3.1 (1)–(4) and the explicit denominator/coefficient-norm bounds of Lemma 4.6.
Main results #
Cslib.LinearAlgebra.card_antisymPairs,Cslib.LinearAlgebra.card_symPairs:#(antisymPairs r) = r * (r - 1) / 2and#(symPairs r) = r * (r + 1) / 2.Cslib.LinearAlgebra.card_filter_antisymCount_eq,Cslib.LinearAlgebra.card_measurementIndices_eq,Cslib.LinearAlgebra.card_measurementIndices_cast_eq,Cslib.LinearAlgebra.card_measurementIndices_le_of_binomTailProb_le: Lemma 4.1 exact binomial fiber count and equation (4.8) tail bound.Cslib.LinearAlgebra.card_allGroupMeasurementRows_le_two_mul_tau_mul_n: equation (4.16) total measurement row bound≤ 2 * τ * n.Cslib.LinearAlgebra.exists_replacementDesign: Lemma 4.7 algebraic existence of a Section 4 replacement design.
References #
- OpenAI, The Exponential Time Hypothesis is False (Definition 3.1, Lemmas 4.1, 4.3, 4.5, 4.6, and 4.7, pp. 21–22, 28, 30–34)
Part 1: Slot-level antisymmetric and symmetric pair counts (Lemma 4.1, p. 28) #
antisymPairs r and symPairs r partition Fin r × Fin r.
Swapping coordinates maps antisymPairs r (p.2 < p.1) bijectively onto {p | p.1 < p.2}.
Part 2: Exact binomial fiber count and Lemma 4.1 tail bound (p. 28, eq. 4.8) #
antisymCount β is the cardinality of antisymSlots β.
antisymCount β is at most Q.
For any fixed subset S : Finset (Fin Q) of evaluation slots, the auxiliary labels
β : AuxLabel Q r with antisymSlots β = S are in bijection with
Fintype.piFinset (fun s => if s ∈ S then antisymPairs r else symPairs r) and therefore have
cardinality #(antisymPairs r) ^ #S * #(symPairs r) ^ (Q - #S).
Lemma 4.1 exact binomial fiber count (p. 28):
The number of auxiliary basis labels β : AuxLabel Q r with antisymCount β = j is
Q.choose j * (r * (r - 1) / 2) ^ j * (r * (r + 1) / 2) ^ (Q - j).
Lemma 4.1 exact measurement row count (p. 28):
The number of measurement indices in measurementIndices Q r A₀ R is the sum over
j ∈ range (Q + 1) outside [A₀, A₀ + R) of
Q.choose j * (r * (r - 1) / 2) ^ j * (r * (r + 1) / 2) ^ (Q - j).
The binomial tail probability Pr[W ∉ {A₀, ..., A₀ + R - 1}] for
W ∼ Bin(Q, (r - 1) / (2 * r)) from Lemma 4.1 and equation (4.8) (p. 28).
Instances For
Lemma 4.1 rational identity (p. 28):
For 0 < r, the number of rows #(measurementIndices Q r A₀ R) of measurementMatrix equals
D * Pr[W ∉ I] = r ^ (2 * Q) * binomTailProb Q r A₀ R.
Lemma 4.1 and equation (4.8) row bound (p. 28):
If binomTailProb Q r A₀ R ≤ ε, then #(measurementIndices Q r A₀ R) ≤ ε * r ^ (2 * Q).
For 0 < r, binomTailProb Q r A₀ R equals the fraction
#(measurementIndices Q r A₀ R) / r ^ (2 * Q) of auxiliary basis labels outside [A₀, A₀ + R).
binomTailProb Q r A₀ R is nonnegative for 1 ≤ r.
When R = 0, the interval [A₀, A₀ + R) is empty and binomTailProb Q r A₀ 0 = 1
(the full binomial distribution sums to 1).
binomTailProb Q r A₀ R ≤ 1 for 0 < r.
Part 3: Total group measurement row bound (Section 4.5, eq. 4.16, p. 32) #
Equation (4.16) total group measurement row bound (p. 32):
When h * r ^ (2 * Q) ≤ 2 * M, M ≤ b * n, 0 ≤ τ, and
binomTailProb Q r A₀ R ≤ τ / (r * b), the total number of measurement rows
r * (h * #(measurementIndices Q r A₀ R)) across all r variable groups is at most
2 * τ * n.
Part 4: Algebraic Section 4 replacement design (Definition 3.1 & Lemma 4.7, pp. 32–34) #
A bundled Section 4 replacement design for a factor scope family scope : F → Finset (Fin n),
recording Definition 3.1 (1)–(4) (pp. 21–22) together with the explicit cleared-denominator
identity and ℓ₁ coefficient norm bound of Lemma 4.6 (p. 33) that underlie Definition 3.1 (5)
(formal O(Q log Q + log D) bit-length and native runtime endpoints are separate follow-up).
- h : ℕ
Number of auxiliary array copies
h. - place : BalancedSchedules.ScopeIncidence scope → Fin self.h × AuxLabel Q r
Definition 3.1 (1): every variable group
S_{t,g}has size at most2 * n / r.- factorAssign_of_empty (f : F) : scope f = ∅ → ∀ (t : Fin Q), ↑(self.factorAssign f t) = 0
Section 4.1 / Lemma 4.5: factors with empty scope are assigned to group
0at every point. - injective_place : Function.Injective self.place
Section 4.5: all occupied positions
(c(f,v), u_{f,v})in[h] × Bare distinct. - place_snd (e : BalancedSchedules.ScopeIncidence scope) : (self.place e).2 = (self.varAssign (BalancedSchedules.scopeVarOf scope e), self.factorAssign (BalancedSchedules.scopeFactorOf scope e))
Section 4.4–4.5: the auxiliary label of incidence
e = (f, v)is(a_v, d_f). Section 4.5: the copy count satisfies
h * D ≤ 2 * M.Definition 3.1 (3) and equation (4.16): the total number of measurement rows across all
rgroups at each evaluation pointtis at most2 * τ * n.- sum_abs_measurement_row_le (p : Fin self.h × ↥(measurementIndices Q r A₀ R)) : ∑ v : Fin n, |varMeasurementMatrix Q r A₀ R ℤ self.place (BalancedSchedules.scopeVarOf scope) p v| ≤ ↑r ^ (2 * Q)
Definition 3.1 (3): every row of the integer measurement matrix has
ℓ₁-norm at mostD = r ^ (2 * Q). - natDegree_replacementRow_le (e : BalancedSchedules.ScopeIncidence scope) (v : Fin n) : (varReplacementRow Q r A₀ R self.place (BalancedSchedules.scopeVarOf scope) e v).natDegree ≤ R - 1
Definition 3.1 (4): every replacement polynomial entry has degree at most
R - 1(≤ R). - eval_replacementRow_zero (e : BalancedSchedules.ScopeIncidence scope) (v : Fin n) : Polynomial.eval 0 (varReplacementRow Q r A₀ R self.place (BalancedSchedules.scopeVarOf scope) e v) = if BalancedSchedules.scopeVarOf scope e = v then 1 else 0
Definition 3.1 (4): at
T = 0, the replacement row for incidenceeevaluates toδ_{scopeVarOf scope e}. - evalReplacementRow_nodePoint_eq_zero_of_kernel (e : BalancedSchedules.ScopeIncidence scope) (t : Fin Q) (g : Fin r) : g ≠ self.factorAssign (BalancedSchedules.scopeFactorOf scope e) t → ∀ (ξ : Fin n → ℚ), (∀ v ∉ varGroup self.varAssign t g, ξ v = 0) → (varMeasurementMatrix Q r A₀ R ℚ self.place (BalancedSchedules.scopeVarOf scope)).mulVec ξ = 0 → evalVarReplacementRow Q r A₀ R self.place (BalancedSchedules.scopeVarOf scope) e (nodePoint t) ξ = 0
Definition 3.1 (4): for every
t : Fin Q, off-groupg ≠ factorAssign f t, and vectorξ : Fin n → ℚsupported onvarGroup varAssign t gin the kernel of the measurement matrix, the replacement form atnodePoint tannihilatesξ. - map_replacementRowScaledInt (e : BalancedSchedules.ScopeIncidence scope) (v : Fin n) : Polynomial.map (Int.castRingHom ℚ) (varReplacementRowScaledInt Q r A₀ R self.place (BalancedSchedules.scopeVarOf scope) e v) = ↑(commonDenom Q R) • varReplacementRow Q r A₀ R self.place (BalancedSchedules.scopeVarOf scope) e v
Definition 3.1 (5) and Lemma 4.6: multiplying by
commonDenom Q R = (R - 1)! * Q!clears all denominators to the integer polynomial rowvarReplacementRowScaledInt. - sum_coeffNorm1_replacementRowScaledInt_le (e : BalancedSchedules.ScopeIncidence scope) : ∑ v : Fin n, ↑(varReplacementRowScaledInt Q r A₀ R self.place (BalancedSchedules.scopeVarOf scope) e v).coeffNorm1 ≤ ↑(commonDenom Q R) * (1 + (1 + 2 ^ Q) * ↑R * (4 * ↑Q) ^ (R - 1))
Definition 3.1 (5) and Lemma 4.6: the sum of the
ℓ₁coefficient norms across allnentries of each cleared rowvarReplacementRowScaledIntis bounded bycommonDenom Q R * (1 + (1 + 2 ^ Q) * R * (4 * Q) ^ (R - 1)).
Instances For
Evaluating the replacement form at T = 0 on any vector x : Fin n → ℚ extracts
x (scopeVarOf scope e).
In any ReplacementDesign, the value of evalVarReplacementRow at nodePoint t for
incidence e = (f, v) depends only on x restricted to the assigned variable group
varGroup D.varAssign t (D.factorAssign f t) and the measurements
(varMeasurementMatrix Q r A₀ R ℚ D.place (scopeVarOf scope)).mulVec x.
Lemma 4.7 (Algebraic existence of a Section 4 replacement design, pp. 33–34):
Suppose 1 ≤ n, 1 ≤ b, 1 ≤ w, 2 ≤ r, 1 ≤ R, R < Q, 0 ≤ τ, every factor scope
scope f has size at most w, every variable belongs to at most b scopes,
M = ∑ f, #(scope f) ≤ b * n, the balance inequalities 2 * (b + w) * (r ^ (2 * Q)) ^ 2 ≤ M
and 2 * Q * r ^ 2 ≤ n hold (eq. 4.13), the mismatch-annihilator node-range condition
hI : ∀ a < R - 1, A₀ + a ≤ Q holds (vacuous at R = 1 and implied by [A₀, A₀ + R) ⊆ [0, Q]),
and the binomial tail bound binomTailProb Q r A₀ R ≤ τ / (r * b) holds (eq. 4.8). Then there
exists a ReplacementDesign satisfying Definition 3.1 (1)–(4) and the explicit cleared-denominator
and ℓ₁-coefficient norm bounds of Lemma 4.6 (omitting the paper's n ≤ M and 0 < τ ≤ 1 / 2
regime assumptions and leaving the O(Q log Q + log D) bit-length / native runtime endpoint as
separate follow-up).