diff options
Diffstat (limited to 'test-suite/output/Fixpoint.out')
-rw-r--r-- | test-suite/output/Fixpoint.out | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/test-suite/output/Fixpoint.out b/test-suite/output/Fixpoint.out index 9873ad533..5af28a5af 100644 --- a/test-suite/output/Fixpoint.out +++ b/test-suite/output/Fixpoint.out @@ -1,7 +1,11 @@ -Fix F - {F [A,B:Set; f:(A ->B); l:(list A)] : (list B) := - Cases l of - nil => (nil B) - | (cons a l0) => (cons (f a) (F A B f l0)) - end} - : (A,B:Set)(A ->B) ->(list A) ->(list B) +fix F (A B : Set) (f : A -> B) (l : list A) {struct l} : +list B := match l with + | nil => nil (A:=B) + | a :: l0 => f a :: F A B f l0 + end + : forall A B : Set, (A -> B) -> list A -> list B +let fix f (m : nat) : nat := match m with + | O => 0 + | S m' => f m' + end in f 0 + : nat |