| 1 |
Fixpoint demo_recursion(n:nat) := match n with |
| 2 |
|0 => Type |
| 3 |
|S k => (demo_recursion k) -> Type |
| 4 |
end. |
| 5 |
|
| 6 |
Record Demonstration := mkDemo |
| 7 |
{ |
| 8 |
demo_law : forall n:nat, demo_recursion n; |
| 9 |
demo_stuff : forall n:nat, forall q:(fix demo_recursion (n : nat) : Type := |
| 10 |
match n with |
| 11 |
| 0 => Type |
| 12 |
| S k => demo_recursion k -> Type |
| 13 |
end) n, (demo_law (S n)) q |
| 14 |
}. |
| 15 |
|
| 16 |
Theorem DemoError : Demonstration. |
| 17 |
Fail apply mkDemo. (*Anomaly: Uncaught exception Not_found. Please report.*) |
| 18 |
Abort. |