Skip to content

Commit da26519

Browse files
committed
chore: use notation3 for Ordinal.typeLT (leanprover-community#39798)
This creates a delaborator, which avoids goals from looking like `(type fun x1 x2 ↦ x1 < x2) < (type fun x1 x2 ↦ x1 < x2)`.
1 parent cadd914 commit da26519

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Mathlib/SetTheory/Ordinal/Basic.lean

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,11 @@ def type (r : α → α → Prop) [wo : IsWellOrder α r] : Ordinal :=
146146
⟦⟨α, r, wo⟩⟧
147147

148148
/-- `typeLT α` is an abbreviation for the order type of the `<` relation of `α`. -/
149-
scoped notation "typeLT " α:70 => @Ordinal.type α (· < ·) inferInstance
149+
scoped notation3 "typeLT " α:70 => @Ordinal.type α (· < ·) inferInstance
150+
151+
/-- info: typeLT ℕ : Ordinal.{0} -/
152+
#guard_msgs in
153+
#check typeLT ℕ
150154

151155
instance zero : Zero Ordinal :=
152156
⟨type <| @emptyRelation PEmpty⟩

0 commit comments

Comments
 (0)