NLA-lib Explorer

NLAlib.Schur.checkNorms_writes

Library · theorem

The four norms of the check, on every tape, with any two-sided norm estimate for the order N in place of NLAlib.Schur.frobNormStage's contract: the run writes only the four words of S and stores there estimates of \|\mathbf{D}\|_{\mathsf{F}}, \|\mathbf{A}_0\|_{\mathsf{F}}, \|\mathbf{U}\|_{\mathsf{F}} and \|\mathbf{T}\|_{\mathsf{F}} within the factors c_1, c_2. A step in the proof of NLAlib.Schur.schurResidualCheck_meets.

NLAlib.Schur.checkNorms_writes {O Q : Type} [Ops.Has Ops.ScalarOp O] {I : Ops.Interp O Q ℝ}
  {c₁ c₂ : ℝ} {N : ℕ} (hNm : Schur.FrobNormEstimateContract c₁ c₂ N Schur.frobNormStage I)
  {τ : Ops.Tape ℝ} {μ : Ops.Mem ℝ} {a0 uo t d s : ℕ × ℕ} {A₀ U T D : Matrix (Fin N) (Fin N) ℂ}
  (hA : HoldsMatrix a0 A₀ μ.store) (hU : HoldsMatrix uo U μ.store) (hT : HoldsMatrix t T μ.store)
  (hD : HoldsMatrix d D μ.store) (hl : μ.Live [a0, uo, t, d, s]) (hs : s.2 + 4 ≤ μ.store.len s.1)
  (ha : a0.1 ≠ s.1) (hu : uo.1 ≠ s.1) (ht : t.1 ≠ s.1) (hd : d.1 ≠ s.1) :
  Ops.Writes Ops.Mode.total I τ Schur.checkNorms (Ops.Env.frame [N] [a0, uo, t, d, s])
    (Ops.Store.inBlock s.1 s.2 4)
    (fun μ' ↦
      ∃ r a w x,
        μ'.store.get s.1 s.2 = some r ∧
          μ'.store.get s.1 (s.2 + 1) = some a ∧
            μ'.store.get s.1 (s.2 + 2) = some w ∧
              μ'.store.get s.1 (s.2 + 3) = some x ∧
                c₁ * frobNorm D ≤ r ∧
                  r ≤ c₂ * frobNorm D ∧
                    c₁ * frobNorm A₀ ≤ a ∧
                      a ≤ c₂ * frobNorm A₀ ∧
                        c₁ * frobNorm U ≤ w ∧
                          w ≤ c₂ * frobNorm U ∧ c₁ * frobNorm T ≤ x ∧ x ≤ c₂ * frobNorm T)
    μ

Full source on GitHub

Import NLAlib.Eigensolvers.Schur.ResidualCheck.