aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorJason Gross2020-08-19 13:07:14 -0400
committerJason Gross2020-08-25 14:58:50 -0400
commit4ad36b5e2369b37aa2483a1e04eb628d147d97d3 (patch)
tree2076e0c62e8e571dc64d2775377f6dd24ffabea9 /test-suite
parent51c0d56a5b0384e2f6bd980a1111547641c66b3e (diff)
Require NsatzTactic: nsatz support for Z and Q
The purpose of `NsatzTactic` is to allow using `nsatz` without the dependency on real axioms. So we declare the instances for `Z` and `Q` in that file, so that users don't have to re-create them. Fixes #12860
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/bugs/closed/bug_12860.v10
1 files changed, 10 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/bug_12860.v b/test-suite/bugs/closed/bug_12860.v
new file mode 100644
index 0000000000..243aeceba2
--- /dev/null
+++ b/test-suite/bugs/closed/bug_12860.v
@@ -0,0 +1,10 @@
+Require Import Coq.nsatz.NsatzTactic.
+Require Import Coq.ZArith.ZArith Coq.QArith.QArith.
+
+Goal forall x y : Z, (x + y = y + x)%Z.
+ intros; nsatz.
+Qed.
+
+Goal forall x y : Q, Qeq (x + y) (y + x).
+ intros; nsatz.
+Qed.