NLA-lib Explorer

NLAlib.Deflation.measureReal_not_accepts_le_of_reference

Library · theorem

An independently bounded reference event controls full actual failure, including none, resource violations, loss of the exact word output, sample advance or cleanup, and failure of stored subspace accuracy. All conditions concern the same canonical counted execution.

NLAlib.Deflation.measureReal_not_accepts_le_of_reference {K : Type} [Inhabited K]
  (F : FloatMachine K ℝ ℂ) (dec : K → ℝ) {domain : (Fin 2 → ℕ) → Prop} {admitted : ∃ d, domain d}
  (matrixWork matrixWorkspace : Ops.MatrixOp → List ℕ → ℕ)
  {model :
    Ops.AccessModel Ops.DenseOp (Ops.CmpTst ⊕ Ops.IdxTst) (Deflation.problem domain admitted)}
  (algorithm :
    Ops.Algorithm model
      (Deflation.wordSpecification (fun {l m n} ↦ F.mm) (fun {m n} ↦ F.qr) domain admitted
        matrixWork matrixWorkspace))
  {d : Fin 2 → ℕ} (hd : domain d) (x : (Deflation.problem domain admitted).Input d)
  (I : Ops.Interp Ops.DenseOp (Ops.CmpTst ⊕ Ops.IdxTst) K) (hI : model.contracts d x I)
  {Omega : Type} [MeasurableSpace Omega] (P : Measure Omega) [IsFiniteMeasure P]
  (tape : Omega → Ops.Tape K) (G : Omega → Matrix (Fin (d 0)) (Fin (d 0)) ℂ)
  (hSample :
    ∀ (omega : Omega), Deflation.sampleMatrix (d 0) 0 (tape omega) = (G omega).map F.normal)
  (U : Matrix (Fin (d 0)) (Fin (d 1)) ℂ) (error : ℝ) {theta : ℝ}
  (hReference :
    P.real
        {omega |
          ¬∃ W,
              HasOrthonormalCols W ∧
                specNorm
                    (U * W -
                      decodeMatrix dec (deflate F (d 1) (Deflation.inputMatrix d x) (G omega))) ≤
                  error} ≤
      theta) :
  P.real
      {omega |
        ¬(Deflation.wordSpecification (fun {l m n} ↦ F.mm) (fun {m n} ↦ F.qr) domain admitted
                matrixWork matrixWorkspace).Accepts
            algorithm.program I model.resources (tape omega) d x fun c m ↦
            (Deflation.wordSpecification (fun {l m n} ↦ F.mm) (fun {m n} ↦ F.qr) domain admitted
                    matrixWork matrixWorkspace).good
                d x (tape omega) c m ∧
              Deflation.StoresApproxBasis dec U error (1, 0) m} ≤
    theta

Full source on GitHub

Import NLAlib.Eigensolvers.Deflation.Probability.