NLA-lib Explorer

NLAlib.Ops.Examples.Routines.sum_range_abs_vec_ofFn

Library · theorem

The sum of the absolute values of a supplied vector over its positions.

NLAlib.Ops.Examples.Routines.sum_range_abs_vec_ofFn {n : ℕ} (f : Fin n → ℝ) :
  ∑ k ∈ Finset.range n, |Ops.vec (List.ofFn f) k| = ∑ i, |f i|

Full source on GitHub

Import NLAlib.Ops.Examples.RoutineCertification.