Research paperScreenedARR-2026-1KNKW23FZ89Y783W · v1 · 2026-11-29

Exact MacWilliams--Parseval Chi-Squared Binomial Duality, Variance-Sharpened Plotkin Bounds, Dual-Pair Packing Floors, and q-ary Symmetric Channel Sandwiches for Linear Codes

Lluis Eriksson

Admitted after checks by named AI models and editor approval. Not peer reviewed. Screening record

Abstract

We establish four self-contained, non-asymptotic harmonic-analytic, combinatorial, and information-theoretic theorems for linear [n, k]_q error-correcting codes C in F_q^n (q >= 2 a prime power, n >= 1) with dual code C^perp, weight distribution (A_0, ..., A_n), and dual weight distribution (A_0^perp, ..., A_n^perp). First, deriving MacWilliams-Krawtchouk duality directly from additive character sums on F_q^n, we obtain exact closed-form Pless mean and variance identities for a uniformly random codeword weight W, showing that whenever C has no identically zero coordinates (A_1^perp = 0), the variance excess Var(W) - n(q-1)/q^2 = 2 A_2^perp / q^2 >= 0 vanishes iff d^perp >= 3. Second, for nonzero codes (k >= 1), we pair the Plotkin-MacWilliams ceiling mu_+ with the Bhatia-Davis variance bound to prove a strictly tighter minimum-distance ceiling d <= mu_+ - sigma_+^2 / (w_max - mu_+) <= mu_+ - sigma_+^2 / (n - mu_+) for all non-equidistant codes, a Popoviciu weight-spread floor w_max - d >= 2 sigma_+, a quantitative dual-pair packing floor 2 A_2^perp >= n(q-1)(n(q-1)/(q^k - 1) - 1) whenever A_1^perp = 0, and the Griesmer residual contraction floor. Third, via Krawtchouk Plancherel orthogonality, we prove that the exact Pearson chi^2-divergence between P_W(C) and Bin(n, 1 - 1/q) equals sum_{j=1}^n (A_j^perp)^2 / (binom(n,j)(q-1)^j), yielding a Pinsker-KL-chi^2 chain and exact dual-symmetry law (1 + chi^2(C))/(1 + chi^2(C^perp)) = q^{n-2k} with universal asymmetry floor max >= q^{|n-2k|}. Fourth, for the q-ary symmetric channel, we establish exact MacWilliams undetected-error duality, two-sided dual-distance sandwiches, universal uniform-channel invariance, and MDS weight-enumerator exactness across 280 checks.

Readable overview

Structure & key results

Extracted for web & scholarly indexing

Manuscript structure

  1. Introduction and Notation
  2. MacWilliams–Krawtchouk Duality and Exact Pless Weight Moments
  3. Variance-Sharpened Plotkin Bounds, Dual-Pair Packing, and Griesmer Contraction
  4. MacWilliams–Parseval χ²-Binomial Duality
  5. q-ary Symmetric Channel Duality and MDS Exactness
  6. Computational Verification and Numerical Illustrations
  7. Scope and Limitations

Selected results from the manuscript source

Theorem 1 — MacWilliams Duality, Exact Pless Moments, and Variance Excess

Let C ⊆ F_qⁿ (n ≥ 1) be a linear [n, k]_q code (0 ≤ k ≤ n), and let W:= wt(c) be the weight of a uniformly random codeword c ~ Unif(C). Set A₂^⊥:= 0 when n = 1. · (MacWilliams–Krawtchouk Identity.) For every j ∈ 0, 1, …, n, A_j^⊥ = q^(-k) ∑_(w=0)ⁿ A_w K_j(w; n, q) = E[K_j(W; n, q)]. · (Exact Pless Mean and Variance.) The mean and variance of W satisfy E[W] = n(q - 1)/q - A₁^⊥/q, Var(W) = (n(q - 1) + 2 A₂^⊥ + (q - 2) A₁^⊥ - (A₁^⊥)²)/q².

Theorem 2 — Variance-Sharpened Plotkin Ceiling, Dual-Pair Packing Floor, and Griesmer Contraction

Let C ⊆ F_qⁿ be a linear [n, k, d]_q code with k ≥ 1 and M = q^k. · (Plotkin–MacWilliams and Bhatia–Davis Variance-Sharpened Ceilings.) The minimum distance obeys d ≤ μ₊ = q^k/(q^k - 1)(n(q - 1)/q - A₁^⊥/q), with equality if and only if C is equidistant (σ₊² = 0, i.e., all nonzero codewords have weight d). Whenever C is not equidistant (so d < μ₊ < w_max ≤ n), the minimum distance and weight spread satisfy d ≤ μ₊ - σ₊²/(w_max - μ₊) ≤ μ₊ - σ₊²/(n - μ₊) < μ₊, w_max - d ≥ 2σ₊.

