Theorem W, option (A), stage A2: the peak of a split start (splitChunkStartS) #
The locals at width K, except the new tags ty, tz (tx − f1 plus a room label) at K + 1
(ΓS).
iaPrep_pk: the labels and tags of the two new chunks (roomCall_pk).childS_pk: the second new child at positionr + 2, withr ≤ lcap children(findCall_le).insertAround_pkok: the two tags written byguardedSetTag, bounded by the split's end state (gstCall_pk); the second call writes the tag only atz ≠ y(gstCall_frame).split_pkok: the split start; the new chunksy ≠ zfrom the push semantics.
Nothing here is used by Theorems A and B.
theorem
OrderMaintenance.Impl.insertAround_pkok
{K KH W : ℕ}
{κ : Caps}
{s : Model.Core}
{L : Loc}
(hC : CapsW K κ)
(hK : 8 ≤ K)
(hW : 2 * K + 4 ≤ W)
(hG : Gd K KH κ (ΓS K) s L)
(hyz : L "y" ≠ L "z")
(hF : Fin (FB K KH κ (Fld.c CF.tag)) insertAroundS s L)
:
PKok K KH κ (ΓS K) W insertAroundS s L
The insertion of the two new chunks into the tree (insertAroundS, new chunks y ≠ z): the
tags written by guardedSetTag are bounded by the split's end state.
theorem
OrderMaintenance.Impl.split_pkok
{K KH W : ℕ}
{κ : Caps}
{s : Model.Core}
{L : Loc}
(hC : CapsW K κ)
(hK : 8 ≤ K)
(hW : 2 * K + 4 ≤ W)
(hG : Gd K KH κ (ΓS K) s L)
(hF : Fin (FB K KH κ (Fld.c CF.tag)) splitChunkStartS s L)
:
PKok K KH κ (ΓS K) W splitChunkStartS s L
A split start (splitChunkStartS), its new tags bounded by the end state.