NLA-lib Explorer

NLAlib.SpectralBisection.size_get_eq_of_absent_next

Library · theorem

Exact active-node frames preserve any absent next-level size cell. The family x is mathematical specification data; actual code still obtains its dimensions from stored words.

NLAlib.SpectralBisection.size_get_eq_of_absent_next {K : Type} (F : FloatMachine K ℕ ℕ)
  {n fuel d j : ℕ} {R0 beta : K} {root : EighNode K} (x : ℕ → EighNode K)
  (ma ua qa ea sz kd kp : ℕ × ℕ) {scratch : Ops.Fp} {s s' : Ops.Store K} (hj : j < n)
  (hReached :
    ∀ lo < n,
      0 < (x lo).k → ∃ a, a.length = d ∧ eighLoc F n fuel R0 beta 0 0 root a = some (lo, x lo))
  (hPayload :
    ∀ lo < n,
      0 < (x lo).k →
        Ops.Fp.Disj (Ops.Store.inBlock sz.1 (sz.2 + n * (d + 1)) n)
          (SpectralBisection.stepPayloadFp n d lo ma ua qa ea sz kd kp
            (eighStep F n fuel R0 beta (x lo).A (x lo).R (x lo).ε (x lo).ℓ
              (eighTapeSample n d lo))))
  (hScratch : ¬scratch sz.1 (sz.2 + n * (d + 1) + j))
  (hfr :
    Ops.Store.EqOff
      (Ops.Fp.loopPrefix
          (fun lo ↦
            SpectralBisection.activeStepFp n d lo ma ua qa ea sz kd kp
              (eighStep F n fuel R0 beta (x lo).A (x lo).R (x lo).ε (x lo).ℓ
                (eighTapeSample n d lo)))
          n ⊔
        scratch)
      s s')
  (hAbsent :
    ∀ (path : List Bool) (y : EighNode K),
      path.length = d + 1 → eighLoc F n fuel R0 beta 0 0 root path ≠ some (j, y)) :
  s'.get sz.1 (sz.2 + n * (d + 1) + j) = s.get sz.1 (sz.2 + n * (d + 1) + j)

Full source on GitHub

Import NLAlib.Eigensolvers.SpectralBisection.ChildFrame.