The areas / V03. Sets, finite structures and big operators
Mathlib.Data.Fintype.Option
11 declarations. Mathlib docs · Source
instance instFintypeOption E0 #
{α : Type u_3} → [Fintype α] → Fintype (Option α)
instance instFiniteOption E0 #
∀ {α : Type u_3} [Finite α], Finite (Option α)
theorem Option.finite_iff E0 #
∀ {α : Type u_3}, Finite (Option α) ↔ Finite α
Option α is finite if and only if the underlying type α is finite.
theorem Option.infinite_iff E0 #
∀ {α : Type u_3}, Infinite (Option α) ↔ Infinite α
Option α is infinite if and only if the underlying type α is infinite.
theorem univ_option E1 #
∀ (α : Type u_3) [inst : Fintype α], Finset.univ = Finset.insertNone Finset.univ
theorem Fintype.card_option E0 #
∀ {α : Type u_3} [inst : Fintype α], Fintype.card (Option α) = Fintype.card α + 1
def fintypeOfOption E1 #
{α : Type u_3} → [Fintype (Option α)] → Fintype α
If Option α is a Fintype then so is α
def fintypeOfOptionEquiv E1 #
{α : Type u_1} → {β : Type u_2} → [Fintype α] → α ≃ Option β → Fintype β
A type is a Fintype if its successor (using Option) is a Fintype.
def Fintype.truncRecEmptyOption E1 #
{P : Type u → Sort v} →
({α β : Type u} → α ≃ β → P α → P β) →
P PEmpty.{u + 1} →
({α : Type u} → [Fintype α] → [DecidableEq α] → P α → P (Option α)) →
(α : Type u) → [Fintype α] → [DecidableEq α] → Trunc (P α)
A recursor principle for finite types, analogous to Nat.rec. It effectively says
that every Fintype is either Empty or Option α, up to an Equiv.
theorem Fintype.induction_empty_option E1 #
∀ {P : (α : Type u) → [Fintype α] → Prop},
(∀ (α β : Type u) [inst : Fintype β] (e : α ≃ β), P α → P β) →
P PEmpty.{u + 1} →
(∀ (α : Type u) [inst : Fintype α], P α → P (Option α)) → ∀ (α : Type u) [h_fintype : Fintype α], P α
An induction principle for finite types, analogous to Nat.rec. It effectively says
that every Fintype is either Empty or Option α, up to an Equiv.
theorem Finite.induction_empty_option E1 #
∀ {P : Type u → Prop},
(∀ {α β : Type u} (a : α ≃ β), P α → P β) →
P PEmpty.{u + 1} → (∀ {α : Type u} [Fintype α], P α → P (Option α)) → ∀ (α : Type u) [Finite α], P α
An induction principle for finite types, analogous to Nat.rec. It effectively says
that every Fintype is either Empty or Option α, up to an Equiv.