Skip to content

Commit 5039146

Browse files
committed
fix
1 parent eba4e1b commit 5039146

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

Mathlib/LinearAlgebra/Dimension/Finite.lean

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,9 @@ lemma exists_set_linearIndependent_of_lt_rank {n : Cardinal} (hn : n < Module.ra
196196
lemma exists_finset_linearIndependent_of_le_rank {n : ℕ} (hn : n ≤ Module.rank R M) :
197197
∃ s : Finset M, s.card = n ∧ LinearIndepOn R id (s : Set M) := by
198198
rcases hn.eq_or_lt with h | h
199-
· obtain ⟨⟨s, hs⟩, hs'⟩ := Cardinal.exists_eq_natCast_of_iSup_eq _
200-
(Cardinal.bddAbove_range _) _ (h.trans (Module.rank_def R M)).symm
199+
· obtain ⟨⟨s, hs⟩, hs'⟩ := exists_eq_ciSup_of_not_isSuccLimit
200+
(Cardinal.bddAbove_range _) (h.trans (Module.rank_def R M) ▸ not_isSuccLimit_natCast n)
201+
rw [← Module.rank_def, ← h] at hs'
201202
have : Finite s := lt_aleph0_iff_finite.mp (hs' ▸ natCast_lt_aleph0)
202203
cases nonempty_fintype s
203204
refine ⟨s.toFinset, by simpa using hs', by simpa⟩

Mathlib/SetTheory/Cardinal/Arithmetic.lean

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,7 @@ protected theorem ciSup_add (hf : BddAbove (range f)) (c : Cardinal.{v}) :
355355
refine le_antisymm ?_ (ciSup_le' this)
356356
have bdd : BddAbove (range (f · + c)) := ⟨_, forall_mem_range.mpr this⟩
357357
obtain hs | hs := lt_or_ge (⨆ i, f i) ℵ₀
358-
· obtain ⟨i, hi⟩ := exists_eq_of_iSup_eq_of_not_isSuccLimit
359-
f hf (not_isSuccLimit_of_lt_aleph0 hs) rfl
358+
· obtain ⟨i, hi⟩ := exists_eq_ciSup_of_not_isSuccLimit hf (not_isSuccLimit_of_lt_aleph0 hs)
360359
exact hi ▸ le_ciSup bdd i
361360
rw [add_eq_max hs, max_le_iff]
362361
exact ⟨ciSup_mono bdd fun i ↦ self_le_add_right _ c,

Mathlib/SetTheory/Cardinal/Basic.lean

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,9 +399,11 @@ theorem isStrongLimit_aleph0 : IsStrongLimit ℵ₀ := by
399399
theorem IsStrongLimit.aleph0_le {c} (H : IsStrongLimit c) : ℵ₀ ≤ c :=
400400
aleph0_le_of_isSuccLimit H.isSuccLimit
401401

402+
@[deprecated exists_eq_ciSup_of_not_isSuccLimit (since := "2026-04-13")]
402403
lemma exists_eq_natCast_of_iSup_eq {ι : Type u} [Nonempty ι] (f : ι → Cardinal.{v})
403-
(hf : BddAbove (range f)) (n : ℕ) (h : ⨆ i, f i = n) : ∃ i, f i = n :=
404-
exists_eq_of_iSup_eq_of_not_isSuccLimit.{u, v} f hf (not_isSuccLimit_natCast n) h
404+
(hf : BddAbove (range f)) (n : ℕ) (h : ⨆ i, f i = n) : ∃ i, f i = n := by
405+
rw [← h]
406+
exact exists_eq_ciSup_of_not_isSuccLimit hf (h ▸ not_isSuccLimit_natCast n)
405407

406408
@[simp]
407409
theorem range_natCast : range ((↑) : ℕ → Cardinal) = Iio ℵ₀ :=

0 commit comments

Comments
 (0)