test-suite/bugs/bug_3310.v
raw| 1 | Set Primitive Projections. |
| 2 | Set Implicit Arguments. |
| 3 | |
| 4 | CoInductive stream A := cons { hd : A; tl : stream A }. |
| 5 | |
| 6 | CoFixpoint id {A} (s : stream A) := cons (hd s) (id (tl s)). |
| 7 | |
| 8 | Lemma id_spec : forall A (s : stream A), id s = s. |
| 9 | Proof. |
| 10 | intros A s. |
| 11 | Fail change (id s) with (cons (hd (id s)) (tl (id s))). |
| 12 | Abort. |