Skip to content

Commit

Permalink
chore(data/finsupp/pointwise): add missing finsupp.mul_zero_class (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ocfnash committed Apr 6, 2021
1 parent aa665b1 commit 6f38c14
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/data/finsupp/pointwise.lean
Expand Up @@ -46,6 +46,13 @@ begin
apply h,
cases w; { rw w, simp },
end

instance : mul_zero_class (α →₀ β) :=
{ zero := 0,
mul := (*),
mul_zero := λ f, by { ext, simp only [mul_apply, zero_apply, mul_zero], },
zero_mul := λ f, by { ext, simp only [mul_apply, zero_apply, zero_mul], }, }

end

instance [semiring β] : semigroup (α →₀ β) :=
Expand Down

0 comments on commit 6f38c14

Please sign in to comment.