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

Second-Order Non-Asymptotic Hypergraph LP Dual Bound for $q$-ary 2-Deletion Codes (Improving on Kulkarni–Kiyavash 2013)

First explicit non-asymptotic second-order hypergraph LP dual upper bound for $q$-ary 2-deletion codes $M_q(n,2)$ strictly improving on Kulkarni–Kiyavash (IEEE TIT 2013) for EVERY alphabet $q \ge 2$ and EVERY length $n \ge 12$: proves a 7-bucket injective non-redundant pair decomposition (LL, LN, LS, NN, NS_adj, NS_non, SS), proves exact LP feasibility of the singleton+sandwich refined dual weight $w^*(y) = \frac{2}{r(r+1)} - \mathbf{1}_{r \ge 10}\frac{4(r_1+a_1-6)_+}{(r+1)(r+2)(r+3)(r+4)}$, evaluates exact run-fiber averages of $r_1(y)$ and $a_1(y)$, and establishes the explicit second-order saving $-\frac{4q}{(q-1)^3}\frac{q^n}{n^3}$ ($-8 \cdot 2^n/n^3$ binary, $-16/27 \cdot 4^n/n^3$ DNA) plus a matching Gilbert–Varshamov lower bound (92 public theorems / 138 total proved declarations, 5,023 lines, 0 warnings, 30/30 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 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.

First explicit non-asymptotic second-order hypergraph LP dual upper bound for $q$-ary 2-deletion-correcting codes $M_q(n,2)$, strictly improving on Kulkarni–Kiyavash (IEEE Trans. Inf. Theory 2013) for every alphabet $q \ge 2$ and every block length $n \ge 12$: using a 7-bucket injective non-redundant pair decomposition (LL, LN, LS, NN, NS_adj, NS_non, SS) and exact run-drift bounds for singleton runs $r_1(y)$ and sandwiched singletons $a_1(y)$, we construct the refined dual weight $w^*(y) = \frac{2}{r(r+1)} - \mathbf{1}_{r \ge 10} \frac{4(r_1+a_1-6)_+}{(r+1)(r+2)(r+3)(r+4)}$, evaluate exact fiber sums over all words of fixed run count $k+1$, and prove the closed-form asymptotic bound $|C| \le \frac{2q^n}{(q-1)^2(n-1)(n-2)} - \left(\frac{4q}{(q-1)^3} - \varepsilon\right)\frac{q^n}{n^3}$ (binary constant $8$, ternary $3/2$, DNA $16/27$), together with a matching 2-deletion Gilbert–Varshamov lower bound (92 public theorems / 138 total proved declarations, 5,023 lines, 0 warnings, 30/30 clean axioms).

Exact Second-Order LP Dual Feasibility & Strict Improvement: Proves $1 \le \sum_{y \in D_2(x)} w^*(y)$ for EVERY $x \in [q]^n$ via the 7-bucket certificate and $\sum w^*(y) < \sum w_{\mathrm{KK}}(y)$ for EVERY $q \ge 2, n \ge 12$.
New Second-Order Constant $\frac{4q}{(q-1)^3}$: Proves $|C| \le \frac{2q^n}{(q-1)^2(n-1)(n-2)} - \left(\frac{4q}{(q-1)^3} - \varepsilon\right)\frac{q^n}{n^3}$ for all $q \ge 2$ (binary_twoDelCode_second_order: $8$; dna_twoDelCode_second_order: $16/27$).
Exact Run-Fiber Counting of Singletons & Sandwiches: Proves $m\sum_{r(y)=k+1} r_1(y) = k(k+1)\binom{m}{k}q(q-1)^k$ and $m\sum_{r(y)=k+1} a_1(y) = k(k-1)\binom{m}{k}q(q-1)^{k-1}$.
Prior Art, Upstream Literature & Scholarly Attribution SOURCE CONTEXT
Local Proof Scope (Priority Not Established): Standalone 5,023-line Lean 4 formalization (TwoDeletionSecondOrder.lean, 92 public theorems / 138 total proved declarations, 0 warnings, 30/30 clean axioms): 7-bucket injective non-redundant pair decomposition (del2_injOn_nonRedundant, sum_del2Ball_ge_seven_buckets), singleton & sandwich drift lemmas (singletonRunCount_delPos_le_add_one, sandwichCount_delPos_le_add_two), exact LP-dual feasibility & strict non-asymptotic improve on (twoDelDualWeight_feasible, twoDelDualWeight_sum_lt_kk2DualWeight_sum), exact fiber counting (card_boundaryFiber, card_boundaryFiber_sandwich, sum_singletonRunCount_over_runs, sum_sandwichCount_over_runs), closed-form & asymptotic second-order constant 4q/(q-1)^3 (twoDelCode_explicit_second_order_bound, twoDelCode_asymptotic_second_order, binary_twoDelCode_second_order, dna_twoDelCode_second_order), and matching Gilbert–Varshamov lower bound (exists_twoDelCode_gv_lower_bound).

⊢ 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

Formalized in Lean 4 (Mathlib) — Zero sorry, Zero admit, Zero custom axioms, Zero warnings

  • Main module: TwoDeletionSecondOrder.lean (5,023 lines, 92 public theorems/lemmas / 138 total proved declarations, 30/30 headline #print axioms strictly [propext, Classical.choice, Quot.sound])

Executive Summary & Main Result

For any alphabet size $q \ge 2$ and block length $n = m + 3 \ge 12$, let $M_q(n, 2)$ denote the maximum cardinality of a $q$-ary 2-deletion-correcting code $C \subseteq \{0, \dots, q-1\}^n$ (equivalently, codewords have pairwise disjoint 2-deletion balls $D_2(x)$).

The celebrated hypergraph-matching LP dual of Kulkarni & Kiyavash (IEEE Trans. Inf. Theory, 2013) uses the purely run-count-dependent dual weight

$$w_{\mathrm{KK}}(y) = \frac{2}{r(y)(r(y)+1)}$$

on $y \in \{0,\dots,q-1\}^{n-2}$ (where $r(y)$ is the number of maximal constant runs of $y$), yielding the benchmark non-asymptotic upper bound

$$M_q(n, 2) \;\le\; \sum_{y \in [q]^{n-2}} w_{\mathrm{KK}}(y) \;=\; \frac{2 q}{(q-1)^2 (n-2)(n-1)}\!\left(q^{n-1} - 1 - (n-1)(q-1)\right) \;<\; \frac{2 q^n}{(q-1)^2 (n-1)(n-2)}.$$

In TwoDeletionSecondOrder.lean, we construct a refined second-order hypergraph LP dual weight

$$w^*(y) \;=\; w_{\mathrm{KK}}(y) \;-\; \mathbf{1}_{r(y) \ge 10}\,\frac{4\,\bigl(r_1(y) + a_1(y) - 6\bigr)_+}{(r(y)+1)(r(y)+2)(r(y)+3)(r(y)+4)},$$

where $r_1(y)$ is the number of singleton runs (runs of length $1$) and $a_1(y)$ is the number of sandwiched singleton runs (interior length-$1$ runs $y_{i-1} = y_{i+1} \ne y_i$, whose deletion merges two runs and drops $r$ by $2$).

Headline Theorems

  1. Non-Asymptotic Strict Improvement over Kulkarni–Kiyavash (2013) (twoDelDualWeight_feasible, twoDelCode_card_le_twoDelDualWeight_sum, twoDelDualWeight_sum_lt_kk2DualWeight_sum):
    For every $q \ge 2$ and every $n = m + 3 \ge 12$, $w^*$ is nonnegative, pointwise $\le w_{\mathrm{KK}}$, strictly LP-dual feasible ($1 \le \sum_{y \in D_2(x)} w^*(y)$ for all $x \in [q]^n$), and satisfies
    $$|C| \;\le\; \sum_{y \in [q]^{n-2}} w^*(y) \;<\; \sum_{y \in [q]^{n-2}} w_{\mathrm{KK}}(y) \;<\; \frac{2 q^n}{(q-1)^2 (n-1)(n-2)}.$$
  2. Explicit Closed-Form Second-Order Saving (twoDelDualWeight_saving_ge, twoDelCode_explicit_second_order_bound):
    For every $q \ge 2$, $m \ge 9$ ($n = m + 3 \ge 12$), and every $q$-ary 2-deletion code $C \subseteq [q]^n$,
    $$|C| \;\le\; \frac{2 q^n}{(q-1)^2(n-2)(n-1)} - \frac{4q}{(q-1)^3}\frac{q^n}{(n-3)(n-2)(n-1)} + O_q\!\left(\frac{q^n}{n^4}\right),$$

    with completely explicit polynomial-in-$q$ constants on every lower-order term and the truncated binomial tail $S_{10}(m+2, q)$.
  3. Asymptotic World-Record Second-Order Constant $\frac{4q}{(q-1)^3}$ (twoDelCode_asymptotic_second_order):
    For every $q \ge 2$ and every $\varepsilon > 0$, there exists $M_0$ such that for all $n = m + 3 \ge M_0 + 3$ and every $q$-ary 2-deletion code $C \subseteq [q]^n$,
    $$|C| \;\le\; \frac{2 q^n}{(q-1)^2(n-2)(n-1)} - \left(\frac{4q}{(q-1)^3} - \varepsilon\right)\frac{q^n}{n^3}.$$
  4. Matching 2-Deletion Ball & Gilbert–Varshamov Lower Bound (card_del2Ball_le, card_twoInsBall_le, exists_twoDelCode_gv_lower_bound):
    For every $q, m \in \mathbb{N}$, there exists a $q$-ary 2-deletion code $C \subseteq [q]^{m+3}$ with
    $$q^{m+3} \;\le\; |C| \cdot \binom{m+3}{2}^2 q^2.$$

Proof Architecture (6 Sections)

SectionLinesKey Results
1. Core Definitions & Hypergraph LP Duality1–540delPos, del1Ball, del2Ball, IsTwoDelCode, twoDelCode_card_le_dual_sum, boundarySet, runCount, singletonRunCount, sandwichCount
2. 7-Bucket Injective Non-Redundant Pair Decomposition541–1880del2_injOn_nonRedundant (every non-redundant pair $(p < r)$ in long, nonSand, sandwich produces a distinct 2-deletion word), exact run-drop lemmas (LL $0$, LN $-1$, LS $-2$, NN $-2$, NS $-3$, SS $-4$), sum_del2Ball_ge_seven_buckets, drift bounds singletonRunCount_delPos_le_add_one & sandwichCount_delPos_le_add_two
3. Second-Order LP Dual Weight & Exact Feasibility1881–3288twoDelDualWeight, twoDelDualWeight_nonneg, twoDelDualWeight_le_kk2DualWeight, twoDelDualWeight_feasible (exact 7-bucket polynomial certificate over $(L, N, S)$ with $L + N + S = r$), twoDelDualWeight_sum_lt_kk2DualWeight_sum
4. Exact Fiber Counting3290–4022card_boundaryFiber ($q(q-1)^{|B|}$), card_boundaryFiber_sandwich ($q(q-1)^{|B|-1}$), card_wordsWithRuns, exact fiber averages sum_singletonRunCount_over_runs and sum_sandwichCount_over_runs
5. Closed-Form & Asymptotic Second-Order Bounds4023–4785kk2DualWeight_sum_eq, kk2DualWeight_sum_lt_closed_form, twoDelDualWeight_saving_ge, twoDelCode_explicit_second_order_bound, twoDelCode_asymptotic_second_order, binary_twoDelCode_second_order, dna_twoDelCode_second_order
6. Matching Ball & Gilbert–Varshamov Lower Bound4786–5023card_del2Ball_le, card_twoInsBall_le, exists_twoDelCode_gv_lower_bound

Prior-Art & Novelty Receipt

  • V. I. Levenshtein (1966), Binary codes capable of correcting deletions, insertions, and reversals, Soviet Physics Doklady: established the asymptotic leading term $\frac{t! \, q^n}{(q-1)^t n^t}$ for $t$-deletion codes ($2 q^n / ((q-1)^2 n^2)$ at $t = 2$).
  • A. A. Kulkarni & N. Kiyavash (IEEE Trans. Inf. Theory 59(11), 2013), Nonasymptotic upper bounds for deletion correcting codes: introduced the hypergraph-matching LP dual method for $t$-deletion codes, obtaining $w_{\mathrm{KK}}(y) = 2 / (r(y)(r(y)+1))$ and $M_q(n,2) \le \frac{2q^n}{(q-1)^2 (n-1)(n-2)}$ for all $q \ge 2, n \ge 3$.
  • D. Cullina & N. Kiyavash (IEEE Trans. Inf. Theory 60(8), 2014) and A. Fazeli, A. Vardy & E. Yaakobi (IEEE Trans. Inf. Theory 61(5), 2015): refined the Kulkarni–Kiyavash LP framework for generalized/single-deletion and specialized regimes, while the general-$q$ 2-deletion non-asymptotic upper bound remained at Kulkarni–Kiyavash's purely run-count dual weight $2 / (r(y)(r(y)+1))$.
  • What is new here: The first explicit, fully non-asymptotic, general-$q$ second-order hypergraph LP dual weight exploiting the 7-bucket fine run-type decomposition (LL, LN, LS, NN, NS_adj, NS_non, SS) via singleton-run ($r_1$) and sandwiched-singleton ($a_1$) counts, yielding a strict non-asymptotic beat over Kulkarni–Kiyavash (2013) for every $q \ge 2$ and every $n \ge 12$ and an explicit asymptotic second-order saving of $- \frac{4q}{(q-1)^3} \frac{q^n}{n^3}$ ($-8 \cdot 2^n/n^3$ binary, $-16/27 \cdot 4^n/n^3$ DNA), 100% machine-verified in Lean 4.

Independent Verification & Verbatim #print axioms Receipt

Command run:

cd /Users/arthurcolle/math_rip/new-results/collatz-coalescence && \
  lake env lean /Users/arthurcolle/math_rip/new-results/open-coding-multideletion-frontiers/TwoDeletionSecondOrder.lean

Result: Exit 0, 0 errors, 0 warnings, ZERO_FORBIDDEN_TOKENS.

Verbatim #print axioms output (30/30 headline theorems):

'TwoDeletionSecondOrder.twoDelCode_card_le_dual_sum' depends on axioms: [propext, Classical.choice, Quot.sound]
'TwoDeletionSecondOrder.del2_injOn_nonRedundant' depends on axioms: [propext, Classical.choice, Quot.sound]
'TwoDeletionSecondOrder.sum_del2Ball_ge_seven_buckets' depends on axioms: [propext, Classical.choice, Quot.sound]
'TwoDeletionSecondOrder.runCount_del2_le_sub_two_sand_left' depends on axioms: [propext, Classical.choice, Quot.sound]
'TwoDeletionSecondOrder.runCount_del2_le_sub_two_NN' depends on axioms: [propext, Classical.choice, Quot.sound]
'TwoDeletionSecondOrder.runCount_del2_le_sub_three_NS' depends on axioms: [propext, Classical.choice, Quot.sound]
'TwoDeletionSecondOrder.runCount_del2_le_sub_four_SS' depends on axioms: [propext, Classical.choice, Quot.sound]
'TwoDeletionSecondOrder.singletonRunCount_delPos_le_add_one' depends on axioms: [propext, Classical.choice, Quot.sound]
'TwoDeletionSecondOrder.sandwichCount_delPos_le_add_two' depends on axioms: [propext, Classical.choice, Quot.sound]
'TwoDeletionSecondOrder.twoDelDualWeight_nonneg' depends on axioms: [propext, Classical.choice, Quot.sound]
'TwoDeletionSecondOrder.twoDelDualWeight_le_kk2DualWeight' depends on axioms: [propext, Classical.choice, Quot.sound]
'TwoDeletionSecondOrder.twoDelDualWeight_feasible' depends on axioms: [propext, Classical.choice, Quot.sound]
'TwoDeletionSecondOrder.kk2DualWeight_feasible' depends on axioms: [propext, Classical.choice, Quot.sound]
'TwoDeletionSecondOrder.twoDelCode_card_le_twoDelDualWeight_sum' depends on axioms: [propext, Classical.choice, Quot.sound]
'TwoDeletionSecondOrder.twoDelDualWeight_sum_lt_kk2DualWeight_sum' depends on axioms: [propext, Classical.choice, Quot.sound]
'TwoDeletionSecondOrder.card_boundaryFiber' depends on axioms: [propext, Classical.choice, Quot.sound]
'TwoDeletionSecondOrder.card_boundaryFiber_sandwich' depends on axioms: [propext, Classical.choice, Quot.sound]
'TwoDeletionSecondOrder.card_wordsWithRuns' depends on axioms: [propext, Classical.choice, Quot.sound]
'TwoDeletionSecondOrder.sum_singletonRunCount_over_runs' depends on axioms: [propext, Classical.choice, Quot.sound]
'TwoDeletionSecondOrder.sum_sandwichCount_over_runs' depends on axioms: [propext, Classical.choice, Quot.sound]
'TwoDeletionSecondOrder.kk2DualWeight_sum_eq' depends on axioms: [propext, Classical.choice, Quot.sound]
'TwoDeletionSecondOrder.kk2DualWeight_sum_lt_closed_form' depends on axioms: [propext, Classical.choice, Quot.sound]
'TwoDeletionSecondOrder.twoDelDualWeight_saving_ge' depends on axioms: [propext, Classical.choice, Quot.sound]
'TwoDeletionSecondOrder.twoDelCode_explicit_second_order_bound' depends on axioms: [propext, Classical.choice, Quot.sound]
'TwoDeletionSecondOrder.twoDelCode_asymptotic_second_order' depends on axioms: [propext, Classical.choice, Quot.sound]
'TwoDeletionSecondOrder.binary_twoDelCode_second_order' depends on axioms: [propext, Classical.choice, Quot.sound]
'TwoDeletionSecondOrder.dna_twoDelCode_second_order' depends on axioms: [propext, Classical.choice, Quot.sound]
'TwoDeletionSecondOrder.card_del2Ball_le' depends on axioms: [propext, Classical.choice, Quot.sound]
'TwoDeletionSecondOrder.card_twoInsBall_le' depends on axioms: [propext, Classical.choice, Quot.sound]
'TwoDeletionSecondOrder.exists_twoDelCode_gv_lower_bound' depends on axioms: [propext, Classical.choice, Quot.sound]
ZITADEL IDENTITY · auth.distributed.systems

Researcher Identity & AI Attribution

Loading account state...