Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Separation of interface and implementation

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Separation of interface and implementation


Chronological Thread 
  • From: Pierre Courtieu <pierre.courtieu AT gmail.com>
  • To: Coq Club <coq-club AT inria.fr>
  • Subject: Re: [Coq-Club] Separation of interface and implementation
  • Date: Thu, 12 Oct 2017 19:42:00 +0200
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=pierre.courtieu AT gmail.com; spf=Pass smtp.mailfrom=pierre.courtieu AT gmail.com; spf=None smtp.helo=postmaster AT mail-oi0-f47.google.com
  • Ironport-phdr: 9a23:NmQdtB1TzGIM97CTsmDT+DRfVm0co7zxezQtwd8ZsesfLfad9pjvdHbS+e9qxAeQG96Eu7QZ06L/iOPJZy8p2d65qncMcZhBBVcuqP49uEgeOvODElDxN/XwbiY3T4xoXV5h+GynYwAOQJ6tL3WbmHC57CYTFxPjLkI1Y72tQs+Bx/iwgsu14tX4ZxhCzG62Zqo3JxGrpy3QsNMXiM1sMPBi5AHOpy5weulM324gDlWOhQr969r4qIZi/j5KtrQq8NNaTaT3Yow3SLVZCHItNGVjt56jjgXKUQbavihUaW4RiBcdRlGdtBw=

> On 12.10.2017 18:45, Pierre Courtieu wrote:
>
> There is another problem with this: Include will duplicate typeclass
> instances. We have had problems with exponential blowup of typeclass
> search due to this.

Good point.

> Though maybe the fact that Module Types and nod just Module is involved
> here makes a difference?

I don't know.

>> Parameter g : nat -> TSS.A.
> [snip]
>> Definition g : nat -> nat := g_helper.
>
> Also, the type of g is duplicated. Ideally, it should be possible to
> seal g without duplicating its type.

If I understand well you would like to do:

Definition g.

and have the goal nat -> nat automatically.

That is not the way things work internally I guess but it deserves a
feature wish imho. It could be implemented as a way to tell a type as
the type of something else.

P.

> Kind regards,
> Ralf



Archive powered by MHonArc 2.6.18.

Top of Page