-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
68 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,33 @@ | ||
require open tests.OK.logic; | ||
require open tests.OK.natural; | ||
require open tests.OK.Prop tests.OK.Set tests.OK.FOL; | ||
|
||
prover "Alt-Ergo"; | ||
prover_timeout 2; | ||
|
||
opaque symbol tautology : Π (a : Prop), P a → P a | ||
≔ begin | ||
why3; | ||
end; | ||
|
||
opaque symbol thm_and1 : Π (a b : Prop), P ({|and|} a b) → P a | ||
≔ begin | ||
why3; | ||
end; | ||
|
||
opaque symbol thm_and2 : Π (a b : Prop), P ({|and|} a b) → P b | ||
≔ begin | ||
why3; | ||
end; | ||
|
||
opaque symbol excluded_middle : Π (a : Prop), P (or a (not a)) | ||
≔ begin | ||
why3; | ||
end; | ||
|
||
opaque symbol thm_or1 : Π (a b : Prop), P a → P (or a b) | ||
≔ begin | ||
why3; | ||
end; | ||
|
||
opaque symbol thm_or2 : Π (a b : Prop), P b → P (or a b) | ||
≔ begin | ||
why3; | ||
end; | ||
|
||
opaque symbol thm_imp : Π (a b : Prop), P (imp a b) → P a → P b | ||
≔ begin | ||
why3; | ||
end; | ||
|
||
symbol o : U; | ||
rule T o ↪ Prop; | ||
|
||
constant symbol nat: U; | ||
symbol even (_: T nat): Prop; | ||
|
||
/*opaque symbol thm_ex : P (ex o (λ p: T o, imp p p)) | ||
≔ begin | ||
why3; | ||
end;*/ | ||
|
||
opaque symbol thm_even : P (ex nat (λ n: T nat, imp (even n) (even n))) | ||
≔ begin | ||
why3; | ||
end; | ||
|
||
opaque symbol tyvar (a: U) (q: T a → T o): P (ex a (λ n: T a, imp (q n) (q n))) | ||
≔ begin | ||
why3; | ||
end; | ||
opaque symbol test1 p : π p → π p ≔ begin why3 end; | ||
|
||
opaque symbol test2 p q : π (p ∧ q) → π p ≔ begin why3 end; | ||
|
||
opaque symbol test3 : Π p q, π (p ∧ q) → π p ≔ begin why3 end; | ||
|
||
opaque symbol test4 p : π (p ∨ ¬ p) ≔ begin why3 end; | ||
|
||
opaque symbol test5 p q : π p → π (p ∨ q) ≔ begin why3 end; | ||
|
||
opaque symbol test6 p q : π (p ⇒ q) → π p → π q ≔ begin why3 end; | ||
|
||
constant symbol nat:Set; | ||
|
||
symbol even : τ nat → Prop; | ||
|
||
opaque symbol test7 : π (`∃ n, even n ⇒ even n) ≔ begin why3 end; | ||
|
||
opaque symbol test8 a p: π (`∃ x:τ a, p x ⇒ p x) ≔ begin why3 end; | ||
|
||
opaque symbol test9 a p : π (¬ (`∃ x:τ a, p x) ⇔ (`∀ x, ¬ (p x))) ≔ begin why3 end; | ||
|
||
//constant symbol o:Set; | ||
//rule τ o ↪ Prop; | ||
|
||
//opaque symbol test10 a (p:τ(nat ⤳ o)) : π (¬ (`∃ x:τ a, p x) ⇔ (`∀ x, ¬ (p x))) ≔ begin why3 end; | ||
|
||
//opaque symbol test10 : π (`∃ p, p ⇒ p) ≔ begin why3 end; |