| 1 |
(* Check that arguments of impredicative types are not considered |
| 2 |
subterms even through commutative cuts on functional arguments |
| 3 |
(example prepared by Bruno) *) |
| 4 |
|
| 5 |
Inductive IMP : Prop := |
| 6 |
CIMP : (forall A:Prop, A->A) -> IMP |
| 7 |
| LIMP : (nat->IMP)->IMP. |
| 8 |
|
| 9 |
Definition i0 := (LIMP (fun _ => CIMP (fun _ x => x))). |
| 10 |
|
| 11 |
Fail Definition Paradox : False := |
| 12 |
(fix F y o {struct o} : False := |
| 13 |
match y with |
| 14 |
| tt => fun f => |
| 15 |
match f 0 with |
| 16 |
| CIMP h => F y (h _ o) |
| 17 |
| _ => F y (f 0) |
| 18 |
end |
| 19 |
end match o with LIMP f => f | _ => fun _ => o end) tt i0. |