In-Epoch Resizable Succinct Compacted Representation and Primitives #
This module formalizes the compacted epoch representation and live invariants of the resizable
succinct dynamic dictionary on the word-granular Resizable Word RAM (Cslib.WordRAM.Resizable).
It establishes:
- Static
1 · OPTcompacted epoch footprint bounds (compactedEpochWords_le_succinctWords,w_mul_compactedEpochWords_le_bits): underEpochValid U n N, the live compacted epoch footprint formula is at mostDynamic.succinctWords 1355 441 U V w nwords (1 · OPT, never2 · OPT). The constant1355decomposes algebraically as11 + 1344, where11 = 5 + 6bounds the quotient-bit slack (5 from Feistel quotient/val vsoptBitsand 6 fromquotientBits U N ≤ quotientBits U n + 6viaN ≤ 4 * n), and1344 = 16 * 84bounds the84 * N * logLogFactor Nmetadata arrays viaN ≤ 4 * nandlogLogFactor N ≤ 4 * logLogFactor n. - Dense key reconstruction and live representation invariants (
reconstructKeyAt_spec,CompactedSplitRep,CompactedRep,compactedRep_empty): every dense slot $d < n$ reconstructs a live $(u, v)$ in $s_{\mathrm{abs}}$ injectively and surjectively.
Main definitions #
Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.CompactedSplitRep: active epoch representation at arbitrary(metaBase, itemBase).Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.CompactedRep: live resting invariant onRData ratfrontier = base + compactedEpochWords.
Main results #
compactedEpochWords_le_succinctWords: live epoch words bounded by succinct words.w_mul_compactedEpochWords_le_bits: word-multiplied1 · OPTbit-space bound.reconstructKeyAt_spec: exact bijective key/value reconstruction on live dense slots.compactedRep_empty: initial empty dictionary representation certificate.
References #
Section 1: Compacted Epoch 1 · OPT Word-Space and Bit-Space Bounds #
Static 1 · OPT word-space bound (compactedEpochWords_le_succinctWords):
whenever EpochValid U n N (n = 0 ∧ N = 0 or 1 ≤ n ≤ N ≤ 4 * n ∧ N ≤ U), the live compacted
footprint compactedEpochWords U V w N n is at most Dynamic.succinctWords 1355 441 U V w n.
Static 1 · OPT bit-space bound (w_mul_compactedEpochWords_le_bits):
multiplying compactedEpochWords U V w N n by w yields at most
Dynamic.optBits U V n + 1355 * n * Dynamic.logLogFactor n + 442 * w bits across every valid
epoch (EpochValid U n N).
Section 2: Key Reconstruction and Compacted Representation Invariants #
Every dense slot d < n reconstructs a live (u, v) in s_abs
injectively and surjectively.
Active compacted epoch invariant at arbitrary (metaBase, itemBase) (s : Memory.State).
- root_hdr : RootHeaderValid U V w N n n_init metaBase s.mem
- params_stored : EpochParamsStored U V w N metaBase s.mem
- hash_rep : HashFamily.WordRAM.ReducedKWise.Rep (metaBase + epochHdrWords) w (Succinct.qBits U N) (Succinct.hashB N) (SuccinctBucket.totalMicroBits N) 3 θ s.mem
- vals_lt : ValuesBounded V s_abs
- coupled : ∃ (s_fix : Memory.State), Succinct.DictStateInv U V (ghostW w) N 0 θ s_abs s_fix ∧ Succinct.totalSlots N (compGmAt metaBase U w N s.mem) = n ∧ FixedCoupled metaBase itemBase U V w N s_fix s
Live resting representation invariant on RData r (metaBase = base, exact x.frontier).
- bounded : WordRAM.Resizable.RData.Bounded w x
- root_hdr : RootHeaderValid U V w N n n_init base x.mem
- fits_U : WordRAM.Fits w U
- pos_U : 0 < U
- pos_V : 0 < V
- vals_lt : ValuesBounded V s_abs
- epoch_inv : EpochValid U n N
- active_inv : 0 < n → ∃ (θ : Succinct.QuotHashSeed U N), CompactedSplitRep base (base + offCompItems U w N) U V w N n n_init θ s_abs { mem := x.mem, frontier := x.frontier }
An empty dictionary state (n = 0, N = 0) satisfies CompactedRep.
An active compacted epoch split representation yields a resting CompactedRep.