open-streaming-sketching-heavyhitters-frontiers
Exact Non-Asymptotic Streaming Algorithms, Linear Sketching Phase Transitions, Sharp Cai–Zhang RIP $\delta_{2k}<1/\sqrt{2}$, Morris Counters & Memory Lower Bounds
Develops a unified 100% non-asymptotic minimax theory across five foundational pillars of Streaming Algorithms, Linear Sketching, Sparse Recovery & Memory Lower Bounds: (1) Misra–Gries MG(k) exact Berinde–Indyk–Cormode–Strauss residual-tail $\ell_1$ guarantee, zero-loss mergeability, exact $k$-sparse recovery, & cyclic worst-case tightness witness; (2) Count-Min, Debiased Count-Min, Count-Sketch & AMS exact 3-wise/4-wise variances & Exact Three-Way MSE Phase Transition ($\mathrm{MSE}_{\mathrm{CM}}<\mathrm{MSE}_{\mathrm{Debias}}\iff (\sum_{y\ne x} f_y)^2/\|f_{-x}\|_2^2 < 2 + \frac{1}{w-1}$) plus exact AMS $F_2$ variance $2(\|x\|_2^4-\|x\|_4^4)$ & inner-product variance; (3) Welch / Mercedes–Benz ETF & Cai–Zhang Sharp RIP $\delta_{2k}<1/\sqrt{2}$ proved via constructive Sparse Polytope Decomposition, paired with an exact zero-gap $3\times 4$ sharpness witness attaining $\delta_2=1/\sqrt{2}$ with $\neg\mathrm{NSP}_1$ & an infinite general-$k$ rank-$(n-1)$ sharpness family; (4) Exact Morris($a$) Approximate Counter closed-form variance $\frac{a-1}{2}n(n-1)$, Jensen register bound, & exact fine-base vs. $k$-parallel phase transition ($a < 1+1/k$); and (5) Deterministic $F_0$ Greedy Gilbert–Varshamov Packing & Randomized One-Way $\mathrm{INDEX}_n$ / 1-Pass Streaming Frequency Shannon–Fano Lower Bounds $\log|S|\ge n(\log 2 - h_2(\delta))$ (114 verified theorems, 5,323 lines, 84/84 clean axioms).
Contribution status
Claim-by-claim literature review not yet recorded. Lean verification, where shown, applies to the exact formal statements. External publication status is not recorded.
How results are classifiedUnifies 5 pillars of Streaming Algorithms, Linear Sketching, Sparse Recovery & Memory Lower Bounds in 100% non-asymptotic Lean 4 (114 verified theorems, 5,323 lines, 84/84 clean): Misra–Gries MG(k) residual-tail $\ell_1$ & zero-loss mergeability; Exact Three-Way Count-Min vs. Debiased CM vs. Count-Sketch MSE Phase Transition ($\frac{(\sum_{y\ne x} f_y)^2}{\|f_{-x}\|_2^2} < 2 + \frac{1}{w-1}$) & exact AMS $F_2$/inner-product variances; Cai–Zhang Sharp RIP $\delta_{2k} < 1/\sqrt{2}$ via constructive Sparse Polytope Decomposition + zero-gap $3\times 4$ sharpness witness at $\delta_2=1/\sqrt{2}$ & general-$k$ sharpness family + Welch/Mercedes–Benz ETF; Exact Morris($a$) variance $\frac{a-1}{2}n(n-1)$ & fine-base vs. $k$-parallel phase transition ($a<1+1/k$); and deterministic $F_0$ Gilbert–Varshamov packing & randomized $\mathrm{INDEX}_n$ / streaming frequency Shannon–Fano memory lower bounds $\log|S|\ge n(\log 2 - h_2(\delta))$.
- J. Misra & D. Gries (1982); G. Cormode & S. Muthukrishnan (2005); M. Charikar, K. Chen & M. Farach-Colton (2002); N. Alon, Y. Matias & M. Szegedy (1999): Heavy-hitters and linear frequency/moment sketching — unified here with exact 3-wise/4-wise non-asymptotic variances and the exact three-way CM vs. Debiased-CM vs. Count-Sketch MSE phase transition.
- L. Welch (1974); E. J. Candès (2008); T. T. Cai & A. Zhang (2014); R. Morris (1978); P. Flajolet (1985); I. Kremer, N. Nisan & D. Ron (1999): Compressed sensing RIP $\delta_{2k}<1/\sqrt{2}$, approximate counting, and one-way streaming memory lower bounds — formalized from scratch in Lean 4 with constructive Sparse Polytope Decomposition, zero-gap $\delta_2=1/\sqrt{2}$ sharpness, exact Morris phase transition, and finite-space Shannon–Fano lower bounds.
StreamingSketchingMinimax.lean, 114 verified theorems/lemmas, 5,323 lines, 84/84 clean axioms) proving mg_residual_tail_l1_exact, mgMerge_zero_loss_exact, cm_debias_cs_exact_phase_transition, amsEst_unbiased_var_and_zero_exact, welch_bound_mercedes_benz_etf_attained, sparse_polytope_decomposition_exact, cai_zhang_sharp_rip_l1_recovery, cai_zhang_rip_exact_sharp_k1, cai_zhang_rip_general_k_sharp_family, morris_variance_exact, morris_chebyshev_and_fine_vs_parallel, f0_approx_det_streaming_gv_lower_bound, index_oneway_randomized_shannon_fano_lower_bound, and streaming_randomized_frequency_memory_lower_bound.⊢ Mathematical Constructions & Proof Explorer
Select any definition, structure, or theorem on the left to inspect its formal statement, proof dependencies, and isolated Lean 4 code.
Mathematical Overview & Verification Notes
- Main Formalization: StreamingSketchingMinimax.lean
- Verification Status:
EXIT_CODE: 0·0errors ·0warnings ·0info hints ·0sorry·0custom axioms ·0native_decide·0partial def - Scale & Axioms:
114verified theorems & lemmas (5,323lines, standaloneimport Mathlib) ·84 / 84#print axiomschecks strictly⊆ {propext, Classical.choice, Quot.sound}
Executive Summary (TL;DR)
This standalone Lean 4 suite develops a unified, 100% non-asymptotic minimax theory across all five foundational pillars of Streaming Algorithms, Linear Sketching, Heavy-Hitters, Sparse Recovery, and Memory–Accuracy Trade-Offs, proving exact closed-form moments, exact phase transitions, and constructive zero-gap sharpness witnesses:
- Deterministic Heavy-Hitters & Residual-Tail $\ell_1$ Guarantees (Misra–Gries
MG(k)):- Exact invariant preservation for the canonical
MG(k)summary (|supp(c)| ≤ k,∑ c(x) + (k+1)·decs = N,c(x) ≤ f(x) ≤ c(x) + decs). - Exact Berinde–Indyk–Cormode–Strauss residual-tail $\ell_1$ guarantee: for every excluded heavy set $H$ with $|H| \le k$, $(k + 1 - |H|)(f(x) - \hat{f}(x)) \le \|f_{H^c}\|_1$, subsuming the classical $N/(k+1)$ bound, Boyer–Moore majority (
k = 1), and exact zero-error recovery on $k$-sparse streams. - Exact Zero-Loss Mergeability: merging two
MG(k)summaries preserves the exact invariant and residual-tail guarantee for the concatenated stream $s_1 \mathbin{+\!+} s_2$ without any degradation in constants. - Exact Worst-Case Tightness Witness: explicit cyclic stream of length $t(k+1)$ achieving $f(x) - \hat{f}(x) = t = N/(k+1)$ with equality for every $x \in \mathrm{Fin}(k+1)$.
- Exact invariant preservation for the canonical
- Exact Non-Asymptotic Linear Sketching & Three-Way MSE Phase Transition (Count-Min vs. Debiased Count-Min vs. Count-Sketch & AMS):
- Exact one-sidedness, expectation, depth-$d$ exponential minimum-row tail, and exact 3-wise independent MSE & variance of Count-Min:
$$\mathrm{MSE}(\mathrm{CM}) = \frac{(w - 1)\|f_{-x}\|_2^2 + (\sum_{y \ne x} f_y)^2}{w^2}, \qquad \mathrm{Var}(\mathrm{CM}) = \frac{w - 1}{w^2}\|f_{-x}\|_2^2.$$
- Exact unbiasedness and variance of Debiased Count-Min (
‖f_{-x}‖₂² / (w - 1)) and Count-Sketch (‖f_{-x}‖₂² / w). - Exact Three-Way MSE Phase Transition: for every width $w \ge 2$ and every stream with $\|f_{-x}\|_2^2 > 0$:
- Count-Sketch universally strictly beats Debiased Count-Min ($\mathrm{MSE}_{\mathrm{CS}} = \frac{w - 1}{w} \mathrm{MSE}_{\mathrm{Debias}}$).
- Raw Count-Min strictly beats Debiased Count-Min if and only if the off-target squared $\ell_1/\ell_2$ concentration ratio satisfies
$$\frac{\bigl(\sum_{y \ne x} f_y\bigr)^2}{\|f_{-x}\|_2^2} < 2 + \frac{1}{w - 1}$$
(specializing to exact thresholds $3$ at $w = 2$ and $5/2$ at $w = 3$). - Count-Sketch beats Raw Count-Min iff $\|f_{-x}\|_2^2 \le (\sum_{y \ne x} f_y)^2$, strictly whenever $\ge 2$ positive off-target items exist.
- Exact AMS Tug-of-War (
F₂) & Inner-Product Sketches: exact unbiasedness, exact 4-wise independent variances $\mathrm{Var}(\mathrm{AMS}(x)) = 2(\|x\|_2^4 - \|x\|_4^4)$ (vanishing iff $x$ is 1-sparse!) and $\mathrm{Var}(\langle \sigma, x \rangle \langle \sigma, y \rangle) = \|x\|_2^2 \|y\|_2^2 + \langle x, y \rangle^2 - 2\sum_i x_i^2 y_i^2$, $d$-row averaged variance & Chebyshev bound, plus constructive finite uniform hash and Rademacher probability spaces proving non-vacuity of 2-/3-wise independent hash and 2-/4-wise independent sign axioms.
- Exact one-sidedness, expectation, depth-$d$ exponential minimum-row tail, and exact 3-wise independent MSE & variance of Count-Min:
- Exact Linear Sparse Recovery, Welch / ETF Geometry & Cai–Zhang Sharp RIP $\delta_{2k} < 1/\sqrt{2}$ Threshold:
- Exact $\ell_0$-uniqueness iff $\mathrm{spark}(A) > 2k$, rank-nullity $m \ge 2k$ bottleneck, and exact $\ell_1$-uniqueness iff strict Null Space Property $\mathrm{NSP}_k$.
- Exact Gershgorin coherence-to-RIP (
RIP(s, (s-1)μ)) and coherence-to-NSP ((2k-1)μ < 1), exact Welch Bound & Tight-Frame Equality iff $AA^\top = (n/m) I_m$, quadratic coherence bottleneck, and constructive Mercedes–Benz Equiangular Tight Frame ($m = 2, n = 3, \mu = 1/2$) attaining Welch equality. - Constructive Sparse Polytope Decomposition Lemma (proved from scratch via strong induction on the number of strict interior coordinates with an explicit 2-coordinate boundary push, zero external Carathéodory black boxes).
- Cai–Zhang Sharp RIP Threshold: $\delta_{2k} < 1/\sqrt{2} \implies \mathrm{NSP}_k \implies$ exact $k$-sparse $\ell_1$ recovery (strictly improving Candès' $\sqrt{2} - 1$ threshold, proved as an explicit corollary).
- Zero-Gap Sharpness at $k = 1$ ($\delta_2 = 1/\sqrt{2}$ on the nose!): explicit $3 \times 4$ matrix $B$ with columns $(\tfrac{1}{\sqrt{6}}, \tfrac{1}{\sqrt{6}}, \tfrac{1}{\sqrt{6}}), \sqrt{\tfrac{3}{2}} e_1, \sqrt{\tfrac{3}{2}} e_2, \sqrt{\tfrac{3}{2}} e_3$ satisfying exact
HasRIP B 2 (1 / √2)and¬ HasNSP B 1(via $h = (1, -1/3, -1/3, -1/3) \in \ker B$). - General-$k$ Rank-$(n-1)$ Sharpness Family: explicit projection operators $A = \sqrt{\alpha}(I - uu^\top)$ on $\mathbb{R}^{k+m}$ ($m \ge k+1$) with $\mathrm{RIP}(2k, \tfrac{m^2+k^2}{m^2+2mk-k^2})$ and $\neg \mathrm{NSP}_k$, approaching $1/\sqrt{2} + \varepsilon$ for arbitrarily large $k$ and every $\varepsilon > 0$.
- Exact Morris($a$) Approximate Counter — Closed-Form Moments, Jensen Register Bound & Bit-Budget Phase Transition:
- Exact Markov step expectation identity, exact exponential moments $\mathbb{E}[a^{X_n}] = (a-1)n + 1$ and $\mathbb{E}[a^{2 X_n}] = (a^2-1)(\tfrac{a-1}{2}n(n-1) + n) + 1$.
- Exact unbiasedness $\mathbb{E}[\hat{N}_n] = n$ and exact closed-form variance $\mathrm{Var}(\hat{N}_n) = \tfrac{a-1}{2} n(n-1)$ for all $a > 1, n \in \mathbb{N}$ (specializing to $n(n-1)/2$ at $a = 2$ and exact $0$ at $n \in \{0, 1\}$).
- Exact Jensen expected register bound $\mathbb{E}[X_n] \le \log((a-1)n + 1) / \log a$ ($O(\log\log n)$ bits).
- Exact Chebyshev relative-error tail $\Pr(|\hat{N}_n - n| \ge \varepsilon n) \le \tfrac{a-1}{2\varepsilon^2}$ and exact Fine-Base vs. $k$-Parallel Phase Transition: for $n \ge 2, k \ge 1$, $\mathrm{Var}(\mathrm{Morris}(a)) < \mathrm{Var}(k\text{-parallel avg of Morris}(2)) \iff a < 1 + 1/k$ (with exact boundary equality at $a = 1 + 1/k$).
- Exact Non-Asymptotic Streaming Memory Lower Bounds (Deterministic & Randomized Information-Theoretic):
- Exact deterministic distinct-elements $F_0$ lower bound $|S| \ge 2^n$ and exact matching bitset upper bound $|S| = 2^n$.
- Exact deterministic approximate-$F_0$ Greedy Gilbert–Varshamov Packing Lower Bound: any deterministic 1-pass algorithm estimating $F_0$ within $< d/2$ satisfies $2^n \le |S| \sum_{j < 2d} \binom{n}{j}$ (specializing to $2^n \le |S|(n+1)$ at $d = 1$).
- Exact deterministic heavy-hitter state-space lower bound $|S| \ge \binom{n}{k}$.
- Complete from-scratch finite information theory (
binEntropy_tangent_le,binEntropy_jensen,shannonEntropy_nonneg,shannonEntropy_le_log_card,binary_fano_inequality,shannonEntropy_subadditive_bits) culminating in the exact randomized one-way $\mathrm{INDEX}_n$ Shannon–Fano lower bound $\log K \ge n(\log 2 - h_2(\delta))$ and the exact randomized 1-pass streaming frequency-query memory lower bound $\log |S| \ge n(\log 2 - h_2(\delta))$ (with exact zero-error specializations $K \ge 2^n$ and $|S| \ge 2^n$).
Mandatory Novelty Gate & Prior-Art Receipt (Verified Through November 2026)
1. Workspace Non-Overlap Audit
Audited all Lean 4 formalizations across /Users/arthurcolle/math_rip/new-results/ (Tracks #1–#23, including coding/deletion channels, communication complexity direct-sum, bandit/list/abstention/$L_p$/proper-scoring/log-loss online learning minimax, associative memory, and Track #23 differential privacy Blackwell minimax). Confirmed zero overlap: no prior track formalizes Misra–Gries, Count-Min, Debiased Count-Min, Count-Sketch, AMS Tug-of-War, Welch/ETF bounds, Cai–Zhang's $\delta_{2k} < 1/\sqrt{2}$ RIP threshold & exact $3 \times 4$ sharpness, Morris($a$) exact variance & phase transition, deterministic $F_0$ Gilbert–Varshamov packing lower bounds, or randomized one-way $\mathrm{INDEX}_n$ streaming frequency memory lower bounds.
2. Literature & Formalization Prior-Art Check (Through November 2026)
- Misra–Gries & Residual-Tail $\ell_1$ / Mergeability: J. Misra & D. Gries (1982), Finding repeated elements, Sci. Comput. Program. 2(2):143–152; R. Berinde, P. Indyk, G. Cormode & M. J. Strauss (2010), Space-optimal heavy hitters with strong error bounds, ACM TODS 35(4); P. K. Agarwal, G. Cormode, Z. Huang, J. M. Phillips, Z. Wei & K. Yi (2013), Mergeable summaries, ACM TODS 38(4).
- Count-Min, Count-Sketch & AMS: G. Cormode & S. Muthukrishnan (2005), An improved data stream summary: the Count-Min sketch and its applications, J. Algorithms 55(1):58–75; M. Charikar, K. Chen & M. Farach-Colton (2002), Finding frequent items in data streams, ICALP 2002; N. Alon, Y. Matias & M. Szegedy (1999), The space complexity of approximating the frequency moments, JCSS 58(1):137–147. Exact three-way non-asymptotic MSE phase transition $\bigl(\sum_{y \ne x} f_y\bigr)^2 / \|f_{-x}\|_2^2 < 2 + 1/(w-1)$ between Raw CM, Debiased CM, and Count-Sketch is verified and formalized here in exact closed form.
- Compressed Sensing, Welch Bound & Sharp RIP $\delta_{2k} < 1/\sqrt{2}$: L. Welch (1974), Lower bounds on the maximum cross correlation of signals, IEEE Trans. Inform. Theory 20(3):397–399; E. J. Candès (2008), The restricted isometry property and its implications for compressed sensing, C. R. Math. 346(9–10):589–592; T. T. Cai & A. Zhang (2014), Sparse representation of a polytope and recovery of sparse signals and low-rank matrices, IEEE Trans. Inform. Theory 60(1):122–132. To our knowledge (web/arXiv/Lean Zulip check through November 2026), no prior Lean 4 formalization exists for Cai–Zhang's Sparse Polytope Decomposition, the sharp $\delta_{2k} < 1/\sqrt{2}$ recovery theorem, the exact zero-gap $3 \times 4$ sharpness witness at $\delta_2 = 1/\sqrt{2}$, or the general-$k$ rank-$(n-1)$ projection sharpness family.
- Morris Approximate Counter: R. Morris (1978), Counting large numbers of events in small registers, Comm. ACM 21(10):840–842; P. Flajolet (1985), Approximate counting: a detailed analysis, BIT 25:113–134; J. Nelson & H. Yu (2022), Optimal bounds for approximate counting, PODS 2022; I. Aden-Ali, Y. Han, J. Nelson & H. Yu (2024), On the optimality of Morris's counter, APPROX/RANDOM 2024. While Isabelle/HOL has formalizations of certain streaming sketches (e.g., Karayel 2022–2024 AFP entries for Count-Min/AMS/distinct elements), no prior standalone Lean 4 / Mathlib formalization unifies all five pillars with exact closed-form non-asymptotic variances, phase transitions, and zero-gap tightness witnesses.
- Streaming & Communication Lower Bounds: I. Kremer, N. Nisan & D. Ron (1999), On randomized one-round communication complexity, Comput. Complexity 8:21–49; P. Indyk & D. Woodruff (2003), Tight lower bounds for the distinct elements problem, FOCS 2003; A. Chakrabarti, Data Stream Algorithms (2020).
Complete Headline Theorem Map (114 Verified Declarations)
Part 1 — Deterministic Heavy-Hitters & Misra–Gries (MG(k))
| Theorem | Line | Exact Statement |
|---|---|---|
mgStep_preserves_invariant | L135 | Single MG(k) update preserves cardinality, mass-conservation, and sandwich invariants |
mgRun_satisfies_invariant | L219 | Full stream execution mgRun k s satisfies MGInvariant k (streamFreq s) |
mg_residual_tail_l1_exact | L251 | Residual-tail $\ell_1$ bound: (k + 1 - H.card) * (f x - st.c x) ≤ ∑_{y ∉ H} f y |
mgRun_classical_and_capture | L279 | Classical N/(k+1) error guarantee & strict heavy-hitter capture |
mgRun_exact_on_k_sparse | L320 | Zero-error exact frequency recovery whenever stream has ≤ k distinct items |
mgMerge_zero_loss_exact | L360 | Exact zero-loss mergeability preserving MGInvariant & residual-tail bound |
mgRun_worstCase_tight_witness | L455 | Cyclic worst-case stream attaining exact error t = N / (k + 1) on every item |
Part 2 — Linear Sketching: Count-Min, Debiased CM, Count-Sketch, MSE Phase Transition & AMS
| Theorem | Line | Exact Statement |
|---|---|---|
markov_ineq / chebyshev_ineq | L603, L614 | Finite-space Markov and Chebyshev inequalities |
cmEst_one_sided_and_expect_exact | L687 | Count-Min one-sidedness (f x ≤ cmEst) and exact expectation f x + offSum / w |
cmEst_depth_d_min_tail | L718 | Exact depth-$d$ independent minimum-row exponential tail (offSum / (w t))^d |
cmEst_mse_and_var_exact | L758 | Exact 3-wise independent Count-Min MSE & variance ((w-1)/w²) offL2Sq |
cmDebiasEst_unbiased_and_var_exact | L837 | Debiased Count-Min exact unbiasedness & exact variance offL2Sq / (w - 1) |
csEst_unbiased_and_var_exact | L880 | Count-Sketch exact unbiasedness & exact variance offL2Sq / w |
cm_debias_cs_exact_phase_transition | L985 | Three-Way MSE Phase Transition: MSE_CM < MSE_Debias ↔ offSum² / offL2Sq < 2 + 1/(w-1) |
amsEst_unbiased_var_and_zero_exact | L1041 | AMS F₂ unbiasedness, exact variance 2(‖x‖₂⁴ - ‖x‖₄⁴), and 1-sparse zero-variance iff |
amsEst_flat_k_sparse_var | L1199 | Flat $k$-sparse AMS exact variance 2(1 - 1/k) ‖x‖₂⁴ |
amsInnerProd_unbiased_and_var_exact | L1224 | AMS inner-product unbiasedness & exact variance ‖x‖₂²‖y‖₂² + ⟨x,y⟩² - 2∑ x_i² y_i² |
unif_hash_and_sign_witnesses | L1362 | Constructive finite uniform hash (2-/3-wise) & Rademacher sign (2-/4-wise) witnesses |
Part 3 — Sparse Recovery, Welch/ETF Geometry & Cai–Zhang Sharp RIP $\delta_{2k} < 1/\sqrt{2}$
| Theorem | Line | Exact Statement |
|---|---|---|
l0_unique_recovery_iff_spark | L1632 | Exact $k$-sparse $\ell_0$-uniqueness iff spark(A) > 2k |
l0_recovery_requires_2k_measurements | L1693 | Rank-nullity exact measurement bottleneck m ≥ 2k |
l1_unique_recovery_iff_nsp | L1769 | Exact $k$-sparse $\ell_1$-uniqueness iff strict Null Space Property HasNSP A k |
coherence_implies_rip | L1863 | Gershgorin coherence-to-RIP: HasRIP A s ((s - 1) * μ) |
coherence_implies_nsp | L1976 | Classical coherence recovery: (2k - 1) * μ < 1 → HasNSP A k & $\ell_1$ recovery |
welch_bound_and_etf_exact | L2046 | Exact Welch bound, tight-frame equality iff A Aᵀ = (n/m) I_m, & quadratic bottleneck |
sparse_polytope_decomposition_exact | L2226 | Constructive Cai–Zhang Sparse Polytope Decomposition into norm-preserving $k$-sparse atoms |
cai_zhang_sharp_rip_l1_recovery | L2594 | Cai–Zhang Sharp Threshold: δ_{2k} < 1 / √2 → HasNSP A k & exact $k$-sparse $\ell_1$ recovery |
cai_zhang_rip_exact_sharp_k1 | L2940 | Zero-Gap Sharpness at k = 1: explicit 3 × 4 matrix with exact RIP(2, 1/√2) & ¬ HasNSP B 1 |
cai_zhang_rip_general_k_sharp_family | L3079 | General-$k$ Sharpness Family: rank-$(n-1)$ projections with δ_{2k} = (m²+k²)/(m²+2mk-k²) & ¬ NSP_k |
Part 4 — Exact Morris($a$) Approximate Counter
| Theorem | Line | Exact Statement |
|---|---|---|
morrisProb_step_expect / morrisProb_isProbDist | L3319, L3341 | Exact step expectation recursion & probability distribution invariance |
morris_exp_pow_and_unbiased_exact | L3356 | Exact E[a^{X_n}] = (a - 1) n + 1 and exact unbiasedness E[N̂_n] = n |
morris_variance_exact | L3392 | Exact E[a^{2X_n}] and exact closed-form variance Var(N̂_n) = ((a - 1) / 2) n(n - 1) |
morris_jensen_expected_register | L3449 | Exact Jensen register bound E[X_n] ≤ log((a - 1) n + 1) / log a |
morris_chebyshev_and_fine_vs_parallel | L3487 | Chebyshev relative-error tail & exact fine-base vs. $k$-parallel phase transition a < 1 + 1/k |
Part 5 — Exact Non-Asymptotic Streaming & Communication Memory Lower Bounds
| Theorem | Line | Exact Statement |
|---|---|---|
f0_exact_det_streaming_lower_bound | L3569 | Exact deterministic $F_0$ requires |S| ≥ 2^n states |
f0_approx_det_streaming_gv_lower_bound | L3620 | Approximate-$F_0$ greedy Gilbert–Varshamov packing bound 2^n ≤ |S| ∑_{j < 2d} C(n, j) |
heavy_hitter_det_state_lower_bound | L3757 | Deterministic heavy-hitter frequency estimation requires |S| ≥ C(n, k) states |
binEntropy_tangent_le / binEntropy_jensen | L3834, L3866 | Exact concavity tangent inequality & Jensen inequality for binary entropy $h_2$ |
shannonEntropy_le_log_card / binary_fano_inequality | L3914, L3942 | Exact H(P) ≤ log |α| and exact binary Fano inequality H(X | M) ≤ h_2(δ) |
shannonEntropy_subadditive_bits | L4028 | Exact subadditivity of Shannon entropy on Fin n → Bool (H(X) ≤ ∑ H(X_j)) |
index_oneway_randomized_shannon_fano_lower_bound | L4102 | Exact Randomized One-Way INDEX_n Lower Bound: log K ≥ n (log 2 - h_2(δ)) |
streaming_randomized_frequency_memory_lower_bound | L4331 | Exact Randomized 1-Pass Streaming Frequency Lower Bound: log |S| ≥ n (log 2 - h_2(δ)) |
Part 5.5 — Sharp Boundary Corollaries & Exact Specializations (37 Theorems)
Highlights include:
- Misra–Gries:
mgRun_boyer_moore_majority_exact(L4429),mgMerge_classical_bound(L4448),mgRun_counter_sum_le_length(L5027),mgRun_zero_counter_bound(L5035). - Linear Sketching & AMS:
csEst_chebyshev_tail(L4467),amsAvg_unbiased_var_and_chebyshev(L4490),cmRaw_vs_cmDebias_small_w_thresholds(L4618),csEst_strictly_beats_cmRaw_two_positives(L4633),cmEst_var_le_offL2Sq_div_w(L5048),cmEst_markov_single_row(L5064),csEst_zero_item_unbiased_var(L5087),amsInnerProd_orthogonal_var_exact(L5118). - Sparse Recovery & ETF:
candes_rip_strict_corollary_of_cai_zhang(L4667),welch_bound_mercedes_benz_etf_attained(L4720),cai_zhang_rip_arbitrarily_close_large_k(L4753),welch_coherence_lower_bound(L5130),coherence_implies_cai_zhang_l1_recovery(L5158). - Morris & Memory Lower Bounds:
morris_binary_unbiased_and_var_exact(L4838),morris_k_parallel_avg_exact(L4858),morris_relative_mse_exact(L5173),morris_fine_vs_parallel_boundary_eq(L5191),f0_exact_det_streaming_tight_upper(L4961),index_zero_error_requires_2n_messages(L4979),streaming_zero_error_frequency_requires_2n_states(L5000),f0_approx_det_unit_error_gv_bound(L5222).
Reproducible Verification Command
cd /Users/arthurcolle/math_rip/new-results/collatz-coalescence && \
lake env lean /Users/arthurcolle/math_rip/new-results/open-streaming-sketching-heavyhitters-frontiers/StreamingSketchingMinimax.lean
Observed Audit Result:
EXIT_CODE: 0STDERR_BYTES: 0NON_AXIOM_LINES: 0(0errors,0warnings,0info hints)ZERO_FORBIDDEN_TOKENS(0sorry,0admit,0customaxiom,0native_decide,0partial def)THEOREMS_AND_LEMMAS: 114(5,323lines)AXIOMS_COUNT: 84 / 84(ALL_AXIOMS_STANDARD, strictly⊆ {propext, Classical.choice, Quot.sound})
Verbatim #print axioms Receipt (84 / 84 Clean)
'StreamingSketchingMinimax.mgStep_preserves_invariant' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.mgRun_satisfies_invariant' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.mg_residual_tail_l1_exact' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.mgRun_classical_and_capture' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.mgRun_exact_on_k_sparse' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.mgMerge_zero_loss_exact' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.mgRun_worstCase_tight_witness' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.mgRun_support_card_le' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.mgRun_decs_le_div' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.mgRun_boyer_moore_majority_exact' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.mgMerge_classical_bound' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.mgRun_counter_sum_le_length' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.mgRun_zero_counter_bound' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.mgRun_empty_zero' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.markov_ineq' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.chebyshev_ineq' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.cmEst_one_sided_and_expect_exact' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.cmEst_depth_d_min_tail' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.cmEst_mse_and_var_exact' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.cmEst_var_le_offL2Sq_div_w' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.cmEst_markov_single_row' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.cmDebiasEst_unbiased_and_var_exact' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.csEst_unbiased_and_var_exact' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.csEst_chebyshev_tail' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.csEst_zero_item_unbiased_var' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.cm_debias_cs_exact_phase_transition' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.cmRaw_vs_cmDebias_small_w_thresholds' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.csEst_strictly_beats_cmRaw_two_positives' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.csEst_strictly_beats_cmDebias_always' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.amsEst_unbiased_var_and_zero_exact' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.amsEst_flat_k_sparse_var' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.amsEst_nonneg' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.amsInnerProd_unbiased_and_var_exact' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.amsInnerProd_self_eq_amsEst' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.amsInnerProd_disjoint_support_var_exact' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.amsInnerProd_orthogonal_var_exact' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.amsAvg_unbiased_var_and_chebyshev' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.unif_hash_and_sign_witnesses' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.l0_unique_recovery_iff_spark' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.l0_recovery_requires_2k_measurements' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.l1_unique_recovery_iff_nsp' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.coherence_implies_rip' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.coherence_implies_nsp' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.coherence_implies_cai_zhang_l1_recovery' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.welch_bound_and_etf_exact' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.welch_coherence_lower_bound' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.welch_bound_mercedes_benz_etf_attained' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.sparse_polytope_decomposition_exact' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.cai_zhang_sharp_rip_l1_recovery' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.cai_zhang_rip_exact_sharp_k1' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.cai_zhang_rip_general_k_sharp_family' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.cai_zhang_rip_arbitrarily_close_large_k' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.candes_rip_strict_corollary_of_cai_zhang' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.rip_monotone' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.rip_lt_one_implies_l0_unique' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.nsp_implies_l0_unique' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.morrisProb_step_expect' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.morrisProb_isProbDist' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.morris_exp_pow_and_unbiased_exact' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.morris_variance_exact' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.morris_jensen_expected_register' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.morris_chebyshev_and_fine_vs_parallel' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.morris_binary_unbiased_and_var_exact' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.morris_zero_and_one_step_zero_var' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.morris_k_parallel_avg_exact' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.morris_relative_mse_exact' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.morris_fine_vs_parallel_boundary_eq' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.f0_exact_det_streaming_lower_bound' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.f0_exact_det_streaming_tight_upper' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.f0_approx_det_streaming_gv_lower_bound' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.f0_approx_det_unit_error_gv_bound' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.heavy_hitter_det_state_lower_bound' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.binEntropy_tangent_le' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.binEntropy_jensen' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.binEntropy_le_log_two' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.binEntropy_mono_on_half' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.shannonEntropy_nonneg' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.shannonEntropy_le_log_card' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.binary_fano_inequality' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.shannonEntropy_subadditive_bits' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.index_oneway_randomized_shannon_fano_lower_bound' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.streaming_randomized_frequency_memory_lower_bound' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.index_zero_error_requires_2n_messages' depends on axioms: [propext, Classical.choice, Quot.sound]
'StreamingSketchingMinimax.streaming_zero_error_frequency_requires_2n_states' depends on axioms: [propext, Classical.choice, Quot.sound]