@[reducible, inline]
We derive the QuasiBorelSpace instance for List As from their encoding as
(n : ℕ) × (Fin n → A).
Equations
- List.Encoding A = ((n : ℕ) × (Fin n → A))
Instances For
The encoded version of [].
Equations
Instances For
@[irreducible]
The encoded version of List.foldr.
Equations
- List.Encoding.foldr cons nil ⟨0, snd⟩ = nil
- List.Encoding.foldr cons nil ⟨n.succ, k⟩ = cons (k 0) (List.Encoding.foldr cons nil ⟨n, fun (i : Fin n) => k i.succ⟩)