Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit a574fbe

Browse files
committed
chore(logic/function/basic): make function.injective.decidable_eq protected (#15759)
1 parent 348a674 commit a574fbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/logic/function/basic.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ h ▸ hf.ne_iff
8686

8787
/-- If the co-domain `β` of an injective function `f : α → β` has decidable equality, then
8888
the domain `α` also has decidable equality. -/
89-
def injective.decidable_eq [decidable_eq β] (I : injective f) : decidable_eq α :=
89+
protected def injective.decidable_eq [decidable_eq β] (I : injective f) : decidable_eq α :=
9090
λ a b, decidable_of_iff _ I.eq_iff
9191

9292
lemma injective.of_comp {g : γ → α} (I : injective (f ∘ g)) : injective g :=

0 commit comments

Comments
 (0)