Debian Codegraph @

test-suite/bugs/bug_15420.v

raw
1 (* Check effective names of mutual induction schemes *)
2
3 Inductive
4 even : nat->Prop :=
5 evenO : even O |
6 evenS : forall n, odd n -> even (S n)
7 with
8 odd : nat->Prop :=
9 oddS : forall n, even n -> odd (S n).
10
11 Scheme Even_induction := Minimality for even Sort Prop
12 with Odd_induction := Minimality for odd Sort Prop.
13
14 Theorem even_plus_four : forall n:nat, even n -> even (4+n).
15 Proof.
16 intros n H.
17 elim H using Even_induction with (P0 := fun n => odd (4+n));
18 simpl;repeat constructor;assumption.
19 Qed.