Documentation

LeanPool.OrderMaintenance.Proof.Top.StartRoom

M5: room for v1, v2 in the tables holding v #

theorem OrderMaintenance.Proof.Top.room_up {s : TS} {cl : List ℕ} {ord : ℕ → List ℕ} {dr n0 : ℕ → ℕ} {oj : Option Model.Job} (hI : InvJ s cl ord dr n0 oj) (hTP : TopParams s.P) {e T : ℕ} (he : isN s e) (hT : T ∈ (nd s e).inTables) (y z : ℕ) :
∃ (A : List (ℕ × ℕ)) (le : ℕ) (Bs : List (ℕ × ℕ)), (nd s T).table = A ++ (e, le) :: Bs ∧ e ∉ List.map (fun (x : ℕ × ℕ) => x.1) A ∧ ((nd s T).draining = true → (Model.lookup (nd s T).side e).isSome = true) ∧ roomLo A le true < roomHi s.P.beta Bs le true ∧ roomLo A le false < roomHi s.P.beta Bs le false ∧ 2 ≤ gapB s.P.beta (n0 T) (dr T) ∧ GapsGe s.P.beta (gapB s.P.beta (n0 T) (dr T) / 2) (List.map (fun (x : ℕ × ℕ) => x.2) (A ++ (y, (roomLo A le true + roomHi s.P.beta Bs le true - 1) / 2) :: (e, le) :: (z, (roomLo A le false + roomHi s.P.beta Bs le false - 1) / 2) :: Bs))

A table one level up has room on both sides of an entry.