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.Basic.Finite.Prod

34 declarations. Mathlib docs · Source

Finiteness of products

Fintype instances

Every instance here should have a corresponding Set.Finite constructor in the next section.

Finite instances

There is seemingly some overlap between the following instances and the Fintype instances in Mathlib.Data.Set.Finite.Basic. While every Fintype instance gives a Finite instance, those instances that depend on Fintype or Decidable instances need an additional Finite instance to be able to generally apply.

Some set instances do not appear here since they are consequences of others, for example Subtype.Finite for subsets of a finite type.

Constructors for Set.Finite

Every constructor here should have a corresponding Fintype instance in the previous section (or in the Fintype module).

The implementation of these constructors ideally should be no more than Set.toFinite, after possibly setting up some Fintype and classical Decidable instances.

Properties

Infinite sets

instance Finite.instProd E0 #

∀ {α : Type u_1} {β : Type u_2} [Finite α] [Finite β], Finite (α × β)

instance Finite.instPProd E0 #

∀ {α : Sort u_3} {β : Sort u_4} [Finite α] [Finite β], Finite (α ×' β)

theorem Finite.prod_left E1 #

∀ {α : Type u_1} (β : Type u_3) [Finite (α × β)] [Nonempty β], Finite α

theorem Finite.prod_right E1 #

∀ {β : Type u_2} (α : Type u_3) [Finite (α × β)] [Nonempty α], Finite β

theorem Prod.finite_iff E0 #

∀ {α : Type u_1} {β : Type u_2} [Nonempty α] [Nonempty β], Finite (α × β) ↔ Finite α ∧ Finite β

instance Pi.finite E0 #

∀ {α : Sort u_3} {β : α → Sort u_4} [Finite α] [∀ (a : α), Finite (β a)], Finite ((a : α) → β a)

instance Function.Embedding.finite E0 #

∀ {α : Sort u_3} {β : Sort u_4} [Finite β], Finite (α ↪ β)

instance Equiv.finite_right E0 #

∀ {α : Sort u_3} {β : Sort u_4} [Finite β], Finite (α ≃ β)

instance Equiv.finite_left E0 #

∀ {α : Sort u_3} {β : Sort u_4} [Finite α], Finite (α ≃ β)

instance MulEquiv.finite_left E0 #

∀ {α : Type u_3} {β : Type u_4} [inst : Mul α] [inst_1 : Mul β] [Finite α], Finite (α ≃* β)

instance AddEquiv.finite_left E0 #

∀ {α : Type u_3} {β : Type u_4} [inst : Add α] [inst_1 : Add β] [Finite α], Finite (α ≃+ β)

instance MulEquiv.finite_right E0 #

∀ {α : Type u_3} {β : Type u_4} [inst : Mul α] [inst_1 : Mul β] [Finite β], Finite (α ≃* β)

instance AddEquiv.finite_right E0 #

∀ {α : Type u_3} {β : Type u_4} [inst : Add α] [inst_1 : Add β] [Finite β], Finite (α ≃+ β)

instance Set.fintypeProd E0 #

{α : Type u_1} → {β : Type u_2} → (s : Set α) → (t : Set β) → [Fintype ↑s] → [Fintype ↑t] → Fintype ↑(s ×ˢ t)

instance Set.fintypeOffDiag E0 #

{α : Type u_1} → (s : Set α) → [Fintype ↑s] → Fintype ↑s.offDiag

instance Set.fintypeImage2 E0 #

{α : Type u_1} →
  {β : Type u_2} →
    {γ : Type u_3} →
      [DecidableEq γ] →
        (f : α → β → γ) →
          (s : Set α) → (t : Set β) → [hs : Fintype ↑s] → [ht : Fintype ↑t] → Fintype ↑(Set.image2 f s t)

image2 f s t is Fintype if s and t are.

instance Finite.Set.finite_prod E0 #

∀ {α : Type u_1} {β : Type u_2} (s : Set α) (t : Set β) [Finite ↑s] [Finite ↑t], Finite ↑(s ×ˢ t)

instance Finite.Set.finite_image2 E0 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (f : α → β → γ) (s : Set α) (t : Set β) [Finite ↑s] [Finite ↑t],
  Finite ↑(Set.image2 f s t)

theorem Set.Finite.prod E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β}, s.Finite → t.Finite → (s ×ˢ t).Finite

theorem Set.Finite.of_prod_left E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β}, (s ×ˢ t).Finite → t.Nonempty → s.Finite

theorem Set.Finite.of_prod_right E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β}, (s ×ˢ t).Finite → s.Nonempty → t.Finite

theorem Set.Infinite.prod_left E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β}, s.Infinite → t.Nonempty → (s ×ˢ t).Infinite

theorem Set.Infinite.prod_right E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β}, t.Infinite → s.Nonempty → (s ×ˢ t).Infinite

theorem Set.infinite_prod E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β},
  (s ×ˢ t).Infinite ↔ s.Infinite ∧ t.Nonempty ∨ t.Infinite ∧ s.Nonempty

theorem Set.finite_prod E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β}, (s ×ˢ t).Finite ↔ (s.Finite ∨ t = ∅) ∧ (t.Finite ∨ s = ∅)

theorem Set.Finite.offDiag E1 #

∀ {α : Type u_1} {s : Set α}, s.Finite → s.offDiag.Finite

theorem Set.Finite.image2 E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {s : Set α} {t : Set β} (f : α → β → γ),
  s.Finite → t.Finite → (Set.image2 f s t).Finite

theorem Set.Finite.toFinset_prod E1 #

∀ {α : Type u_1} {β : Type u_2} {s : Set α} {t : Set β} (hs : s.Finite) (ht : t.Finite),
  hs.toFinset ×ˢ ht.toFinset = ⋯.toFinset

theorem Set.Finite.toFinset_offDiag E1 #

∀ {α : Type u_1} {s : Set α} (hs : s.Finite), ⋯.toFinset = hs.toFinset.offDiag

theorem Set.finite_image_fst_and_snd_iff E0 #

∀ {α : Type u_1} {β : Type u_2} {s : Set (α × β)}, (Prod.fst '' s).Finite ∧ (Prod.snd '' s).Finite ↔ s.Finite

theorem Set.Infinite.image2_left E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {f : α → β → γ} {s : Set α} {t : Set β} {b : β},
  s.Infinite → b ∈ t → Set.InjOn (fun a ↦ f a b) s → (Set.image2 f s t).Infinite

theorem Set.Infinite.image2_right E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {f : α → β → γ} {s : Set α} {t : Set β} {a : α},
  t.Infinite → a ∈ s → Set.InjOn (f a) t → (Set.image2 f s t).Infinite

theorem Set.infinite_image2 E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {f : α → β → γ} {s : Set α} {t : Set β},
  (∀ b ∈ t, Set.InjOn (fun a ↦ f a b) s) →
    (∀ a ∈ s, Set.InjOn (f a) t) → ((Set.image2 f s t).Infinite ↔ s.Infinite ∧ t.Nonempty ∨ t.Infinite ∧ s.Nonempty)

theorem Set.finite_image2 E1 #

∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {f : α → β → γ} {s : Set α} {t : Set β},
  (∀ b ∈ t, Set.InjOn (fun x ↦ f x b) s) →
    (∀ a ∈ s, Set.InjOn (f a) t) → ((Set.image2 f s t).Finite ↔ s.Finite ∧ t.Finite ∨ s = ∅ ∨ t = ∅)