NLA-lib Explorer

NLAlib.Ops.Store.HoldsRowEntries.of_upper_and_diagonal

Library · theorem

A strict upper triangle and a diagonal assemble the inclusive upper region. The two facts refer to actual component words; no initialized lower entry is needed.

NLAlib.Ops.Store.HoldsRowEntries.of_upper_and_diagonal {K E : Type} {s : Ops.Store K}
  {C : Ops.EntryCodec K E} {n b off : ℕ} {F : ℕ → ℕ → E} {G : ℕ → E}
  (hu : s.HoldsRowEntries C { buf := b, off := off, rows := n, cols := n, ld := n } (fun j ↦ j) F)
  (hd : s.HoldsEntryRegion C b off n (fun x j ↦ j * n + j) (fun x ↦ 1) fun x j ↦ G j) :
  s.HoldsRowEntries C { buf := b, off := off, rows := n, cols := n, ld := n } (fun j ↦ j + 1)
    fun i j ↦ if i = j then G i else F i j

Full source on GitHub

Import NLAlib.Ops.Logic.EntryRows.