| 1 |
Inductive even (x: nat): nat -> Prop := |
| 2 |
| even_base: even x O |
| 3 |
| even_succ: forall n, odd x n -> even x (S n) |
| 4 |
|
| 5 |
with odd (x: nat): nat -> Prop := |
| 6 |
| odd_succ: forall n, even x n -> odd x (S n). |
| 7 |
|
| 8 |
Scheme even_ind2 := Minimality for even Sort Prop |
| 9 |
with odd_ind2 := Minimality for odd Sort Prop. |
| 10 |
|
| 11 |
Combined Scheme even_odd_ind from even_ind2, odd_ind2. |
| 12 |
|
| 13 |
Check (even_odd_ind :forall (x : nat) (P P0 : nat -> Prop), |
| 14 |
P 0 -> |
| 15 |
(forall n : nat, odd x n -> P0 n -> P (S n)) -> |
| 16 |
(forall n : nat, even x n -> P n -> P0 (S n)) -> |
| 17 |
(forall n : nat, even x n -> P n) /\ (forall n : nat, odd x n -> P0 n)). |