Theorem W, option (A), stage A2: the construction of a core, along its stages #
initStep_pk_stage: a stage of the chain (Stage P h, Top/PrepStage.lean) carries the tag
invariant initStep_pk needs (chainTag_lt). initCore_pkok: the eager construction, along the
stages (the context of initCoreS_eager), and the lazy one.
Nothing here is used by Theorems A and B.
theorem
OrderMaintenance.Impl.initLoop_pkok_stage
{K KH W : ℕ}
{κ : Caps}
(hC : CapsW K κ)
(hK : 8 ≤ K)
(hW : 2 * K + 4 ≤ W)
{P : Model.Params}
(hH : 1 ≤ P.H)
(hK2 : InitCaps κ P)
{L : Loc}
(hG : Gd K KH κ (ΓK K) (prepStart P true) L)
:
The eager construction loop, along the stages (the context of initCoreS_eager).
theorem
OrderMaintenance.Impl.initCore_pkok
{K KH W : ℕ}
{κ : Caps}
(hC : CapsW K κ)
(hK : 8 ≤ K)
(hW : 2 * K + 4 ≤ W)
{P : Model.Params}
(hH : 1 ≤ P.H)
(hK2 : InitCaps κ P)
(hE : 2 ≤ κ.tbl Tbl.E)
(hG2 : 2 ≤ κ.tbl Tbl.G)
{L : Loc}
(hG : Gd K KH κ (ΓK K) (freshC P) L)
:
The construction of a core (initCore, lazy or eager) from the fresh core.