NLAlib.SpectralBisection.eighStep_eq_branchOutcome
Library · theorem
The computed-index branch outcome is exactly the existing nonleaf mathematical step. The size and failed stopping test are explicit, and all Gaussian normalization uses the same machine word as the executed program.
NLAlib.SpectralBisection.eighStep_eq_branchOutcome {K : Type} [Inhabited K] (M : Ops.Machine K)
(dec : K → ℝ) (mm : MatMulMap (K × K)) (qr : QRMap (K × K)) {n k lo fuel ell : ℕ}
(hslot : lo + k ≤ n) (hk : 2 ≤ k) (R R0 beta eps U : K) (S : ℕ → ℕ → K × K)
(A : Matrix (Fin k) (Fin k) (K × K)) (hactive : ¬dec R ≤ dec (M.mul eps R0)) :
have F :=
M.toFloatMachine dec (fun {l m n} ↦ mm) (fun {m n} ↦ qr) M.mul fun z ↦ M.normalWords z.1 z.2;
have B :=
newtonSchulzSign F beta (M.mul (M.lit 2) R) fuel
(F.hermShift A (M.mul (M.div R (M.lit ↑ell)) U));
have Pp := F.hermScale (F.hermShift B (M.neg (M.lit 1))) (M.lit 2);
have Pm := F.hermScale (F.negMat (F.hermShift B (M.lit 1))) (M.lit 2);
let kp := min k (F.toNat (M.add (F.traceRe Pp) (M.div (M.lit 1) (M.lit 2))));
eighStep F n fuel R0 beta A R eps ell (SpectralBisection.storedNodeSample n lo U S) =
SpectralBisection.branchOutcome M dec (fun {l m n} ↦ mm) (fun {m n} ↦ qr) lo R S A Pp Pm kp ⋯Import NLAlib.Eigensolvers.SpectralBisection.State.