OAI/Combinatorics/LowSpaceSubsetSum/Storage/StoredQueryCells.lean
14 declarations, 0 contain sorry, 0 declared as axioms
Executed stored-mask query continuation cells
Membership and local-code recursion are instrumented below. The incidence array is shared; each of the two subsequent binary searches is tail recursive and carries only its array pointer, cut, counter and scalar endpoints.
- def
OAI.LowSpaceSubsetSum.StoredQueryCells.memberline 16 - theorem
OAI.LowSpaceSubsetSum.StoredQueryCells.member_valueline 24 - theorem
OAI.LowSpaceSubsetSum.StoredQueryCells.member_cellsline 30 - def
OAI.LowSpaceSubsetSum.StoredQueryCells.codeline 36 - theorem
OAI.LowSpaceSubsetSum.StoredQueryCells.code_valueline 44 - theorem
OAI.LowSpaceSubsetSum.StoredQueryCells.code_cellsline 50 - def
OAI.LowSpaceSubsetSum.StoredQueryCells.localCodeline 63 - theorem
OAI.LowSpaceSubsetSum.StoredQueryCells.localCode_valueline 72 - theorem
OAI.LowSpaceSubsetSum.StoredQueryCells.localCode_cellsline 86 - def
OAI.LowSpaceSubsetSum.StoredQueryCells.lookupline 93 - theorem
OAI.LowSpaceSubsetSum.StoredQueryCells.lookup_valueline 98 - def
OAI.LowSpaceSubsetSum.StoredQueryCells.queryline 105Source documentation
Binary search allocates no list; its tail-state and both saved scalar cutoffs are covered by the additional 32 cells.
def query (row : Vector (Fin n) g) (x : StoredEntry n) (store : Array (Array ℕ)) (hs : store.size = 2 ^ g) (steps lo hi : ℕ) : (Bool × ℕ) × ℕ := …Mentions: OAI.LowSpaceSubsetSum.StoredEntry
- theorem
OAI.LowSpaceSubsetSum.StoredQueryCells.query_valueline 112 - theorem
OAI.LowSpaceSubsetSum.StoredQueryCells.query_cellsline 120