The exact query cost of a prepared equality interface
4 October 2026. Research note. Written proof with independent review.
Can equality and disequality constraints store a Boolean matrix so that later pins activate a vector and one short query tests any row? This would make a familiar matrix lower-bound argument available for native equality recognition. Under a broad, explicit formula interface, the answer has an exact minimum: a row needs one query equation for each distinct selected column pattern.
Preparation may use arbitrarily many auxiliary variables and arbitrarily much work. The bound concerns the query that remains necessary after that preparation. It is a statement about this formula interface, rather than about every possible scaffolding representation.
Contents
The interface
Fix a Boolean matrix and distinct input variables . Prepare any satisfiable 2-affine formula : a conjunction of unary pins and binary equations , with . Arbitrary auxiliary variables are permitted.
An arriving vector activates exactly its 1-coordinates:
Require to be satisfiable for every . A query , chosen from and row but independently of , may contain arbitrary further unary/binary equations and fresh variables. Correctness means
for every vector .
Let
the number of distinct full column vectors having a 1 in row . Query atoms are counted as individual unary pins or binary parity equations. One higher-arity relation record that abbreviates several equations would be a different unit of cost.
Minimum-query theorem. Every valid interface has at least atoms in . One equality-only preparation attains that bound simultaneously for every row.
Why preparation cannot merge different column patterns
A satisfiable 2-affine formula consists of signed connected components: inside a component every variable equals a chosen representative or its complement, and a component may also be pinned to a constant.
Since the all-ones activation must extend, any two input variables in the same old component have the same sign. No input is forced false. An input already forced true can only have an all-zero matrix column, since activating it would never change satisfiability.
Set . Correctness says is satisfiable. Then the singleton activation gives
Input variables in the same old component have the same sign and are forced false together by every query. They must therefore have identical columns of . Every distinct column counted by supplies a different old component that is initially unforced and must become anchored to zero after .
This conclusion holds regardless of how many other variables or aliases were placed in those components during preparation.
Anchoring the components costs at least one atom each
Contract each connected component of to one vertex. Include one constant vertex and contract already pinned components into it, retaining the appropriate signs. Fresh query variables are additional vertices. A binary query equation contributes at most one edge between vertices, and a unary query pin contributes one edge to the constant vertex.
The all-zero activation guarantees that stays consistent. Thus a target old component becomes forced precisely by connection to the constant vertex. A connected graph joining previously unforced target vertices to an anchor needs at least edges. Consequently
Connecting targets together first does not circumvent the bound: joining separate targets takes at least edges, and reaching an anchor needs another. Fresh variables can subdivide or join these routes but cannot reduce that minimum. Redundant equations and inconsistent cycles supply no shortcut, since the zero activation must be accepted.
A matching construction
Partition the input indices by identical column vectors of . During preparation, equate all in each block, with no pins. This accepts every activation. For a row , choose one representative from each column class with and use
There are exactly atoms. The query is inconsistent exactly when some activated coordinate lies in one of those blocks, which is the required Boolean row product.
This construction uses at most preparation equations and no fresh query variables. For fixed-width names of symbols, preparation has encoded length and the row query has exactly characters. The case uses the empty query.
Literal names impose a representation-independent encoding cost within this interface
Every target old component must be incident to a query edge. Hence must mention at least one old variable from each of distinct components. Those mentions use distinct literal binary names. There are only nonempty binary names of length at most , so the sum of the lengths of distinct names is . Therefore
Arbitrarily many prepared aliases cannot give all those separate components constant-length names. With a common -bit naming convention the bound is also . This is unavoidable input length after preparation; it is not an extra lower bound on processing an already supplied query.
For example, let have an all-ones row followed by the identity rows. All its columns are distinct. The first row query requires at least atoms and symbols, whatever the preparation size. This prevents the row-query budget needed by the previous serialized matrix reductions.
As a smaller consequence, one final unary pin can represent a family of nonempty row supports exactly when those supports are pairwise identical or disjoint. Crossing supports such as and cannot both be isolated that way. The matching construction equates variables within each disjoint block.
What this resolves, and what it leaves open
The theorem retires the entire prepare/positive-activate/short-query formula architecture, including arbitrary signed auxiliaries, aliases and query joins. It does not show that native equality recognition is impossible. A different representation, activation contract or obstruction mechanism could behave differently.
Snapshots do not remove this bottleneck. Saving an already processed prefix and extending it is different from cheaply conjoining two independently prepared formulas. A row-star formula and a vector-pin formula could answer a row query if such a cheap join were available; native prefix snapshots do not supply that join.
Likewise, the lower bound in Henzinger–Wu’s fully retroactive graph work, §3 pp8–9, changes earlier updates and uses graph deletions. Their insertion-only historical variant has a polylogarithmic algorithm in §4, Theorem 5. Neither contract becomes a native equality-language lower bound merely through immutable history.
The signed-component description is standard linear algebra. The additional result here is the exact optimum for this activation/query contract, its matching construction and its encoded-name consequence. The proof was independently audited with arbitrary auxiliary components and query connections allowed. It supports the propagation and replay investigation by identifying a precise structural limit of its matrix route. The live question is still whether a native scaffold can maintain and read the current equality component during the arrival of an ordinary variable name.