The areas / V03. Sets, finite structures and big operators
Mathlib.Data.Fintype.OfMap
12 declarations. Mathlib docs · Source
def Fintype.ofMultiset E1 #
{α : Type u_1} → [DecidableEq α] → (s : Multiset α) → (∀ (x : α), x ∈ s) → Fintype α
Construct a proof of Fintype α from a universal multiset
def Fintype.ofList E1 #
{α : Type u_1} → [DecidableEq α] → (l : List α) → (∀ (x : α), x ∈ l) → Fintype α
Construct a proof of Fintype α from a universal list
def Fintype.ofBijective E1 #
{α : Type u_1} → {β : Type u_2} → [Fintype α] → (f : α → β) → Function.Bijective f → Fintype β
If f : α → β is a bijection and α is a fintype, then β is also a fintype.
def Fintype.ofSurjective E1 #
{α : Type u_1} → {β : Type u_2} → [DecidableEq β] → [Fintype α] → (f : α → β) → Function.Surjective f → Fintype β
If f : α → β is a surjection and α is a fintype, then β is also a fintype.
def Fintype.ofInjective E1 #
{α : Type u_1} → {β : Type u_2} → [Fintype β] → (f : α → β) → Function.Injective f → Fintype α
Given an injective function to a fintype, the domain is also a fintype. This is noncomputable because injectivity alone cannot be used to construct preimages.
def Fintype.ofEquiv E1 #
{β : Type u_2} → (α : Type u_3) → [Fintype α] → α ≃ β → Fintype β
If f : α ≃ β and α is a fintype, then β is also a fintype.
def Fintype.ofSubsingleton E1 #
{α : Type u_1} → α → [Subsingleton α] → Fintype α
Any subsingleton type with a witness is a fintype (with one term).
theorem Fintype.univ_ofSubsingleton E1 #
∀ {α : Type u_1} (a : α) [inst : Subsingleton α], Finset.univ = {a}
def Fintype.ofIsEmpty E1 #
{α : Type u_1} → [IsEmpty α] → Fintype α
An empty type is a fintype. Not registered as an instance, to make sure that there aren't two
conflicting Fintype ι instances around when casing over whether a fintype ι is empty or not.
theorem Fintype.univ_ofIsEmpty E1 #
∀ {α : Type u_1} [inst : IsEmpty α], Finset.univ = ∅
Note: this lemma is specifically about Fintype.ofIsEmpty. For a statement about
arbitrary Fintype instances, use Finset.univ_eq_empty.
instance Fintype.instEmpty E0 #
Fintype Empty
instance Fintype.instPEmpty E0 #
Fintype PEmpty.{u_3 + 1}