NLA-lib Explorer

NLAlib.SpectralBisection.deflate_storedNodeSample

Library · theorem

The existing mathematical deflation routine on raw stored samples is exactly the QR basis computed from the program's sampled Gaussian matrix. The size bound supplies every requested column; no QR accuracy or rank assumption is needed for this functional equality.

NLAlib.SpectralBisection.deflate_storedNodeSample {K : Type} [Inhabited K] (M : Ops.Machine K)
  (dec : K → ℝ) (mm : MatMulMap (K × K)) (qr : QRMap (K × K)) {n k lo r : ℕ} (hslot : lo + k ≤ n)
  (hr : r ≤ k) (u : K) (S : ℕ → ℕ → K × K) (side : Bool) (P : Matrix (Fin k) (Fin k) (K × K)) :
  deflate
      (M.toFloatMachine dec (fun {l m n} ↦ mm) (fun {m n} ↦ qr) M.mul fun z ↦ M.normalWords z.1 z.2)
      r P (leadingBlock k ((SpectralBisection.storedNodeSample n lo u S).2 side)) =
    (qr
            (mm P
              (SpectralBisection.sampledGaussian M k lo (if side = true then 0 else 1) S
                M.sqrtHalf))).1.submatrix
      id (Fin.castLE hr)

Full source on GitHub

Import NLAlib.Eigensolvers.SpectralBisection.State.