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 / V32. Logic, model theory and computability

Mathlib.Logic.Encodable.Pi

7 declarations. Mathlib docs · Source

instance Encodable.List.Vector.encodable E0 #

{α : Type u_1} → [Encodable α] → {n : ℕ} → Encodable (List.Vector α n)

If α is encodable, then so is Vector α n.

instance Encodable.List.Vector.countable E0 #

∀ {α : Type u_1} [Countable α] {n : ℕ}, Countable (List.Vector α n)

If α is countable, then so is Vector α n.

instance Encodable.finArrow E0 #

{α : Type u_1} → [Encodable α] → {n : ℕ} → Encodable (Fin n → α)

If α is encodable, then so is Fin n → α.

instance Encodable.finPi E0 #

(n : ℕ) → (π : Fin n → Type u_2) → [(i : Fin n) → Encodable (π i)] → Encodable ((i : Fin n) → π i)

def Encodable.fintypeArrow E1 #

(α : Type u_2) → (β : Type u_3) → [DecidableEq α] → [Fintype α] → [Encodable β] → Trunc (Encodable (α → β))

When α is finite and β is encodable, α → β is encodable too. Because the encoding is not unique, we wrap it in Trunc to preserve computability.

def Encodable.fintypePi E1 #

(α : Type u_2) →
  (π : α → Type u_3) → [DecidableEq α] → [Fintype α] → [(a : α) → Encodable (π a)] → Trunc (Encodable ((a : α) → π a))

When α is finite and all π a are encodable, Π a, π a is encodable too. Because the encoding is not unique, we wrap it in Trunc to preserve computability.

instance Encodable.fintypeArrowOfEncodable E0 #

{α : Type u_2} → {β : Type u_3} → [Encodable α] → [Fintype α] → [Encodable β] → Encodable (α → β)

If α and β are encodable and α is a fintype, then α → β is encodable as well.