NLA-lib Explorer

NLAlib.Schur.schurPipeline_pos_terminates

Library · theorem

This statement changed in the recorded rename: 2026-11-schur-tighten.

Standard rounding

The positive branch on every tape: with a regularizer that terminates storing some matrix, a reducer and a terminating core, the positive branch of the pipeline terminates and stores an accumulator with \|\mathbf{U}^{\mathsf H}\mathbf{U} - \mathbf{I}\|_2 \le 2\varepsilon + \varepsilon^2.

NLAlib.Schur.schurPipeline_pos_terminates {O Q : Type} [Ops.Has Ops.ScalarOp O]
  {Mch : Ops.Machine ℝ} {I : Ops.Interp O Q ℝ} {u : ℝ} (hS : Ops.IsScalar Mch I)
  (hM : Ops.StdModel u id Mch) (h1 : Mch.lit 1 = 1) (hu1 : u ≤ 1) {Reg Red Core : Ops.Stmt O Q}
  {n k F T L : ℕ} {εHU εHT εCU : ℝ} {qR qC : List ℝ}
  (hReg :
    ∀ {τ : Ops.Tape ℝ} {μ : Ops.Mem ℝ} {a q : ℕ × ℕ} (A : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ),
      HoldsMatrix a A μ.store →
        μ.store.readBlock q.1 q.2 qR.length = some qR →
          μ.Live [a, q] →
            Ops.Fp.Disj (Ops.Store.inBlock a.1 a.2 (2 * ((n + 1) * (n + 1))))
                (Ops.Store.inBlock q.1 q.2 qR.length) →
              Ops.Writes Ops.Mode.total I τ Reg (Ops.Env.frame [n + 1, qR.length] [a, q, a])
                (Ops.Store.inBlock a.1 a.2 (2 * ((n + 1) * (n + 1))))
                (fun μ' ↦ ∃ A', HoldsMatrix a A' μ'.store) μ)
  (hRed : Schur.HessenbergReducerContract εHU εHT (n + 1) Red I)
  (hCore : Schur.TerminatingSchurCore εCU k F T (n + 1) qC Core I) (hεHU : 0 ≤ εHU) (hεCU : 0 ≤ εCU)
  {a p uo f : ℕ × ℕ} {A : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {m : Ops.Mem ℝ}
  (hm : Schur.SchurPipelineMem n (qR ++ qC) a p uo f L m) (hA : HoldsMatrix a A m.store) {x : ℝ}
  (hx : m.store.get L 0 = some x) (hx0 : 0 < x) (τ : Ops.Tape ℝ) :
  Ops.Writes Ops.Mode.total I τ
    ((Ops.Stmt.call (Ops.Has.inj (Ops.ScalarOp.lit 1)) [] []
          [{ buf := 6, off := Ops.IExp.const 0 }]).seq
      ((Ops.Stmt.call (Ops.Has.inj Ops.ScalarOp.div) []
            [{ buf := 6, off := Ops.IExp.const 0 }, { buf := 5, off := Ops.IExp.const 0 }]
            [{ buf := 6, off := Ops.IExp.const 0 }]).seq
        ((Ops.Stmt.loop (Ops.IExp.const 2 * (Ops.IExp.var 0 * Ops.IExp.var 0))
              (Ops.Stmt.call (Ops.Has.inj Ops.ScalarOp.mul) []
                [{ buf := 0, off := Ops.IExp.var 6 + Ops.IExp.var 11 },
                  { buf := 6, off := Ops.IExp.const 0 }]
                [{ buf := 0, off := Ops.IExp.var 6 + Ops.IExp.var 11 }])).seq
          ((Ops.Stmt.frame [Ops.IExp.var 0, Ops.IExp.var 1]
                [{ buf := 0, off := Ops.IExp.var 6 }, { buf := 1, off := Ops.IExp.var 7 },
                  { buf := 0, off := Ops.IExp.var 6 }]
                Reg).seq
            ((Ops.Stmt.frame [Ops.IExp.var 0] [{ buf := 3, off := Ops.IExp.var 9 }]
                  Ops.PairMatrix.identity).seq
              ((Ops.Stmt.frame [Ops.IExp.var 0]
                    [{ buf := 0, off := Ops.IExp.var 6 }, { buf := 3, off := Ops.IExp.var 9 },
                      { buf := 0, off := Ops.IExp.var 6 }, { buf := 3, off := Ops.IExp.var 9 }]
                    Red).seq
                ((Ops.Stmt.frame
                      [Ops.IExp.var 0, Ops.IExp.var 2, Ops.IExp.var 3, Ops.IExp.var 4,
                        Ops.IExp.var 5]
                      [{ buf := 0, off := Ops.IExp.var 6 },
                        { buf := 1, off := Ops.IExp.var 7 + Ops.IExp.var 1 },
                        { buf := 3, off := Ops.IExp.var 9 }, { buf := 0, off := Ops.IExp.var 6 },
                        { buf := 3, off := Ops.IExp.var 9 }, { buf := 4, off := Ops.IExp.var 10 }]
                      Core).seq
                  (Ops.Stmt.loop (Ops.IExp.const 2 * (Ops.IExp.var 0 * Ops.IExp.var 0))
                    (Ops.Stmt.call (Ops.Has.inj Ops.ScalarOp.mul) []
                      [{ buf := 0, off := Ops.IExp.var 6 + Ops.IExp.var 11 },
                        { buf := 5, off := Ops.IExp.const 0 }]
                      [{ buf := 0, off := Ops.IExp.var 6 + Ops.IExp.var 11 }])))))))))
    (Schur.schurPipelineEnv n qR.length qC.length k F T a p uo f L)
    (Schur.schurFp n a uo f ⊔ Ops.Store.inBlock (L + 1) 0 1)
    (Schur.SchurOrth a uo (2 * ((1 + εHU) * (1 + εCU) - 1) + ((1 + εHU) * (1 + εCU) - 1) ^ 2)) m

Full source on GitHub

Import NLAlib.Eigensolvers.Schur.Pipeline.