2014-01-05 20:05:08 +00:00
|
|
|
|
variable a : Bool
|
|
|
|
|
variable b : Bool
|
2014-01-06 03:10:21 +00:00
|
|
|
|
-- and::introunctions
|
2014-01-05 19:03:35 +00:00
|
|
|
|
print a && b
|
|
|
|
|
print a && b && a
|
|
|
|
|
print a /\ b
|
|
|
|
|
print a ∧ b
|
|
|
|
|
print (and a b)
|
|
|
|
|
print and a b
|
2014-01-05 16:52:46 +00:00
|
|
|
|
-- Disjunctions
|
2014-01-05 19:03:35 +00:00
|
|
|
|
print a || b
|
|
|
|
|
print a \/ b
|
|
|
|
|
print a ∨ b
|
|
|
|
|
print (or a b)
|
|
|
|
|
print or a (or a b)
|
2014-01-05 16:52:46 +00:00
|
|
|
|
-- Simple Formulas
|
2014-01-05 19:03:35 +00:00
|
|
|
|
print a => b => a
|
2014-01-05 20:05:08 +00:00
|
|
|
|
check a => b
|
|
|
|
|
eval a => a
|
|
|
|
|
eval true => a
|
2014-01-05 16:52:46 +00:00
|
|
|
|
-- Simple proof
|
2014-01-05 20:05:08 +00:00
|
|
|
|
axiom H1 : a
|
|
|
|
|
axiom H2 : a => b
|
2014-01-06 03:10:21 +00:00
|
|
|
|
check @mp
|
|
|
|
|
print mp H2 H1
|
|
|
|
|
check mp H2 H1
|