test-suite/bugs/bug_5127.v
raw| 1 | (* -*- coq-prog-args: ("-native-compiler" "no"); -*- *) |
| 2 | Fixpoint arrow (n: nat) := |
| 3 | match n with |
| 4 | | S n => bool -> arrow n |
| 5 | | O => bool |
| 6 | end. |
| 7 | |
| 8 | Fixpoint apply (n : nat) : arrow n -> bool := |
| 9 | match n return arrow n -> bool with |
| 10 | | S n => fun f => apply _ (f true) |
| 11 | | O => fun x => x |
| 12 | end. |
| 13 | |
| 14 | Axiom f : arrow 10000. |
| 15 | Definition v : bool := Eval compute in apply _ f. |
| 16 | Definition w : bool := Eval vm_compute in v. |