Skip to content

Commit e0e004a

Browse files
committed
chore(SetTheory/Ordinal/Arithmetic): fix Ordinal.enum type signature (#17601)
For some reason, Lean was inferring [some nonsense](https://leanprover-community.github.io/mathlib4_docs/Mathlib/SetTheory/Ordinal/Basic.html#Ordinal.enum). Unfortunately, the explicit typing is required for `simp`; see [Zulip](https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/simp.20and.20subrel).
1 parent fd745ec commit e0e004a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Mathlib/SetTheory/Ordinal/Basic.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ the elements of `α`. -/
449449
-- The explicit typing is required in order for `simp` to work properly.
450450
@[simps! symm_apply_coe]
451451
def enum (r : α → α → Prop) [IsWellOrder α r] :
452-
@RelIso (Subtype fun o => o < type r) α (Subrel (· < · ) _) r :=
452+
@RelIso { o // o < type r } α (Subrel (· < ·) { o | o < type r }) r :=
453453
(typein.principalSeg r).subrelIso
454454

455455
@[simp]

0 commit comments

Comments
 (0)