NLAlib.SmallEig.SmallEigDecouplerAlloc.of_alloc
Library · theorem
The memory of the decoupling contract after the allocation of the pair: from the memory of NLAlib.ShiftedQR.RandomDecouplingRoutineContract and a store with one fresh buffer of two words at the handle L = the old buffer count, NLAlib.SmallEig.SmallEigDecouplerAlloc holds.
NLAlib.SmallEig.SmallEigDecouplerAlloc.of_alloc {n : ℕ} {H : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ}
{qs : List ℝ} (hqs : 0 < qs.length) {w q f lg : ℕ × ℕ} {ns ws : ℕ} {μ : Ops.Mem ℝ}
{s₁ : Ops.Store ℝ} (hW : HoldsMatrix w H μ.store)
(hq : μ.store.readBlock q.1 q.2 qs.length = some qs) (hl : μ.Live [w, q, w, f, lg])
(hlgb : ∀ b ∈ [w, q, f], b.1 ≠ lg.1) (hwr : w.2 + 2 * ((n + 1) * (n + 1)) ≤ μ.store.len w.1)
(hfr : f.2 + 1 ≤ μ.store.len f.1) (hlgr : lg.2 + ns * (1 + 5 * ws) ≤ μ.store.len lg.1)
(hA : Ops.Fp.Apart [w, f, lg] [2 * ((n + 1) * (n + 1)), 1, ns * (1 + 5 * ws)])
(hqd :
Ops.Fp.Disj (Ops.Store.inBlock q.1 q.2 qs.length)
(Ops.Store.inBlock w.1 w.2 (2 * ((n + 1) * (n + 1))) ⊔ Ops.Store.inBlock f.1 f.2 1 ⊔
Ops.Store.inBlock lg.1 lg.2 (ns * (1 + 5 * ws))))
(hlen : List.length s₁ = List.length μ.store + 1) (hL2 : s₁.len (List.length μ.store) = 2)
(hBelow : Ops.Store.Below (List.length μ.store) μ.store s₁) :
SmallEig.SmallEigDecouplerAlloc H qs w q f lg ns ws (List.length μ.store)
{ store := s₁, pos := μ.pos }Import NLAlib.Eigensolvers.SmallEig.Decoupler.