Debian Codegraph @

test-suite/bugs/bug_19327.v

raw
1 Set Universe Polymorphism.
2
3 Inductive Box@{s;u|} (A:Type@{s;u}) : Type@{s;u} :=
4 | box : A -> Box A.
5 Arguments box {_} _.
6
7 Definition apply aT rT (f : aT -> rT) u : rT :=
8 match u with | box a => f a end.
9
10 (* In coq 8.19.0 *)
11 (* Incorrect elimination of "u" in the inductive type "Box": *)
12 (* the return type has sort "Type" while it should be at some variable quality. *)
13 (* Elimination of an inductive object of sort Type *)
14 (* is not allowed on a predicate in sort Type *)
15 (* because wrong arity. *)
16
17 (* In coq master eb4169c898e02f08b243b03b8d00c8cf7a353828 *)
18 (* Incorrect elimination of "u" in the inductive type "Box@{α71 | flabule.71}": *)
19 (* the return type has sort "Type@{α72 | flabule.69}" *)
20 (* while it should be in sort quality α71. *)
21 (* Elimination of a sort polymorphic inductive object instantiated to a variable sort quality *)
22 (* is only allowed on a predicate in the same sort quality. *)