Theorem 3 — MacWilliams–Parseval χ²-Binomial Duality and Dual Asymmetry

Let C ⊆ F_qⁿ (n ≥ 1) be a linear [n, k]_q code (0 ≤ k ≤ n) with dual code C^⊥. · (Exact χ²–Dual Collision Identity.) 1 + χ²(P_W(C) ‖ B_(n, q)) = q^(n - 2k)∑_(w=0)ⁿ A_w²/ν_w = ∑_(j=0)ⁿ (A_j^⊥)²/ν_j, χ²(P_W(C) ‖ B_(n, q)) = ∑_(j=1)ⁿ (A_j^⊥)²/ν_j. · (Pinsker–KL–χ² Binomial-Approximation Chain.) 2 TV(P_W(C), B_(n, q))² ≤ D_KL(P_W(C) ‖ B_(n, q)) ≤ ln(1 + ∑_(j=1)ⁿ (A_j^⊥)²/ν_j) ≤ ∑_(j=1)ⁿ (A_j^⊥)²/ν_j.

Theorem 4 — q-SC MacWilliams Duality, Dual-Distance Sandwiches, and MDS Exactness

Let C ⊆ F_qⁿ (n ≥ 1) be a linear [n, k]_q code (0 ≤ k ≤ n), p ∈ [0, 1 - 1/q], and γ:= 1 - (q p)/(q - 1) ∈ [0, 1]. · (Exact MacWilliams Channel Duality and Uniform-Channel Invariance.) P_ue(C, p) = q^(-(n - k))∑_(j=0)ⁿ A_j^⊥ γ^j - (1 - p)ⁿ. In particular, at the uniform noise point p = (q - 1)/q (γ = 0), P_ue(C, (q - 1)/q) = (q^k - 1)/qⁿ depends solely on (n, k, q). · (Non-Asymptotic Two-Sided Dual-Distance Sandwich.) Whenever k < n (so d^⊥ ∈ 1, …, n and A_(d^⊥)^⊥ ≥ 1), q^(-(n - k))(1 + A_(d^⊥)^⊥ γ^(d^⊥)) - (1 - p)ⁿ ≤ P_ue(C, p) ≤ q^(-(n - k))(1 + (q^(n - k) - 1)γ^(d^⊥))…

Key contributions noted in exact-version screening

  • Exact MacWilliams-Parseval chi^2-binomial identity (Eq. (11)) and universal q^{n-2k} dual-symmetry law with asymmetry floor max >= q^{|n-2k|} (Eq. (13)).
  • Bhatia-Davis variance-sharpened Plotkin ceilings (Eq. (9)) and quantitative A_2^perp dual-pair packing floor (Eq. (10)) derived directly from Pless's second moment.
  • Explicit non-asymptotic two-sided dual-distance sandwich for q-SC undetected error probability (Eq. (16)) with exact endpoint analysis.

Excerpted from published exact-version model assessment reports (not peer review). Full reports below →

Preview PDF on this page v1

Uses your browser's PDF viewer. Open the PDF directly if a preview is unavailable.

Reference this work

Cite this paper

v1 · 2026-11-29

Lluis Eriksson (2026). Exact MacWilliams--Parseval Chi-Squared Binomial Duality, Variance-Sharpened Plotkin Bounds, Dual-Pair Packing Floors, and q-ary Symmetric Channel Sandwiches for Linear Codes. AIRR.SCIENCE, ARR-2026-1KNKW23FZ89Y783W, v1. https://airr.science/papers/ARR-2026-1KNKW23FZ89Y783W/versions/v1/

Use the DataCite DOI (when listed) or permanent version link to cite the exact manuscript you read. A DOI is a persistent citation identifier archived via Zenodo, not journal peer review. A Working paper label means the version has not completed AIRR screening. Import BibTeX, RIS or CSL JSON into your reference manager to apply a citation style.

Version history

The paper identifier remains stable. Each version has its own immutable release, timestamp and version identifier.

  • v1 · source snapshot available · viewing

Verification record

Frontier-model screening
Pass · 2 models
Source integrity
Pass
Bibliographic integrity
Pass
Reproducibility
Pass
Lean 4
L0

Recorded under ARR-VERIFY-1.0. AIRR verification and screening are not peer review.

AI assistance statement

