Encodability of Pi types #
This file provides instances of Encodable for types of vectors and (dependent) functions:
Encodable.List.Vector.encodable: vectors of lengthn(represented by lists) are encodableEncodable.finArrow: vectors of lengthn(represented byFin-indexed functions) are encodableEncodable.fintypeArrow,Encodable.fintypePi: (dependent) functions with finite domain and countable codomain are encodable
@[implicit_reducible]
instance
Encodable.List.Vector.encodable
{α : Type u_1}
[Encodable α]
{n : ℕ}
:
Encodable (List.Vector α n)
If α is encodable, then so is Vector α n.
instance
Encodable.List.Vector.countable
{α : Type u_1}
[Countable α]
{n : ℕ}
:
Countable (List.Vector α n)
If α is countable, then so is Vector α n.
@[implicit_reducible]
If α is encodable, then so is Fin n → α.
@[implicit_reducible]
instance
Encodable.finPi
(n : ℕ)
(π : Fin n → Type u_2)
[(i : Fin n) → Encodable (π i)]
:
Encodable ((i : Fin n) → π i)