aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorJason Gross2018-12-03 16:45:49 -0500
committerJason Gross2019-01-24 14:29:03 -0500
commit0c99020482e96ceb05799c47ffbcaef0e89b4b1f (patch)
treecd5c1017a6c3d98f6d3d7da76ab90ffad0467156 /test-suite
parent7bc08910ad7451d5e45102653d33e89aed5ae12b (diff)
Don't bundle Z.div_mod_quot_rem into zify
Alas, I have not had time to work on imrpoving the performance of nia, and there has been a request to include this tactic (which is useful on its own) without bundling it into `zify`. So that is what we do here. I leave the definition of it in `PreOmega` in case we want to eventually include it in `zify`/`nia`.
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/success/Nia.v3
1 files changed, 3 insertions, 0 deletions
diff --git a/test-suite/success/Nia.v b/test-suite/success/Nia.v
index da0b2a7a83..9a13e41e07 100644
--- a/test-suite/success/Nia.v
+++ b/test-suite/success/Nia.v
@@ -2,6 +2,9 @@ Require Import Coq.ZArith.ZArith.
Require Import Coq.micromega.Lia.
Open Scope Z_scope.
+(** Add [Z.div_mod_to_quot_rem] to the end of [zify], just for this file *)
+Ltac zify ::= repeat (zify_nat; zify_positive; zify_N); zify_op; Z.div_mod_to_quot_rem.
+
Lemma Z_zerop_or x : x = 0 \/ x <> 0. Proof. nia. Qed.
Lemma Z_eq_dec_or (x y : Z) : x = y \/ x <> y. Proof. nia. Qed.