Skip to content

Commit 28ad0a6

Browse files
kim-emScott Morrison
andcommitted
chore: remove reducible from Function.Surjective (#5063)
The @[reducible] attribute on `Function.Surjective` is apparently not needed, and currently prevents `@[simp]` lemmas with `Function.Surjective` side conditions from firing, see [zulip discussion](https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/simp.20lemmas.20with.20side.20conditions). Co-authored-by: Scott Morrison <scott.morrison@anu.edu.au>
1 parent dd52d5f commit 28ad0a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Mathlib/Init/Function.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ fun _ _ h ↦ hf (hg h)
6868

6969
/-- A function `f : α → β` is called surjective if every `b : β` is equal to `f a`
7070
for some `a : α`. -/
71-
@[reducible] def Surjective (f : α → β) : Prop := ∀ b, ∃ a, f a = b
71+
def Surjective (f : α → β) : Prop := ∀ b, ∃ a, f a = b
7272

7373
theorem Surjective.comp {g : β → φ} {f : α → β} (hg : Surjective g) (hf : Surjective f) :
7474
Surjective (g ∘ f) :=

0 commit comments

Comments
 (0)