diff options
author | Jason Gross <jagro@google.com> | 2016-07-22 12:19:41 -0700 |
---|---|---|
committer | Jason Gross <jagro@google.com> | 2016-07-22 12:19:41 -0700 |
commit | 1f304caed78f9ccb4f94d100258ea43fbe76822b (patch) | |
tree | 3bad9377c664e376996a0549bd8a1d9b628b1f38 /src/Algebra.v | |
parent | b14476875dafc015bd7c546388a480d177390162 (diff) |
Add ring_simplify_subterms
Diffstat (limited to 'src/Algebra.v')
-rw-r--r-- | src/Algebra.v | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Algebra.v b/src/Algebra.v index d47fc6acd..5a2ea19a4 100644 --- a/src/Algebra.v +++ b/src/Algebra.v @@ -1299,6 +1299,10 @@ Ltac only_two_square_roots := => repeat only_two_square_roots_step eq opp mul end. +(*** Tactics for ring equations *) +Require Import Coq.setoid_ring.Ring_tac. +Ltac ring_simplify_subterms := tac_on_subterms ltac:(fun t => ring_simplify t). + Section Example. Context {F zero one opp add sub mul inv div} `{F_field:field F eq zero one opp add sub mul inv div}. Local Infix "+" := add. Local Infix "*" := mul. Local Infix "-" := sub. Local Infix "/" := div. |