NLAlib.Ops.PairMatrix.identity_writes
Library · theorem
Identity initialization succeeds from output capacity alone and writes every word. Real diagonal positions contain the machine literal one; every other position contains literal zero. The statement concerns the actual machine words and does not assume exact arithmetic. The proof of NLAlib.Ops.PairMatrix.identityRoutine_meets, in operand form; the fragments of NLAlib.Schur.schurPipelineWith compose it by frame, and other callers use the judgment.
NLAlib.Ops.PairMatrix.identity_writes {Op Tst : Type} [Ops.Has Ops.ScalarOp Op] {K : Type}
{M : Ops.Machine K} {I : Ops.Interp Op Tst K} (hI : Ops.IsScalar M I) {τ : Ops.Tape K}
{m : Ops.Mem K} {n b off : ℕ} (hroom : off + 2 * (n * n) ≤ m.store.len b) :
Ops.Writes Ops.Mode.total I τ Ops.PairMatrix.identity (Ops.Env.frame [n] [(b, off)])
(Ops.Store.inBlock b off (2 * (n * n)))
(fun m' ↦
(m'.store.HoldsVec b off (2 * (n * n)) fun q ↦
if ∃ j < n, q = 2 * (j * n + j) then M.lit 1 else M.lit 0) ∧
m'.pos = m.pos)
mImport NLAlib.Ops.Blas.Matrix.