pop (KFY 7: the prologue of the line passes)
ProvedNLogN.KFY.RSAll.popThe following holds (Lean statement, in the scope of module Solutions.KFY7Pro):
theorem NLogN.KFY.RSAll.pop (r : Fin HS) (s : IState HS) (v : ℤ) (L : List Item) (B : ℕ) (hr : r.val < 56)
(h : s.G r = .int v :: L) (hB : zsz v ≤ B) :
RSAll (.pop r) s (s.upd r L) (2 * B + 2)
Context. The lemma belongs to the part KFY 7: the prologue of the line passes: The line-map descriptor [p, α, h, d, b_0..b_{d−1}, s_0..s_{d−1}] (top first) lies on the
descriptor stack dS = 26. The prologue proP takes p, α, ℓ = h + 1, d into registers
(yP = 11, yA = 12, KFM's zEl = 29, zD = 25), counts the zero bits into d' (KFM's
zDp = 31, the bits are [d' ≤ j]), and pushes L = dℓ − d' (yL = 13, the base-2 logarithm
of the array length). The sources stay on dS (proP_all).
Formalization Note. This lemma belongs to layer 5 of the Lean formalization (integer-multiplication-kappa campaign) of the OpenAI preprint Integer multiplication below : the uniform item-language machine (register programs over the NLogN multitape framework) assembling the Proposition 14 / Lemma 13 / Proposition 18 pieces, the resampling and chirp stages and the cost recurrences into one fixed machine, culminating in NLogN.KFTop.kappa_bound : IntMul.KappaBound (1 / 2 ^ 182) (the bound of Def_IntMul_MultitapeModel). All names refer to the definition bundles up to IntMul_Kappa_K_Defs33.
-- OpenAI-preprint / κ-improvement development (integer-multiplication-kappa), generated by skeleton subtraction. import Definitions.Def_IntMul_Kappa_K_Defs33 set_option autoImplicit false set_option relaxedAutoImplicit false set_option maxHeartbeats 1000000 set_option linter.unusedSimpArgs false set_option linter.unusedVariables false set_option linter.unusedSectionVars false open NLogN open NLogN.KFY open IntMul NLogN
theorem NLogN.KFY.RSAll.pop (r : Fin HS) (s : IState HS) (v : ℤ) (L : List Item) (B : ℕ) (hr : r.val < 56)
(h : s.G r = .int v :: L) (hB : zsz v ≤ B) :
RSAll (.pop r) s (s.upd r L) (2 * B + 2) := by sorry