Skip to content

Commit

Permalink
chore(data/dfinsupp): add the simp lemma coe_pre_mk (#7806)
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-wieser committed Jun 3, 2021
1 parent 2a93644 commit 62655a2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/data/dfinsupp.lean
Expand Up @@ -60,6 +60,10 @@ instance : has_coe_to_fun (Π₀ i, β i) :=
instance : has_zero (Π₀ i, β i) := ⟨⟦⟨0, ∅, λ i, or.inr rfl⟩⟧⟩
instance : inhabited (Π₀ i, β i) := ⟨0

@[simp]
lemma coe_pre_mk (f : Π i, β i) (s : multiset ι) (hf) :
⇑(⟦⟨f, s, hf⟩⟧ : Π₀ i, β i) = f := rfl

@[simp] lemma coe_zero : ⇑(0 : Π₀ i, β i) = 0 := rfl
lemma zero_apply (i : ι) : (0 : Π₀ i, β i) i = 0 := rfl

Expand Down

0 comments on commit 62655a2

Please sign in to comment.