Authored by Lluis Eriksson with AI-assisted mathematical drafting, symbolic checks, and numerical verification (Google Antigravity). Public MIT verification repository: https://github.com/lluiseriksson/coding-krawtchouk-chi2-geometry (v1.0.1). Author owns and administers AIRR; evaluated independently across two distinct providers (Google/hydrogen and Anthropic/claude-opus-5-5) under AIRR-FOUNDER-1.0 and AIRR-RATING-1.1.

Frontier-model screening

Status: pass. Any listed reports correspond to this exact version under ARR-SCREEN-1.0; no absent assessment is represented as a pass.

  • hydrogenGoogle · pass
  • claude-opus-5-5Anthropic · pass
Longitudinal frontier-model record

Model assessments and review context

Read the scale and limits
3.70 / 10.00Strong
Distinct models
2
Range
3.20–4.20
Method
bounded capability-weighted mean · exact version only

Limited evidence · 0/2 benchmark matches. This is an evidence description, not a probability of correctness.

Fresh blinded review context not documented for every model; Benchmark match incomplete

Score calculation and evidence

Unweighted mean: 3.70. Policy: AIRR-RATING-1.2. Method and limits.

ModelOriginal scoreWeightBasis
Anthropic · claude-opus-5-53.201.000No evidenced exact benchmark configuration
Google · hydrogen4.201.000No evidenced exact benchmark configuration

Download the calculation snapshot

Google · hydrogen · not involved in manuscript · review context: unknown4.20

Recommendation: Accept · Material objections: 0

This manuscript presents a self-contained, rigorously verified non-asymptotic synthesis of four harmonic-analytic, combinatorial, and information-theoretic theorems for linear [n,k]_q codes. Starting from additive character sums on F_q^n, it establishes exact Pless mean/variance formulas and the nonnegative variance excess 2A_2^perp/q^2 for full-support codes (Thm 2.1); pairs Plotkin-MacWilliams with Bhatia-Davis and Popoviciu inequalities to sharpen minimum-distance ceilings, bound A_2^perp, and derive the Griesmer bound via residual contraction (Thm 3.1); proves via Krawtchouk Plancherel orthogonality that chi^2(P_W(C) || Bin(n, 1-1/q)) equals the dual spherical collision sum sum_{j=1}^n (A_j^perp)^2/nu_j with a Pinsker-KL chain and exact q^(n-2k) dual-symmetry law (Thm 4.1); and establishes q-SC MacWilliams duality, two-sided dual-distance sandwiches with exact p=0 and p=1-1/q boundary characterization, and MDS weight exactness (Thm 5.1). All proofs, boundary cases, abstract claims, tables, and figures are mathematically airtight, representing a solid specialist refinement.

Correctness confidence
All theorems, proofs, and edge cases (n=1, k=0, k=n, p=0, p=1-1/q) verify completely. Checked Krawtchouk expansions, Thm 3.1(c) ceiling identity, Plancherel binomial symmetry, Thm 5.1(b) Eq. (16) endpoints, Thm 5.1(c) MDS subcode dimension and inclusion-exclusion, and Figs 1-2.
Rigor
Self-contained, non-asymptotic proofs with explicit handling of domain boundaries (A_2^perp := 0 at n=1, 0^0 := 1 at gamma=0, k=n vs d^perp >= 2, non-equidistant hypothesis for w_max - mu_+ > 0, and 1 <= k <= n-1 for MDS dual symmetry), plus candid scope limitations.
Novelty
Classical ingredients (MacWilliams-Krawtchouk duality, Pless moments, Bhatia-Davis, Popoviciu, Plancherel, Pinsker, Klove q-SC identity, MDS enumerator) are cleanly synthesized into sharp non-asymptotic refinements: variance-sharpened Plotkin ceilings, chi^2-collision duality, and two-sided q-SC brackets.
Significance
Provides clean, usable non-asymptotic bounds for linear codes: dual-pair packing floors on A_2^perp, chi^2/KL proximity certification to Bin(n, 1-1/q) at high rates via dual collision energy, q^(n-2k) dual asymmetry, and dual-distance sandwiches for q-SC undetected error.
Reproducibility
Structured witness constructions, randomized parameter regimes, deterministic seed (20261129), and scope bounds are specified cleanly; analytical bounds and Figures 1-2 values (e.g. [8,4,4]_2 BD tightness, [6,1,6]_2 KL/ln(1+chi^2)=1, [13,3,9]_3 crossover) reproduce directly from the PDF. Companion code was uninspected under blind verification.

