NLAlib.SmallEig.identityLeaf_writes
Library · theorem
NLAlib.SmallEig.identityLeaf on a scalar machine with the literal 0 exact, and 1 exact when d > 0, at any order d: with room for 2d^2 words at ub, on every tape, it writes only those words and stores the identity of order d. Shared by the trees of NLAlib.SmallEig.smallEigCore, NLAlib.SmallEig.smallEigProg.
NLAlib.SmallEig.identityLeaf_writes {O Q : Type} [Ops.Has Ops.ScalarOp O] {M : Ops.Machine ℝ}
{I : Ops.Interp O Q ℝ} (hS : Ops.IsScalar M I) (h0 : M.lit 0 = 0) {d : ℕ}
(h1 : 0 < d → M.lit 1 = 1) {τ : Ops.Tape ℝ} {μ : Ops.Mem ℝ} {w p ub : ℕ × ℕ} {ps : List ℝ} {T : ℕ}
(hroom : ub.2 + 2 * (d * d) ≤ μ.store.len ub.1) :
Ops.Writes Ops.Mode.total I τ SmallEig.identityLeaf
(Ops.Env.frame [d, ps.length, T] [w, p, w, ub]) (Ops.Store.inBlock ub.1 ub.2 (2 * (d * d)))
(fun μ' ↦ μ'.pos = μ.pos ∧ HoldsMatrix ub 1 μ'.store) μImport NLAlib.Eigensolvers.SmallEig.Leaf.