NLA-lib Explorer

NLAlib.SmallEig.oneEigStart_writes

Library · theorem

This statement changed in the recorded rename: 2026-11-schur.

The start of NLAlib.SmallEig.oneEig (NLAlib.SmallEig.oneEigStart) with the scratch from L: on a scalar machine with the literal 0 exact, index literals, exact comparisons and an exact polar sampler, from any matrix of order n + 1 at h apart from lam and at least five words at qw, it writes only lam, f and the scratch, and stores words at NLAlib.SmallEig.oneEigCells and the flag 0. Shared by the trees of NLAlib.ShiftedQR.shqrSmallEigRoutine and NLAlib.SmallEig.smallEigRoutine, on their scratch.

NLAlib.SmallEig.oneEigStart_writes {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 ℝ} (hS : Ops.IsScalar M I) (hzero : M.lit 0 = 0) (hL : Ops.IsIndexLit M I)
  (hCmp : Ops.IsCmp id I) {sU : ℕ} (hDisk : ShiftedQR.IsPolarDiskSampler sU I) {n m q L : ℕ}
  (hNat : Ops.IsExactNatLit id M n) {H : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {τ : Ops.Tape ℝ}
  {μ : Ops.Mem ℝ} {h qw lam f : ℕ × ℕ} {r : ℝ} (hh : h.1 < L) (hqw : qw.1 < L) (hlam : lam.1 < L)
  (hlen : List.length μ.store = L + 7) (h0 : μ.store.len L = 1) (h5 : μ.store.len (L + 5) = 12)
  (h6 : μ.store.len (L + 6) = 2) (hroom : lam.2 + 2 ≤ μ.store.len lam.1)
  (hroomf : f.2 < μ.store.len f.1)
  (hlh :
    Ops.Fp.Disj (Ops.Store.inBlock lam.1 lam.2 2)
      (Ops.Store.inBlock h.1 h.2 (2 * ((n + 1) * (n + 1)))))
  (hH : HoldsMatrix h H μ.store) (hq4 : μ.store.get qw.1 (qw.2 + 4) = some r) :
  Ops.Writes Ops.Mode.total I τ SmallEig.oneEigStart
    (Ops.Env.frame [n + 1, m, q] [h, qw, lam, (L, 0), f, (L + 5, 0), (L + 6, 0)])
    (Ops.Store.inBlock lam.1 lam.2 2 ⊔ Ops.Store.inBlock f.1 f.2 1 ⊔ Ops.Fp.above L)
    (fun μ' ↦
      Ops.HoldsWords μ'.store (SmallEig.oneEigCells L lam) ∧ SmallEig.OneEigFlag M f μ'.store)
    μ

Full source on GitHub

Import NLAlib.Eigensolvers.SmallEig.OneEigParts.