lean4-htt/tests/lean/run/list_notation.lean

27 lines
406 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

open nat
vm_eval [1, 2, 3]
vm_eval to_bool $ 1 ∈ [1, 2, 3]
vm_eval to_bool $ 4 ∈ [1, 2, 3]
vm_eval [1, 2, 3] ++ [3, 4]
vm_eval 2 :: [3, 4]
vm_eval ([] : list nat)
vm_eval (∅ : list nat)
vm_eval ({1, 3, 2, 2, 3, 1} : list nat)
vm_eval [1, 2, 3] [3, 4, 1, 5]
vm_eval [1, 2, 3] ∩ [3, 4, 1, 5]
vm_eval (mul 10) <$> [1, 2, 3]
check ({1, 2, 3} : list nat)
check ({1, 2, 3, 4} : set nat)