NLA-lib Explorer

NLAlib.Ops.sumExactRel_rel

Library · theorem

NLAlib.Ops.sumExactRel_rel {K : Type} [Inhabited K] (dec : K → ℝ) (d : List ℕ) (X : List (List K))
  (x✝ : List K) (Y : List (List K)) :
  (Ops.sumExactRel dec).rel d X x✝ Y =
    match X, Y with
    | [xs], [[v]] => dec v = ∑ i ∈ Finset.range (d.headD 0), dec (Ops.vec xs i)
    | x, x_1 => False

Full source on GitHub

Import NLAlib.Ops.Catalog.Blas1.