M5: the tag-ordering invariant after a drain starts #
Evenly spaced labels #
theorem
OrderMaintenance.Proof.Top.SDCtx.labs_tab
{s : Model.Core}
{cl : List ℕ}
{ord : ℕ → List ℕ}
{dr n0 : ℕ → ℕ}
{j : Model.Job}
{v : ℕ}
{side : List (ℕ × Model.Side)}
(C : SDCtx s cl ord dr n0 j v side)
{X : ℕ}
(hT : X ∈ (nd (ts s) v).inTables)
:
∃ (A : List (ℕ × ℕ)) (le : ℕ) (Bs : List (ℕ × ℕ)),
(nd (ts s) X).table = A ++ (v, le) :: Bs ∧ v ∉ List.map (fun (x : ℕ × ℕ) => x.1) A ∧ labs (ts (sdS (wiC s v) v side)) X = List.map (fun (x : ℕ × ℕ) => x.2)
(A ++ (s.nodes.size, (roomLo A le true + roomHi s.P.beta Bs le true - 1) / 2) :: (v, le) :: (s.nodes.size + 1, (roomLo A le false + roomHi s.P.beta Bs le false - 1) / 2) :: Bs)
The labels of a table holding v, after v1, v2 join it.