Row-parity advice saves reads, but is not exactly optimal
Working research note, 3 October 2026.
The foundations program asks when saved work can support future computation with bounded local access and allocation. Its current test is composition: after preparing a binary matrix independently of a query, how much of the stored information must be read to answer ?
The quadratic lower bound already establishes the optimal order when stored bits may be any injective linear encoding. The remaining question concerns the constant. Storing each row’s parity gives a better benchmark than raw entries alone: if a query selects most of a row, read its parity and the few excluded entries. The resulting mean cost is Thus the quadratic order survives a saving of order .
Could full-row advice be exactly optimal? In the model that grants advice reads for free, a two-by-two counterexample answers no. This finite example leaves the asymptotic leading constant and the best secondary term unresolved.
Contents
1. Which reads are counted?
Work over , with independent uniform , including zero. In the systematic model, store every entry of and parity bits , for fixed public matrices . Addresses and layout are public and fixed; these bits are the entire matrix-dependent initial state. There is no additional cache, metadata or pointer channel. Algorithms are deterministic and exact for every matrix and query. Local computation, allocation and query-only preparation are free; charge all observations of old bits through the final answer, including any work deferred after a composition handle.
Put , , and . The existing support characterization gives the exact charged optimum, on every matrix: Each chosen parity replaces the corresponding raw-entry linear functional; the residual entries and chosen parity bits must both be read. Granting the parities free instead gives . Hence These quantities share their leading quadratic asymptotics, but are not equal. The chosen generating set can affect the charged cost.
The original model also permits an arbitrary invertible change of matrix coordinates. Its free-advice expression is , where is public and invertible. That change need not preserve Hamming weight. A lower bound proved only for systematic storage therefore does not settle the original all-encoding question. The construction below is allowed in both.
2. The score formulation and row-parity construction
For binary matrices, using an integer inner product, Define the score . Since , For a sequence of codes, retaining the leading constant is equivalent to this expected maximum being .
Let . Its full-row generators have disjoint supports. With , a selected row contributes score , while an unselected row contributes . Therefore Writing for its free-advice mean gives For the binomial identity, use and telescope over .
When row-parity reads are charged, a selected row costs . Disjoint row supports make these choices independent in (1), so this is the encoding’s exact optimum, including adaptive algorithms. Its mean is The second equality holds for odd sizes too: the difference of the two minima is exactly the indicator of . Stirling’s formula gives .
Storage is bits and matrix preparation costs Boolean operations. Computing the query weights takes query-only work. The compact affine fragments remain and : boundary width , coefficient description size , and the established fixed-shape named CNF encoding has total size , including auxiliary variables. The saved reads have order , or along this family. The total mean remains quadratic in . A universal lower bound is already excluded by this construction; a lower bound remains possible.
3. A complete two-by-two counterexample
Let have one entry equal to one and let be all ones. The dimension-two code beats full-row advice in free mean distance. The sixteen equally likely pairs can be classified completely:
| Query matrix | Number of pairs | Sum of distances to |
|---|---|---|
| Zero | 7 | 0 |
| Singleton | 4 | 3 |
| Two-entry row or column | 4 | 4 |
| All ones | 1 | 0 |
The singleton belongs to the code; the other three singletons have distance one. Each two-entry row or column has distance one, using or its complement. Thus Equivalently its mean saving is , exceeding the row code’s . This refutes the proposed exact inequality for every code of dimension at most . It does not assert an improvement in charged cost or refute an asymptotic conjecture.
4. Why a generator search can miss an improvement
An explicit even-size family also explains the finite search issue. For even , let contain matrices with It has dimension : the unchanged rows recover , and the first entries of row one recover . Put , , and . Its score is If , every row coefficient is negative enough that the maximum is zero. If , the coefficients for rows two through have magnitude at least two. Changing their maximizing choices costs at least two, while changing can help by at most one. Thus for ; the first coefficient is maximized by . Averaging over gives a difference from the row-code maximum.
At , active rows two through have coefficient zero. Their parity can be chosen freely whenever one of their ’s is one. For , the first row then gives mean gain . For , gain one occurs exactly when and at least one other , with mean . In full:
| Condition on | Mean excess saving over the row code, averaging |
|---|---|
Each balanced case has probability , while . Consequently the mean excess saving is exactly At , the mean distance is , below the full-row value . The excess is also positive at , but . This family therefore supplies finite counterexamples, not an asymptotic improvement over full-row advice.
Let denote full row and . Starting with the usual row-code generators , constructing requires changing that entry in every generator: the new generators are . But the same row code has basis . Changing the entry only in its first generator gives . Stability under single-entry moves in one chosen generator basis does not establish optimality among codes.
5. What remains to prove
The exact row-code extremality conjecture is false. A weaker, consequential systematic conjecture is Together with (4), it would give optimal systematic mean , also when advice reads are charged by (2). The sharp coefficient of that secondary term is a further open question. For arbitrary encoded bases, even the leading constant remains unresolved by these calculations.
The existing summed-query proof settles quadratic order. Optimizing its integer parameter only modestly improves its positive constant; its division by the number of queries cannot provide the desired sharp estimate. The remaining work must control one query’s alignment with an entire fixed advice space, or exhibit a stronger encoding. No new unrestricted SAT, Turing-machine or scaffolding-automaton consequence follows from this note.
A subsequent score analysis proves that every fixed matrix has expected positive score at most . It also refutes a proposed way to sum that estimate over dimensions: some single code extensions gain order , even from dimension to dimension . Neither result settles (8).
A finite separation between systematic and arbitrary bases
At , the minimum free mean distance over all invertible stored bases and dimension-at-most-two advice codes is ; restricting the stored basis to the raw entries gives . Here is an explicit corrected witness. List coordinates as , with integer masks read least significant bit first. Store If , then query coefficients transform by , so here The nine nonzero rank-one queries become the masks . Three are in , and the remaining six have distance one. The zero query occurs seven times, giving mean .
This is also a lower bound for every invertible basis: the nine nonzero queries stay distinct, while a dimension-two code contains at most three nonzero vectors. At least six query distances are therefore at least one. For systematic storage, total distance six would require all three nonzero codewords to be rank one. A plane consisting of rank-one matrices must have a common left factor or a common right factor: otherwise the sum of two generators has rank two. At size two, each of these six planes has total distance eight, as is checked directly by fixing its nonzero common factor. Every other plane misses at least seven of the nine queries. Section 3 attains total distance seven.
The witness originally proposed in the relayed suggestions used the transposed storage shear, , with the same code. That pair gives , not . Keeping that storage but replacing the code by is an alternative repair. The distinction is between the storage transformation and its inverse transpose on queries. An exact checker and output enumerate all invertible bases and all codes of dimension at most two, corroborating the elementary minima above.
Disjoint copies on diagonal two-by-two blocks give exactly free mean distance for even , with advice dimension . Their saving is only linear. This does not prove that arbitrary bases can improve the systematic optimum by only ; no such general bound has been established. The reported size-three shear search is not needed for these conclusions and has not been independently reproduced here.
6. Provenance and verification
Joshua Gay relayed Grok-generated suggestions containing the score formulation, full-row construction and saving, and directed attention away from optimizing summed-query constants. The proposed exact extremal conjecture prompted the counterexamples here. The later basis-change suggestion was checked with the storage/query transpose correction described above. The identities and counterexamples have elementary written proofs; historical novelty is not established. The distinction between systematic raw storage with free redundancy and other models also appears explicitly in Ramamoorthy and Rashtchian, Sections 1.1 and 1.3.
An exact checker enumerates every query and codeword for the specified codes at , and verifies the conditional table and (7) using rational arithmetic. Its recorded output is reproducible with Python’s standard library. These finite certificates corroborate the examples; the even-size formula rests on the written case proof. Neither the experiments nor independent agent reviews prove (8), and no proof-assistant verification is claimed.