Skip to content

Commit f4740be

Browse files
committed
chore: deprecate Ordinal.cof_succOrdinal.cof_add_one (#39852)
The eventual goal is to get rid of `Order.succ` in the ordinal API, and to write `x + 1` instead of `succ x`.
1 parent 5e7c199 commit f4740be

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

Mathlib/SetTheory/Cardinal/Cofinality/Ordinal.lean

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ theorem cof_add_one (o) : cof (o + 1) = 1 :=
118118
theorem cof_one : cof 1 = 1 := by
119119
simpa using cof_add_one 0
120120

121-
-- TODO: deprecate in favor of `cof_add_one`
121+
@[deprecated cof_add_one (since := "2026-05-25")]
122122
theorem cof_succ (o) : cof (succ o) = 1 :=
123123
cof_add_one o
124124

@@ -235,12 +235,12 @@ alias cof_eq_of_isNormal := cof_map_of_isNormal
235235
alias IsNormal.cof_eq := cof_eq_of_isNormal
236236

237237
theorem le_cof_map_of_isNormal {f} (hf : IsNormal f) (a) : cof a ≤ cof (f a) := by
238-
rcases zero_or_succ_or_isSuccLimit a with (rfl | ⟨b, rfl⟩ | ha)
239-
· rw [cof_zero]
240-
exact zero_le
241-
· rw [cof_succ, Cardinal.one_le_iff_ne_zero, cof_eq_zero.ne]
242-
exact (hf.strictMono (lt_succ b)).ne_zero
243-
· rw [cof_map_of_isNormal hf ha]
238+
cases a using limitRecOn with
239+
| zero => simp
240+
| add_one a =>
241+
rw [cof_add_one, Cardinal.one_le_iff_ne_zero, cof_eq_zero.ne]
242+
exact (hf.strictMono (lt_succ a)).ne_zero
243+
| limit a ha => rw [cof_map_of_isNormal hf ha]
244244

245245
@[deprecated (since := "2026-03-19")]
246246
alias cof_le_of_isNormal := le_cof_map_of_isNormal

0 commit comments

Comments
 (0)