Documentation

CslibFrontier.DataStructure.Dictionary.WordRAM.SuccinctWhpBufferTrieProg.Frame

External Word & Opposite-Buffer Preservation Laws for BufEpFrame #

Establishes BufEpFrame.mem_outside and BufEpFrame.other_bufTrieMemRep.

Main results #

theorem Cslib.DataStructure.Dictionary.WordRAM.SuccinctWhp.BufEpFrame.mem_outside {base c U V w n_max ep a : ℕ} {m₁ m₂ : ℕ → ℕ} (hep : ep = 0 ∨ ep = 1) (hf : BufEpFrame base c U V w n_max ep m₁ m₂) (ha : a < base + offTrieChild0 c U V w n_max ∧ a ≠ base + brHdrNA (mkBufRt c U V w n_max base ep) ∧ a ≠ base + brHdrIA (mkBufRt c U V w n_max base ep) ∨ base + SuccinctWhp.largeSpaceWhp c U V w n_max ≤ a) :
m₂ a = m₁ a

BufEpFrame preserves every word before offTrieChild0 (except hdrNA(ep) and hdrIA(ep)) and every word at or above base + largeSpaceWhp.

theorem Cslib.DataStructure.Dictionary.WordRAM.SuccinctWhp.BufEpFrame.other_bufTrieMemRep {base c U V w n_max ep : ℕ} {tr : SuccinctWhp.BufTrie} {m₁ m₂ : ℕ → ℕ} (hw : 0 < w) (hep : ep = 0 ∨ ep = 1) (hf : BufEpFrame base c U V w n_max ep m₁ m₂) (hrep : BufTrieMemRep base c U V w n_max (1 - ep) tr m₁) :
BufTrieMemRep base c U V w n_max (1 - ep) tr m₂

BufEpFrame on ep preserves BufTrieMemRep on the opposite buffer 1 - ep.