aboutsummaryrefslogtreecommitdiffhomepage
path: root/theories/NArith/BinNatDef.v
diff options
context:
space:
mode:
authorGravatar letouzey <letouzey@85f007b7-540e-0410-9357-904b9bb8a0f7>2011-05-05 15:12:40 +0000
committerGravatar letouzey <letouzey@85f007b7-540e-0410-9357-904b9bb8a0f7>2011-05-05 15:12:40 +0000
commit7b64e1d3b368bca3c8b4ebe2ccacdf6d79eef815 (patch)
tree17a859cb5664a0ac0f4b0839cedc8f25ccb8ef93 /theories/NArith/BinNatDef.v
parent88cf0acb11ae2b4a7e0fb7df8289c15eb0748f19 (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/NArith/BinNatDef.v')
-rw-r--r--theories/NArith/BinNatDef.v3
1 files changed, 3 insertions, 0 deletions
diff --git a/theories/NArith/BinNatDef.v b/theories/NArith/BinNatDef.v
index cb5cfe7f0..535f88c86 100644
--- a/theories/NArith/BinNatDef.v
+++ b/theories/NArith/BinNatDef.v
@@ -316,6 +316,9 @@ Definition lxor n m :=
(** Shifts *)
+Definition shiftl_nat (a:N)(n:nat) := nat_iter n double a.
+Definition shiftr_nat (a:N)(n:nat) := nat_iter n div2 a.
+
Definition shiftl a n :=
match a with
| 0 => 0