Debian Codegraph @

test-suite/success/Case1.v

raw
1 (* Testing eta-expansion of elimination predicate *)
2
3 Section NATIND2.
4 Variable P : nat -> Type.
5 Variable H0 : P 0.
6 Variable H1 : P 1.
7 Variable H2 : forall n : nat, P n -> P (S (S n)).
8 Fixpoint nat_ind2 (n : nat) : P n :=
9 match n as x return (P x) with
10 | O => H0
11 | S O => H1
12 | S (S n) => H2 n (nat_ind2 n)
13 end.
14 End NATIND2.
15