theorem
proved
term proof
universalCost_add
show as:
view Lean formalization →
formal statement (Lean)
114theorem universalCost_add (f g : P →₀ ℕ) :
115 universalCost (f + g) = universalCost f + universalCost g := by
proof body
Term-mode proof.
116 unfold universalCost
117 rw [Finsupp.sum_add_index']
118 · intro p; simp
119 · intro p i j; push_cast; ring
120