diff options
author | letouzey <letouzey@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2011-05-05 15:12:40 +0000 |
---|---|---|
committer | letouzey <letouzey@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2011-05-05 15:12:40 +0000 |
commit | 7b64e1d3b368bca3c8b4ebe2ccacdf6d79eef815 (patch) | |
tree | 17a859cb5664a0ac0f4b0839cedc8f25ccb8ef93 /theories/PArith/BinPosDef.v | |
parent | 88cf0acb11ae2b4a7e0fb7df8289c15eb0748f19 (diff) |
Wf.iter_nat becomes Peano.nat_iter (with an implicit arg)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@14103 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'theories/PArith/BinPosDef.v')
-rw-r--r-- | theories/PArith/BinPosDef.v | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/theories/PArith/BinPosDef.v b/theories/PArith/BinPosDef.v index cf7e450f4..9b6081176 100644 --- a/theories/PArith/BinPosDef.v +++ b/theories/PArith/BinPosDef.v @@ -478,11 +478,8 @@ Fixpoint lxor (p q:positive) : N := (** Shifts. NB: right shift of 1 stays at 1. *) -(* -Definition shiftl_nat (p:positive)(n:nat) := iter_nat n _ xO p. - -Definition shiftr_nat (p:positive)(n:nat) := iter_nat n _ div2 p. -*) +Definition shiftl_nat (p:positive)(n:nat) := nat_iter n xO p. +Definition shiftr_nat (p:positive)(n:nat) := nat_iter n div2 p. Definition shiftl (p:positive)(n:N) := match n with |