Skip to content

Commit

Permalink
fix(data/finsupp/basic): delta-reduce the definition of coe_fn_inject…
Browse files Browse the repository at this point in the history
…ive (#6344)

Without this, `apply coe_fn_injective` leaves a messy goal that usually has to be `dsimp`ed in order to make progress with `rw`.
With this change, `dsimp` now fails as the goal is already fully delta-reduced.
  • Loading branch information
eric-wieser committed Feb 22, 2021
1 parent 0e51976 commit 69b93fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data/finsupp/basic.lean
Expand Up @@ -122,7 +122,7 @@ set.ext $ λ x, mem_support_iff.symm
lemma not_mem_support_iff {f : α →₀ M} {a} : a ∉ f.support ↔ f a = 0 :=
not_iff_comm.1 mem_support_iff.symm

lemma coe_fn_injective : function.injective (λ (f : α →₀ M) (x : α), f x)
lemma coe_fn_injective : @function.injective (α →₀ M) (α → M) coe_fn
| ⟨s, f, hf⟩ ⟨t, g, hg⟩ h :=
begin
change f = g at h, subst h,
Expand Down

0 comments on commit 69b93fc

Please sign in to comment.