Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Hints and type classes

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Hints and type classes


chronological Thread 
  • From: Gregory Bush <gbush AT mysck.com>
  • To: coq-club AT inria.fr
  • Subject: [Coq-Club] Hints and type classes
  • Date: Fri, 9 Mar 2012 10:22:57 -0500

Let's say I have some type class that contains proofs of some propositions...

Variable ExProp : Prop.

Class ExClass := {
  ex : ExProp
  (* ... *)
}.

I'd like to add "ex" and friends to a hint database, but

Hint Resolve ex.

fails since it doesn't have an instance of ExClass in scope.

I can prove an ex' : forall (C : ExClass), ExProp, then add ex' to a hint database, but it's kind of tedious.

Is there a nicer way to do this?




Archive powered by MhonArc 2.6.16.

Top of Page