Documentation

CslibFrontier.DataStructure.Dictionary.WordRAM.SuccinctWhpFastOpProg.RebRole

Fast-Mode Bucket Role & Rebuild Slice Index Readers #

Parameter-free Memory.Prog readers recovering (fs.rebRole b, fs.overmarsRole b) and fs.rebSliceIdx b from bucket metadata without mutating memory.

Main definitions #

Main results #

@[irreducible]

Read (fs.rebRole b, fs.overmarsRole b) from bucket b metadata fields 2 and 4 (d = ((cp, base), b)).

theorem Cslib.DataStructure.Dictionary.WordRAM.SuccinctWhp.readRebAndOmRoleGenProg_spec {c U V w n_max base b : ℕ} {fs : SuccinctWhp.FastState} {s : Memory.State} (henv : WhpLargeEnv c U V w n_max w base) (hb : b < SuccinctWhp.numBucketsWhp n_max) (hrep : FastMemRep base c U V w n_max fs s.mem) :
@[irreducible]

Read fs.rebSliceIdx b = 3 * b + (3 - fs.liveRole b - fs.overmarsRole b) (d = ((cp, base), b)).

theorem Cslib.DataStructure.Dictionary.WordRAM.SuccinctWhp.readRebSliceIdxGenProg_spec {c U V w n_max base b : ℕ} {fs : SuccinctWhp.FastState} {s : Memory.State} (henv : WhpLargeEnv c U V w n_max w base) (hb : b < SuccinctWhp.numBucketsWhp n_max) (hrep : FastMemRep base c U V w n_max fs s.mem) :