test-suite/success/autointros.v
raw| 1 | Inductive even : nat -> Prop := |
| 2 | | even_0 : even 0 |
| 3 | | even_odd : forall n, odd n -> even (S n) |
| 4 | with odd : nat -> Prop := |
| 5 | | odd_1 : odd 1 |
| 6 | | odd_even : forall n, even n -> odd (S n). |
| 7 | |
| 8 | Lemma foo {n : nat} (E : even n) : even (S (S n)) |
| 9 | with bar {n : nat} (O : odd n) : odd (S (S n)). |
| 10 | Proof. destruct E. constructor. constructor. apply even_odd. apply (bar _ H). |
| 11 | destruct O. repeat constructor. apply odd_even. apply (foo _ H). |
| 12 | Defined. |
| 13 |