Integer measurements of Boolean words #
Rows and matrices use the existing integer-list/table representations. Evaluation is total: missing bits are false, extra bits are ignored, and each row uses its own stored length. Matrix equality compares the complete output list, so a target with the wrong length cannot match. On rectangular inputs this agrees with the ordinary integer matrix/Boolean-vector product.
The unrestricted representative scan in [OAI26c], Lemma 3.2, printed pp. 22–23, searches for a word having the requested measurements. Fixed-bit restrictions belong to the later scan. This module supplies evaluation and that representative search, not the full counting identity.
Main definitions #
Cslib.LinearAlgebra.BooleanMeasurements.evalBoolRow: one signed integer measurement.Cslib.LinearAlgebra.BooleanMeasurements.evalBoolMatrix: all measurements in row order.Cslib.LinearAlgebra.BooleanMeasurements.test: full measurement-list equality.Cslib.LinearAlgebra.BooleanMeasurements.search: an unrestricted representative, if one exists.Cslib.LinearAlgebra.BooleanMeasurements.searchCertificate: native search with raw bit words.
Main results #
Cslib.LinearAlgebra.BooleanMeasurements.evalBoolMatrix_getD_eq_sum: finite-matrix semantics.Cslib.LinearAlgebra.BooleanMeasurements.evalBoolRow_polyTime,Cslib.LinearAlgebra.BooleanMeasurements.evalBoolMatrix_polyTime: native evaluation costs.Cslib.LinearAlgebra.BooleanMeasurements.search_some,Cslib.LinearAlgebra.BooleanMeasurements.search_eq_none_iff_cube: search correctness.Cslib.LinearAlgebra.BooleanMeasurements.exists_computableInO_search: traversal-proportional time and independent polynomial workspace, including encoding conversions.Cslib.LinearAlgebra.BooleanMeasurements.polyBounded_searchCertificate_space,Cslib.LinearAlgebra.BooleanMeasurements.exists_polyBounded_searchCertificate_time: composable bounds on the exported certificate itself.
References #
- OpenAI, The Exponential Time Hypothesis is False, Lemma 3.2, pp. 22–23.
Row evaluation is the integer dot product with the padded Boolean word.
On an (r,d) table, measurement i < r is the finite integer dot product. The word is
still padded/truncated by the total convention; an exactly d-bit word needs no padding.
One fixed native polynomial-time routine evaluates arbitrary signed rows and bit words.
Evaluate a runtime matrix on a runtime Boolean word with polynomial native costs.
The raw-bit optional representative has at most the declared width plus its option tag.
Failure is equivalent to the unrestricted fiber being empty. This uses the total padding convention even for ragged matrices, rather than silently assuming rectangular input.
The equality test is uniformly polynomial in the complete retained context and candidate word encodings, using the supplied polynomial matrix/target projections.
The fixed native representative search has traversal-proportional time and polynomial charged workspace in the full runtime context/width encoding, including both codec boundaries.
Native representative search with the consumer's raw-bit option encoding, selecting the independent resource bounds above once, before any runtime context/width input. Both codec boundaries are included.
Instances For
The exported certificate's actual charged workspace is polynomial in the full input.
The exported certificate's actual time has a fixed polynomial factor times the traversal count. Its encoded output is charged to its separate polynomial workspace bound.