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

Concave-Quadratic Sphere-Packing-Optimal Upper Bounds for $q$-ary Single-Grain & Grain-Substitution Codes ($G_{1,q}, GS_{1,1,q}$)

Proves two-way strict non-commutativity of grain-smear and substitution, exact Hamming simplex geometry $|B_{G_1,S_1}(x)| = ((q-1)n+1) + (r(x)-1)((q-1)n+1-q) - \binom{r(x)-1}{2}$, universal $q$-ary Gabrys–Yaakobi–Dolecek Lemma 4 ($G_{1,q}(n) \le (q^{n+1}-q)/((q-1)n)$), shifted concave-quadratic LP-dual dominance over the classical Hamming bound for all $q \ge 2, n \ge 4$, exact inverse-weighted binomial variance identity $\sum (r-\alpha n)^2/r = q^{n-1} - \alpha n$, 3-term tangent-variance closed-form bound hitting the exact concave-quadratic sphere-packing constant $\frac{2q^2}{(2q-1)(q-1)^2}\frac{q^n}{n^2}$ with unbounded linear-in-$n$ gain over Hamming (63.2× DNA at $n=100$), and non-symmetric GV two-sided sandwiches.

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 sharp non-asymptotic & concave-quadratic sphere-packing-optimal upper bounds for the hybrid $q$-ary Single-Grain + Single-Substitution channel $GS_{1,1,q}(n)$ (plus universal $q$-ary Single-Grain $G_{1,q}(n)$): proves two-way strict non-commutativity of grain-smear and substitution, exact concave-quadratic Hamming simplex ball volume $|B_{G_1,S_1}(x)| = ((q-1)n+1) + (r(x)-1)((q-1)n+1-q) - \binom{r(x)-1}{2}$ for all $q \ge 2, n \ge 1$, exact $q$-ary Gabrys–Yaakobi–Dolecek Lemma 4, an exact inverse-weighted binomial variance identity $\sum (r(y)-\alpha n)^2 / r(y) = q^{n-1} - \alpha n$, and a 3-term tangent-variance closed-form bound hitting the exact concave-quadratic sphere-packing constant $\frac{2q^2}{(2q-1)(q-1)^2} \frac{q^n}{n^2}$ ($\frac{8}{3}\frac{2^n}{n^2}$ binary, $\frac{32}{63}\frac{4^n}{n^2}$ DNA) — improving on the Hamming bound universally for all $q \ge 2, n \ge 4$ (exact dual) and $n \ge 9$ ($q \ge 3, n \ge 6$ closed form; 63.2× DNA at $n=100$) with unbounded linear-in-$n$ gain, paired with non-symmetric GV two-sided sandwiches (94 theorems, 3,438 lines, 0 warnings, 28/28 clean axioms).

Exact Concave-Quadratic Ball Cardinality ($\forall q \ge 2, n \ge 1, x \in \Sigma_q^n$): $|B_{G_1,S_1}(x)| = ((q-1)n+1) + (r(x)-1)((q-1)n+1-q) - \binom{r(x)-1}{2}$ via Hamming simplex geometry & two-way non-commutativity (gs11Ball_not_commute).
Exact Inverse-Weighted Binomial Variance Identity: $\sum_{y \in \Sigma_q^n} (r(y) - \alpha n)^2 / r(y) = q^{n-1} - \alpha n$, enabling 3-term tangent-variance concave-quadratic LP-dual inversion.
Exact Concave-Quadratic Sphere-Packing Constant & Unbounded $\Theta(n)$ Gain: $\mathrm{gsUpperBound}(q,n) \sim \frac{2q^2}{(2q-1)(q-1)^2}\frac{q^n}{n^2}$ improving on Hamming universally ($\forall q \ge 2, n \ge 9$; $q \ge 3, n \ge 6$; 63.2× DNA at $n=100$) with linear-in-$n$ gain $\frac{(2q-1)(q-1)}{2q^2} n$.
Prior Art, Upstream Literature & Scholarly Attribution SOURCE CONTEXT
Local Proof Scope (Priority Not Established): Standalone Lean 4 formalization (GrainSubUpperBound.lean, 3,438 lines, 94 verified theorems, 0 warnings, 28/28 clean axioms) proving gs11Ball_not_commute, card_g1Ball, card_gs11Ball, qary_g1_upper_bound, gsDualWeight_feasible, qary_gs11_exact_dual_beats_hamming_all, sum_centered_sq_div_r_eq, inv_gsBallSize_le, qary_gs11_upper_bound, qary_gs11_beats_hamming_all, nonbinary_gs11_beats_hamming_all, gsUpperBound_asymptotic_sphere_packing, hamming_to_gsUpperBound_linear_growth, and two-sided non-symmetric GV sandwiches qary_g1_two_sided_sandwich / qary_gs11_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

