From 7b64e1d3b368bca3c8b4ebe2ccacdf6d79eef815 Mon Sep 17 00:00:00 2001 From: letouzey Date: Thu, 5 May 2011 15:12:40 +0000 Subject: 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 --- theories/NArith/BinNat.v | 6 +----- theories/NArith/BinNatDef.v | 3 +++ 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'theories/NArith') diff --git a/theories/NArith/BinNat.v b/theories/NArith/BinNat.v index 7d9f4d64f..f150f12c8 100644 --- a/theories/NArith/BinNat.v +++ b/theories/NArith/BinNat.v @@ -8,7 +8,7 @@ Require Export BinNums. Require Import BinPos RelationClasses Morphisms Setoid - Equalities GenericMinMax Wf_nat Bool NAxioms NProperties. + Equalities GenericMinMax Bool NAxioms NProperties. Require BinNatDef. (**********************************************************************) @@ -36,10 +36,6 @@ Module N Include BinNatDef.N. -(* TODO : fix the location of iter_nat *) -Definition shiftl_nat (a:N)(n:nat) := iter_nat n _ double a. -Definition shiftr_nat (a:N)(n:nat) := iter_nat n _ div2 a. - (** Logical predicates *) Definition eq := @Logic.eq t. 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 -- cgit v1.2.3