⊢mathematics.distributed.systems
Proof Tree / Coding & Boolean / Deletion, Edit & Permutation Codes / open-fourier-coding-information
KERNEL VERIFIED · 0 WARNINGS Coding & Boolean · Deletion, Edit & Permutation Codes Initiated by Arthur Collé 1/1 verified files · ⊢ 50 theorems

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 classified
⊢ TL;DR & Key Verified Results
Field Context (Deletion, Edit & Permutation Codes): Capacity bounds and LP-duality limits for codes correcting deletions, transpositions, and DNA grain errors.

Removes 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).

New Second-Order-Optimal $q$-ary Bound: 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$, matching the sphere-packing denominator up to $O_q(q^n/n^3)$.
Strict Sub-Levenshtein Non-Asymptotic Barriers: Proves $|C| < 2^n/n$ for all $n \ge 22$ (binary_singleDel_beats_levenshtein) and $|C| < q^n/((q-1)n)$ for all $q \ge 2, n \ge 4q+20$ (qary_singleDel_beats_levenshtein).
Exact Two-Sided Binary Sandwich: Pairs our LP dual bound with a from-scratch formalization of Varshamov–Tenengolts codes (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}$.
Prior Art, Upstream Literature & Scholarly Attribution SOURCE CONTEXT
Local Proof Scope (Priority Not Established): Standalone Lean 4 formalization (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

Raw .lean
—

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

$$\Phi(y) \;:=\; \sum_{j=0}^{n-2} \mathrm{posWeight}(y, j) \;=\; 2\,k_{\mathrm{sand}}(y) + k_{\mathrm{unsand}}(y) + e_1(y),$$

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

$$w(y) \;:=\; \begin{cases} 1 & r(y) = 1, \\[4pt] \dfrac{1}{r(y)} - \dfrac{\max(0,\; \Phi(y) - 2)}{r(y)\bigl(r(y) + 1\bigr)\bigl(r(y) + 2\bigr)} & r(y) \ge 2. \end{cases}$$

Main Theorems Formally Verified in Lean 4

  1. 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}$$
  2. 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)}.$$
  3. 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 bound closedFormUpperBound q n.
  4. 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)$!
  5. 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!
  6. 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) / VTKK / VTBeats $\frac{2^n}{n}$?
12315.08360.83341.33372.181.1452141.181241No
163,855.064,179.974,096.004,368.931.0842811.133299No
2049,932.1952,646.9252,428.8055,188.111.0543681.105261No
22182,361.04190,570.38190,650.18199,728.671.0450171.095238Yes
24671,088.64696,507.82699,050.67729,444.091.0378781.086956Yes
3034,636,833.0335,478,581.2135,791,394.1337,025,580.071.0243021.068966Yes
50$2.2076 \times 10^{13}$$2.2270 \times 10^{13}$$2.2518 \times 10^{13}$$2.2978 \times 10^{13}$1.0087761.040816Yes
100$1.2551 \times 10^{28}$$1.2579 \times 10^{28}$$1.2677 \times 10^{28}$$1.2805 \times 10^{28}$1.0021971.020202Yes

(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) / SPLevenshtein / SPKK / SPBeats $\frac{q^n}{(q-1)n}$?
3301.0125271.0166671.051724Yes
3501.0045061.0100001.030612Yes
4301.0094151.0111111.045977Yes
4501.0033841.0066671.027211Yes
5301.0080151.0083331.043103Yes
5501.0028811.0050001.025510Yes

3. Section-by-Section Index of SingleDeletionSecondOrder.lean


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)

  1. Tu–Deng Conjecture: Resolved in July–August 2026 (Liu–Luo–Xie arXiv:2608.05187, Cusick arXiv:2608.14821, equality cases arXiv:2610.12630) — skipped.
  2. Frankl's Union-Closed Sets Conjecture: Constant pushed to 0.38288525 by Costa & Sadhu (arXiv:2610.02295) and Jiang (arXiv:2609.08291); height 4 resolved by Tian (arXiv:2608.25147) — skipped.
  3. Almost $k$-Union-Closed / Yuster–Wakhare Entropy Inequality: Resolved by Boon Suan Ho with exact root $x(1+x)^{k-1} = 1$ — skipped.
  4. 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.
  5. 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_nonneg and dualWeight_feasible on 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 identity algebraic_slack_nonneg for all $r \ge 4$; symbolically verified sum_phi_over_runCount and closedFormUpperBound for $q \in \{2,3,4,5\}, n \in \{4,\dots,20\}$; and verified every coefficient of the positive bivariate polynomials in qary_upoly_nonpos, qary_cexp_le, binary_singleDel_second_order_bound, and qary_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$).

ZITADEL IDENTITY · auth.distributed.systems

Researcher Identity & AI Attribution

Loading account state...