The natural equivalence between arrays and lists.
Equations
- Equiv.arrayEquivList α = { toFun := Array.toList, invFun := Array.mk, left_inv := ⋯, right_inv := ⋯ }
Instances For
If α
is encodable, then so is Array α
.
Equations
- Array.encodable = Encodable.ofEquiv (List α) (Equiv.arrayEquivList α)