Skip to content

10c: lower bound 7/√17 → 5/√8 from the perfect [7,4] Hamming code - #170

Merged
teorth merged 1 commit into
teorth:mainfrom
HowieHwong:spencer-lower-5-sqrt8
Sep 26, 2026
Merged

teorth merged 1 commit into
teorth:mainfrom
HowieHwong:spencer-lower-5-sqrt8

Conversation

@HowieHwong

Copy link
Copy Markdown
Contributor

An 8×8 matrix over ${-1,0,1}$ with exact discrepancy 5, giving $C_{10c} \ge 5/\sqrt{8} = 5\sqrt2/4 \approx 1.767766953$, against the recorded $7/\sqrt{17} \approx 1.697749$.

The one thing a reviewer should look at first. Every lower bound recorded on this page so far uses a sign matrix. This one does not — column 8 is identically zero. That is inside the definition of $C_{10c}$ as stated at the top of the entry, and the upper-bound side quantifies over the same set: [PV2022]'s Theorem 4.5 reads "for every $A\in[-1,1]^{n\times n}$". If the intent of the entry is that lower bounds be restricted to sign matrices, then this submission does not belong and I would rather that be said than have the row stand — within sign matrices, $7/\sqrt{17}$ is untouched by this.

The zero is not a technicality; it is the mechanism. In a sign matrix at even $n$, $(Ax)_i = n - 2|S \triangle T_i|$ is always even, so the discrepancy is even, and beating 4 at $n=8$ would require $K(8,1)\le 16$ whereas $K(8,1)=32$. One zero column breaks that parity constraint.

Checkable by hand, per the contributing guidelines. The eight rows are the perfect $[7,4]$ Hamming code. The sets $T_i$ and their complements are its 16 codewords, and their radius-1 balls partition ${0,1}^7$ ($16\cdot 8=128=2^7$) — so the covering condition holds with zero slack. The entry prints the matrix, the $T_i$, and the full distribution of $\lVert Ax\rVert_\infty$ over all $2^8$ sign vectors (5 for 224 of them, 7 for 32). Nothing needs downloading.

Also included: 5 is optimal at $n=8$. By Kleitman's diameter theorem each row certifies at most 18 of the 256 sign vectors, and $8\cdot 18 = 144 < 256$, so $\mathrm{disc}(A)\le 5$ for every $A\in[-1,1]^{8\times 8}$. The same counting gives the exact optima at $n=2$ and $n=4$; those three are the zero-slack cases and are now all attained.

How it was found, since it may be reusable: the reduction in this entry turns the problem into a covering-code question, and evaluating $(n-2r)/\sqrt{\max(n,P)}$ over Kéri's published table of $K(n,R)$ bounds returns $5/\sqrt8$ as the best value available by lookup — from the row Kéri marks as a perfect code. The second-best is $7/4$ and the third is $7/\sqrt{17}$, the bound recorded here. A search in the same framing rediscovers [L2026]'s $n=17$ certificate from scratch in under a second, which is the sensitivity check for the negative results at larger $n$: no published $K(n,R)$ upper bound for $18\le n\le 33$ is small enough to beat $5/\sqrt8$, so going further would mean improving a covering-code bound by 20–50%.

README table cell and Recent progress line updated in the same commit, per CONTRIBUTING.

Separately, I have filed #168 about the upper-bound row on this same page recording a value its source has since corrected by erratum; I have deliberately not touched it here.

…ng code

An 8x8 matrix over {-1,0,1} with exact discrepancy 5, giving
C_10c >= 5/sqrt(8) = 1.767766953.

Every lower bound recorded here so far uses a sign matrix. This one does not:
column 8 is identically zero. That is within the definition of C_10c, and the
upper-bound side quantifies over the same set -- [PV2022] Theorem 4.5 reads "for
every A in [-1,1]^{n x n}". The zero matters mathematically: in a sign matrix at
even n every (Ax)_i is even, so beating discrepancy 4 at n=8 would need
K(8,1) <= 16, whereas K(8,1) = 32.

The eight rows are the perfect [7,4] Hamming code. Their radius-1 balls
partition {0,1}^7, so the covering condition holds with no slack at all, and the
certificate is checkable by hand from the sets printed in the entry.

Also included: a proof that 5 is optimal at n=8, by Kleitman's diameter theorem
-- each row certifies at most 18 of the 256 sign vectors and 8*18 = 144 < 256.
Together with n=2 and n=4 that settles the three zero-slack cases of this
counting bound exactly.

README table cell and Recent progress updated in the same commit.
@curious7-web

