aboutsummaryrefslogtreecommitdiffhomepage
path: root/test-suite/output/Fixpoint.out
blob: 6879cbc3c2ee66f7cc4b8507782d7d1f936f9308 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
fix F (A B : Set) (f : A -> B) (l : list A) {struct l} : 
list B := match l with
          | nil => nil
          | 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
                             | 0 => 0
                             | S m' => f m'
                             end in f 0
     : nat
Ltac f id1 id2 := fix id1 2 with (id2 (n:_) (H:odd n) {struct H} : n >= 1)
     = cofix inf : Inf := {| projS := inf |}
     : Inf