lean2/tests/lean/tst10.lean
Leonardo de Moura 935c2a03a3 feat(*): change name conventions for Lean builtin libraries
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-05 19:21:44 -08:00

26 lines
401 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.

variable a : Bool
variable b : Bool
-- and::introunctions
print a && b
print a && b && a
print a /\ b
print a ∧ b
print (and a b)
print and a b
-- Disjunctions
print a || b
print a \/ b
print a b
print (or a b)
print or a (or a b)
-- Simple Formulas
print a => b => a
check a => b
eval a => a
eval true => a
-- Simple proof
axiom H1 : a
axiom H2 : a => b
check @mp
print mp H2 H1
check mp H2 H1