Theorem W, stage B2: the top structure's contract TopWB #
topWB: the top invariant of the cost proof (TIat TopInv P, the TI of insertAfter_cost in
the final theorems, Impl/Caps.lean) satisfies TopWB with the job measure topMu, given room
for labels and tags (TopRoom). The split's insertion is insertAround_wb, its new tags bounded by
the top invariant after the split; a job step is jobStep_wb, and the node budget is node_step.
insertAfter_wb_top is insertAfter_wb at this instance, and room_wK gives the room at the
candidate word size wK P = 64·L.
The top structure keeps the stored-value bound: TopWB for the cost proof's top
invariant at parameters P, given room for labels and tags.
A core insertion keeps the stored-value bound, at the cost proof's top invariant
(insertAfter_wb with TopWB discharged by topWB). The node budget is that of NodeB
(Impl/Caps.lean): nodes.size + topMu ≤ nb0 P + topJ P · C.size.
The room at the candidate word size #
Room at wK = 64·L for labels, tags and the construction's heights.