OAI/Combinatorics/LowSpaceSubsetSum/Storage/StoredTerminalCells.lean
8 declarations, 0 contain sorry, 0 declared as axioms
The terminal check with exact sort-and-match storage accounting
The record payloads stay in the retained dictionary arrays. List spines and sort continuations are accounted explicitly; both sorts execute in order. The matching loop is tail recursive and retains two list cursors.
- def
OAI.LowSpaceSubsetSum.StoredTerminalCells.lengthAccline 17 - theorem
OAI.LowSpaceSubsetSum.StoredTerminalCells.lengthAcc_eqline 21 - def
OAI.LowSpaceSubsetSum.StoredTerminalCells.runline 27 - theorem
OAI.LowSpaceSubsetSum.StoredTerminalCells.run_valueline 37 - theorem
OAI.LowSpaceSubsetSum.StoredTerminalCells.run_cellsline 45 - def
OAI.LowSpaceSubsetSum.StoredTerminalCells.budgetedline 62Source documentation
No terminal allocation occurs before its guard succeeds.
def budgeted (target : ℤ) (xs ys : List (StoredEntry n)) (nx ny budget : ℕ) : BudgetedSeparatorCall.Outcome Bool × ℕ := …Mentions: OAI.LowSpaceSubsetSum.StoredEntry, OAI.LowSpaceSubsetSum.BudgetedSeparatorCall.Outcome
- theorem
OAI.LowSpaceSubsetSum.StoredTerminalCells.budgeted_valueline 70 - theorem
OAI.LowSpaceSubsetSum.StoredTerminalCells.budgeted_cellsline 76