diff options
Diffstat (limited to 'test-suite/bugs/closed/3310.v')
-rw-r--r-- | test-suite/bugs/closed/3310.v | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/3310.v b/test-suite/bugs/closed/3310.v new file mode 100644 index 00000000..d6c31c6b --- /dev/null +++ b/test-suite/bugs/closed/3310.v @@ -0,0 +1,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))). |