OAI/Combinatorics/ContingencyTables/Dense/GridIndexProgram.lean
16 declarations, 0 contain sorry, 0 declared as axioms
Binary indexing into the explicitly enumerated grid
- abbrev
OAI.ContingencyTables.DensePrograms.GridIndexDataline 12 - def
OAI.ContingencyTables.DensePrograms.gridIndexPowerInputline 14 - def
OAI.ContingencyTables.DensePrograms.gridIndexPowerInputRealizerline 17 - lemma
OAI.ContingencyTables.DensePrograms.polynomial_gridIndexPowerInputline 21 - def
OAI.ContingencyTables.DensePrograms.gridIndexTermline 27 - def
OAI.ContingencyTables.DensePrograms.gridIndexTermRealizerline 30 - lemma
OAI.ContingencyTables.DensePrograms.polynomial_gridIndexTermline 37 - def
OAI.ContingencyTables.DensePrograms.gridIndexIndicesline 46 - def
OAI.ContingencyTables.DensePrograms.gridIndexIndicesRealizerline 48 - lemma
OAI.ContingencyTables.DensePrograms.polynomial_gridIndexIndicesline 51 - def
OAI.ContingencyTables.DensePrograms.gridIndexline 58 - def
OAI.ContingencyTables.DensePrograms.gridIndexRealizerline 61 - theorem
OAI.ContingencyTables.DensePrograms.polynomial_gridIndexline 67Source documentation
Index computation is polynomial in the binary grid coordinates and base; the exponent loops are bounded by the coordinate list length.
theorem polynomial_gridIndex : PolynomialTime gridIndexRealizer := …
Mentions: OAI.ContingencyTables.DensePrograms.gridIndexRealizer
- lemma
OAI.ContingencyTables.DensePrograms.range_sumline 72 - lemma
OAI.ContingencyTables.DensePrograms.gridIndex_ofFnline 80 - theorem
OAI.ContingencyTables.DensePrograms.gridIndex_codeline 92Source documentation
The computed integer is exactly the position used by the state list.
theorem gridIndex_code {q K : ℕ} (a : Grid (I := Fin q) K) : …