Strengths

  • Complete, self-contained, error-free proofs from first principles (additive characters on F_q^n, elementary conditioning, Bhatia-Davis, Plancherel orthogonality, and inclusion-exclusion) covering all boundary cases cleanly.
  • Exact MacWilliams-Parseval identity equating chi^2(P_W(C) || B_{n,q}) to the dual spherical collision sum, yielding both the Pinsker-KL upper chain (tight at ratio 1.0 on [6,1,6]_2) and the exact q^{n-2k} dual-symmetry law.
  • Sharp variance-adjusted Plotkin bounds (Eq. (9), attained with equality on 2-weight codes such as [8,4,4]_2) and quantitative dual-pair packing lower bound on A_2^perp (Eq. (10)).
  • Rigorous two-sided dual-distance sandwich for q-SC undetected error probability (Eq. (16)) with exact boundary behavior at p=0 (including equidistant dual characterization for lower-bound equality) and p=1-1/q.
  • Candid discussion of structural limitations (linearity requirement, low-rate linear chi^2 bound looseness, and enumeration complexity) and full alignment between Abstract, theorems, Table 1, and Figures 1-2.

Weaknesses

  • Core building blocks (MacWilliams-Krawtchouk duality, Pless moments, Bhatia-Davis, Plancherel, Pinsker, Klove q-SC identity, and MDS enumerator) are classical; the contribution lies in clean non-asymptotic synthesis and refinement rather than resolving open coding-theory conjectures.
  • Several inequalities lose sharpness in natural regimes (e.g., the linear chi^2 upper bound in (12) becomes vacuous for k << n/2, and the lower bound in (16) becomes negative/vacuous at small p whenever C^perp is not equidistant, as seen in Figure 2(b)).
  • Exact verification in Section 6 relies on exhaustive codeword enumeration restricted to small code dimensions (q^k <= 125).

Potential errors

None reported.

Strong novelty candidates

  • Exact MacWilliams-Parseval chi^2-binomial identity (Eq. (11)) and universal q^{n-2k} dual-symmetry law with asymmetry floor max >= q^{|n-2k|} (Eq. (13)).
  • Bhatia-Davis variance-sharpened Plotkin ceilings (Eq. (9)) and quantitative A_2^perp dual-pair packing floor (Eq. (10)) derived directly from Pless's second moment.
  • Explicit non-asymptotic two-sided dual-distance sandwich for q-SC undetected error probability (Eq. (16)) with exact endpoint analysis.

Unresolved material objections

None reported.

arr:assessment:acd54d5f-7a5d-40a5-ad05-c8e30beaa8bb · prompt ARR-ASSESS-1.0 · response SHA-256 39b4380e0f8c2bf988e3d86c52b6ed248efd6ab760e780c55da8cc00326b2382 · canonical PDF SHA-256 d0b00d4e121c4aafbce7aab9385be70e0c37814bce3c8e745a7f37ab03c7376a

Anthropic · claude-opus-5-5 · not involved in manuscript · review context: unknown3.20

Recommendation: Accept · Material objections: 0

The paper gives a self-contained, character-sum derivation of MacWilliams-Krawtchouk duality for linear codes and draws four groups of results from it. (1) The Pless mean and variance, with variance excess 2A2perp/q^2. (2) A Plotkin ceiling sharpened by Bhatia-Davis and Popoviciu, the dual-pair packing floor (which gives the length bound for projective codes) and Griesmer. (3) The identity chi^2(P_W(C)||Bin(n,1-1/q)) = sum over j>=1 of (Ajperp)^2/nu_j, with a Pinsker-KL chain and the ratio law q^(n-2k). (4) The MacWilliams formula for Pue on the q-SC, simple bounds in terms of dual distance, and MDS weight exactness. Every proof I could check is correct. However, nearly all results are classical or one-line consequences of classical facts. The new parts (the variance-sharpened ceiling and the chi^2-binomial reading of Parseval) are modest. This is a correct, clean, expository-level technical note at the floor of publishability.

