test-suite/failure/fixpoint3.v
raw| 1 | (* Check that arguments of impredicative types are not considered |
| 2 | subterms for the guard condition (an example by Thierry Coquand) *) |
| 3 | |
| 4 | Inductive I : Prop := |
| 5 | | C: (forall P:Prop, P->P) -> I. |
| 6 | |
| 7 | Definition i0 := C (fun _ x => x). |
| 8 | |
| 9 | Fail Definition Paradox : False := |
| 10 | (fix ni i : False := |
| 11 | match i with |
| 12 | | C f => ni (f _ i) |
| 13 | end) i0. |