Skip to content

Commit 3c3bbad

Browse files
committed
chore: deprecate three lemmas about Order.succ on ordinals (#39859)
We want to write `x + 1` instead of `succ x`. These were three easy pickings.
1 parent 7cee6a2 commit 3c3bbad

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

Mathlib/SetTheory/Cardinal/Aleph.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ theorem preBeth_add_one (o : Ordinal) : preBeth (o + 1) = 2 ^ preBeth o := by
586586
rw [preBeth, ← succ_eq_add_one, Iio_succ]
587587
exact ciSup_Iic o fun x y h ↦ power_le_power_left two_ne_zero (preBeth_mono h)
588588

589-
-- TODO: deprecate
589+
@[deprecated preBeth_add_one (since := "2026-05-26")]
590590
theorem preBeth_succ (o : Ordinal) : preBeth (succ o) = 2 ^ preBeth o :=
591591
preBeth_add_one o
592592

@@ -596,7 +596,7 @@ theorem preBeth_limit {o : Ordinal} (ho : IsSuccPrelimit o) :
596596
apply (ciSup_mono bddAbove_of_small fun _ ↦ (cantor _).le).antisymm'
597597
rw [ciSup_le_iff' bddAbove_of_small]
598598
intro a
599-
rw [← preBeth_succ]
599+
rw [← preBeth_add_one]
600600
exact le_ciSup bddAbove_of_small (⟨_, ho.succ_lt a.2⟩ : Iio o)
601601

602602
theorem isNormal_preBeth : Order.IsNormal preBeth := by

Mathlib/SetTheory/Ordinal/Arithmetic.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ def pred (o : Ordinal) : Ordinal :=
261261
theorem pred_add_one (o) : pred (o + 1) = o :=
262262
isSuccPrelimitRecOn_succ ..
263263

264-
-- TODO: deprecate
264+
@[deprecated pred_add_one (since := "2026-05-25")]
265265
theorem pred_succ (o) : pred (succ o) = o :=
266266
pred_add_one o
267267

Mathlib/SetTheory/ZFC/VonNeumann.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ theorem vonNeumann_zero : V_ 0 = ∅ :=
120120
theorem vonNeumann_add_one (o : Ordinal) : V_ (o + 1) = powerset (V_ o) :=
121121
ext fun z ↦ by rw [mem_vonNeumann, mem_powerset, subset_vonNeumann, lt_add_one_iff]
122122

123-
-- TODO: deprecate
123+
@[deprecated vonNeumann_add_one (since := "2026-05-25")]
124124
theorem vonNeumann_succ (o : Ordinal) : V_ (succ o) = powerset (V_ o) :=
125125
vonNeumann_add_one o
126126

@@ -155,7 +155,7 @@ theorem card_vonNeumann (o : Ordinal.{u}) : card (V_ o) = preBeth o := by
155155
by_contra! h
156156
refine (⨆ i : Set.Iio o, (V_ ↑i).card).card_ord.not_lt <|
157157
(Ordinal.card_le_card_vonNeumann _).trans_lt <| (cantor _).trans_le ?_
158-
rw [← card_powerset, ← vonNeumann_succ]
158+
rw [← card_powerset, ← vonNeumann_add_one]
159159
refine le_ciSup bddAbove_of_small (⟨_, ho.succ_lt ?_⟩ : Set.Iio o)
160160
exact (ord_card_le _).trans_lt' (ord_strictMono h)
161161

0 commit comments

Comments
 (0)