Documentation

CslibFrontier.DataStructure.Dictionary.WordRAM.SuccinctWhpEpochTickProg.Internal.CheckOk

Rollover Pre-Check checkEpochTickOkGenProg #

Implements and verifies the O(1) read-only rollover pre-check checkEpochTickOkGenProg matching epochTickWillSucceed n_max fs, together with invariance of epochTickWillSucceed across fastInsert and fastDelete.

theorem Cslib.DataStructure.Dictionary.WordRAM.SuccinctWhp.EpochTickInternal.epochTickWillSucceed_fastInsert {c U V n_max : ℕ} {θ : SuccinctWhp.SeedWhp c U n_max} {fs fs1 : SuccinctWhp.FastState} {dict : State U} (hv : SuccinctWhp.ValidFastState c U V n_max θ fs dict) {u : Fin U} {v : ℕ} (hins : SuccinctWhp.fastInsert c U n_max θ fs u v = some fs1) :

Successful fastInsert preserves epochTickWillSucceed.

fastDelete preserves epochTickWillSucceed.

@[irreducible]

Read-only O(1) check returning 1 iff epochTickWillSucceed n_max fs = true (d = (cp, base)).

theorem Cslib.DataStructure.Dictionary.WordRAM.SuccinctWhp.EpochTickInternal.checkEpochTickOkGenProg_spec {c U V w n_max base : ℕ} {fs : SuccinctWhp.FastState} {s : Memory.State} (henv : WhpLargeEnv c U V w n_max w base) (hce_or : fs.curEp = 0 ∨ fs.curEp = 1) (hrep : FastMemRep base c U V w n_max fs s.mem) :

Cost and result specification for checkEpochTickOkGenProg.