Internal cell-footprint predicate for flat Word-RAM binary tries #
Internal TrieRep predicate and helper lemmas shared privately between Basic (defining
unexposed HoldsTrie), Trie, InputTrie, Tabulate, and Stages; never re-exported through
TrimmedYates or TrimmedYates.Basic.
Main definitions #
Cslib.Algorithms.WordRAM.TrimmedYates.TrieRep: cell-footprint representation of a depth-dbinary trie in flat word memory.
Main results #
Cslib.Algorithms.WordRAM.TrimmedYates.TrieRep.congr_mem,TrieRep.zero_root,TrieRep.fresh_node: memory framing, empty root, and fresh-node lemmas.
TrieRep mem d node S fn: node is the root of a depth-d binary trie in mem with owned
cell footprint S, representing the function fn : ℕ → ℕ on low-d-bit keys. node = 0 is the
empty trie returning 0 everywhere. Every allocated node occupies {node, node + 1} with
0 < node.