NLA-lib Explorer

NLAlib.SpectralBisection.eighStep_nodeAtSlot_tapeMachine

Library · theorem

Stored batch outcomes and indexed tape outcomes agree at every typed root slot.

NLAlib.SpectralBisection.eighStep_nodeAtSlot_tapeMachine {K : Type} [Inhabited K]
  (M : Ops.Machine K) (dec : K → ℝ) (mm : MatMulMap (K × K)) (qr : QRMap (K × K)) (n base : ℕ)
  (τ : Ops.Tape K) (fuel : ℕ) (R0 eps beta : K) (ell : ℕ) (A : Matrix (Fin n) (Fin n) (K × K))
  (d lo : ℕ) (hlo : lo < n) :
  have F := SpectralBisection.tapeMachine M dec (fun {l m n} ↦ mm) (fun {m n} ↦ qr) n base τ;
  have x :=
    SpectralBisection.nodeAtSlot F n fuel R0 beta { k := n, A := A, R := R0, ε := eps, ℓ := ell } d
      lo;
  have p := eighLevelParams F R0 eps ell d;
  eighStep
      (M.toFloatMachine dec (fun {l m n} ↦ mm) (fun {m n} ↦ qr) M.mul fun z ↦ M.normalWords z.1 z.2)
      n fuel R0 beta x.A p.1 p.2 (ell + d)
      (SpectralBisection.storedNodeSample n lo
        (Ops.vec (SpectralBisection.levelUniformWords n base τ d) lo)
        (SpectralBisection.levelGaussianMatrix n base τ d)) =
    eighStep F n fuel R0 beta x.A x.R x.ε x.ℓ (eighTapeSample n d lo)

Full source on GitHub

Import NLAlib.Eigensolvers.SpectralBisection.DownLevelRecords.