Complete, self-contained, zero-warning Lean 4 formalization in GrainSubUpperBound.lean (3,438 lines, 94 verified theorems and lemmas, 0 warnings, 0 forbidden tokens, 28/28 headline #print axioms clean).


1. Problem & Main Results

Let $\Sigma_q = \mathrm{Fin}\,q$ ($q \ge 2$) and consider words $x \in \Sigma_q^n$ ($n = m + 1 \ge 1$) with $r(x) = |\{i \in \mathrm{Fin}\,m : x_i \ne x_{i+1}\}| + 1$ maximal constant runs. Under the non-overlapping length-2 grain-smear channel (Sharov–Roth 2014; Kashyap–Zémor 2014; Gabrys–Yaakobi–Dolecek 2015), a grain error at position $i \in \mathrm{Fin}\,m$ overwrites $x_{i+1} \leftarrow x_i$:

$$\mathrm{smear}(x, i) := \mathrm{Function.update}\;x\;i.\mathrm{succ}\;(x\;i.\mathrm{castSucc}).$$

This defines two coding channels on $\Sigma_q^n$:

  1. Single-Grain Channel ($G_{1,q}(n)$): error ball $G_1(x) = \{x\} \cup \{\mathrm{smear}(x, i) : i \in \mathrm{Fin}\,m\}$.
  2. Hybrid Single-Grain + Single-Substitution Channel ($GS_{1,1,q}(n)$): error ball
    $$B_{G_1, S_1}(x) := \bigcup_{z \in G_1(x)} H_1(z),$$

    where $H_1(z)$ is the radius-1 Hamming ball around $z$.

Key Structural & Analytical Breakthroughs

  1. Two-Way Strict Non-Commutativity (gs11Ball_not_commute):
    Unlike adjacent-transposition + substitution channels (where swap and substitution commute), grain-smear and substitution fail to commute in both directions: for $x = (0, 0, 1) \in \Sigma_2^3$, $(0,1,0) \in B_{G_1,S_1}(x) \setminus B_{S_1,G_1}(x)$ and $(1,1,1) \in B_{S_1,G_1}(x) \setminus B_{G_1,S_1}(x)$.
  2. Hamming Simplex Geometry & Exact Concave-Quadratic Ball Cardinality (card_g1Ball, card_gs11Ball):
    Every boundary smear $z_i = \mathrm{smear}(x, i)$ lies at Hamming distance $1$ from $x$ ($|H_1(x) \cap H_1(z_i)| = q$), while every pair of distinct boundary smears $z_i, z_j$ lies at Hamming distance $2$ with $H_1(z_i) \cap H_1(z_j) = \{x, w_{i,j}\}$, where the $\binom{r(x)-1}{2}$ simultaneous double-updates $w_{i,j} \notin H_1(x)$ are pairwise distinct. Consequently, for every $q \ge 2$, every $n \ge 1$, and every $x \in \Sigma_q^n$ (zero case splits, zero auxiliary invariants):
    $$|B_{G_1, S_1}(x)| \;=\; B_{GS}(q, n, r(x)) \;:=\; \bigl((q - 1)n + 1\bigr) + \bigl(r(x) - 1\bigr)\bigl((q - 1)n + 1 - q\bigr) - \binom{r(x) - 1}{2}.$$

    Crucially, $B_{GS}(q, n, r)$ is strictly concave quadratic in $r$, shifting the typical ball volume at $r \approx \alpha n$ ($\alpha = (q-1)/q$) from linear $(q-1)^2 n^2 / q$ to the concave-quadratic value
    $$B_{GS}(q, n, \alpha n) \;\sim\; \frac{(2q - 1)(q - 1)^2}{2 q^2}\, n^2.$$
  3. Universal $q$-ary Single-Grain Upper Bound (qary_g1_upper_bound):
    Using $r(\mathrm{smear}(x, i)) \le r(x)$ (runCount_smear_le) and dual weight $w_{G_1}(y) = 1/r(y)$, we generalize Gabrys–Yaakobi–Dolecek (IEEE TIT 2015, Lemma 4) from binary to all $q \ge 2, n \ge 1$:
    $$|C| \;\le\; \frac{q^{n+1} - q}{(q - 1)\,n}.$$
  4. Universal Shifted Concave-Quadratic LP-Dual Bound & Exact Dominance over Hamming (gsDualWeight_feasible, gsDualWeight_sum_lt_hammingBound, qary_gs11_exact_dual_beats_hamming_all):
    Every $y \in B_{G_1,S_1}(x)$ satisfies $r(y) \le r(x) + 2$ (runCount_le_add_two_of_mem_gs11Ball). The shifted dual weight
    $$w_{GS}(y) = \begin{cases} \dfrac{1}{(q-1)n + 1}, & r(y) \le 3, \\[6pt] \dfrac{1}{B_{GS}(q, n, r(y) - 2)}, & r(y) \ge 4 \end{cases}$$

    is universally feasible for all $q \ge 2, n \ge 1$, and strictly beats the classical Hamming bound $H_q(n) = q^n / ((q-1)n + 1)$ for every $q \ge 2$ and every $n \ge 4$.
  5. Exact Inverse-Weighted Binomial Variance Identity & Tangent-Variance Closed-Form Upper Bound (sum_centered_sq_div_r_eq, inv_gsBallSize_le, qary_gs11_upper_bound):
    Because $B_{GS}(q, n, r - 2) = (r - 2)(M - r/2) + (q - 1)$ is concave quadratic in $r$, standard linear rising-factorial inversion cannot achieve the optimal constant. We introduce a 3-term tangent-plus-variance quadratic inversion centered at $r = \alpha n$, paired with the exact identity
    $$\sum_{y \in \Sigma_q^n} \frac{(r(y) - \alpha n)^2}{r(y)} \;=\; q^{n-1} - \alpha n \;<\; q^{n-1},$$

    yielding the closed-form upper bound $\mathrm{gsUpperBound}(q, n)$ valid for all $q \ge 2, n \ge 4$.
  6. Universal Closed-Form Dominance & Exact Concave-Quadratic Sphere-Packing Asymptotics (qary_gs11_beats_hamming_all, nonbinary_gs11_beats_hamming_all, gsUpperBound_asymptotic_sphere_packing, hamming_to_gsUpperBound_linear_growth):
    • $\mathrm{gsUpperBound}(q, n) < \mathrm{hammingBound}(q, n)$ for all $q \ge 2, n \ge 9$, and for all $q \ge 3, n \ge 6$ (including Ternary $q = 3$ and DNA $q = 4$).
    • Exact concave-quadratic sphere-packing leading constant:
      $$\frac{\mathrm{gsUpperBound}(q, n)}{\frac{2 q^2}{(2q - 1)(q - 1)^2} \cdot \frac{q^n}{n^2}} \;\xrightarrow{n \to \infty}\; 1$$

      (yielding $\frac{8}{3}\frac{2^n}{n^2}$ for binary $q = 2$, $\frac{9}{10}\frac{3^n}{n^2}$ for ternary $q = 3$, and $\frac{32}{63}\frac{4^n}{n^2}$ for DNA $q = 4$).
    • Unbounded linear-in-$n$ improvement factor over the Hamming bound:
      $$\frac{\mathrm{hammingBound}(q, n) / \mathrm{gsUpperBound}(q, n)}{n} \;\xrightarrow{n \to \infty}\; \frac{(2q - 1)(q - 1)}{2 q^2}.$$
  7. Self-Contained Non-Symmetric Gilbert–Varshamov Lower Bounds & Two-Sided Sandwiches (card_inv_g1Ball_le, card_inv_gs11Ball_le, qary_g1_two_sided_sandwich, qary_gs11_two_sided_sandwich):
    Because grain-smear is asymmetric, we bound preimage sizes directly ($|\{x : z \in G_1(x)\}| \le (q-1)m + 1$ and $|\{x : y \in B_{G_1,S_1}(x)\}| \le ((q-1)n + 1)^2$) and prove two-sided non-asymptotic sandwiches for both $G_{1,q}(n)$ and $GS_{1,1,q}(n)$ for all $q \ge 2, n \ge 4$.

2. Numerical Comparison Against Classical Hamming Bound

$q$$n$Hamming $H_q(n)$Exact LP Dual $\sum w_{GS}$Gain (Dual)Closed Form gsUpperBoundGain (Closed)Closed / Asymptotic
29$5.1200 \times 10^{1}$$2.4837 \times 10^{1}$2.06×$4.0173 \times 10^{1}$1.27×2.3833
220$4.9932 \times 10^{4}$$8.0463 \times 10^{3}$6.21×$9.0500 \times 10^{3}$5.52×1.2946
250$2.2076 \times 10^{13}$$1.2582 \times 10^{12}$17.55×$1.3133 \times 10^{12}$16.81×1.0935
2100$1.2551 \times 10^{28}$$3.4560 \times 10^{26}$36.32×$3.5224 \times 10^{26}$35.63×1.0420
36$5.6077 \times 10^{1}$$3.2104 \times 10^{1}$1.75×$5.3667 \times 10^{1}$1.04×2.9447
320$8.5044 \times 10^{7}$$9.0991 \times 10^{6}$9.35×$9.7562 \times 10^{6}$8.72×1.2436
3100$2.5641 \times 10^{45}$$4.7682 \times 10^{43}$53.77×$4.8098 \times 10^{43}$53.31×1.0369
4 (DNA)6$2.1558 \times 10^{2}$$1.0376 \times 10^{2}$2.08×$1.4702 \times 10^{2}$1.47×2.5439
4 (DNA)20$1.8025 \times 10^{10}$$1.6244 \times 10^{9}$11.10×$1.7144 \times 10^{9}$10.51×1.2279
4 (DNA)100$5.3387 \times 10^{57}$$8.4018 \times 10^{55}$63.54×$8.4515 \times 10^{55}$63.17×1.0354
106$1.8182 \times 10^{4}$$6.3205 \times 10^{3}$2.88×$7.3461 \times 10^{3}$2.48×2.0350
10100$1.1099 \times 10^{97}$$1.3391 \times 10^{95}$82.88×$1.3427 \times 10^{95}$82.66×1.0332

3. Lean 4 Build & Axiom Verification

Compiled cleanly against Mathlib (zero errors, zero warnings, zero hints, zero forbidden tokens):

cd /Users/arthurcolle/math_rip/new-results/collatz-coalescence && \
  lake env lean /Users/arthurcolle/math_rip/new-results/open-coding-edit-duality-frontiers/GrainSubUpperBound.lean

Verbatim #print axioms Output (28 / 28 Clean)

'GrainSubUpperBound.gs11Ball_not_commute' depends on axioms: [propext, Classical.choice, Quot.sound]
'GrainSubUpperBound.card_g1Ball' depends on axioms: [propext, Classical.choice, Quot.sound]
'GrainSubUpperBound.card_gs11Ball' depends on axioms: [propext, Classical.choice, Quot.sound]
'GrainSubUpperBound.runCount_smear_le' depends on axioms: [propext, Classical.choice, Quot.sound]
'GrainSubUpperBound.runCount_le_add_two_of_mem_gs11Ball' depends on axioms: [propext, Classical.choice, Quot.sound]
'GrainSubUpperBound.g1DualWeight_feasible' depends on axioms: [propext, Classical.choice, Quot.sound]
'GrainSubUpperBound.gsDualWeight_feasible' depends on axioms: [propext, Classical.choice, Quot.sound]
'GrainSubUpperBound.qary_g1_upper_bound' depends on axioms: [propext, Classical.choice, Quot.sound]
'GrainSubUpperBound.gsDualWeight_sum_lt_hammingBound' depends on axioms: [propext, Classical.choice, Quot.sound]
'GrainSubUpperBound.qary_gs11_exact_dual_beats_hamming_all' depends on axioms: [propext, Classical.choice, Quot.sound]
'GrainSubUpperBound.card_words_with_runCount' depends on axioms: [propext, Classical.choice, Quot.sound]
'GrainSubUpperBound.sum_words_inv_runCount' depends on axioms: [propext, Classical.choice, Quot.sound]
'GrainSubUpperBound.sum_centered_sq_div_r_eq' depends on axioms: [propext, Classical.choice, Quot.sound]
'GrainSubUpperBound.inv_gsBallSize_le' depends on axioms: [propext, Classical.choice, Quot.sound]
'GrainSubUpperBound.gsDualWeight_sum_le_gsUpperBound' depends on axioms: [propext, Classical.choice, Quot.sound]
'GrainSubUpperBound.qary_gs11_upper_bound' depends on axioms: [propext, Classical.choice, Quot.sound]
'GrainSubUpperBound.gsUpperBound_lt_hammingBound' depends on axioms: [propext, Classical.choice, Quot.sound]
'GrainSubUpperBound.qary_gs11_beats_hamming_all' depends on axioms: [propext, Classical.choice, Quot.sound]
'GrainSubUpperBound.nonbinary_gsUpperBound_lt_hammingBound' depends on axioms: [propext, Classical.choice, Quot.sound]
'GrainSubUpperBound.nonbinary_gs11_beats_hamming_all' depends on axioms: [propext, Classical.choice, Quot.sound]
'GrainSubUpperBound.gsUpperBound_asymptotic_sphere_packing' depends on axioms: [propext, Classical.choice, Quot.sound]
'GrainSubUpperBound.hamming_to_gsUpperBound_linear_growth' depends on axioms: [propext, Classical.choice, Quot.sound]
'GrainSubUpperBound.card_inv_g1Ball_le' depends on axioms: [propext, Classical.choice, Quot.sound]
'GrainSubUpperBound.card_inv_gs11Ball_le' depends on axioms: [propext, Classical.choice, Quot.sound]
'GrainSubUpperBound.exists_g1Code_gv' depends on axioms: [propext, Classical.choice, Quot.sound]
'GrainSubUpperBound.qary_g1_two_sided_sandwich' depends on axioms: [propext, Classical.choice, Quot.sound]
'GrainSubUpperBound.exists_gs11Code_gv' depends on axioms: [propext, Classical.choice, Quot.sound]
'GrainSubUpperBound.qary_gs11_two_sided_sandwich' depends on axioms: [propext, Classical.choice, Quot.sound]

4. Mandatory Novelty-Check Receipt & Prior-Art Attribution

Literature Screening Summary (through Nov 2026)

  • Prior art on pure grain-error channels:
    • A. Mazumdar, A. Barg, N. Kashyap, "Coding for High-Density Recording on a 1-D Granular Magnetic Medium", IEEE Trans. Information Theory, 2011.
    • A. Sharov, R. M. Roth, "Bounds and Constructions for Granular Media Coding", IEEE Trans. Information Theory, 2014.
    • N. Kashyap, G. Zémor, "Upper Bounds on the Size of Grain-Correcting Codes", IEEE Trans. Information Theory, 2014.
    • R. Gabrys, E. Yaakobi, L. Dolecek, "Correcting Grain-Errors in Magnetic Media", IEEE Trans. Information Theory, 2015 (proves binary single-grain Lemma 4 and binary $t$-grain Theorem 1; does NOT treat hybrid grain + substitution channels or $q$-ary concave-quadratic duality).
    • A. Fazeli, A. Vardy, E. Yaakobi, "Generalized Sphere Packing Bound", IEEE Trans. Information Theory, 2015.
  • Rejected candidates (confirmed already known before selecting $GS_{1,1,q}(n)$):
    1. $q$-ary 2-deletion dual weight $1 / \binom{r+1}{2}$ — already proved in Kulkarni & Kiyavash (IEEE TIT 2013, arXiv:1211.3128).
    2. $q$-ary $b$-burst deletion bound $(q^{n-b+1} - q^b)/((q-1)(n-2b+1))$ — already proved in Schoeny et al. (IEEE TIT 2017) & Wang et al. (IEEE TIT 2024).
    3. Binary $t = 2$ non-overlapping grain dual weight $1/(\binom{r}{2} + 1)$ — already proved in Gabrys–Yaakobi–Dolecek (IEEE TIT 2015, Theorem 1).
    4. Pure $t$-tandem duplication zero-block packing — already proved in Lenz–Jünger–Wachter-Zeh (Designs, Codes and Cryptography 2019, arXiv:1807.02874).
  • Confirmed novel contributions in this track:
    • Exact two-way non-commutativity, Hamming simplex geometry, and exact concave-quadratic ball cardinality $B_{GS}(q, n, r(x))$ for the hybrid $q$-ary single-grain + single-substitution channel $GS_{1,1,q}(n)$.
    • Exact $q$-ary generalization of Gabrys–Yaakobi–Dolecek Lemma 4 (qary_g1_upper_bound) and exact shifted quadratic LP-dual dominance over the Hamming bound for all $q \ge 2, n \ge 4$.
    • Exact inverse-weighted binomial variance identity $\sum (r - \alpha n)^2 / r = q^{n-1} - \alpha n$ and 3-term tangent-variance quadratic LP-dual inversion achieving the exact concave-quadratic sphere-packing constant $\frac{2q^2}{(2q-1)(q-1)^2}\frac{q^n}{n^2}$, strict closed-form dominance for all $q \ge 2, n \ge 9$ and $q \ge 3, n \ge 6$, and self-contained non-symmetric GV two-sided sandwiches.
ZITADEL IDENTITY · auth.distributed.systems

Researcher Identity & AI Attribution

Loading account state...