diff options
author | Jason Gross <jgross@mit.edu> | 2017-03-21 17:28:27 -0400 |
---|---|---|
committer | Jason Gross <jgross@mit.edu> | 2017-03-21 17:28:27 -0400 |
commit | 2e3d67952aff6115983a012b3c8420fa9297a1dd (patch) | |
tree | c8b30fc7f5f38f4d422552572df472eff7d6374a /src/Util/ZUtil.v | |
parent | 279781a50da8f1ae58faba1e81055310ca484be0 (diff) |
Split off the extra power of rewrite_mod_small into rewrite_mod_mod_small
Diffstat (limited to 'src/Util/ZUtil.v')
-rw-r--r-- | src/Util/ZUtil.v | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Util/ZUtil.v b/src/Util/ZUtil.v index 64604022a..2d3f24c07 100644 --- a/src/Util/ZUtil.v +++ b/src/Util/ZUtil.v @@ -2566,6 +2566,13 @@ Module Z. | [ |- context[(?a mod ?n) mod ?m] ] => rewrite (mod_mod_small a n m) by rewrite_mod_small_solver end. + Ltac rewrite_mod_mod_small := + repeat match goal with + | [ |- context[(?a mod ?n) mod ?m] ] + => rewrite (mod_mod_small a n m) by rewrite_mod_small_solver + end. + Ltac rewrite_mod_small_more := + repeat (rewrite_mod_small || rewrite_mod_mod_small). Local Ltac simplify_div_tac := intros; autorewrite with zsimplify; rewrite <- ?Z_div_plus_full_l, <- ?Z_div_plus_full by assumption; |