NLAlib.Ops.Count.sum_range_id_nsmul
Library · theorem
A count proportional to the round over a range: Σ_{j < p} j c = (p (p - 1) / 2) c, the triangle of classical Gram–Schmidt.
NLAlib.Ops.Count.sum_range_id_nsmul {Op Tst : Type} (p : ℕ) (c : Ops.Count Op Tst) :
∑ j ∈ Finset.range p, j • c = (p * (p - 1) / 2) • cImport NLAlib.Ops.Logic.Count.