A suspended short-key row closes at its true parse parent
ProvedExactPatternStream.ImplementationProof.persistent_short_closeLet and have lengths with , over an alphabet of size . Fix the hierarchy seed and a word width , where is the integer logarithmic length used by the implementation. At a nonfinal level choose an emitted group of either parse. Its key fits the short-key width. The packed row contains the first children’s key and counter state, where is the group size, and the last child is supplied in the input register. Under the stated layout, address and calling conditions, the close routine reaches the chosen return address with
where is the actual next-level parent. The row contains the counter slots for the zero-padded group and the annotation updated on its final child. Bits outside the specified counter and footer interval and all stream cursors are preserved. The proof charges the writes at each clock.
import Definitions.Def_ExactPatternStream_StreamingImplementation open ExactPatternStream open ExactPatternStream.ImplementationProof open CounterProof DynBrooks MachineProof SoundProof PackedRAM CompletenessProof HashProof GroupReader
theorem ExactPatternStream.ImplementationProof.persistent_short_close {σ w exponent : ℕ} (P T : List (Fin σ)) (seed : Seeds σ P.length)
(hm : 1≤ P.length) (hmn : P.length≤ T.length) (short : T.length≤2*P.length)
(hn : 3≤ T.length) (alphabet : σ≤ T.length^exponent) (word : 2*(64*(exponent+1)+33)*ell T.length≤ w)
(j : ℕ) (live : j< topIndex (seededBuild P T seed))
(pre post : Program) (ret : ℕ) (ω : ℕ→BitVec w) (base start : ℕ) (safe : 48≤ base) :
PersistentShortClose P T seed j pre post ret ω base start := by sorry