NLAlib.Schur.verifiedSchurWith_measureReal_not_flag_le
Library · theorem
Standard rounding Random tape
The verified Schur solver fails rarely, for any solver postcondition (generic, the failure event is the flag \ne 0 or the solver's postcondition missed): on a scalar machine with the standard model at \boldsymbol{u}, index literals and exact comparisons, a measurable interpretation reading the tape only in its windows, with 64(n + 2)^3\boldsymbol{u} \le 1, 0 \le \kappa \le 64(n + 2)^2\boldsymbol{u}, \theta \le 1, 4096(n + 2)^3\boldsymbol{u} \le \theta, e_U \le 1/2 and \sqrt{n + 1}\,\delta' \le \theta/8, let the solver Solve, from every input memory, end in a postcondition Post (measurable with its frame) except with probability at most \varphi, where Post implies a Schur output of \mathbf{A} with the errors \delta', e_U, is kept when only the flag is rewritten to 0, and is kept by the release of scratch buffers. Then from a memory holding \mathbf{A} and the words \theta, \kappa, qs, under a tape with the stream laws, \mathbb{P}\bigl[\mathsf{verifiedSchurWith}(\mathbf{A}) \text{ fails, writes outside } \mathbf{A}, \widehat{\mathbf{U}} \text{ and the flag, or does not store the flag } 0 \text{ and `Post`}\bigr] \le \varphi\,. No printed source.
NLAlib.Schur.verifiedSchurWith_measureReal_not_flag_le {O Q : Type} [Ops.Has Ops.ScalarOp O]
[Ops.Has Ops.IndexOp O] [Ops.Has Ops.CmpTst Q] {M : Ops.Machine ℝ} {I : Ops.Interp O Q ℝ} {u : ℝ}
(hS : Ops.IsScalar M I) (hM : Ops.StdModel u id M) (hL : Ops.IsIndexLit M I) (hC : Ops.IsCmp id I)
(hI : I.IsMeasurable) {win : O → List ℕ → ℕ} (hloc : ∀ (o : O), I.TapeLocal o (win o))
{law : ℕ → Measure ℝ} {n nr nq k F T : ℕ} {qs : List ℝ} {Solve : Ops.Stmt O Q} {δ' eU θ κ φ : ℝ}
{Post : Ops.Mem ℝ → Prop} {A : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {a p uo f : ℕ × ℕ}
{μ : Ops.Mem ℝ}
(hSolve :
∀ (μ' : Ops.Mem ℝ),
Schur.SchurPipelineInput qs a p uo f A μ' →
∀ {Ω : Type} [inst : MeasurableSpace Ω] {P : Measure Ω} {ξ : Ω → Ops.Tape ℝ},
Ops.IsTapeLaw law P ξ →
P.real
{ω |
¬Ops.Writes Ops.Mode.total I (ξ ω) Solve
(Ops.Env.frame [n + 1, nr, nq, k, F, T] [a, p, a, uo, f])
(Schur.schurFp n a uo f) Post μ'} ≤
φ)
(hPm :
MeasurableSet {x | Ops.Store.EqOff (Schur.schurFp n a uo f) x.1.store x.2.store ∧ Post x.2})
(hPS : ∀ (μ' : Ops.Mem ℝ), Post μ' → Schur.SchurOutput a uo f A δ' eU μ')
(hPf :
∀ (μ' μ'' : Ops.Mem ℝ),
Post μ' →
Ops.Store.EqOff (Ops.Store.inBlock f.1 f.2 1) μ'.store μ''.store →
μ''.store.get f.1 f.2 = some 0 → Post μ'')
(hPb :
∀ {s s' : Ops.Store ℝ} {q : ℕ},
Ops.Store.Below (List.length μ.store) s s' →
Post { store := s, pos := q } → Post { store := s', pos := q })
(hu : 64 * (↑n + 2) ^ 3 * u ≤ 1) (hκ0 : 0 ≤ κ) (hκ : κ ≤ 64 * (↑n + 2) ^ 2 * u) (hθ1 : θ ≤ 1)
(huθ : 4096 * (↑n + 2) ^ 3 * u ≤ θ) (heU : eU ≤ 1 / 2) (hδ' : √(↑n + 1) * δ' ≤ θ / 8)
(hq : qs.length = nr + nq) (hin : Schur.SchurPipelineInput (qs ++ [θ, κ]) a p uo f A μ) {Ω : Type}
[MeasurableSpace Ω] {P : Measure Ω} {ξ : Ω → Ops.Tape ℝ} (hξ : Ops.IsTapeLaw law P ξ) :
P.real
{ω |
¬Ops.Writes Ops.Mode.total I (ξ ω) (Schur.verifiedSchurWith Solve)
(Ops.Env.frame [n + 1, nr, nq, k, F, T] [a, p, a, uo, f]) (Schur.schurFp n a uo f)
(fun μ' ↦ μ'.store.get f.1 f.2 = some 0 ∧ Post μ') μ} ≤
φImport NLAlib.Eigensolvers.Schur.Verified.