File: bug_19284.v

package info (click to toggle)
coq 9.1.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 35,964 kB
  • sloc: ml: 239,908; sh: 4,355; python: 2,985; ansic: 2,644; makefile: 874; lisp: 171; javascript: 63; xml: 24; sed: 2
file content (24 lines) | stat: -rw-r--r-- 754 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Require Export Corelib.Program.Tactics.

Set Printing Universes.

Polymorphic Class Countable A := { encode : A }.
Axiom NonExpansive : Prop.
Axiom gmapURF : forall K {_ : Countable K} , NonExpansive.

Local Obligation Tactic := idtac.

Program Definition gmapRF K {_ : Countable K} : NonExpansive := _.

Solve Obligations with apply gmapURF.
(* Next Obligation. apply gmapURF. Qed. *)
(*
Error: Illegal application:
The term "gmapRF_obligation_1" of type
 "forall K : Type@{gmapURF.u0}, Countable@{gmapURF.u0} K -> NonExpansive"
cannot be applied to the terms
 "K" : "Type@{gmapRF_obligation_1.u0}"
 "c" : "Countable@{gmapRF_obligation_1.u0} K"
The 1st term has type "Type@{gmapRF_obligation_1.u0}" which should be a subtype of
 "Type@{gmapURF.u0}".
*)