test-suite/bugs/bug_7011.v
raw| 1 | (* Fix and Cofix were missing in tactic unification *) |
| 2 | |
| 3 | Goal exists e, (fix foo (n : nat) : nat := match n with O => e | S n' => foo n' end) |
| 4 | = (fix foo (n : nat) : nat := match n with O => O | S n' => foo n' end). |
| 5 | Proof. |
| 6 | eexists. |
| 7 | reflexivity. |
| 8 | Qed. |
| 9 | |
| 10 | CoInductive stream := cons : nat -> stream -> stream. |
| 11 | |
| 12 | Goal exists e, (cofix foo := cons e foo) = (cofix foo := cons 0 foo). |
| 13 | Proof. |
| 14 | eexists. |
| 15 | reflexivity. |
| 16 | Qed. |