The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V03. Sets, finite structures and big operators

Mathlib.Data.Set.Card.Arithmetic

19 declarations. Mathlib docs · Source

Results using cardinal arithmetic

This file contains results using cardinal arithmetic that are not in the main cardinal theory files. It has been separated out to not burden Mathlib/Data/Set/Card.lean with extra imports.

Main results

  • exists_union_disjoint_ncard_eq_of_even: Given a set s with an even cardinality, there exist disjoint sets t and u such that t ∪ u = s and t.ncard = u.ncard.
  • exists_union_disjoint_cardinal_eq_iff is the same, except using cardinal notation.

theorem Finset.exists_disjoint_union_of_even_card E1 #

∀ {α : Type u_1} [inst : DecidableEq α] {s : Finset α}, Even s.card → ∃ t u, t ∪ u = s ∧ Disjoint t u ∧ t.card = u.card

theorem Finset.exists_disjoint_union_of_even_card_iff E0 #

∀ {α : Type u_1} [inst : DecidableEq α] (s : Finset α), Even s.card ↔ ∃ t u, t ∪ u = s ∧ Disjoint t u ∧ t.card = u.card

theorem finsum_one E0 #

∀ {α : Type u_1} {s : Set α}, ∑ᶠ (i : α) (_ : i ∈ s), 1 = s.ncard

theorem Finset.set_ncard_biUnion_le E1 #

∀ {α : Type u_1} {ι : Type u_2} (t : Finset ι) (s : ι → Set α), (⋃ i ∈ t, s i).ncard ≤ ∑ i ∈ t, (s i).ncard

theorem Finset.set_encard_biUnion_le E1 #

∀ {α : Type u_1} {ι : Type u_2} (t : Finset ι) (s : ι → Set α), (⋃ i ∈ t, s i).encard ≤ ∑ i ∈ t, (s i).encard

theorem Set.Infinite.exists_union_disjoint_cardinal_eq_of_infinite E1 #

∀ {α : Type u_1} {s : Set α}, s.Infinite → ∃ t u, t ∪ u = s ∧ Disjoint t u ∧ Cardinal.mk ↑t = Cardinal.mk ↑u

theorem Set.exists_union_disjoint_cardinal_eq_of_even E1 #

∀ {α : Type u_1} {s : Set α}, Even s.ncard → ∃ t u, t ∪ u = s ∧ Disjoint t u ∧ Cardinal.mk ↑t = Cardinal.mk ↑u

theorem Set.exists_union_disjoint_ncard_eq_of_even E3 #

∀ {α : Type u_1} {s : Set α}, Even s.ncard → ∃ t u, t ∪ u = s ∧ Disjoint t u ∧ t.ncard = u.ncard

theorem Set.exists_union_disjoint_cardinal_eq_iff E3 #

∀ {α : Type u_1} (s : Set α), Even s.ncard ↔ ∃ t u, t ∪ u = s ∧ Disjoint t u ∧ Cardinal.mk ↑t = Cardinal.mk ↑u

theorem Set.Finite.ncard_biUnion E1 #

∀ {α : Type u_1} {ι : Type u_2} {t : Set ι},
  t.Finite →
    ∀ {s : ι → Set α},
      (∀ i ∈ t, (s i).Finite) → t.PairwiseDisjoint s → (⋃ i ∈ t, s i).ncard = ∑ᶠ (i : ι) (_ : i ∈ t), (s i).ncard

theorem Set.ncard_iUnion_of_finite E1 #

∀ {α : Type u_1} {ι : Type u_2} [Finite ι] {s : ι → Set α},
  (∀ (i : ι), (s i).Finite) → Pairwise (Function.onFun Disjoint s) → (⋃ i, s i).ncard = ∑ᶠ (i : ι), (s i).ncard

theorem Set.Finite.encard_biUnion E1 #

∀ {α : Type u_1} {ι : Type u_2} {t : Set ι},
  t.Finite → ∀ {s : ι → Set α}, t.PairwiseDisjoint s → (⋃ i ∈ t, s i).encard = ∑ᶠ (i : ι) (_ : i ∈ t), (s i).encard

theorem Set.encard_iUnion_of_finite E1 #

∀ {α : Type u_1} {ι : Type u_2} [Finite ι] {s : ι → Set α},
  Pairwise (Function.onFun Disjoint s) → (⋃ i, s i).encard = ∑ᶠ (i : ι), (s i).encard

theorem Set.Finite.ncard_biUnion_le E1 #

∀ {α : Type u_1} {ι : Type u_2} {t : Set ι},
  t.Finite → ∀ (s : ι → Set α), (⋃ i ∈ t, s i).ncard ≤ ∑ᶠ (i : ι) (_ : i ∈ t), (s i).ncard

theorem Set.Finite.encard_biUnion_le E1 #

∀ {α : Type u_1} {ι : Type u_2} {t : Set ι},
  t.Finite → ∀ (s : ι → Set α), (⋃ i ∈ t, s i).encard ≤ ∑ᶠ (i : ι) (_ : i ∈ t), (s i).encard

theorem Set.ncard_iUnion_le_of_fintype E1 #

∀ {α : Type u_1} {ι : Type u_2} [inst : Fintype ι] (s : ι → Set α), (⋃ i, s i).ncard ≤ ∑ i, (s i).ncard

theorem Set.encard_iUnion_le_of_fintype E1 #

∀ {α : Type u_1} {ι : Type u_2} [inst : Fintype ι] (s : ι → Set α), (⋃ i, s i).encard ≤ ∑ i, (s i).encard

theorem Set.ncard_iUnion_le_of_finite E1 #

∀ {α : Type u_1} {ι : Type u_2} [Finite ι] (s : ι → Set α), (⋃ i, s i).ncard ≤ ∑ᶠ (i : ι), (s i).ncard

theorem Set.encard_iUnion_le_of_finite E1 #

∀ {α : Type u_1} {ι : Type u_2} [Finite ι] (s : ι → Set α), (⋃ i, s i).encard ≤ ∑ᶠ (i : ι), (s i).encard