2013-08-18 17:59:59 +00:00
|
|
|
|
Variable a : Bool
|
|
|
|
|
Variable b : Bool
|
2014-01-05 16:52:46 +00:00
|
|
|
|
-- Conjunctions
|
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
|
2013-08-18 17:59:59 +00:00
|
|
|
|
Check a => b
|
|
|
|
|
Eval a => a
|
|
|
|
|
Eval true => a
|
2014-01-05 16:52:46 +00:00
|
|
|
|
-- Simple proof
|
2013-08-18 17:59:59 +00:00
|
|
|
|
Axiom H1 : a
|
|
|
|
|
Axiom H2 : a => b
|
2013-12-22 01:02:16 +00:00
|
|
|
|
Check @MP
|
2014-01-05 19:03:35 +00:00
|
|
|
|
print MP H2 H1
|
2013-08-30 22:56:04 +00:00
|
|
|
|
Check MP H2 H1
|