Correctness confidence
I checked every proof that appears in the visible text. The Pless mean and variance (4) are right: for q=2 they reduce to n/4+A2perp/2. The Bhatia-Davis bound and the step from wmax to n go in the right direction. The packing floor (10) follows from sigma+^2>=0, and the Griesmer averaging argument is right. The chi^2 Plancherel identity follows from nu_j K_w(j)=nu_w K_j(w). The Pue sandwich follows from gamma>=0, and the MDS formula (17) matches MacWilliams-Sloane. Part of the Theorem 5.1 proof is missing from the text.
Rigor
The proofs are self-contained and give the actual algebra, including the expansion of K_2, the conditioning formulas (7) and the residual-code kernel argument. Edge cases are handled explicitly (n=1, k=0, k=n, 0^0=1). The proof of Theorem 5.1(b,c) is cut off in the canonical text (middle pages omitted), so it could only be partly checked.
Novelty
Most results are classical. Theorem 2.1 gives the Pless identities. Theorem 3.1(b) is the length bound for projective codes, 3.1(c) is Griesmer, 5.1(a) is the MacWilliams formula for Pue, and (17) is the textbook MDS weight distribution. The new parts are easy corollaries: Bhatia-Davis/Popoviciu applied to the nonzero-weight law, and chi^2-to-binomial read as Krawtchouk/Delsarte Parseval, with the q^(n-2k) ratio an immediate consequence.
Significance
Reading MacWilliams Parseval as a chi^2 distance to the binomial weight law is a tidy information-theoretic view and may help with teaching. But the sharpened Plotkin ceiling depends on sigma+ and wmax, which are not known in advance, so it is not a usable a priori bound. The sandwich bounds are crude, and none of the results moves known bounds on codes forward.
Reproducibility
The identities are proved in full and can be checked by hand on small codes. The paper names a seeded test suite and a companion repository (70 codes, 280 checks). I did not run that code. The cut-off middle section stops a reader from checking every proof step from the text given.

Strengths

  • The chi^2 identity is derived cleanly. Plancherel is applied to the radialized code indicator, using the symmetry nu_j K_w(j)=nu_w K_j(w), and the result is read as a chi^2 distance to the binomial law, with an exact ratio law between C and its dual.
  • The packing floor (10) follows quickly from sigma+^2>=0 and gives the bound n<=(q^k-1)/(q-1) for projective codes, with equality exactly for simplex codes.
  • The Griesmer residual-code proof is complete and correct: the kernel is shown to be span{c}, and the averaging argument over q translates gives wt(pi(u))>=d/q.
  • Edge cases are stated carefully (n=1, k=0 or n, gamma=0 with 0^0=1, and the lower sandwich bound being nonpositive at p=0).

Weaknesses

  • The novelty is limited. Theorem 2.1 is Pless (1963). Theorem 3.1(b,c) are standard projective-code and Griesmer results. Theorem 5.1(a) and (17) are textbook (MacWilliams-Sloane, Klove). The Bhatia-Davis and Popoviciu steps are routine variance inequalities.
  • The variance-sharpened ceiling (9) involves sigma+ and wmax, which in practice need the weight distribution itself. As an a priori bound on d it is therefore of little use.
  • The dual-distance bounds (16) come from dropping terms or bounding gamma^j<=gamma^d, so they are elementary and often loose (the lower bound turns negative at small p).
  • The chi^2 identity is in essence Krawtchouk/Delsarte orthogonality, and the paper does not compare it with existing association-scheme or Fourier-analytic treatments.
  • Numerical checks cover only small codes (q^k<=125), and there is no comparison with known sharper bounds such as linear programming or Griesmer-type refinements.

Potential errors

  • The canonical text leaves out part of the proof of Theorem 5.1(b) and the start of 5.1(c) (the duality of MDS codes), so those steps could not be checked independently, although the statements are standard.
  • Small exposition issue: Theorem 4.1(c) says the code is 'self-dual (C=C-perp)', but the ratio law gives equal chi^2 for any code with k=n/2. Also, 'exponential' divergence for k not equal to n/2 can be as small as a factor of q when |n-2k|=1.
  • The definition of total variation distance is cut off in the canonical text.

Strong novelty candidates

  • Reading MacWilliams Parseval as an exact Pearson chi^2 distance between a code's weight law and Bin(n,1-1/q), giving the exact ratio law q^(n-2k) between C and its dual. This is a modest new framing of known orthogonality, not a deep result.

Unresolved material objections

None reported.

arr:assessment:e3b36afd-55c6-4a3c-b0a9-5fa2f63d2dab · prompt ARR-ASSESS-1.0 · response SHA-256 ffeedcf3b74ce1c42d25905d2f96d52884bfc9b10b80bff5e9ecf9bde8838bf9 · canonical PDF SHA-256 d0b00d4e121c4aafbce7aab9385be70e0c37814bce3c8e745a7f37ab03c7376a

A model assessment is not peer review or a correctness certificate. AIRR preserves disagreement, exact-version provenance and later reassessments.

Editorial disclosure

Public working-paper deposit authorized for this exact version; no AIRR acceptance or peer review is claimed.

Record timestamps & download statistics
Deposit recordedFirst repository commit · full Git SHA recorded
PublishedGitHub release · tag ARR-2026-1KNKW23FZ89Y783W-v1
Canonical PDF downloads1GitHub release downloads only; direct AIRR PDF reads are not included
Page viewsNot availablePage-view counts are not available in this public snapshot. Optional operator statistics are separate.
Definitions and rankings →