Debian Codegraph @

test-suite/bugs/bug_13495.v

raw
1 Universe u.
2 (* Constraint Set < u. *)
3 Polymorphic Cumulative Record pack@{u} := Pack { pack_type : Type@{u} }.
4 (* u is covariant *)
5
6 Polymorphic Definition pack_id@{u} (p : pack@{u}) : pack@{u} :=
7 match p with
8 | Pack T => Pack T
9 end.
10 Definition packid_nat (p : pack@{Set}) := pack_id@{u} p.
11 (* No constraints: Set <= u *)
12
13 Definition sr_dont_break := Eval compute in packid_nat.
14 (* Incorrect elimination of "p" in the inductive type "pack":
15 ill-formed elimination predicate.
16
17 This is because it tries to enforce Set = u
18 *)