NLAlib.SmallEig.oneEig_pwrites_of
Library · theorem
Standard rounding
OneEig as a probabilistic block, from the precision facts: on a scalar machine in the standard model at 0 \le \boldsymbol{u} \le 1/5000 with index literals, the literals 0 and 1 exact, exact comparisons, a measurable interpretation reading the tape only in its windows and an exact polar sampler on a stream sU uniform on [0, 1], with DistSpec accurate on the points of modulus at most 10\Sigma at distance at least \eta_1 from the d_i, \lvert d_i\rvert \le \Sigma, 0 < \eta_2 \le 0.02\,\Sigma, \beta > 0, \eta_2 + 60\boldsymbol{u}\Sigma \le 0.027\,\beta, \eta_1 + 40\boldsymbol{u}\Sigma \ge 0, distinct d_i at distance at least 2(\eta_1 + 40\boldsymbol{u}\Sigma + \eta_2), 2.3 \cdot 0.66^t \cdot 2\Sigma \le 0.9\beta and the words qs with \eta_2 at 4 and 0.9\beta at 5: from NLAlib.SmallEig.OneEigInput, except with probability at most (6t + 1)((\eta_1 + 40\boldsymbol{u}\Sigma)/\eta_2)^2, the run writes only the pair and the flag, sets the flag to 0 and stores a point z with \eta_1 \le \min_i\lvert z - d_i\rvert \le \beta. A fragment: its tree runs only inside the tree of NLAlib.SmallEig.smallEigDecoupler. A fragment of the tree NLAlib.SmallEig.smallEigDecoupler.
NLAlib.SmallEig.oneEig_pwrites_of {O Q : Type} [Ops.Has Ops.ScalarOp O] [Ops.Has Ops.IndexOp O]
[Ops.Has ShiftedQR.DiskSampleOp 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) (hu0 : 0 ≤ u)
(hu : u ≤ 1 / 5000) (hL : Ops.IsIndexLit M I) (h0 : M.lit 0 = 0) (h1 : M.lit 1 = 1)
(hCmp : Ops.IsCmp id I) (hI : I.IsMeasurable) {win : O → List ℕ → ℕ}
(hloc : ∀ (o : O), I.TapeLocal o (win o)) {law : ℕ → Measure ℝ} {sU : ℕ}
(hDisk : ShiftedQR.IsPolarDiskSampler sU I) (hU : law sU = ℙ.restrict (Set.Icc 0 1)) {n m q t : ℕ}
{H : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {d : Fin (n + 1) → ℂ} {S β η₁ η₂ : ℝ}
(hDS :
SmallEig.DistSpecAccurateOn I H d m q {p | ‖p‖ ≤ 10 * S ∧ ∀ (i : Fin (n + 1)), η₁ ≤ ‖d i - p‖})
(hdS : ∀ (i : Fin (n + 1)), ‖d i‖ ≤ S) (hη₂ : 0 < η₂) (hη₂S : η₂ ≤ 2e-2 * S) (hβ : 0 < β)
(hηr : η₂ + 60 * u * S ≤ 27e-3 * β) (hη₁ε : 0 ≤ η₁ + 40 * u * S)
(hsep : ∀ (i j : Fin (n + 1)), d i ≠ d j → 2 * (η₁ + 40 * u * S + η₂) ≤ ‖d i - d j‖)
(ht : 2.3 * 0.66 ^ t * (2 * S) ≤ 0.9 * β) {qs : List ℝ} (hqs : 6 ≤ qs.length)
(hq4 : qs.getD 4 0 = η₂) (hq5 : qs.getD 5 0 = 0.9 * β) {h qw lam f : ℕ × ℕ} :
Ops.PWrites law I SmallEig.oneEig (Ops.Env.frame [n + 1, m, q, t] [h, qw, lam, f])
(Ops.Store.inBlock lam.1 lam.2 2 ⊔ Ops.Store.inBlock f.1 f.2 1)
(SmallEig.OneEigInput H qs h qw lam f)
(fun μ' ↦
μ'.store.get f.1 f.2 = some 0 ∧
∃ z,
μ'.store.readBlock lam.1 lam.2 2 = some [z.re, z.im] ∧
η₁ ≤ ⨅ i, ‖z - d i‖ ∧ ⨅ i, ‖z - d i‖ ≤ β)
((6 * ↑t + 1) * ((η₁ + 40 * u * S) / η₂) ^ 2)Import NLAlib.Eigensolvers.SmallEig.OneEig.