diff options
author | Pierre Boutillier <pierre.boutillier@pps.univ-paris-diderot.fr> | 2014-09-08 17:35:50 +0200 |
---|---|---|
committer | Pierre Boutillier <pierre.boutillier@ens-lyon.org> | 2014-10-01 23:24:36 +0200 |
commit | b9cbf680f13927340720d1d0f4938dcc6cd65d1f (patch) | |
tree | 7cc258ea9458122d4e333f6cfa7af8a792242824 /theories/NArith | |
parent | f640bcbe834cef3559118a093f1a905cacdccc2f (diff) |
eta contractions
Diffstat (limited to 'theories/NArith')
-rw-r--r-- | theories/NArith/BinNatDef.v | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/theories/NArith/BinNatDef.v b/theories/NArith/BinNatDef.v index befcf7929..6aeeccaf5 100644 --- a/theories/NArith/BinNatDef.v +++ b/theories/NArith/BinNatDef.v @@ -325,8 +325,8 @@ 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_nat (a:N) := nat_rect _ a (fun _ => double). +Definition shiftr_nat (a:N) := nat_rect _ a (fun _ => div2). Definition shiftl a n := match a with |