NLA-lib Explorer

NLAlib.SmallEig.smallEigProg_tail_pwrites

Library · theorem

Standard rounding

The tail of NLAlib.SmallEig.smallEigProg: after the perturbation, the reduction, the replay (NLAlib.SmallEig.smallEigProg_reduce_writes, on every tape) and the core (NLAlib.SmallEig.smallEigProg_core_pwrites, \varphi/4) store, from a perturbed block in the class of NLAlib.SmallEig.ginibrePerturb_pwrites, an upper triangular \widehat{\mathbf{T}}_\mathbf{b} and \widehat{\mathbf{U}}_\mathbf{b} tracked from (\mathbf{I}, \mathbf{M}): the reduction keeps the class (NLAlib.SmallEig.smallEigCoreClass_hessenbergReduceLastWord) and the replay is within (1 + 24\boldsymbol{u})^{(n+1)^2} - 1 of its unitary. The frames are given by their evaluations. A step in the proof of NLAlib.SmallEig.smallEigProg_pwrites_schur.

NLAlib.SmallEig.smallEigProg_tail_pwrites {O Q : Type} [Ops.Has Ops.ScalarOp O]
  [Ops.Has Ops.IndexOp O] [Ops.Has Ops.SampleOp O] [Ops.Has ShiftedQR.DiskSampleOp O]
  [Ops.Has Ops.CmpTst Q] [Ops.Has Ops.IdxTst Q] {Mch : Ops.Machine ℝ} {I : Ops.Interp O Q ℝ} {u : ℝ}
  (hS : Ops.IsScalar Mch I) (hM : Ops.StdModel u id Mch) (hL : Ops.IsIndexLit Mch I) {n : ℕ}
  (hn0' : 1 ≤ n) (hNat : Ops.IsExactNatLit id Mch (n + 1)) (hQ : Ops.IsToNat id I)
  (hC : Ops.IsCmp id I) (hI : I.IsMeasurable) {win : O → List ℕ → ℕ}
  (hloc : ∀ (o : O), I.TapeLocal o (win o)) (hSmp : Ops.IsSample I) {law : ℕ → Measure ℝ}
  {sU sG : ℕ} (hDisk : ShiftedQR.IsPolarDiskSampler sU I) (hU : law sU = ℙ.restrict (Set.Icc 0 1))
  (hG : law sG = gaussianReal 0 1) {c₁ c₂ : PolyLogTail} (hb₁ : 0 < c₁.b) (hb₂ : 0 < c₂.b)
  {nmax : ℕ} (hn : n + 1 ≤ nmax) {M : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {S δ φ : ℝ}
  (hMS : specNorm M ≤ S) (hδ : 0 < δ) (hδS : δ ≤ S) (hφ : 0 < φ) (hφ1 : φ ≤ 1)
  (hu : u ≤ SmallEig.uSmallEig nmax S δ φ c₁ c₂) {w q o : ℕ × ℕ} {L : ℕ} {ρ : Ops.Env}
  {ds₁ ds₂ ds₃ ds₄ : List Ops.IExp} {as₁ as₂ as₃ as₄ : List Ops.Operand}
  (hd₁ : Ops.IExp.evalList ρ.idx ds₁ = some [n + 1, n + 1])
  (ha₁ : Ops.Operand.evalList ρ as₁ = some [(L + 2, 0)])
  (hd₂ : Ops.IExp.evalList ρ.idx ds₂ = some [n + 1, n + 1, 0])
  (ha₂ : Ops.Operand.evalList ρ as₂ = some [w, w, (L + 2, 0)])
  (hd₃ : Ops.IExp.evalList ρ.idx ds₃ = some [n + 1, 0, 0, n + 1, n + 1, n + 1])
  (ha₃ : Ops.Operand.evalList ρ as₃ = some [(L + 2, 0), o, o])
  (hd₄ :
    Ops.IExp.evalList ρ.idx ds₄ =
      some
        [n + 1, 1, (SmallEig.smallEigParams nmax S δ φ c₁ c₂).length,
          SmallEig.smallEigCap nmax S δ φ c₁ c₂, SmallEig.smallEigCap nmax S δ φ c₁ c₂,
          SmallEig.smallEigCap nmax S δ φ c₁ c₂ + (n + 1), n + 1])
  (ha₄ : Ops.Operand.evalList ρ as₄ = some [w, (L + 1, 0), q, o, w, o, (L, 0)]) :
  Ops.PWrites law I
    ((Ops.Stmt.frame ds₁ as₁ slottedLogOpen).seq
      ((Ops.Stmt.frame ds₂ as₂ hessenbergReduceLast).seq
        ((Ops.Stmt.frame ds₃ as₃ givensReplayColumns).seq
          (Ops.Stmt.frame ds₄ as₄ (SmallEig.smallEigCore sG)))))
    ρ
    (Ops.Store.inBlock w.1 w.2 (2 * ((n + 1) * (n + 1))) ⊔
        Ops.Store.inBlock o.1 o.2 (2 * ((n + 1) * (n + 1))) ⊔
      Ops.Fp.above L)
    (fun μ ↦
      SmallEig.SmallEigScratch n L (SmallEig.smallEigParams nmax S δ φ c₁ c₂) w q o μ ∧
        μ.store.get (L + 1) 0 = some ((SmallEig.smallEigParams nmax S δ φ c₁ c₂).getD 6 0) ∧
          ∃ E V d,
            HoldsMatrix w (M + E) μ.store ∧
              specNorm E ≤ δ / 2 ∧
                IsUnit V ∧
                  (M + E) * V = V * diagonal d ∧
                    pseudoConditionNumber V ≤ 2 / SmallEig.smallEigCond nmax S δ φ c₂ ∧
                      ∀ (i j : Fin (n + 1)),
                        i ≠ j → SmallEig.smallEigGap nmax S δ φ c₁ / 2 ≤ ‖d i - d j‖)
    (fun μ' ↦
      ∃ Ub Tb,
        Schur.HoldsSchurPair w o Ub Tb μ'.store ∧
          Tb.IsUpperTriangular ∧
            IsTrackedUnitarySimilar
              ((1 + 24 * u) ^
                  SmallEig.smallEigLeafRotations nmax (SmallEig.smallEigCap nmax S δ φ c₁ c₂) -
                1)
              δ 1 M Ub Tb)
    (φ / 4)

Full source on GitHub

Import NLAlib.Eigensolvers.SmallEig.ProgramSchur.