open-fourier-coding-information
Second-Order-Optimal Non-Asymptotic Upper Bounds for $q$-ary Single-Deletion-Correcting Codes
Introduces a sandwiched-singleton hypergraph LP dual weight $w(y)$ with an exact 5-term manifestly positive feasibility identity, removing the entire $\frac{q}{(q-1)^2}\frac{q^n}{n^2}$ second-order excess of Kulkarni–Kiyavash (2013): proves $|C| \le \frac{q^n}{(q-1)n+1} + \frac{q(4q+3)}{(q-1)^3}\frac{q^n}{(n-2)(n-1)n}$ for all $q \ge 2, n \ge 4$, strictly improves on Levenshtein's $\frac{2^n}{n}$ for all $n \ge 22$ (and $\frac{q^n}{(q-1)n}$ for $n \ge 4q+20$), and establishes the exact two-sided binary sandwich with Varshamov–Tenengolts codes.
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 classifiedRemoves the entire $\frac{q}{(q-1)^2}\frac{q^n}{n^2}$ second-order excess of Kulkarni & Kiyavash (2013) for $q$-ary single-deletion-correcting codes via a novel sandwiched-singleton hypergraph LP dual weight $w(y) = \frac{1}{r(y)} - \frac{\max(0, \Phi(y)-2)}{r(y)(r(y)+1)(r(y)+2)}$ and a 5-term manifestly positive feasibility identity: proves $|C| \le \frac{q^n}{(q-1)n+1} + \frac{q(4q+3)}{(q-1)^3}\frac{q^n}{(n-2)(n-1)n}$ for every $q \ge 2, n \ge 4$, strictly improves on Levenshtein's $\frac{2^n}{n}$ for all $n \ge 22$ (and $\frac{q^n}{(q-1)n}$ for all $n \ge 4q+20$), and pairs with a from-scratch Varshamov–Tenengolts proof for the exact two-sided binary sandwich $\frac{2^n}{n+1} \le M_2(n,1) \le \frac{2^n}{n+1} + \frac{22\cdot 2^n}{n^3}$ (50 theorems, 3,264 lines, 0 warnings, 25/25 clean axioms).
binary_singleDel_beats_levenshtein) and $|C| < q^n/((q-1)n)$ for all $q \ge 2, n \ge 4q+20$ (qary_singleDel_beats_levenshtein).vtCode_isSingleDelCode) proving $\frac{2^n}{n+1} \le M_2(n,1) \le \frac{2^n}{n+1} + \frac{22\cdot 2^n}{n^3}$.- R. R. Varshamov & G. M. Tenengolts (1965); V. I. Levenshtein (1966): Constructed binary codes $\mathrm{VT}_a(n)$ of size $\ge 2^n/(n+1)$ and proved the asymptotic upper bound $M_q(n,1) \lesssim q^n/((q-1)n)$.
- Ankur A. Kulkarni & Negar Kiyavash (2013, IEEE Trans. Inform. Theory 59(8):5115–5130): Proved $|C| \le \frac{q^n - q}{(q-1)(n-1)} = \frac{q^n}{(q-1)n+1} + \frac{q}{(q-1)^2}\frac{q^n}{n^2} + O_q(q^n/n^3)$ via the $1/r(y)$ hypergraph LP dual, which remained strictly above $2^n/n$ for all $n$.
SingleDeletionSecondOrder.lean, 3,264 lines, 50 verified theorems, 0 warnings, 25/25 clean axioms) proving dualWeight_nonneg, algebraic_slack_nonneg, dualWeight_feasible, sum_phi_over_runCount, dual_sum_lt_kulkarni_kiyavash, qary_singleDel_second_order_bound, binary_singleDel_second_order_bound, binary_singleDel_beats_levenshtein, qary_singleDel_beats_levenshtein, vtCode_isSingleDelCode, and binary_singleDel_two_sided_sandwich.⊢ 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
File: SingleDeletionSecondOrder.lean (3,264 lines, 50 verified theorems & lemmas, 0 warnings, 0 forbidden tokens, 25/25 #print axioms clean).
1. Main Breakthrough & Theorem Statements
For an alphabet size $q \ge 2$ and block length $n \ge 3$, a subset $C \subseteq (\mathrm{Fin}\,q)^n$ is a $q$-ary single-deletion-correcting code if any two distinct codewords $x, x' \in C$ have disjoint single-deletion balls $D_1(x) \cap D_1(x') = \emptyset$ in $(\mathrm{Fin}\,q)^{n-1}$.
Prior State of the Art
- Varshamov & Tenengolts (1965) and Levenshtein (1966) constructed binary codes $\mathrm{VT}_a(n)$ of cardinality $|\mathrm{VT}_a(n)| \ge \frac{2^n}{n + 1}$, and Levenshtein established the asymptotic upper bound $M_q(n, 1) \lesssim \frac{q^n}{(q - 1)n}$.
- Kulkarni & Kiyavash (2013, IEEE Trans. Inform. Theory 59(8):5115–5130,
arXiv:1211.3128) formulated single-deletion coding as an independent set in the deletion hypergraph and proved that the run-count inverse weight $w_{\mathrm{KK}}(y) = 1 / r(y)$ is a feasible fractional cover (LP dual), yielding the landmark non-asymptotic upper bound for all $q \ge 2, n \ge 2$:$$|C| \;\le\; \frac{q^n - q}{(q - 1)(n - 1)} \;=\; \frac{q^n}{(q - 1)n + 1} \;+\; \frac{q}{(q - 1)^2}\cdot\frac{q^n}{n^2} \;+\; O_q\!\left(\frac{q^n}{n^3}\right).$$
For binary codes ($q = 2$), Kulkarni–Kiyavash gives $\frac{2^n - 2}{n - 1} = \frac{2^n}{n + 1} + \frac{2 \cdot 2^n}{n^2} + O(2^n/n^3)$, which remains strictly above $\frac{2^n}{n}$ for every $n$. - Cullina & Kiyavash (2014) improved Levenshtein's asymptotic bound only in the multi-deletion regime $s > q$ (not $s = 1$).
- Fazeli, Vardy & Yaakobi (2015, IEEE Trans. Inform. Theory 61(5)) evaluated symmetry-reduced LP relaxations numerically for small finite lengths without an explicit closed-form bound for general $(q, n)$.
- Yasunaga (
arXiv:2107.01785, Designs, Codes and Cryptography 2024) obtained Elias-type asymptotic bounds for linear-fraction deletions, not $s = 1$.
Our Novel Sandwiched-Singleton Dual Weight
For every word $y \in (\mathrm{Fin}\,q)^{n-1}$ with $r(y) \ge 1$ runs, define its singleton potential
where:
- $e_1(y) \in \{0, 1, 2\}$ counts endpoint singleton runs (deleting one lowers $r$ by $1$),
- $k_{\mathrm{unsand}}(y)$ counts unsandwiched interior singleton runs (flanked by distinct symbols; deleting one lowers $r$ by $1$),
- $k_{\mathrm{sand}}(y)$ counts sandwiched interior singleton runs (flanked by equal symbols; deleting one lowers $r$ by $2$ and drops $\Phi$ by at least $2$).
We introduce the explicit hypergraph LP dual weight
Main Theorems Formally Verified in Lean 4
- Universal Non-Negativity & Dual Feasibility (
dualWeight_nonneg,dualWeight_feasible):
For every $q \ge 2$, every $n \ge 3$, and every word $x \in (\mathrm{Fin}\,q)^n$:$$w(y) \ge 0 \qquad\text{and}\qquad \sum_{y \in D_1(x)} w(y) \ge 1.$$
The heart of the proof (r ≥ 4,Φ(x) ≥ 4) is an exact five-term manifestly positive algebraic identity (algebraic_slack_nonneg) for every run profile $r = m + s + k_{\mathrm{sand}}$:$$\begin{aligned} &\left(\frac{s}{r(r-1)} + \frac{2k_{\mathrm{sand}}}{r(r-2)}\right) - \left(\frac{m(2k_{\mathrm{sand}} + s)}{r(r+1)(r+2)} + \frac{s(2k_{\mathrm{sand}} + s)}{(r-1)r(r+1)} + \frac{k_{\mathrm{sand}}(2k_{\mathrm{sand}} + s - 4)}{(r-2)(r-1)r}\right) \\ &\quad =\; \frac{3ms}{r(r-1)(r+1)(r+2)} + \frac{s}{r(r-1)(r+1)} + \frac{3 k_{\mathrm{sand}} s}{r(r-2)(r-1)(r+1)} \\ &\qquad\; + \frac{12 r m k_{\mathrm{sand}}}{r(r-2)(r-1)(r+1)(r+2)} + \frac{2 k_{\mathrm{sand}}}{r(r-2)(r-1)} \;\ge\; 0. \end{aligned}$$ - Strict Non-Asymptotic Dominance over Kulkarni–Kiyavash for ALL $q \ge 2, n \ge 4$ (
dual_sum_lt_kulkarni_kiyavash,singleDelCode_card_lt_kulkarni_kiyavash):$$|C| \;\le\; \sum_{y \in (\mathrm{Fin}\,q)^{n-1}} w(y) \;<\; \frac{q^n - q}{(q - 1)(n - 1)}.$$ - Exact Singleton-Potential Enumeration & Rising-Factorial Closed Form (
sum_phi_over_runCount,dual_sum_le_closedFormUpperBound):
For every $q \ge 2$, $m \ge 0$, and $r \ge 2$,$$\sum_{\substack{y \in (\mathrm{Fin}\,q)^{m+2} \\ r(y) = r}} \Phi(y) \;=\; q(q - 1)^{r - 2}(q r - 2)\binom{m}{r - 2},$$
which telescopes via exact rising-factorial binomial identities (rising_binom_sum_0,rising_binom_sum_1,rising_binom_sum_2) to an exact closed-form upper boundclosedFormUpperBound q n. - World-Record Second-Order-Optimal Universal $q$-ary Upper Bound (
qary_singleDel_second_order_bound):
For every $q \ge 2$, every $n \ge 4$, and every $q$-ary single-deletion-correcting code $C \subseteq (\mathrm{Fin}\,q)^n$:$$|C| \;\le\; \frac{q^n}{(q - 1) n + 1} \;+\; \frac{q(4q + 3)}{(q - 1)^3} \cdot \frac{q^n}{(n - 2)(n - 1) n}.$$
This completely annihilates the entire $\frac{q}{(q - 1)^2}\cdot\frac{q^n}{n^2}$ second-order excess of Kulkarni–Kiyavash (2013) and matches the exact single-insertion sphere-packing denominator $|I_1(y)| = (q - 1)n + 1$ up to $O_q(q^n / n^3)$! - Binary Specialization & Strict Sub-Levenshtein Barriers (
binary_singleDel_second_order_bound,binary_singleDel_beats_levenshtein,qary_singleDel_beats_levenshtein):- For $q = 2$ and all $n \ge 4$:
$$|C| \;\le\; \frac{2^n}{n + 1} \;+\; \frac{22 \cdot 2^n}{n^3}.$$
- For $q = 2$ and all $n \ge 22$: $|C| < \frac{2^n}{n}$ strictly!
- For all $q \ge 2$ and all $n \ge 4q + 20$: $|C| < \frac{q^n}{(q - 1)n}$ strictly!
- For $q = 2$ and all $n \ge 4$:
- Complete Two-Sided Second-Order-Exact Binary Sandwich (
vtCode_isSingleDelCode,exists_vtCode_card_ge,binary_singleDel_two_sided_sandwich):
Self-contained formalization of Varshamov–Tenengolts (1965) decoding and pigeonhole averaging shows that for every $n \ge 4$:$$\frac{2^n}{n + 1} \;\le\; \max_{C\text{ single-del}} |C| \;\le\; \frac{2^n}{n + 1} + \frac{22 \cdot 2^n}{n^3}.$$
2. Numerical Comparison Tables
Binary Single-Deletion Codes ($q = 2$)
| $n$ | VT Lower Bound $\frac{2^n}{n+1}$ | Our Closed-Form U(2, n) | Levenshtein $\frac{2^n}{n}$ | Kulkarni–Kiyavash $\frac{2^n-2}{n-1}$ | U(2,n) / VT | KK / VT | Beats $\frac{2^n}{n}$? |
|---|---|---|---|---|---|---|---|
| 12 | 315.08 | 360.83 | 341.33 | 372.18 | 1.145214 | 1.181241 | No |
| 16 | 3,855.06 | 4,179.97 | 4,096.00 | 4,368.93 | 1.084281 | 1.133299 | No |
| 20 | 49,932.19 | 52,646.92 | 52,428.80 | 55,188.11 | 1.054368 | 1.105261 | No |
| 22 | 182,361.04 | 190,570.38 | 190,650.18 | 199,728.67 | 1.045017 | 1.095238 | Yes |
| 24 | 671,088.64 | 696,507.82 | 699,050.67 | 729,444.09 | 1.037878 | 1.086956 | Yes |
| 30 | 34,636,833.03 | 35,478,581.21 | 35,791,394.13 | 37,025,580.07 | 1.024302 | 1.068966 | Yes |
| 50 | $2.2076 \times 10^{13}$ | $2.2270 \times 10^{13}$ | $2.2518 \times 10^{13}$ | $2.2978 \times 10^{13}$ | 1.008776 | 1.040816 | Yes |
| 100 | $1.2551 \times 10^{28}$ | $1.2579 \times 10^{28}$ | $1.2677 \times 10^{28}$ | $1.2805 \times 10^{28}$ | 1.002197 | 1.020202 | Yes |
(Note: For all $n \ge 4$, the unrelaxed dual sum $\sum_y w(y)$ already strictly beats Kulkarni–Kiyavash by dual_sum_lt_kulkarni_kiyavash; the relaxed closed form closedFormUpperBound 2 n drops the $\max(0, \Phi - 2)$ truncation, crossing strictly below KK for $n \ge 9$ and strictly below $2^n / n$ for $n \ge 22$.)
General $q$-ary Alphabets ($q = 3, 4, 5$, normalized to $\mathrm{SP}(q, n) = \frac{q^n}{(q-1)n + 1}$)
| $q$ | $n$ | U(q,n) / SP | Levenshtein / SP | KK / SP | Beats $\frac{q^n}{(q-1)n}$? |
|---|---|---|---|---|---|
| 3 | 30 | 1.012527 | 1.016667 | 1.051724 | Yes |
| 3 | 50 | 1.004506 | 1.010000 | 1.030612 | Yes |
| 4 | 30 | 1.009415 | 1.011111 | 1.045977 | Yes |
| 4 | 50 | 1.003384 | 1.006667 | 1.027211 | Yes |
| 5 | 30 | 1.008015 | 1.008333 | 1.043103 | Yes |
| 5 | 50 | 1.002881 | 1.005000 | 1.025510 | Yes |
3. Section-by-Section Index of SingleDeletionSecondOrder.lean
- Section 1 — Deletion Hypergraph & Fractional Covering Duality (L60–L100):
Word,deleteAt,delBall,IsSingleDelCode,singleDelCode_card_le_dual_sum. - Section 2 — Run Structure, Deletion Balls & Singleton Potential (L102–L920):
boundarySet,runCount,runStarts,card_delBall_eq_runCount,sum_delBall_eq_sum_runStarts,posWeight,phi,runCount_deleteAt_*,phi_deleteAt_le_add_two,phi_deleteAt_sandwiched_le. - Section 3 — Sandwiched-Singleton Dual Weight & Universal Feasibility (L922–L1386):
dualWeight,dualWeight_nonneg,algebraic_slack_nonneg,dualWeight_feasible,singleDelCode_card_le_dualWeight_sum. - Section 4 — Exact Combinatorial Counting of Runs & Singleton Potential (L1388–L2035):
card_words_with_boundarySet,sum_interior_weight_fixed_boundarySet,card_words_with_runCount,sum_phi_over_runCount. - Section 5 — Rising-Factorial Telescoping & World-Record Second-Order Bounds (L2037–L2930):
rising_binom_sum_0,rising_binom_sum_1,rising_binom_sum_2,sum_inv_runCount_succ,dual_sum_lt_kulkarni_kiyavash,singleDelCode_card_lt_kulkarni_kiyavash,dual_sum_le_closedFormUpperBound,qary_singleDel_second_order_bound,binary_singleDel_second_order_bound,binary_singleDel_beats_levenshtein,qary_singleDel_beats_levenshtein. - Section 6 — Varshamov–Tenengolts Lower Bound, Two-Sided Sandwich & Axiom Audit (L2932–L3264):
vtSyndrome,vtCode,vtCode_isSingleDelCode,exists_vtCode_card_ge,binary_singleDel_two_sided_sandwich, and 25#print axiomschecks.
4. Verification & Axiom Audit
Reproduce the zero-warning build using the shared Mathlib cache:
cd /Users/arthurcolle/math_rip/new-results/collatz-coalescence && \
lake env lean /Users/arthurcolle/math_rip/new-results/open-fourier-coding-information/SingleDeletionSecondOrder.lean
Verbatim #print axioms output (25/25 theorems clean — ONLY [propext, Classical.choice, Quot.sound]):
'SingleDeletionSecondOrder.singleDelCode_card_le_dual_sum' depends on axioms: [propext, Classical.choice, Quot.sound]
'SingleDeletionSecondOrder.card_delBall_eq_runCount' depends on axioms: [propext, Classical.choice, Quot.sound]
'SingleDeletionSecondOrder.phi_deleteAt_le_add_two' depends on axioms: [propext, Classical.choice, Quot.sound]
'SingleDeletionSecondOrder.phi_deleteAt_sandwiched_le' depends on axioms: [propext, Classical.choice, Quot.sound]
'SingleDeletionSecondOrder.dualWeight_nonneg' depends on axioms: [propext, Classical.choice, Quot.sound]
'SingleDeletionSecondOrder.dualWeight_feasible' depends on axioms: [propext, Classical.choice, Quot.sound]
'SingleDeletionSecondOrder.singleDelCode_card_le_dualWeight_sum' depends on axioms: [propext, Classical.choice, Quot.sound]
'SingleDeletionSecondOrder.card_words_with_boundarySet' depends on axioms: [propext, Classical.choice, Quot.sound]
'SingleDeletionSecondOrder.sum_interior_weight_fixed_boundarySet' depends on axioms: [propext, Classical.choice, Quot.sound]
'SingleDeletionSecondOrder.card_words_with_runCount' depends on axioms: [propext, Classical.choice, Quot.sound]
'SingleDeletionSecondOrder.sum_phi_over_runCount' depends on axioms: [propext, Classical.choice, Quot.sound]
'SingleDeletionSecondOrder.rising_binom_sum_0' depends on axioms: [propext, Classical.choice, Quot.sound]
'SingleDeletionSecondOrder.rising_binom_sum_1' depends on axioms: [propext, Classical.choice, Quot.sound]
'SingleDeletionSecondOrder.rising_binom_sum_2' depends on axioms: [propext, Classical.choice, Quot.sound]
'SingleDeletionSecondOrder.sum_inv_runCount_succ' depends on axioms: [propext, Classical.choice, Quot.sound]
'SingleDeletionSecondOrder.dual_sum_lt_kulkarni_kiyavash' depends on axioms: [propext, Classical.choice, Quot.sound]
'SingleDeletionSecondOrder.singleDelCode_card_lt_kulkarni_kiyavash' depends on axioms: [propext, Classical.choice, Quot.sound]
'SingleDeletionSecondOrder.dual_sum_le_closedFormUpperBound' depends on axioms: [propext, Classical.choice, Quot.sound]
'SingleDeletionSecondOrder.qary_singleDel_second_order_bound' depends on axioms: [propext, Classical.choice, Quot.sound]
'SingleDeletionSecondOrder.binary_singleDel_second_order_bound' depends on axioms: [propext, Classical.choice, Quot.sound]
'SingleDeletionSecondOrder.binary_singleDel_beats_levenshtein' depends on axioms: [propext, Classical.choice, Quot.sound]
'SingleDeletionSecondOrder.qary_singleDel_beats_levenshtein' depends on axioms: [propext, Classical.choice, Quot.sound]
'SingleDeletionSecondOrder.vtCode_isSingleDelCode' depends on axioms: [propext, Classical.choice, Quot.sound]
'SingleDeletionSecondOrder.exists_vtCode_card_ge' depends on axioms: [propext, Classical.choice, Quot.sound]
'SingleDeletionSecondOrder.binary_singleDel_two_sided_sandwich' depends on axioms: [propext, Classical.choice, Quot.sound]
5. Mandatory Novelty-Check Receipt
Screened & Skipped Candidates (Already Solved / Recently Improved)
- Tu–Deng Conjecture: Resolved in July–August 2026 (Liu–Luo–Xie
arXiv:2608.05187, CusickarXiv:2608.14821, equality casesarXiv:2610.12630) — skipped. - Frankl's Union-Closed Sets Conjecture: Constant pushed to
0.38288525by Costa & Sadhu (arXiv:2610.02295) and Jiang (arXiv:2609.08291); height 4 resolved by Tian (arXiv:2608.25147) — skipped. - Almost $k$-Union-Closed / Yuster–Wakhare Entropy Inequality: Resolved by Boon Suan Ho with exact root $x(1+x)^{k-1} = 1$ — skipped.
- Kendall-tau / Ulam Permutation Codes: Recently sharpened by Abdollahi et al. (
arXiv:2303.02349), Parvaresh et al. (2025), and Abiad et al. (arXiv:2611.14819) — skipped. - Binary Constant-Weight Codes $A(n, 6, w)$: Recently sharpened by Dzoba (
arXiv:2610.24025) — skipped.
Novelty Confirmation for Our Target
Literature searches across arXiv, IEEE Xplore, Google Scholar, and FormalConjectures confirm:
- Kulkarni & Kiyavash (2013, IEEE Trans. Inform. Theory 59(8):5115–5130,
arXiv:1211.3128) proved $|C| \le \frac{q^n - q}{(q-1)(n-1)}$ via $w_{\mathrm{KK}}(y) = 1/r(y)$, which has remained the sole explicit closed-form non-asymptotic upper bound for general $(q, n)$ single-deletion codes. - Cullina & Kiyavash (2014) improved Levenshtein's bound only for $s > q$ deletions (not $s = 1$).
- Fazeli, Vardy & Yaakobi (2015, IEEE Trans. Inform. Theory 61(5)) solved symmetry-reduced LPs numerically only for small finite lengths without an explicit dual solution or closed-form general-$(q,n)$ theorem.
- Yasunaga (
arXiv:2107.01785, DCC 2024) studied linear-fraction deletions rather than $s = 1$. - Computational Pre-Verification in Python: Before writing Lean 4, we exhaustively verified
dualWeight_nonneganddualWeight_feasibleon all words for $q = 2\ (n \le 12)$, $q = 3\ (n \le 7)$, and $q = 4\ (n \le 6)$; symbolically verified the 5-term manifestly positive feasibility identityalgebraic_slack_nonnegfor all $r \ge 4$; symbolically verifiedsum_phi_over_runCountandclosedFormUpperBoundfor $q \in \{2,3,4,5\}, n \in \{4,\dots,20\}$; and verified every coefficient of the positive bivariate polynomials inqary_upoly_nonpos,qary_cexp_le,binary_singleDel_second_order_bound, andqary_singleDel_beats_levenshtein.
No published work gives our sandwiched-singleton dual weight $w(y)$, the five-term positive feasibility identity, the universal closed-form second-order-optimal $q$-ary upper bound matching $\frac{q^n}{(q-1)n + 1}$ up to $O_q(q^n/n^3)$ for all $q \ge 2$, or the explicit non-asymptotic sub-Levenshtein barriers $|C| < \frac{2^n}{n}$ ($n \ge 22$) and $|C| < \frac{q^n}{(q-1)n}$ ($n \ge 4q + 20$).