Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Status of "Hint Cut"

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Status of "Hint Cut"


Chronological Thread 
  • From: Robbert Krebbers <mailinglists AT robbertkrebbers.nl>
  • To: Coq Club <coq-club AT inria.fr>
  • Cc: Ralf Jung <jung AT mpi-sws.org>
  • Subject: [Coq-Club] Status of "Hint Cut"
  • Date: Fri, 30 Oct 2015 11:51:45 +0100
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=mailinglists AT robbertkrebbers.nl; spf=None smtp.mailfrom=mailinglists AT robbertkrebbers.nl; spf=None smtp.helo=postmaster AT smtp1.science.ru.nl
  • Ironport-phdr: 9a23:DMbDxxw+VlvK88nXCy+O+j09IxM/srCxBDY+r6Qd0eISIJqq85mqBkHD//Il1AaPBtWGragdwLOJ+4nbGkU+or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6anHS+4HYoFwnlMkItf6KuStOU1Z38jr/60qaQSjsLrQL1Wal1IhSyoFeZnegtqqwmFJwMzADUqGBDYeVcyDAgD1uSmxHh+pX4p8Y7oGx48sgs/M9YUKj8Y79wDfkBVGxnYCgJ45jAsgCLZg+S7DNIWWIP1xFMHgLt7RfgX563vDGs5cRn3yzPB8r8R70uRXyB9aphQhLyk29TMjc49GDRhchxl75AiAimrRZy2ZLXeoyfPvdkZeXbeYVJFiJ6Qs9NWnkZUcuHZIwVAr9EZL4Aog==

Dear Coq-ers,

what is the status of the command:

Hint Cut

that allows one to constraint (e)auto and type class instance search?

It has been introduced by commit 1011266b in November 2011, but has never been documented, nor mentioned in any Changelog.

However, it seems exceptionally useful to constraint type class search. For example, in our formalization of metric spaces we have the following hierarchy of functions:

Setoid functions (Propers)
Non-expansive functions
Contractive functions

All of these are closed under composition. In the case of trying to derive a Proper for a function that is in fact not (which happens quite often because type class search takes a wrong branch), this gives an exponential blow-up. With the use of Hint Cut, this blow-up can be avoided, and the search becomes linear in the size of the expression.

I would like to try to make use of this feature, but since it has not been documented or mentioned anywhere, I am not sure what will happen with it in the future.

I have attached a small example that demonstrates the use of Hint Cut.

Best,

Robbert

Attachment: 20151021_hint_cut.v
Description: application/extension-v



  • [Coq-Club] Status of "Hint Cut", Robbert Krebbers, 10/30/2015

Archive powered by MHonArc 2.6.18.

Top of Page