Round-six lemma `bodyZ_sp`
ProvedNLogN.KFX.bodyZ_spAn auxiliary lemma of the round-six development, published as a separate node because its proof is long or shared.
The following holds (Lean statement, in the scope of module Solutions.KFX6Run):
theorem NLogN.KFX.bodyZ_sp (t : IState HS) (V m Bb : ℕ) (hm : m < zsz (V : ℤ)) (hB : zsz (V : ℤ) ≤ Bb)
(hB2 : 2 ≤ Bb) : Sp bodyZ (ssZ t V m) (ssZ t V (m + 1)) (cZ Bb)
Context. KFX §6: the bit-length loop and the run of the uniform row addition
loopZ computes A = zsz V on stack 48 by halving V (pushed on stack 14) until it is 0.
rowCodeU q = withPushI hdrL (zB (l13U q)) pushes the master registers computed from the
parameter registers (hdrL), runs loopZ, then l13U q.
Formalization Note. Part of the Lean formalization of the round-six κ-improvement (integer-multiplication-kappa campaign, target IntMul.Kappa.jain_round6_framework). The statement is copied verbatim from the Lean development; the platform node carries the same declaration name. Definitions it mentions live in the IntMul_Kappa_R6_Defs* bundles (on top of the published κ bundles IntMul_Kappa_K_Defs*).
-- Round-six κ development (integer-multiplication-kappa), generated by skeleton subtraction. import Definitions.Def_IntMul_Kappa_K_Defs33 import Definitions.Def_IntMul_Kappa_R6_Defs1 import Mathlib import Definitions.Def_IntMul_HvdH_M_Defs8 import Definitions.Def_IntMul_MultitapeModel set_option autoImplicit false set_option relaxedAutoImplicit false set_option maxHeartbeats 1000000 open NLogN NLogN.KFX open IntMul NLogN.RS NLogN.KIL NLogN.KFD NLogN.KFE NLogN.KFB NLogN.KFL NLogN.KFW NLogN.KFH AModel Butterfly
theorem NLogN.KFX.bodyZ_sp (t : IState HS) (V m Bb : ℕ) (hm : m < zsz (V : ℤ)) (hB : zsz (V : ℤ) ≤ Bb)
(hB2 : 2 ≤ Bb) : Sp bodyZ (ssZ t V m) (ssZ t V (m + 1)) (cZ Bb) := by sorry