summaryrefslogtreecommitdiff
path: root/test-suite/bugs/closed/3310.v
blob: d6c31c6b410ed676b872e0176b7b8809c1346546 (plain)
1
2
3
4
5
6
7
8
9
10
11
Set Primitive Projections.
Set Implicit Arguments.

CoInductive stream A := cons { hd : A; tl : stream A }.

CoFixpoint id {A} (s : stream A) := cons (hd s) (id (tl s)).

Lemma id_spec : forall A (s : stream A), id s = s.
Proof.
intros A s.
Fail change (id s) with (cons (hd (id s)) (tl (id s))).