Epoch Rebuild Stage 2 (Candidate-Salt Scanning and Live-Slice Swap) #
Internal correctness proofs for rebScanSteps and epochTickStage2
[BFCKK24].
Main results #
Cslib.DataStructure.Dictionary.SuccinctWhp.epochTickStage2_spec: Stage 2 preservesCoreFastInvandOvermarsBucketInvand restoresValidEpochStage.
References #
theorem Cslib.DataStructure.Dictionary.SuccinctWhp.epochTickStage2_spec {c U V n_max : ℕ} {θ : SeedWhp c U n_max} {fs : FastState} {dict : State U} (hc : CoreFastInv c U V n_max θ fs dict) (hom : ∀ b < numBucketsWhp n_max, OvermarsBucketInv c U n_max θ fs b) (hs2 : fs.rebStage = 2) (hpre : ValidEpochStagePreTick c U n_max θ fs) :
have fs1 := epochTickStage2 c U n_max θ fs;
CoreFastInv c U V n_max θ fs1 dict ∧ (∀ b < numBucketsWhp n_max, OvermarsBucketInv c U n_max θ fs1 b) ∧ ValidEpochStage c U n_max θ fs1 ∧ fs1.epochClock = fs.epochClock
Stage-2 tick scans 16 coordinates under rebCandSalt and swaps collision-free slices.