Debian Codegraph @

test-suite/bugs/bug_19284.v

raw
1 Require Export Corelib.Program.Tactics.
2
3 Set Printing Universes.
4
5 Polymorphic Class Countable A := { encode : A }.
6 Axiom NonExpansive : Prop.
7 Axiom gmapURF : forall K {_ : Countable K} , NonExpansive.
8
9 Local Obligation Tactic := idtac.
10
11 Program Definition gmapRF K {_ : Countable K} : NonExpansive := _.
12
13 Solve Obligations with apply gmapURF.
14 (* Next Obligation. apply gmapURF. Qed. *)
15 (*
16 Error: Illegal application:
17 The term "gmapRF_obligation_1" of type
18 "forall K : Type@{gmapURF.u0}, Countable@{gmapURF.u0} K -> NonExpansive"
19 cannot be applied to the terms
20 "K" : "Type@{gmapRF_obligation_1.u0}"
21 "c" : "Countable@{gmapRF_obligation_1.u0} K"
22 The 1st term has type "Type@{gmapRF_obligation_1.u0}" which should be a subtype of
23 "Type@{gmapURF.u0}".
24 *)