@@ -165,12 +165,19 @@ theorem type_eq {α β} {r : α → α → Prop} {s : β → β → Prop} [IsWel
165165 type r = type s ↔ Nonempty (r ≃r s) :=
166166 Quotient.eq'
167167
168- theorem _root_.RelIso.ordinal_type_eq {α β} {r : α → α → Prop } {s : β → β → Prop } [IsWellOrder α r]
169- [IsWellOrder β s] (h : r ≃r s) : type r = type s :=
168+ theorem _root_.RelIso.ordinalType_congr {α β} {r : α → α → Prop } {s : β → β → Prop }
169+ [IsWellOrder α r] [IsWellOrder β s] (h : r ≃r s) : type r = type s :=
170170 type_eq.2 ⟨h⟩
171171
172+ @ [deprecated (since := "2026-05-25" )]
173+ alias _root_.RelIso.ordinal_type_eq := RelIso.ordinalType_congr
174+
175+ theorem _root_.OrderIso.ordinalType_congr {α β} [LinearOrder α] [LinearOrder β]
176+ [WellFoundedLT α] [WellFoundedLT β] (h : α ≃o β) : typeLT α = typeLT β :=
177+ h.toRelIsoLT.ordinalType_congr
178+
172179theorem type_eq_zero_of_empty (r) [IsWellOrder α r] [IsEmpty α] : type r = 0 :=
173- (RelIso.relIsoOfIsEmpty r _).ordinal_type_eq
180+ (RelIso.relIsoOfIsEmpty r _).ordinalType_congr
174181
175182@[simp]
176183theorem type_eq_zero_iff_isEmpty [IsWellOrder α r] : type r = 0 ↔ IsEmpty α := by
@@ -191,7 +198,7 @@ theorem type_empty : type (@emptyRelation Empty) = 0 :=
191198
192199theorem type_eq_one_of_unique (r) [IsWellOrder α r] [Nonempty α] [Subsingleton α] : type r = 1 := by
193200 cases nonempty_unique α
194- exact (RelIso.ofUniqueOfIrrefl r _).ordinal_type_eq
201+ exact (RelIso.ofUniqueOfIrrefl r _).ordinalType_congr
195202
196203@[simp]
197204theorem type_eq_one_iff_unique [IsWellOrder α r] : type r = 1 ↔ Nonempty (Unique α) :=
@@ -410,7 +417,7 @@ def typein (r : α → α → Prop) [IsWellOrder α r] : @PrincipalSeg α Ordina
410417 exact (PrincipalSeg.ofElement _ _).ordinal_type_lt
411418 · refine inductionOn a ?_
412419 rintro β s wo ⟨g⟩
413- exact ⟨_, g.subrelIso.ordinal_type_eq ⟩
420+ exact ⟨_, g.subrelIso.ordinalType_congr ⟩
414421
415422@[simp]
416423theorem type_subrel (r : α → α → Prop ) [IsWellOrder α r] (a : α) :
@@ -431,7 +438,7 @@ theorem typein_lt_self {o : Ordinal} (i : o.ToType) : typein (α := o.ToType) (
431438@[simp]
432439theorem typein_top {α β} {r : α → α → Prop } {s : β → β → Prop }
433440 [IsWellOrder α r] [IsWellOrder β s] (f : r ≺i s) : typein s f.top = type r :=
434- f.subrelIso.ordinal_type_eq
441+ f.subrelIso.ordinalType_congr
435442
436443@[simp]
437444theorem typein_lt_typein (r : α → α → Prop ) [IsWellOrder α r] {a b : α} :
@@ -658,12 +665,12 @@ theorem type_lt_ulift [LinearOrder α] [WellFoundedLT α] :
658665theorem _root_.RelIso.ordinal_lift_type_eq {r : α → α → Prop } {s : β → β → Prop }
659666 [IsWellOrder α r] [IsWellOrder β s] (f : r ≃r s) : lift.{v} (type r) = lift.{u} (type s) :=
660667 ((RelIso.preimage Equiv.ulift r).trans <|
661- f.trans (RelIso.preimage Equiv.ulift s).symm).ordinal_type_eq
668+ f.trans (RelIso.preimage Equiv.ulift s).symm).ordinalType_congr
662669
663670@[simp]
664671theorem type_preimage {α β : Type u} (r : α → α → Prop ) [IsWellOrder α r] (f : β ≃ α) :
665672 type (f ⁻¹'o r) = type r :=
666- (RelIso.preimage f r).ordinal_type_eq
673+ (RelIso.preimage f r).ordinalType_congr
667674
668675@[simp]
669676theorem type_lift_preimage (r : α → α → Prop ) [IsWellOrder α r]
@@ -829,11 +836,11 @@ the addition, together with properties of the other operations, are proved in
829836every element of `o₁` is smaller than every element of `o₂`. -/
830837instance add : Add Ordinal.{u} :=
831838 ⟨fun o₁ o₂ => Quotient.liftOn₂ o₁ o₂ (fun ⟨_, r, _⟩ ⟨_, s, _⟩ => type (Sum.Lex r s))
832- fun _ _ _ _ ⟨f⟩ ⟨g⟩ => (RelIso.sumLexCongr f g).ordinal_type_eq ⟩
839+ fun _ _ _ _ ⟨f⟩ ⟨g⟩ => (RelIso.sumLexCongr f g).ordinalType_congr ⟩
833840
834841instance addMonoidWithOne : AddMonoidWithOne Ordinal.{u} where
835- zero_add o := inductionOn o fun α _ _ => (RelIso.emptySumLex _ _).ordinal_type_eq
836- add_zero o := inductionOn o fun α _ _ => (RelIso.sumLexEmpty _ _).ordinal_type_eq
842+ zero_add o := inductionOn o fun α _ _ => (RelIso.emptySumLex _ _).ordinalType_congr
843+ add_zero o := inductionOn o fun α _ _ => (RelIso.sumLexEmpty _ _).ordinalType_congr
837844 add_assoc o₁ o₂ o₃ :=
838845 Quotient.inductionOn₃ o₁ o₂ o₃ fun _ _ _ ↦ Quot.sound ⟨⟨sumAssoc .., by simp⟩⟩
839846 nsmul := nsmulRec
@@ -875,7 +882,7 @@ instance existsAddOfLE : ExistsAddOfLE Ordinal where
875882 exists_add_of_le {a b} := by
876883 refine inductionOn₂ a b fun α r _ β s _ ⟨f⟩ ↦ ?_
877884 obtain ⟨γ, t, _, ⟨g⟩⟩ := f.exists_sum_relIso
878- exact ⟨type t, g.ordinal_type_eq .symm⟩
885+ exact ⟨type t, g.ordinalType_congr .symm⟩
879886
880887instance canonicallyOrderedAdd : CanonicallyOrderedAdd Ordinal where
881888 le_add_self a b := by simpa using add_le_add_left bot_le a
0 commit comments