Streaming group-sum and outer Taylor-jet accumulators with Cramer recovery #
Proposition 3.4 (§3.3–3.5, pp. 22–26), Proposition 5.3 (§5.3–5.4, pp. 37–38), and Appendix B.2–B.3
(pp. 48–50) of OpenAI, The Exponential Time Hypothesis is False evaluate
H_t(z) = H(t + z) mod z^J over ℚ[V]/(V^ℓ)[z]/(z^J) in streaming stages over fixed-denominator
J × ℓ integer arrays (JetRows), followed by confluent Hermite Cramer recovery.
toJetTable, ofJetTable, taylorOuterVJet, groupSumBody, streamGroupJetSumPrefix,
combineOuterRound, outerAccumBody, and streamOuterJetAccumPrefix provide unencoded algebraic
and prefix-fold specifications (JetRows ↔ JetTable J ℓ ℤ, R[T][V] →+* JetTable J ℓ R), whereas
extractCoordNodeJets, extractAllCoordNodeJets, prodJet, weightedProdJet, and
recoverOuterJetSumModPowTwo carry plain ComputableInPolyTime (@[fun_prop]) certificates, and
streamGroupJetSum / streamOuterJetAccum carry uniform NativeCertificate, ComputableInO, and
plain ComputableInPolySpace bounds (never claiming whole-loop PolyTime). Out-of-range entry and
node lookups return 0 and []; ofJetTable returns [] for J = 0 and List.replicate J []
for ℓ = 0; prodJet returns constJet J ℓ 1 on []; weightedProdJet returns zeroJet J ℓ
when w = 0; clearing theorems hold in any CommRing K; and Cramer recovery requires Ω ≠ 0 and
nodes.Nodup, returning 0 via Int.ediv when Ω = 0, ℓ = 0, or detRows = 0.
Main definitions #
Cslib.CommonCountingAccum.toJetTable,Cslib.CommonCountingAccum.ofJetTable,Cslib.CommonCountingAccum.taylorOuterVJet:JetRows ↔ JetTable J ℓ ℤbridge and Taylor-jet homomorphismR[T][V] →+* JetTable J ℓ R.Cslib.CommonCountingAccum.extractCoordNodeJets,Cslib.CommonCountingAccum.prodJet,Cslib.CommonCountingAccum.weightedProdJet,Cslib.CommonCountingAccum.extractAllCoordNodeJets: per-coordinateQ × Jnode-jet slicing, truncatedr-fold Cauchy product, and scalar weighting.Cslib.CommonCountingAccum.streamGroupJetSum,Cslib.CommonCountingAccum.groupJetSumCertificate,Cslib.CommonCountingAccum.streamOuterJetAccum,Cslib.CommonCountingAccum.outerJetAccumCertificate: streaming2 ^ dgroup sum (BooleanFold) andT_roundsouter round accumulator (IndexFold) with uniformNativeCertificates.Cslib.CommonCountingAccum.recoverOuterJetSumModPowTwo: multi-coordinate Hermite Cramer count recovery(∑_{u < ℓ} H_u(0)).modPowTwo ℓacrossQevaluation nodes.
Main results #
Cslib.CommonCountingAccum.toJetTable_ofJetTable,Cslib.CommonCountingAccum.ofJetTable_toJetTable,Cslib.CommonCountingAccum.length_encJetRows_le_of_l1Norm_le,Cslib.CommonCountingAccum.rowEntry_extractCoordNodeJets_eq_taylor,Cslib.CommonCountingAccum.cast_prodJet_ofFn_cleared,Cslib.CommonCountingAccum.computableInPolyTime_prodJet: Stage-2 bridge, clearing, &PolyTime.Cslib.CommonCountingAccum.cast_streamGroupJetSum_cleared,Cslib.CommonCountingAccum.toJetTable_prodJet_streamGroupJetSum,Cslib.CommonCountingAccum.length_encJetRows_streamGroupJetSumPrefix_le,Cslib.CommonCountingAccum.computableInO_streamGroupJetSum,Cslib.CommonCountingAccum.computableInPolySpace_streamGroupJetSum: Stage-3 local group sum.Cslib.CommonCountingAccum.cast_streamOuterJetAccum_taylorOuterVJet,Cslib.CommonCountingAccum.length_encJetRows_streamOuterJetAccumPrefix_le,Cslib.CommonCountingAccum.computableInO_outerJetAccumCertificate,Cslib.CommonCountingAccum.computableInPolySpace_streamOuterJetAccum: Stage-4 outer accumulation.Cslib.CommonCountingAccum.hermiteRecoverZero_extractCoordNodeJets_eq,Cslib.CommonCountingAccum.recoverOuterJetSumModPowTwo_eq,Cslib.CommonCountingAccum.recoverOuterJetSumModPowTwo_streamOuterJetAccum_eq,Cslib.CommonCountingAccum.computableInPolyTime_recoverOuterJetSumModPowTwo: Cramer recovery.
References #
- OpenAI, The Exponential Time Hypothesis is False, §3.3–3.5, §5.3–5.4, B.2–B.3
1. JetRows ↔ JetTable bridge, taylorOuterVJet, node slicing, and prodJet #
Interpret A : JetRows as a (J × ℓ) JetTable via Cslib.rowEntry (out-of-range = 0).
Instances For
Tabulate T : JetTable J ℓ ℤ into a dense (J × ℓ) integer table ([] when J = 0, and
List.replicate J [] when ℓ = 0).
Instances For
Encoded bit-length bound for (J, ℓ)-shaped A (hA) with entry natAbs.size ≤ b.
Encoded bit-length bound from (toJetTable J ℓ A).l1Norm ≤ L under IsTableShape J ℓ A.
Taylor jet extraction homomorphism R[T][V] →+* JetTable J ℓ R at node t : R
(outer indeterminate V, inner indeterminate T).
Instances For
Extract the nodeJets.length × J Taylor-jet table at V ^ u across per-node J × ℓ arrays
nodeJets, indexed (nodeIdx, derivOrder) (out-of-range node/entry lookups default to []/0;
OpenAI, The Exponential Time Hypothesis is False, Appendix B.3, p. 50).
Instances For
Under hlen and hclear, extractCoordNodeJets gives the Ω-scaled (i, j) Taylor
coefficients of P.coeff u (unconditional in K).
Truncated r-fold product in ℤ[V]/(V^ℓ)[z]/(z^J) from constJet J ℓ 1
(OpenAI, The Exponential Time Hypothesis is False, eq. (3.11) and Appendix B.2,
p. 49; returns constJet J ℓ 1 on []).
Instances For
Product denominator clearing (prodJet over Fin r) under ∑ g, m_group g = m_test
(eq. (3.11) and Appendix B.2, p. 49; unconditional in K).
Multiply groups modulo (z^J, V^ℓ) and scale by w : ℤ (zeroJet J ℓ when w = 0;
OpenAI, The Exponential Time Hypothesis is False, eq. (3.13)).
Instances For
Shared additive-fold and IndexFold certificate helpers #
Initial loop-state certificate pairing ((J, ℓ), ctx) with zeroJet J ℓ.
Instances For
Generic single-step NativeCertificate updating the JetRows accumulator component.
Instances For
2. Streaming local-Boolean group sum (streamGroupJetSum) #
Streaming local-Boolean group sum over all 2 ^ d assignments of unary dimension d via
BooleanFold.run (OpenAI, The Exponential Time Hypothesis is False, Lemma 3.2,
Proposition 3.4, and Appendix B.2, p. 49).
Instances For
All-prefix encoded bit-length bound for streamGroupJetSumPrefix (Appendix B.2, p. 49).
Fixed-denominator clearing for streamGroupJetSum (Appendix B.2, p. 49, in CommRing K).
Lemma 3.2 cross-group distributive factorization (OpenAI, The Exponential Time Hypothesis is False, §3.3, pp. 22–23).
Single-step BooleanFold body certificate for streamGroupJetSum.
Instances For
Uniform NativeCertificate for streamGroupJetSum, built via BooleanFold.certificate.
Instances For
Explicit ComputableInO time O((2 ^ d + 1) * P) and space O(P) bound for
streamGroupJetSum.
Plain ComputableInPolySpace guarantee for streamGroupJetSum.
3. Cross-group r-fold product and outer round accumulator (streamOuterJetAccum) #
Streaming outer round accumulator over T_rounds binary-indexed steps via IndexFold.run
(OpenAI, The Exponential Time Hypothesis is False, Proposition 3.4 eq. (3.13)
and Appendix B.2, pp. 49–50).
Instances For
All-prefix bit-length bound for streamOuterJetAccumPrefix (Appendix B.2, pp. 49–50).
Fixed-denominator Ω = Γ ^ m clearing for streamOuterJetAccum (Appendix B.2, p. 49).
Direct taylorOuterVJet clearing for streamOuterJetAccum (unconditional in K).
Single-step IndexFold body certificate for streamOuterJetAccum.
Instances For
Uniform NativeCertificate for streamOuterJetAccum, built via IndexFold.certificate.
Instances For
Explicit ComputableInO bound for streamOuterJetAccum from certificate components in time
O((T_rounds + 1) * (R_round + P)) and space O(P).
Explicit (T_rounds + 1) * P ComputableInO bound for streamOuterJetAccum when evalRound
is computable in polynomial time.
Plain ComputableInPolySpace guarantee for streamOuterJetAccum when evalRound is
computable in polynomial space.
4. Confluent Hermite Cramer recovery from per-node outer jets #
Recover (∑_{u < ℓ} H_u(0)).modPowTwo ℓ from per-node J × ℓ Ω-scaled Taylor-jet arrays
nodeJets at nodes via extractAllCoordNodeJets and Cslib.Circuits.Rational.hermiteRecoverZero
(OpenAI, The Exponential Time Hypothesis is False, eq. (5.5) and Appendix B.3,
p. 50; returns 0 when ℓ = 0, Ω = 0, or detRows (hermiteRows nodes J) = 0).
Instances For
Single-coordinate confluent Hermite Cramer recovery of (P.coeff u).eval 0 = H_zero.
Full multi-coordinate modular count recovery S_ℓ(H(0)) ≡ count (mod 2 ^ ℓ) from Ω-scaled
per-node outer Taylor jets (OpenAI, The Exponential Time Hypothesis is False,
eq. (5.5) and Appendix B.3, p. 50).
Outer-round accumulation plus Cramer count recovery from supplied cleared group payloads across
Q distinct nodes.