| 1 |
Set Primitive Projections. |
| 2 |
|
| 3 |
CoInductive stream (A : Type) := cons { hd : A; tl : stream A }. |
| 4 |
|
| 5 |
CoFixpoint const {A} (x : A) := cons A x (const x). |
| 6 |
|
| 7 |
Goal forall A x, (@const A x).(tl _) = const x. |
| 8 |
Proof. |
| 9 |
intros. |
| 10 |
simpl. |
| 11 |
match goal with [ |- ?x = ?x ] => idtac end. |
| 12 |
Abort. |