NLAlib.SmallEig.smallEigProg_reduce_terminates
Library · theorem
The order-(n + 1) \ge 2 branch of NLAlib.SmallEig.smallEigProg after the perturbation: the reduction and the replay (NLAlib.SmallEig.smallEigProg_reduce_writes_if), then the core: the run is total, writes only the block, the accumulator and the scratch above L, leaves both stored, and the accumulator near a unitary if P (which gives the standard model at \boldsymbol{u} \le 1/100). The frames are given by their evaluations.
NLAlib.SmallEig.smallEigProg_reduce_terminates {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] {M : Ops.Machine ℝ} {I : Ops.Interp O Q ℝ} {u : ℝ}
(hS : Ops.IsScalar M I) {P : Prop} (hP : P → Ops.StdModel u id M ∧ u ≤ 1 / 100)
(hL : Ops.IsIndexLit M I) {n kmax : ℕ} (hn1 : 1 ≤ n) (hdk : n + 1 ≤ kmax)
(hNat : Ops.IsExactNatLit id M (n + 1)) (hC : Ops.IsCmp id I) (hQ : Ops.IsToNat id I)
(hSmp : Ops.IsSample I) {sU sG : ℕ} (hDisk : ShiftedQR.IsPolarDiskSampler sU I) {T : ℕ}
{qs : List ℝ} (hqs : SmallEig.SmallEigCaps T qs) (hlen : 12 ≤ qs.length) {ρ : Ops.Env}
{ds₁ ds₂ ds₃ ds₄ : List Ops.IExp} {as₁ as₂ as₃ as₄ : List Ops.Operand} {w p ub : ℕ × ℕ} {L : ℕ}
(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), ub, ub])
(hd₄ : Ops.IExp.evalList ρ.idx ds₄ = some [n + 1, 1, qs.length, T, T, T + (n + 1), n + 1])
(ha₄ : Ops.Operand.evalList ρ as₄ = some [w, (L + 1, 0), p, ub, w, ub, (L, 0)])
{tape : Ops.Tape ℝ} {μ : Ops.Mem ℝ} {A : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} (hwL : w.1 < L)
(hpL : p.1 < L) (huL : ub.1 < L) (hlen₂ : List.length μ.store = L + 3) (hFl : μ.store.len L = 1)
(hTh : μ.store.len (L + 1) = 1) (hLg : μ.store.len (L + 2) = (n + 1) * (1 + 5 * (n + 1)))
(hB : HoldsMatrix w A μ.store) (hU : HoldsMatrix ub 1 μ.store)
(hp : μ.store.readBlock p.1 p.2 qs.length = some qs)
(hThv : μ.store.get (L + 1) 0 = some (qs.getD 6 0))
(hwu :
Ops.Fp.Disj (Ops.Store.inBlock w.1 w.2 (2 * ((n + 1) * (n + 1))))
(Ops.Store.inBlock ub.1 ub.2 (2 * ((n + 1) * (n + 1)))))
(hpwu :
Ops.Fp.Disj (Ops.Store.inBlock p.1 p.2 qs.length)
(Ops.Store.inBlock w.1 w.2 (2 * ((n + 1) * (n + 1))) ⊔
Ops.Store.inBlock ub.1 ub.2 (2 * ((n + 1) * (n + 1))))) :
Ops.Writes Ops.Mode.total I tape
((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 ub.1 ub.2 (2 * ((n + 1) * (n + 1))) ⊔
Ops.Fp.above L)
(fun μ' ↦
∃ Tb Ub,
HoldsMatrix w Tb μ'.store ∧
HoldsMatrix ub Ub μ'.store ∧
(P →
∃ V,
HasOrthonormalCols V ∧
specNorm (Ub - V) ≤
(1 + 24 * u) ^ (kmax * kmax + 2 * (kmax + 1) * ((T + kmax) * kmax + 6)) - 1))
μImport NLAlib.Eigensolvers.SmallEig.Program.