NLA-lib Explorer

NLAlib.Schur.identity_writes_holdsMatrix_one

Library · theorem

Standard rounding

The identity program stores the identity when the literals 0 and 1 are exact. Shared by the trees of NLAlib.hessenbergReduceLast, NLAlib.Schur.schurPipelineWith, NLAlib.SmallEig.identityLeaf and 6 more.

NLAlib.Schur.identity_writes_holdsMatrix_one {O Q : Type} [Ops.Has Ops.ScalarOp O]
  {Mch : Ops.Machine ℝ} {I : Ops.Interp O Q ℝ} {u : ℝ} (hS : Ops.IsScalar Mch I)
  (hM : Ops.StdModel u id Mch) (h1 : Mch.lit 1 = 1) {τ : Ops.Tape ℝ} {m : Ops.Mem ℝ} {N : ℕ}
  {b : ℕ × ℕ} (hroom : b.2 + 2 * (N * N) ≤ m.store.len b.1) :
  Ops.Writes Ops.Mode.total I τ Ops.PairMatrix.identity (Ops.Env.frame [N] [b])
    (Ops.Store.inBlock b.1 b.2 (2 * (N * N))) (fun m' ↦ HoldsMatrix b 1 m'.store) m

Full source on GitHub

Import NLAlib.Eigensolvers.Schur.Pipeline.