NLA-lib Explorer

NLAlib.SmallEig.OneEigInput.of_alloc

Library · theorem

The input of OneEig after the allocation of the pair: from the memory of the decoupling contract (NLAlib.ShiftedQR.RandomDecouplingRoutineContract) and a store with one fresh buffer of two words at the handle L = the old buffer count, NLAlib.SmallEig.OneEigInput holds with the pair at (L, 0).

NLAlib.SmallEig.OneEigInput.of_alloc {n : ℕ} {H : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ}
  {qs : List ℝ} (hqs : 0 < qs.length) {w q f : ℕ × ℕ} {μ : 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]) (hwr : w.2 + 2 * ((n + 1) * (n + 1)) ≤ μ.store.len w.1)
  (hfr : f.2 + 1 ≤ μ.store.len f.1)
  (hwf :
    Ops.Fp.Disj (Ops.Store.inBlock w.1 w.2 (2 * ((n + 1) * (n + 1)))) (Ops.Store.inBlock f.1 f.2 1))
  (hqwf :
    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))
  (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.OneEigInput H qs w q (List.length μ.store, 0) f { store := s₁, pos := μ.pos }

Full source on GitHub

Import NLAlib.Eigensolvers.SmallEig.Decoupler.