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.CardEmbedding

3 declarations. Mathlib docs · Source

theorem Fintype.card_embedding_eq_of_unique E1 #

∀ {α : Type u_1} {β : Type u_2} [Unique α] [inst : Fintype β] [inst_1 : Fintype (α ↪ β)],
  Fintype.card (α ↪ β) = Fintype.card β

theorem Fintype.card_embedding_eq E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : Fintype α] [inst_1 : Fintype β] [emb : Fintype (α ↪ β)],
  Fintype.card (α ↪ β) = (Fintype.card β).descFactorial (Fintype.card α)

theorem Fintype.card_embedding_eq_of_infinite E1 #

∀ {α : Type u_1} {β : Type u_2} [Infinite α] [Finite β] [inst : Fintype (α ↪ β)], Fintype.card (α ↪ β) = 0

The cardinality of embeddings from an infinite type to a finite type is zero. This is a re-statement of the pigeonhole principle.