diff options
author | ckeller <ckeller@users.noreply.github.com> | 2019-02-14 20:09:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-14 20:09:40 +0100 |
commit | ec41af7ac01cef7c30785e6dd704381f31e7c2d3 (patch) | |
tree | 13d51483c50d7b5a668d90b8b67a8b99ef0fbe56 /unit-tests | |
parent | ba22fad2fb46962eef5f30d976e9eaeb587023a0 (diff) | |
download | smtcoq-ec41af7ac01cef7c30785e6dd704381f31e7c2d3.tar.gz smtcoq-ec41af7ac01cef7c30785e6dd704381f31e7c2d3.zip |
V8.7 (#36)
Port SMTCoq to Coq-8.7
Diffstat (limited to 'unit-tests')
-rw-r--r-- | unit-tests/Tests_lfsc.v | 2 | ||||
-rw-r--r-- | unit-tests/Tests_verit.v | 54 |
2 files changed, 16 insertions, 40 deletions
diff --git a/unit-tests/Tests_lfsc.v b/unit-tests/Tests_lfsc.v index 05a9fb4..c868864 100644 --- a/unit-tests/Tests_lfsc.v +++ b/unit-tests/Tests_lfsc.v @@ -15,6 +15,8 @@ Add Rec LoadPath "../src" as SMTCoq. Require Import SMTCoq. Require Import Bool PArray Int63 List ZArith Logic. +Local Open Scope Z_scope. + Infix "-->" := implb (at level 60, right associativity) : bool_scope. diff --git a/unit-tests/Tests_verit.v b/unit-tests/Tests_verit.v index f374b1b..002854c 100644 --- a/unit-tests/Tests_verit.v +++ b/unit-tests/Tests_verit.v @@ -16,49 +16,9 @@ Require Import SMTCoq. Require Import Bool PArray Int63 List ZArith. Local Open Scope int63_scope. - -(* First a tactic, to test the universe computation in an empty - environment. *) - -Lemma check_univ (x1: bool): - (x1 && (negb x1)) = false. -Proof. - verit. -Qed. - -(* (* In standard coq we need decidability of Int31.digits *) *) -(* Lemma fun_const : *) -(* forall f (g : int -> int -> bool), *) -(* (forall x, g (f x) 2) -> g (f 3) 2. *) -(* Proof. *) -(* intros f g Hf. *) -(* verit Hf. *) -(* -admit. *) -(* (* a proof that there is a decidable equality on digits : *) *) -(* (* exists (fun x y => match (x, y) with (Int31.D0, Int31.D0) -| (Int31.D1, Int31.D1) => true | _ => false end). *) *) -(* (* intros x y; destruct x, y; constructor; try reflexivity; try discriminate. *) *) -(* (* exists Int63Native.eqb. *) *) -(* (* apply Int63Properties.reflect_eqb. *) *) -(* -apply int63_compdec. *) - - Open Scope Z_scope. -Lemma fun_const2 : - forall f (g : Z -> Z -> bool), - (forall x, g (f x) 2) -> g (f 3) 2. -Proof. - intros f g Hf. verit Hf. -Qed. -(* -Toplevel input, characters 916-942: - Warning: Bytecode compiler failed, falling back to standard conversion - [bytecode-compiler-failed,bytecode-compiler] -*) - - (* veriT vernacular commands *) Section Checker_Sat0. @@ -540,6 +500,20 @@ End Theorem_Bv2. (* verit tactic *) +Lemma check_univ (x1: bool): + (x1 && (negb x1)) = false. +Proof. + verit. +Qed. + +Lemma fun_const2 : + forall f (g : Z -> Z -> bool), + (forall x, g (f x) 2) -> g (f 3) 2. +Proof. + intros f g Hf. verit Hf. +Qed. + + (* Simple connectives *) Goal forall (a:bool), a || negb a. |