A placed short-key callback advances exactly one slot
ProvedExactPatternStream.ImplementationProof.sweep_short_absorb_siteLet 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 take the expanded child at position of either parse. Suppose its group has size , its key fits the short width, the stored trace has the correct child labels and counter values, and the caller supplies the valid packed child. The heap and address bounds hold and the charged set contains the required marker workspace. At a placement of the absorb routine the run satisfies
The slot formula denotes the updated packed short-row state and its valid calling arguments. Registers 150 and 152 retain their entry values, and the row, registers and stream state satisfy the specified frame. The caller can keep its padding counters live across the callback.
import Definitions.Def_ExactPatternStream_StreamingImplementation open ExactPatternStream open ExactPatternStream.ImplementationProof open DynBrooks MachineProof CounterProof PackedRAM HashProof SoundProof CompletenessProof
theorem ExactPatternStream.ImplementationProof.sweep_short_absorb_site {σ 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)) (Q : Program) (ω : ℕ→BitVec w)
(base start entry : ℕ) (site : GroupSite Q entry sweepShortAbsorb) (safe : 456≤ base)
(L : Level) (lev : L=lvl (seededBuild P T seed) j)
(S : List ParseTree) (A : List Bool) (side : (S=L.P ∧ A=L.AP) ∨ (S=L.T ∧ A=L.AT))
(idx p : ℕ) (valid : p<(payload S A L.i L.w L.u L.c L.v).length) (g : ShortGroupTrace w σ P.length T.length L)
(div : p/(L.c+2)=idx) (kids : g.children=counterChildLabels L S A idx) (vals : g.values=payloadCounterInputs σ P.length L S A idx)
(mode : (L.c+2)*levelBits σ P.length L.i≤ hashB σ P.length)
(cursor : g.foot start<2^w) (cap : base+g.foot start/w+1<2^w) (area : Finset ℕ) (charge : shortMarkerArena g base start⊆area)
(a : Config w) (pc : a.pc=entry) (ready : g.Ready base start (p%(L.c+2)) a)
(val : a.mem 37=packedLabelWord w σ P.length L.i (streamChildLabel (payload S A L.i L.w L.u L.c L.v) p valid)) :
∃ d,Reach Q ω a d ∧ d.pc=entry+375 ∧ g.Ready base start (p%(L.c+2)+1) d ∧
d.mem 150=a.mem 150 ∧ d.mem 152=a.mem 152 ∧ GroupLaneEffect base start (g.foot start+5) area a d := by sorry