diff options
author | Jason Gross <jgross@mit.edu> | 2018-02-18 14:37:01 -0500 |
---|---|---|
committer | Jason Gross <jasongross9@gmail.com> | 2018-02-18 19:25:23 -0500 |
commit | 9ed3309c1e2f28c6312e55a6fab2da755e8a0a8b (patch) | |
tree | 6b2ba15d2918b86a91cd0fa2f06f010957b0ae7b /src | |
parent | 80ca8cf8825f87c2f5c8da0fc1cd63168f30054d (diff) |
Make use of expand_lists tactic
Diffstat (limited to 'src')
-rw-r--r-- | src/Experiments/SimplyTypedArithmetic.v | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/Experiments/SimplyTypedArithmetic.v b/src/Experiments/SimplyTypedArithmetic.v index 98d7badf1..e97068d8c 100644 --- a/src/Experiments/SimplyTypedArithmetic.v +++ b/src/Experiments/SimplyTypedArithmetic.v @@ -308,12 +308,8 @@ Module Positional. Section Positional. [ | rewrite <- @eval_chained_carries with (s:=s) (c:=c) (idxs:=idxs) (modulo:=fun x y => Z.modulo x y) (div:=fun x y => Z.div x y) by (subst; try assumption; auto using Z.div_mod); reflexivity ]. eapply f_equal2; [|trivial]. eapply f_equal. - erewrite <- (expand_list_correct _ (-1)%Z f), - <- (expand_list_correct _ (-1)%Z g), - <- (expand_list_correct _ 0%nat idxs), - <- (expand_list_correct _ (-1,-1)%Z c) - by eassumption. - subst carry_mulmod; reflexivity. + expand_lists (). + refine eq_refl. Qed. End carry_mulmod. End Positional. End Positional. |