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.Finite.Range

7 declarations. Mathlib docs · Source

Finiteness of Set.range

Implementation notes

Each result in this file should come in three forms: a Fintype instance, a Finite instance and a Set.Finite constructor.

Tags

finite sets

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 Data.Set.Finite. 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.

instance Set.fintypeRange E0 #

{α : Type u} → {ι : Sort w} → [DecidableEq α] → (f : ι → α) → [Fintype (PLift ι)] → Fintype ↑(Set.range f)

instance Finite.Set.finite_range E0 #

∀ {α : Type u} {ι : Sort w} (f : ι → α) [Finite ι], Finite ↑(Set.range f)

instance Finite.Set.finite_replacement E0 #

∀ {α : Type u} {β : Type v} [Finite α] (f : α → β), Finite ↑{x | ∃ x_1, f x_1 = x}

theorem Set.finite_range E1 #

∀ {α : Type u} {ι : Sort w} (f : ι → α) [Finite ι], (Set.range f).Finite

theorem Set.Finite.dependent_image E1 #

∀ {α : Type u} {β : Type v} {s : Set α},
  s.Finite → ∀ (F : (i : α) → i ∈ s → β), {y | ∃ x, ∃ (hx : x ∈ s), F x hx = y}.Finite

theorem Set.Finite.exists_subset_finite_image_eq E0 #

∀ {α : Type u} {β : Type v} {f : α → β} {s : Set α} {u : Set β},
  u.Finite → u ⊆ f '' s → ∃ t ⊆ s, ∃ (_ : t.Finite), f '' t = u

theorem Function.Injective.range_eq_range_iff_subset E1 #

∀ {α : Type u} {γ : Type x} [Finite α] {f g : α → γ},
  Function.Injective f → (Set.range f = Set.range g ↔ Set.range f ⊆ Set.range g)