OAI/Combinatorics/LowSpaceSubsetSum/Storage/BackgroundDomains.lean
10 declarations, 0 contain sorry, 0 declared as axioms
A concrete ordered partition of the background indices
- def
OAI.LowSpaceSubsetSum.eightLeafCountsline 14Source documentation
Four children, each split into its two consecutive leaf parts.
def eightLeafCounts (a b c d : ℕ) : Fin 8 → ℕ := …
- theorem
OAI.LowSpaceSubsetSum.eightLeafCounts_sumline 20 - def
OAI.LowSpaceSubsetSum.computedLeafCountsline 31Source documentation
The exact two-level integer allocations in the implementation.
def computedLeafCounts (r a0 b0 aL bL aR bR : ℕ) : Fin 8 → ℕ := …
- theorem
OAI.LowSpaceSubsetSum.computedLeafCounts_sumline 37 - def
OAI.LowSpaceSubsetSum.backgroundIndexEquivline 50Source documentation
Successive blocks in the sorted outside domain, with the prescribed eight sizes. The library equivalence uses prefix sums of these sizes.
def backgroundIndexEquiv {n : ℕ} (V : Finset (Fin n)) (c : Fin 8 → ℕ) (hc : ∑ i, c i = V.card) : ↥V ≃ ((i : Fin 8) × Fin (c i)) := … - def
OAI.LowSpaceSubsetSum.backgroundColorline 54 - theorem
OAI.LowSpaceSubsetSum.backgroundColor_cardline 58 - def
OAI.LowSpaceSubsetSum.backgroundPairColorline 93Source documentation
The eight linear labels are the two parents and four leaves of the table.
def backgroundPairColor {n : ℕ} (V : Finset (Fin n)) (c : Fin 8 → ℕ) (hc : ∑ i, c i = V.card) (x : Fin n) : Fin 2 × Fin 4 := … - theorem
OAI.LowSpaceSubsetSum.backgroundPairColor_eq_iffline 99 - theorem
OAI.LowSpaceSubsetSum.backgroundPairColor_cardline 110