coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Matthieu Sozeau <mattam AT mattam.org>
- To: Gregory Bush <gbush AT mysck.com>
- Cc: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Hints and type classes
- Date: Fri, 9 Mar 2012 16:45:31 +0100
Le 9 mars 2012 à 16:22, Gregory Bush a écrit :
> 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?
Hi Gregory,
you can use [Hint Resolve (@ex)] for adding the parametric hint.
-- Matthieu
- [Coq-Club] Hints and type classes, Gregory Bush
- Re: [Coq-Club] Hints and type classes, Matthieu Sozeau
Archive powered by MhonArc 2.6.16.