Copy link
Copy Markdown

Ran this $8 \times 8$ construction through the Bansal-style Gram SDP relaxation tracked in #67 to check how the continuous relaxation handles the covering code structure without the discrete parity constraint.

Numerical findings ($n=8$):

  • Discrete discrepancy: $5.0000$ ($\approx 1.7678\sqrt{n}$)
  • SDP optimal $t$: $3.2087$
  • SDP bound ($\sqrt{t}$): $1.7913$ ($\approx 0.6333\sqrt{n}$)

For comparison, an $8 \times 8$ Sylvester Hadamard baseline yields $t = 8.0000 \implies 1.0000\sqrt{n}$ in the same relaxation.

The large integrality gap ($5 / 1.7913 \approx 2.79$) cleanly illustrates that the strength of this certificate relies heavily on the discrete covering geometry and the parity obstruction broken by the zero-column; once relaxed to the unit sphere ($X \succeq 0, \text{diag}(X)=1$), the continuous solver exploits the slack to decouple the row correlations down to $0.6333\sqrt{n}$. Consistent with what @whyihaveyou observed on the $17 \times 17$ certificate in #67.

@teorth
teorth merged commit 999e1e9 into teorth:main Sep 26, 2026
teorth added a commit that referenced this pull request Sep 26, 2026
Resolved against #170 on the shared C_10c README row: that PR sets the lower
bound to 1.767767, this one the upper bound to 4.1, so the row carries both.

Also closed the list breaks that #178 and this PR each introduced by leaving
a blank line before their changelog bullet, which split "Recent progress"
into three separate lists.

Co-Authored-By: Claude Opus 5 <[email protected]>
teorth added a commit that referenced this pull request Oct 18, 2026
The changelog line arrived with a "  * " marker, which nests it as a
sub-list, and landed at the top of "Recent progress" rather than at its
date. Reformatted and moved to 5 September, taking the equally misplaced
10c entry from #170 with it.

Key renamed [Z2026] -> [Kor2026] to match the author, and the reference
now links the Zenodo v2 record the PR body cites, noting v1; the two had
disagreed between the body and the changelog line.

Co-Authored-By: Claude Opus 5 <[email protected]>
@arhancanli

Copy link
Copy Markdown

Independent replay of the bound this pull request added, $C_{10c} \ge 5/\sqrt{8} \approx 1.767767$ ([H2026], the $8 \times 8$ matrix over ${-1, 0, 1}$ with column 8 zero), with our own code, from the matrix as printed on the 10c page (main at 87b4ebb). It holds: $\mathrm{disc}(A) = 5$ exactly.

statement result
the matrix $8 \times 8$, entries in ${-1, 0, 1} \subset [-1, 1]$, column 8 identically zero, no repeated row; the page's sets $T_i$ are exactly the $-1$ positions in columns 1 to 7
$\mathrm{disc}(A) = \min_{x \in {\pm 1}^8} \lVert Ax\rVert_\infty = 5$ yes, by two exhaustive routes that share no code (a Gray-code walk updating $Ax$ in integers; bit masks for the $+1$ and $-1$ entries of each row): $\lVert Ax\rVert_\infty$ is 5 for 224 of the 256 sign vectors and 7 for 32, the distribution the page states; the page's example $x = (-1,-1,-1,-1,-1,-1,1,-1)$ gives $\lVert Ax\rVert_\infty = 5$
the bound $5/\sqrt{8} = 1.767766952966\ldots$

Red controls, all as expected: the entry in row 1, column 1 flipped gives discrepancy 3, so the changed matrix is refused; a claimed discrepancy of 6 is refused; with column 8 set to $+1$ (a sign matrix at even $n$) the discrepancy is 4, even, as the page's parity remark says; both routes equal a naive triple loop on 60 random matrices over ${-1, 0, 1}$.

A small point on the README. Its 10c cell prints the lower bound as 1.767767, which is $5/\sqrt{8}$ rounded up (by $4.7 \cdot 10^{-8}$); a truncation such as 1.767766 is the decimal the matrix certifies. The page's own rows write it with $\approx$ next to the exact form, so only the cell is affected. We did not check the optimality argument at $n = 8$ (Kleitman's theorem).

Re-derive from https://github.com/arhancanli/quantavane-replays/tree/2450be8a2fdb2b06f217583615bd252476b9a370/c10c: ./fetch.sh && ./run_all.sh (Python 3.9+, standard library only; about 20 seconds for all four certificates on the 10c page; results/c10c.txt). We have no connection with the author. Prepared with AI assistance (Claude, Anthropic).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants