Add small example
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
843253355b
commit
85222e13ba
1 changed files with 26 additions and 0 deletions
26
examples/ex1.lean
Normal file
26
examples/ex1.lean
Normal file
|
@ -0,0 +1,26 @@
|
|||
Variable a : Bool
|
||||
Variable b : Bool
|
||||
(* Conjunctions *)
|
||||
Show a && b
|
||||
Show a && b && a
|
||||
Show a /\ b
|
||||
Show a ∧ b
|
||||
Show (and a b)
|
||||
Show and a b
|
||||
(* Disjunctions *)
|
||||
Show a || b
|
||||
Show a \/ b
|
||||
Show a ∨ b
|
||||
Show (or a b)
|
||||
Show or a (or a b)
|
||||
(* Simple Formulas *)
|
||||
Show a => b => a
|
||||
Check a => b
|
||||
Eval a => a
|
||||
Eval true => a
|
||||
(* Simple proof *)
|
||||
Axiom H1 : a
|
||||
Axiom H2 : a => b
|
||||
Check MP
|
||||
Show MP a b H2 H1
|
||||
Check MP a b H2 H1
|
Loading…
Reference in a new issue