blob: 339280b2f28e4bdddb0e0d626e069a9dc7b4785b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
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))).
Abort.
|