From ec8332223b1f6716e49bbf78e0489881ca7bfa2b Mon Sep 17 00:00:00 2001 From: pboutill Date: Fri, 21 Dec 2012 21:47:43 +0000 Subject: nat_iter n f x -> nat_rect _ x (fun _ => f) n It is much beter for everything (includind guard condition and simpl refolding) excepts typeclasse inference because unification does not recognize (fun x => f x b) a when it sees f a b ... git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16112 85f007b7-540e-0410-9357-904b9bb8a0f7 --- theories/Arith/Wf_nat.v | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'theories/Arith') diff --git a/theories/Arith/Wf_nat.v b/theories/Arith/Wf_nat.v index b55451233..05be5e1a3 100644 --- a/theories/Arith/Wf_nat.v +++ b/theories/Arith/Wf_nat.v @@ -258,6 +258,4 @@ Qed. Unset Implicit Arguments. -Notation iter_nat := @nat_iter (only parsing). -Notation iter_nat_plus := @nat_iter_plus (only parsing). -Notation iter_nat_invariant := @nat_iter_invariant (only parsing). +Notation iter_nat n A f x := (nat_rect (fun _ => A) x (fun _ => f) n) (only parsing). -- cgit v1.2.3