Skip to content

Commit 33896e0

Browse files
committed
chore: rename Ordinal.cof_cofOrdinal.cof_ord_cof (#36975)
As suggested by Yaël in #36702.
1 parent 1627af0 commit 33896e0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Mathlib/SetTheory/Cardinal/Cofinality.lean

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,9 +378,11 @@ theorem _root_.Order.cof_ord_cof (α : Type*) [LinearOrder α] [WellFoundedLT α
378378
exact fun t ht ↦ (cof_le (hs.trans ht)).trans_eq (mk_image_eq Subtype.val_injective)
379379

380380
@[simp]
381-
theorem cof_cof (o : Ordinal) : o.cof.ord.cof = o.cof := by
381+
theorem cof_ord_cof (o : Ordinal) : o.cof.ord.cof = o.cof := by
382382
simpa using Order.cof_ord_cof o.ToType
383383

384+
@[deprecated (since := "2026-03-21")] alias cof_cof := cof_ord_cof
385+
384386
/-! ### Cofinality of suprema and least strict upper bounds -/
385387

386388
-- TODO: use `⨆ i, succ (f i)` instead of `lsub`

Mathlib/SetTheory/Cardinal/Regular.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ theorem IsRegular.ord_pos {c : Cardinal} (H : c.IsRegular) : 0 < c.ord := by
6161
exact H.pos
6262

6363
theorem isRegular_cof {o : Ordinal} (h : IsSuccLimit o) : IsRegular o.cof := by
64-
refine ⟨?_, (cof_cof o).ge⟩
64+
refine ⟨?_, (cof_ord_cof o).ge⟩
6565
rwa [aleph0_le_cof_iff, one_lt_cof_iff]
6666

6767
/-- If `c` is a regular cardinal, then `c.ord.ToType` has a least element. -/

0 commit comments

Comments
 (0)