Skip to Content.
Sympa Menu

coq-club - [Coq-Club] FMap* with Set?

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] FMap* with Set?


Chronological Thread 
  • From: Petter Urkedal <paurkedal AT gmail.com>
  • To: coq-club AT inria.fr
  • Subject: [Coq-Club] FMap* with Set?
  • Date: Thu, 4 Oct 2012 09:32:29 +0200

I'd like to create an ordered map over a custom datatype. I defined
an appropriate module Label_ord such that (Label_ord.t : Set). If I
try to apply it,

Module Labelling := FMapAVL.Make(Label_ord).
Definition labelling : Set → Set := Labelling.t.

the last line gives

Error: The term "λ elt : Set, Labelling.t elt" has type "Set →
Type" while it is expected to have type "Set → Set".

I can see from FMapInterface that its t is Type → Type, which I hoped
was universe polymorphic. I guess the functor coerces the argument's
t component to Type?

Does the Coq-8.4 standard library provide a way to create ordered maps in Set?


  • [Coq-Club] FMap* with Set?, Petter Urkedal, 10/04/2012

Archive powered by MHonArc 2.6.18.

Top of Page