diff options
author | Andres Erbsen <andreser@mit.edu> | 2016-07-07 16:02:23 -0400 |
---|---|---|
committer | Andres Erbsen <andreser@mit.edu> | 2016-07-11 09:59:13 -0400 |
commit | 71179e46a7c404e76bc58c2465d547ead6df3e26 (patch) | |
tree | 92d4a0da87872b00ba99372fee29c369e49a7360 /src/Tactics | |
parent | d8b643de8922f788328bbe356506a39b1f664ca6 (diff) |
wrap nsatz in Algebra
Diffstat (limited to 'src/Tactics')
-rw-r--r-- | src/Tactics/Algebra_syntax/Nsatz.v (renamed from src/Tactics/Nsatz.v) | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/Tactics/Nsatz.v b/src/Tactics/Algebra_syntax/Nsatz.v index 04f35c200..a5b04cfa2 100644 --- a/src/Tactics/Nsatz.v +++ b/src/Tactics/Algebra_syntax/Nsatz.v @@ -121,11 +121,14 @@ Ltac nsatz_sugar_power sugar power := let domain := nsatz_guess_domain in nsatz_domain_sugar_power domain sugar power. -Tactic Notation "nsatz" constr(n) := - let nn := (eval compute in (BinNat.N.of_nat n)) in - nsatz_sugar_power BinInt.Z0 nn. +Ltac nsatz_power power := + let power_N := (eval compute in (BinNat.N.of_nat power)) in + nsatz_sugar_power BinInt.Z0 power_N. -Tactic Notation "nsatz" := nsatz 1%nat || nsatz 2%nat || nsatz 3%nat || nsatz 4%nat || nsatz 5%nat. +Ltac nsatz := nsatz_power 1%nat || nsatz_power 2%nat || nsatz_power 3%nat || nsatz_power 4%nat || nsatz_power 5%nat. + +Tactic Notation "nsatz" := nsatz. +Tactic Notation "nsatz" constr(n) := nsatz_power n. (** If the goal is of the form [?x <> ?y] and assuming [?x = ?y] contradicts any hypothesis of the form [?x' <> ?y'], we turn this |