| 1 |
(* |
| 2 |
The Qed at the end of this file was slow in 8.5 and 8.5pl1 because the kernel |
| 3 |
term comparison after evaluation was done on constants according to their user |
| 4 |
names. The conversion still succeeded because delta applied, but was much |
| 5 |
slower than with a canonical names comparison. |
| 6 |
*) |
| 7 |
|
| 8 |
Module Mod0. |
| 9 |
|
| 10 |
Fixpoint rec_ t d : nat := |
| 11 |
match d with |
| 12 |
| O => O |
| 13 |
| S d' => |
| 14 |
match t with |
| 15 |
| true => rec_ t d' |
| 16 |
| false => rec_ t d' |
| 17 |
end |
| 18 |
end. |
| 19 |
|
| 20 |
Definition depth := 1000. |
| 21 |
|
| 22 |
Definition rec t := rec_ t depth. |
| 23 |
|
| 24 |
End Mod0. |
| 25 |
|
| 26 |
|
| 27 |
Module Mod1. |
| 28 |
Module M := Mod0. |
| 29 |
End Mod1. |
| 30 |
|
| 31 |
|
| 32 |
Axiom rec_prop : forall t d n, Mod1.M.rec_ t d = n. |
| 33 |
|
| 34 |
Lemma slow_qed : forall t n, |
| 35 |
Mod0.rec t = n. |
| 36 |
Proof. |
| 37 |
intros; unfold Mod0.rec; apply rec_prop. |
| 38 |
Timeout 2 Qed. |