Documentation

Mathlib.Data.Countable.Basic

Countable types #

In this file we provide basic instances of the Countable typeclass defined elsewhere.

Definition in terms of Function.Embedding #

theorem Function.Embedding.countable {α : Sort u} {β : Sort v} [Countable β] (f : α β) :

Operations on Type*s #

instance instCountableSum {α : Type u} {β : Type v} [Countable α] [Countable β] :
Countable (α β)
Equations
instance instCountableOption {α : Type u} [Countable α] :
Equations
instance instCountableProd {α : Type u} {β : Type v} [Countable α] [Countable β] :
Countable (α × β)
Equations
instance instCountableSigma {α : Type u} {π : αType w} [Countable α] [∀ (a : α), Countable (π a)] :
Equations

Operations on Sort*s #

instance SetCoe.countable {α : Type u_1} [Countable α] (s : Set α) :
Equations
instance instCountablePSum {α : Sort u} {β : Sort v} [Countable α] [Countable β] :
Countable (α ⊕' β)
Equations
instance instCountablePProd {α : Sort u} {β : Sort v} [Countable α] [Countable β] :
Equations
instance instCountablePSigma {α : Sort u} {π : αSort w} [Countable α] [∀ (a : α), Countable (π a)] :
Equations
instance instCountableForAll {α : Sort u} {π : αSort w} [Finite α] [∀ (a : α), Countable (π a)] :
Countable ((a : α) → π a)
Equations