Skip to content

Commit d554797

Browse files
committed
chore(SetTheory/Cardinal/Arithmetic): generalize card_iSup_Iio_le_sum_card (leanprover-community#19727)
The theorem becomes strictly more general at zero cost by letting the domain of the function be `Iio o` rather than `Ordinal`.
1 parent 815cff6 commit d554797

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Mathlib/SetTheory/Cardinal/Arithmetic.lean

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -869,16 +869,16 @@ theorem card_iSup_le_sum_card {ι : Type u} (f : ι → Ordinal.{max u v}) :
869869
have := lift_card_iSup_le_sum_card f
870870
rwa [Cardinal.lift_id'] at this
871871

872-
theorem card_iSup_Iio_le_sum_card {o : Ordinal.{u}} (f : Ordinal.{u} → Ordinal.{max u v}) :
872+
theorem card_iSup_Iio_le_sum_card {o : Ordinal.{u}} (f : Iio o → Ordinal.{max u v}) :
873873
(⨆ a : Iio o, f a).card ≤ Cardinal.sum fun i ↦ (f ((enumIsoToType o).symm i)).card := by
874874
apply le_of_eq_of_le (congr_arg _ _).symm (card_iSup_le_sum_card _)
875-
simpa using (enumIsoToType o).symm.iSup_comp (g := fun x ↦ f x.1)
875+
simpa using (enumIsoToType o).symm.iSup_comp (g := fun x ↦ f x)
876876

877-
theorem card_iSup_Iio_le_card_mul_iSup {o : Ordinal.{u}} (f : Ordinal.{u} → Ordinal.{max u v}) :
877+
theorem card_iSup_Iio_le_card_mul_iSup {o : Ordinal.{u}} (f : Iio o → Ordinal.{max u v}) :
878878
(⨆ a : Iio o, f a).card ≤ Cardinal.lift.{v} o.card * ⨆ a : Iio o, (f a).card := by
879879
apply (card_iSup_Iio_le_sum_card f).trans
880880
convert ← sum_le_iSup_lift _
881881
· exact mk_toType o
882-
· exact (enumIsoToType o).symm.iSup_comp (g := fun x ↦ (f x.1).card)
882+
· exact (enumIsoToType o).symm.iSup_comp (g := fun x ↦ (f x).card)
883883

884884
end Ordinal

0 commit comments

Comments
 (0)