Debian Codegraph @

test-suite/bugs/bug_1643.v

raw
1 (* Check some aspects of that the algorithm used to possibly reuse a
2 global name in the recursive calls (coinductive case) *)
3
4 CoInductive Str : Set := Cons (h:nat) (t:Str).
5
6 Definition decomp_func (s:Str) :=
7 match s with
8 | Cons h t => Cons h t
9 end.
10
11 Theorem decomp s: s = decomp_func s.
12 Proof.
13 case s; simpl; reflexivity.
14 Qed.
15
16 Definition zeros := (cofix z : Str := Cons 0 z).
17 Lemma zeros_rw : zeros = Cons 0 zeros.
18 rewrite (decomp zeros).
19 simpl.
20 Admitted.