lean2/tests/lean/run/not_bug1.lean
Leonardo de Moura 8e6324185a fix(tests/lean): adjust tests to new library structure
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-08-01 09:37:23 -07:00

22 lines
376 B
Text

import standard
using bool
variable list : Type.{1}
variable nil : list
variable cons : bool → list → list
infixr `::`:65 := cons
notation `[` l:(foldr `,` (h t, cons h t) nil `]`) := l
check []
check [tt]
check [tt, ff]
check [tt, ff, ff]
check tt :: ff :: [tt, ff, ff]
check tt :: []
variables a b c : bool
check a :: b :: nil
check [a, b]
check [a, b, c]
check []