NLA-lib Explorer

NLAlib.Schur.schurPipeline_core_pwrites

Library · theorem

Standard rounding

The core and the scaling back: from a run memory holding the pair (\mathbf{U}_1, \mathbf{H}) (\mathbf{H} upper \mathbf{H}essen\mathbf{b}erg of the core's class, \|\mathbf{H}\|_2 \le 4/c_1) and the norm estimate \mathbf{x}, the core and the scaling of the words by \mathbf{x} end, except with probability \varphi_C, in a memory with the flag 0, the accumulator \mathbf{U}_2 and the scaled \mathbf{T}' of an upper triangular \mathbf{T} tracked from (\mathbf{U}_1, \mathbf{H}). The conclusion is passed as hpost. A step in the proof of NLAlib.Schur.schurPipeline_reg_pwrites.

NLAlib.Schur.schurPipeline_core_pwrites {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)
  (hI : I.IsMeasurable) {win : O → List ℕ → ℕ} (hloc : ∀ (o : O), I.TapeLocal o (win o))
  {law : ℕ → Measure ℝ} {Core : Ops.Stmt O Q} {n k F T L : ℕ} {c₁ εCU εCT φC : ℝ} {qR qC : List ℝ}
  {C' : {m : ℕ} → Matrix (Fin (m + 1)) (Fin (m + 1)) ℂ → Prop}
  (hCore :
    Schur.RandomSchurCoreContract law εCU εCT φC (fun {n} ↦ C') k F T (n + 1) (4 / c₁) qC Core I)
  {a p uo f : ℕ × ℕ} {m : Ops.Mem ℝ} (hm : Schur.SchurPipelineMem n (qR ++ qC) a p uo f L m) {x : ℝ}
  (hx : m.store.get L 0 = some x) {U₁ H : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ}
  (hpair : Schur.HoldsSchurPair a uo U₁ H m.store) (hH : IsUpperHessenberg H)
  (hHn : specNorm H ≤ 4 / c₁) (hC' : C' H) {Goal : Ops.Mem ℝ → Prop}
  (hpost :
    ∀ (U₂ Tm T' : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ),
      Tm.IsUpperTriangular →
        IsTrackedUnitarySimilar εCU εCT U₁ H U₂ Tm →
          frobNorm (T' - ↑x • Tm) ≤ u * |x| * frobNorm Tm →
            (∀ (i j : Fin (n + 1)), Tm i j = 0 → T' i j = 0) →
              ∀ (m' : Ops.Mem ℝ),
                m'.store.get f.1 f.2 = some 0 →
                  HoldsMatrix a T' m'.store → HoldsMatrix uo U₂ m'.store → Goal m') :
  Ops.PWrites law I
    ((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)
    (fun x ↦ x = m) Goal φC

Full source on GitHub

Import NLAlib.Eigensolvers.Schur.Pipeline.