OAI/Combinatorics/LowSpaceSubsetSum/Streams/BinaryPivot.lean
14 declarations, 0 contain sorry, 0 declared as axioms
Bounded binary pivot search
A search state consists of two endpoints of a half-open interval. Each step
performs at most one indexed predicate query and halves the interval. The
predicate is true on a prefix, including the empty and full prefixes. After
k steps with array length less than 2^k, the endpoints agree and identify
the exact boundary. This is the pivot rule needed by cyclic modular rows.
- structure
OAI.LowSpaceSubsetSum.BinaryPivot.Cutline 20 - def
OAI.LowSpaceSubsetSum.BinaryPivot.initialline 27 - def
OAI.LowSpaceSubsetSum.BinaryPivot.widthline 29 - def
OAI.LowSpaceSubsetSum.BinaryPivot.stepline 31 - def
OAI.LowSpaceSubsetSum.BinaryPivot.PrefixPredicateline 41 - def
OAI.LowSpaceSubsetSum.BinaryPivot.Separatesline 44 - theorem
OAI.LowSpaceSubsetSum.BinaryPivot.initial_separatesline 47 - theorem
OAI.LowSpaceSubsetSum.BinaryPivot.step_separatesline 56 - theorem
OAI.LowSpaceSubsetSum.BinaryPivot.step_width_le_halfline 75 - theorem
OAI.LowSpaceSubsetSum.BinaryPivot.iterate_separatesline 85 - theorem
OAI.LowSpaceSubsetSum.BinaryPivot.iterate_width_zeroline 93 - def
OAI.LowSpaceSubsetSum.BinaryPivot.searchline 104 - theorem
OAI.LowSpaceSubsetSum.BinaryPivot.search_exactline 106 - theorem
OAI.LowSpaceSubsetSum.BinaryPivot.search_splitline 123