diff options
author | Pierre Boutillier <pierre.boutillier@ens-lyon.org> | 2014-04-25 16:17:15 +0200 |
---|---|---|
committer | Pierre Boutillier <pierre.boutillier@ens-lyon.org> | 2014-05-02 11:05:19 +0200 |
commit | 1432318faa4cb6a50eca2c7a371b43b3b9969666 (patch) | |
tree | 694d6a8266ec1aad5f0439cfb0a3fa41fb8fd270 /theories/ZArith/Zpow_alt.v | |
parent | c3e091756e0030e29e231ca1d7c3bd12ded55760 (diff) |
Pos.iter arguments in a better order for cbn.
Diffstat (limited to 'theories/ZArith/Zpow_alt.v')
-rw-r--r-- | theories/ZArith/Zpow_alt.v | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/theories/ZArith/Zpow_alt.v b/theories/ZArith/Zpow_alt.v index f3eb63a8a..73b1989e4 100644 --- a/theories/ZArith/Zpow_alt.v +++ b/theories/ZArith/Zpow_alt.v @@ -30,12 +30,12 @@ Infix "^^" := Zpower_alt (at level 30, right associativity) : Z_scope. Lemma Piter_mul_acc : forall f, (forall x y:Z, (f x)*y = f (x*y)) -> - forall p k, Pos.iter p f k = (Pos.iter p f 1)*k. + forall p k, Pos.iter f k p = (Pos.iter f 1 p)*k. Proof. intros f Hf. induction p; simpl; intros. - - set (g := Pos.iter p f 1) in *. now rewrite !IHp, Hf, Z.mul_assoc. - - set (g := Pos.iter p f 1) in *. now rewrite !IHp, Z.mul_assoc. + - set (g := Pos.iter f 1 p) in *. now rewrite !IHp, Hf, Z.mul_assoc. + - set (g := Pos.iter f 1 p) in *. now rewrite !IHp, Z.mul_assoc. - now rewrite Hf, Z.mul_1_l. Qed. |