Documentation

CslibFrontier.DataStructure.Dictionary.SuccinctWhpModelTick.Stage01

Epoch Rebuild Stages 0 and 1 (Flag Reset and Dirty-Bucket Collection) #

Internal correctness proofs for epochTickStage0 and epochTickStage1 [BFCKK24].

Main results #

References #

theorem Cslib.DataStructure.Dictionary.SuccinctWhp.epochTickStage0_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) (hs0 : fs.rebStage = 0) (hpre : ValidEpochStagePreTick c U n_max θ fs) :
have fs1 := epochTickStage0 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-0 tick clears rebQueued and rebDoneFlag across buf oldEp slots.

theorem Cslib.DataStructure.Dictionary.SuccinctWhp.epochTickStage1_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) (hs1 : fs.rebStage = 1) (hpre : ValidEpochStagePreTick c U n_max θ fs) :
have fs1 := epochTickStage1 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-1 tick collects distinct dirty buckets from buf oldEp into dirtyBuckets.