diff options
author | Jason Gross <jgross@mit.edu> | 2016-06-20 10:37:57 -0400 |
---|---|---|
committer | Jason Gross <jgross@mit.edu> | 2016-06-20 10:38:28 -0400 |
commit | 0ec7bb713a5ab9af36432bde96756536b8efb820 (patch) | |
tree | 5bda3a4a90b11ef2a3b704ea46031a4305b5a461 /src/Tactics | |
parent | a1113958bfbc1ccbbe76be831bf36c616ef74e93 (diff) |
More 8.5 fixes
Changing scopes?
Diffstat (limited to 'src/Tactics')
-rw-r--r-- | src/Tactics/Nsatz.v | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/Tactics/Nsatz.v b/src/Tactics/Nsatz.v index 469ba4c29..729017590 100644 --- a/src/Tactics/Nsatz.v +++ b/src/Tactics/Nsatz.v @@ -39,6 +39,13 @@ Ltac nsatz_get_reified_goal reified_package := lazymatch reified_package with (_, _, ?goal) => goal end. Require Import Coq.setoid_ring.Ring_polynom. +(* Kludge for 8.4/8.5 compatibility *) +Module Import mynsatz_compute. + Import Nsatz. + Global Ltac mynsatz_compute := nsatz_compute. +End mynsatz_compute. +Ltac nsatz_compute := mynsatz_compute. + Ltac nsatz_compute_to_goal sugar nparams reified_goal power reified_givens := nsatz_compute (PEc sugar :: PEc nparams :: PEpow reified_goal power :: reified_givens). @@ -64,13 +71,13 @@ Ltac nsatz_rewrite_and_revert domain := | [H : eq _ _ |- _ ] => rewrite <-(cring_sub_diag_iff (cring:=FCring)) in H; revert H end end. - -Ltac nsatz_nonzero := + +Ltac nsatz_nonzero := try solve [apply Integral_domain.integral_domain_one_zero |apply Integral_domain.integral_domain_minus_one_zero |trivial]. -Ltac nsatz_domain_sugar_power domain sugar power := +Ltac nsatz_domain_sugar_power domain sugar power := let nparams := constr:(BinInt.Zneg BinPos.xH) in (* some symbols can be "parameters", treated as coefficients *) lazymatch type of domain with | @Integral_domain.Integral_domain ?F ?zero _ _ _ _ _ ?eq ?Fops ?FRing ?FCring => @@ -117,4 +124,4 @@ Ltac nsatz_contradict := assert (eq one zero) as Hbad; [nsatz; nsatz_nonzero |destruct (Integral_domain.integral_domain_one_zero (Integral_domain:=domain) Hbad)] - end.
\ No newline at end of file + end. |