blob: d193dc484f32400f1509ab5b82d09368d0cb4c60 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
(* A bug in the guard checking of nested cofixpoints. *)
(* Posted by Maxime Dénès on coqdev (Apr 9, 2014). *)
CoInductive CoFalse := .
CoInductive CoTrue := I.
Fail CoFixpoint loop : CoFalse :=
(cofix f := loop with g := loop for f).
Fail CoFixpoint loop : CoFalse :=
(cofix f := I with g := loop for g).
Fail CoFixpoint loop : CoFalse :=
(cofix f := loop with g := I for f).
|