lean2/tests/lean/run/pickle1.lean

8 lines
204 B
Text
Raw Normal View History

import data.encodable
open encodable decidable bool prod list nat option
variable l : list (nat × bool)
check encode l
eval encode [2, 1]
example : decode (list nat) (encode [1, 1]) = some [1, 1] :=
rfl