From b9cbf680f13927340720d1d0f4938dcc6cd65d1f Mon Sep 17 00:00:00 2001 From: Pierre Boutillier Date: Mon, 8 Sep 2014 17:35:50 +0200 Subject: eta contractions --- theories/NArith/BinNatDef.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'theories/NArith') 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 -- cgit v1.2.3