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-08 08:38:39 +00:00
|
|
|
|
print a → b → a
|
|
|
|
|
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
|
2014-01-08 08:38:39 +00:00
|
|
|
|
axiom H2 : a → b
|