Extended inquiryExtended inquiry 4
Building a new way to act
A controller can acquire an unknown interface, compress its retained structure and gain a lasting capability under fixed laws.
A controller can learn how its sensor works, construct a decoder and install a new way of acting. After that installation, it can handle inputs it could not previously manage. The change is real even though the complete learning process follows fixed physical rules.
The published paper makes this point for evaluative rules: an installed charter can become an object of assessment and be changed for fresh later cases. This supplementary construction concerns a different object, a learned sensor interface. It provides a concrete account of capability acquisition and exposes the separate costs of building, storing and using that capability.
Acquiring a source-preimage basis
Let a fixed unknown invertible binary sensor supply
Each live plant gives one stipulated nondisturbing reading. Its value must then be regulated to a prescribed target and released before the next reading. Sensor parameters are isolated. Reading records are retained immutably and cannot become an extra actuation target. Additional source-sensitive probes are forbidden. All temporary helpers must be restored at release.
The controller maintains an echelon basis of the public readings. For each basis vector , its physical receiver holds the corresponding preimage
When a reading arrives, reduce it against the stored reading basis. Apply the same XOR coefficients from receiver blocks to the current plant. If the reading was dependent, the plant becomes zero. If it adds an independent direction, swap the remaining physical plant into a ready receiver block and store the corresponding reading residual in the public basis. Finally XOR the desired goal into the plant and release it.
The invariant proves the procedure. It does not require the controller to receive as hidden advice. Physical source values enter the receiver through the admitted plant operations, while public readings organize how those values are subsequently used.
A specified affine streaming compiler uses receiver bits, working bits apart from receiver and archive, and
elementary gates for tasks. Per task, its counts are NOTs, CNOTs and Toffolis; the retained reading/dispatch archive has bits. These are compiler bounds, not optima. The Toffolis include sensor and record-controlled processing even when the uncertain-data operation at a fixed record is affine. A nonzero affine offset needs separately charged calibration.
The exact price of one saved receiver bit
After independent observed directions, the uncertain source-preimage basis is a matrix . Its query convention is , where gives coefficients in the public reading basis. It is not an automatically supplied oracle for the hidden sensor or its inverse under another convention.
Theorem: exact residual receiver width. For , a horizon admitting independent directions and the one-readout, isolated-sensor, immutable-archive contract above, perfect regulation for every admitted sensor and source sequence requires and permits
Proof of the lower bounds. The number of possible source-preimage bases is
For , , so
The lower constant can be seen without a numerical infinite product: retain the first three factors and bound the remaining product below by one minus the sum of its omitted terms. It gives a bound exceeding . Distinct source bases must remain distinct when the plants have all reached fixed targets, giving the unrestricted bit requirement.
The affine hull of is the whole -dimensional matrix cube. For every off-diagonal entry, and are invertible and differ only there. For a diagonal entry, use a swapped invertible two-by-two block; toggling that entry preserves invertibility. These differences span every coordinate direction. An affine success preimage containing all invertible matrices must therefore have dimension . The affine/Clifford flat theorem gives the stronger width bound.
Attainment. The streaming basis construction uses bits. For unrestricted actuation, the clean encodings below fit the full basis in bits. Before the last independent reading, at most preimage bits are stored, which fits this receiver. The final live plant supplies the last column temporarily; encode the completed basis before releasing it. Later actions use its compact representation.
The saved bit concerns residual source-dependent storage at release. It does not include all temporary workspace, public basis records, source parameters, clock or program memory.
A clean compact code
A clean one-bit encoder is a fixed NOT/CNOT/Toffoli circuit on raw matrix bits and ready auxiliaries. On every invertible input, exactly designated outputs may vary; all others have prescribed constants. The complete circuit remains a permutation on every input, including singular matrices. The successful cleanup promise applies to invertible matrices unless a stronger domain is stated.
One recursively usable code takes . Let swap the first nonzero coordinate of into position zero. With , define
Then sends to , giving
Define
Its length is . At , using column-major bits , the gate sequence
clears the fourth output on all six invertible inputs. The remaining three bits form the base code. Here adds the product of control bits into target , adds control , and flips .
The decoder reconstructs , forms the displayed block matrix and applies . To make the encoder physically clean, evaluate while keeping , copy its code, and uncompute the evaluator's intermediates. Then use the retained code to XOR the decoded out of the original input positions. This yields on the promise. It does not attempt to uncompute an operation after destroying the input its inverse needs.
This is the established reversible compute/copy/uncompute method associated with Bennett's logical reversibility, applied to the specified code and cleanup contract.
Installation and use are different problems
Assume uniform exact binary matrix multiplication has Boolean circuits of size for a fixed . The recursive code can be cleanly installed with
Toffolis and clean temporary bits. The admitted seven-product matrix recursion gives the explicit conservative choice .
The construction block-factorizes the first columns while preserving chronological first-nonzero pivots. At each split it factors the left block, permutes the right block, solves through the unit-lower factor and forms a Schur residual by multiplication. Later row swaps are reversed on the retained multiplier histories to recover the recursive code; they do not require repeating the whole factorization for each column. Fixed sorting networks charge the routing overhead at . Decoding reconstructs the factors with the same order. Clean Boolean evaluation supplies the reversible implementation.
The same code supports
with Toffolis and query helpers. For ,
Compute the smaller product once, continue upward, copy the completed result into , and reverse the entire computation. The sum of level costs is quadratic. Computing and uncomputing the smaller query twice at each recursive level would introduce an unjustified larger cost. One explicit compiler for this code uses Toffolis and clean helpers; smaller constants from a different representation cannot be silently attached to its fast installation bound.
Theorem: programmable query lower bound. Any fixed classical circuit computing for every represented invertible and every runtime needs
ordinary Toffolis, regardless of the chosen classical representation or clean auxiliary width. Thus the best exact programmable-query order is .
Proof. Let Alice know and its representation, and Bob know . Represent every circuit wire by XOR shares. Affine gates are local. For a Toffoli, Alice sends her two control shares; Bob can use these together with his own shares to update the product share correctly. With Toffolis this uses bits, all from Alice. Alice sends her final output shares, letting Bob recover .
Alice's message depends on , not . If two different operators produced the same message, Bob would obtain the same product for every basis input , forcing the operators to agree. Hence . Integer rounding gives the displayed bound. The recursive query supplies the matching upper order.
This concerns one programmable circuit handling every coefficient word. A specialized fixed query, such as , is another task. For any clean encoder with cost , decoding, raw matrix-vector accumulation and re-encoding also give the useful bound
Why even one-bit compression has a quadratic nonlinear cost
Let be the minimum Toffoli count of any clean encoder under the contract above. Then
The lower bound uses a named external theorem: in the additive two-party input model over a fixed prime field, distinguishing rank from rank with public-coin error at most needs communicated bits. This is the rank theorem of Li, Sun, Wang and Woodruff. Its deep proof is imported; the reduction to the encoder follows here.
Let be the set of raw matrices whose constrained encoder outputs all take the required constants. Invertible matrices belong to , while injectivity gives . The density of rank- matrices is
Consequently
The constraints accept every full-rank matrix and reject at least of the adjacent rank class. Public uniform invertible left and right multipliers make an XOR-shared input uniform within its rank class, and each party transforms its own share locally. Simulate the encoder with two communicated bits per Toffoli. A public random parity of the constrained-output deviations detects any nonzero deviation with probability , using one additional parity-share bit. One repetition has miss probability at most on rank . Nine independent repetitions reduce it below and communicate at most bits. The imported rank theorem forces .
The asymptotic constant is unspecified. This is not the statement with coefficient one in every small dimension. Together with the construction, it gives
The missing general near-quadratic installation theorem remains open. A controller can build a compact, reusable capability; knowing that such a capability exists does not make its construction free.