| 1 |
fix F (A B : Set) (f : A -> B) (l : list A) {struct l} : list B := |
| 2 |
match l with |
| 3 |
| nil => nil |
| 4 |
| a :: l0 => f a :: F A B f l0 |
| 5 |
end |
| 6 |
: forall A B : Set, (A -> B) -> list A -> list B |
| 7 |
let fix f (m : nat) : nat := match m with |
| 8 |
| 0 => 0 |
| 9 |
| S m' => f m' |
| 10 |
end in f 0 |
| 11 |
: nat |
| 12 |
Ltac f id1 id2 := fix id1 2 with (id2 (n:_) (H:odd n) {struct H} : n >= 1) |
| 13 |
= cofix inf : Inf := {| projS := inf |} |
| 14 |
: Inf |
| 15 |
File "./output/Fixpoint.v", line 39, characters 0-51: |
| 16 |
Warning: Not a truly recursive fixpoint. [non-recursive,fixpoints,default] |
| 17 |
File "./output/Fixpoint.v", line 42, characters 0-103: |
| 18 |
Warning: Not a fully mutually defined fixpoint |
| 19 |
(k1 depends on k2 but not conversely). |
| 20 |
Well-foundedness check may fail unexpectedly. |
| 21 |
[non-full-mutual,fixpoints,default] |
| 22 |
File "./output/Fixpoint.v", line 44, characters 0-106: |
| 23 |
Warning: Not a fully mutually defined fixpoint |
| 24 |
(l2 and l1 are not mutually dependent). |
| 25 |
Well-foundedness check may fail unexpectedly. |
| 26 |
[non-full-mutual,fixpoints,default] |
| 27 |
File "./output/Fixpoint.v", line 46, characters 0-103: |
| 28 |
Warning: Not a fully mutually defined fixpoint |
| 29 |
(m2 and m1 are not mutually dependent). |
| 30 |
Well-foundedness check may fail unexpectedly. |
| 31 |
[non-full-mutual,fixpoints,default] |
| 32 |
File "./output/Fixpoint.v", line 54, characters 0-25: |
| 33 |
Warning: Not a truly recursive cofixpoint. [non-recursive,fixpoints,default] |
| 34 |
File "./output/Fixpoint.v", line 57, characters 0-48: |
| 35 |
Warning: Not a fully mutually defined cofixpoint |
| 36 |
(a2 and a1 are not mutually dependent). |
| 37 |
[non-full-mutual,fixpoints,default] |
| 38 |
File "./output/Fixpoint.v", line 73, characters 2-15: |
| 39 |
The command has indeed failed with message: |
| 40 |
Recursive definition of foo and bar is ill-formed. |
| 41 |
As a mutual fixpoint: |
| 42 |
Not enough abstractions in the definition: |
| 43 |
expected at least 1 according to the "struct" annotation. |
| 44 |
The 1st recursive definition is: "?Goal". |
| 45 |
The 2nd recursive definition is: "?Goal0". |
| 46 |
The condition holds up to here. |
| 47 |
File "./output/Fixpoint.v", line 78, characters 6-19: |
| 48 |
The command has indeed failed with message: |
| 49 |
Recursive definition of foo and bar is ill-formed. |
| 50 |
As a mutual fixpoint decreasing on the 1st argument of foo and |
| 51 |
1st argument of bar: |
| 52 |
Recursive call to bar has principal argument equal to |
| 53 |
"0" instead of |
| 54 |
a subterm of "n". |
| 55 |
As a mutual fixpoint decreasing on the 1st argument of foo and |
| 56 |
2nd argument of bar: |
| 57 |
Recursive call to bar has principal argument equal to |
| 58 |
"0" instead of |
| 59 |
a subterm of "n". |
| 60 |
As a mutual fixpoint decreasing on the 2nd argument of foo and |
| 61 |
1st argument of bar: |
| 62 |
Recursive call to bar has principal argument equal to |
| 63 |
"0" instead of |
| 64 |
a subterm of "m". |
| 65 |
As a mutual fixpoint decreasing on the 2nd argument of foo and |
| 66 |
2nd argument of bar: |
| 67 |
Recursive call to bar has principal argument equal to |
| 68 |
"0" instead of a subterm of "m". |
| 69 |
The 1st recursive definition is: |
| 70 |
"fun n m : nat => |
| 71 |
match n with |
| 72 |
| 0 => bar 0 0 |
| 73 |
| S n0 => (fun n1 : nat => ?Goal0@{n:=n1}) n0 |
| 74 |
end". |
| 75 |
The 2nd recursive definition is: "fun n m : nat => ?Goal". |
| 76 |
The condition holds up to here. |
| 77 |
The condition holds up to here. |
| 78 |
The condition holds up to here. |
| 79 |
The condition holds up to here. |
| 80 |
File "./output/Fixpoint.v", line 105, characters 6-19: |
| 81 |
The command has indeed failed with message: |
| 82 |
Recursive definition of foo' and bar' is ill-formed. |
| 83 |
As a mutual fixpoint decreasing on the 1st argument of foo' and |
| 84 |
1st argument of bar': |
| 85 |
Cannot define a fixpoint with principal argument living in sort |
| 86 |
"SProp" to produce a value in sort "Prop" |
| 87 |
because "SProp" does not eliminate to "Prop". |
| 88 |
As a mutual fixpoint decreasing on the 1st argument of foo' and |
| 89 |
2nd argument of bar': |
| 90 |
Recursive call to bar' has principal argument equal to |
| 91 |
"0" instead of a subterm of "n". |
| 92 |
The 1st recursive definition is: |
| 93 |
"fun (n : nat) (m : Prop) => |
| 94 |
match n with |
| 95 |
| 0 => bar' SI 0 |
| 96 |
| S n0 => (fun n1 : nat => ?Goal0@{n:=n1}) n0 |
| 97 |
end". |
| 98 |
The 2nd recursive definition is: "fun (n : STrue) (m : nat) => ?Goal". |