Debian Codegraph @

test-suite/bugs/bug_10816.v

raw
1 Scheme foo := Elimination for nat Sort Prop.
2
3 Fail Check eq_refl : foo = nat_ind.
4
5 Check foo : forall P : nat -> Prop, P 0 -> (forall n : nat, P (S n)) -> forall n : nat, P n.
6
7 Scheme bar := Case for nat Sort Prop.
8
9 Check bar : forall P : Prop, P -> (nat -> P) -> nat -> P.
10
11 Inductive even (x: nat): nat -> Prop :=
12 | even_base: even x O
13 | even_succ: forall n, odd x n -> even x (S n)
14
15 with odd (x: nat): nat -> Prop :=
16 | odd_succ: forall n, even x n -> odd x (S n).
17
18 (* mutual nonrecursive schemes is nonsense so rejected *)
19 Fail Scheme even_case := Case for even Sort Prop
20 with odd_case := Case for odd Sort Prop.