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.Fintype.Prod

13 declarations. Mathlib docs · Source

theorem Set.toFinset_prod E1 #

∀ {α : Type u_1} {β : Type u_2} (s : Set α) (t : Set β) [inst : Fintype ↑s] [inst_1 : Fintype ↑t]
  [inst_2 : Fintype ↑(s ×ˢ t)], (s ×ˢ t).toFinset = s.toFinset ×ˢ t.toFinset

theorem Set.toFinset_offDiag E1 #

∀ {α : Type u_1} {s : Set α} [inst : Fintype ↑s] [inst_1 : Fintype ↑s.offDiag], s.offDiag.toFinset = s.toFinset.offDiag

instance instFintypeProd E0 #

(α : Type u_3) → (β : Type u_4) → [Fintype α] → [Fintype β] → Fintype (α × β)

theorem Finset.univ_product_univ E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : Fintype α] [inst_1 : Fintype β], Finset.univ ×ˢ Finset.univ = Finset.univ

theorem Finset.product_eq_univ E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : Fintype α] [inst_1 : Fintype β] {s : Finset α} {t : Finset β} [Nonempty α]
  [Nonempty β], s ×ˢ t = Finset.univ ↔ s = Finset.univ ∧ t = Finset.univ

theorem Fintype.card_prod E0 #

∀ (α : Type u_3) (β : Type u_4) [inst : Fintype α] [inst_1 : Fintype β],
  Fintype.card (α × β) = Fintype.card α * Fintype.card β

theorem Fintype.card_product_filter_lt E1 #

∀ {α : Type u_1} [inst : Fintype α] [inst_1 : LinearOrder α], {x | x.1 < x.2}.card = (Fintype.card α).choose 2

The number of strictly ordered pairs (a, b) in α is (Fintype.card α).choose 2.

theorem infinite_prod E0 #

∀ {α : Type u_1} {β : Type u_2}, Infinite (α × β) ↔ Infinite α ∧ Nonempty β ∨ Nonempty α ∧ Infinite β

instance Pi.infinite_of_left E0 #

∀ {ι : Sort u_3} {π : ι → Type u_4} [∀ (i : ι), Nontrivial (π i)] [Infinite ι], Infinite ((i : ι) → π i)

theorem Pi.infinite_of_exists_right E1 #

∀ {ι : Sort u_3} {π : ι → Sort u_4} (i : ι) [Infinite (π i)] [∀ (i : ι), Nonempty (π i)], Infinite ((i : ι) → π i)

If at least one π i is infinite and the rest nonempty, the pi type of all π is infinite.

instance Pi.infinite_of_right E0 #

∀ {ι : Sort u_3} {π : ι → Type u_4} [∀ (i : ι), Infinite (π i)] [Nonempty ι], Infinite ((i : ι) → π i)

See Pi.infinite_of_exists_right for the case that only one π i is infinite.

instance Function.infinite_of_left E0 #

∀ {ι : Sort u_3} {π : Type u_4} [Nontrivial π] [Infinite ι], Infinite (ι → π)

Non-dependent version of Pi.infinite_of_left.

instance Function.infinite_of_right E0 #

∀ {ι : Sort u_3} {π : Type u_4} [Infinite π] [Nonempty ι], Infinite (ι → π)

Non-dependent version of Pi.infinite_of_exists_right and Pi.infinite_of_right.