coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Matthieu Sozeau <matthieu.sozeau AT inria.fr>
- To: "Paul A. Steckler" <steck AT stecksoft.com>, Jason Gross <jasongross9 AT gmail.com>
- Cc: coq-club <coq-club AT inria.fr>
- Subject: Re: [Coq-Club] Getting typeclass resolution to fail quickly?
- Date: Thu, 02 Jun 2016 07:23:11 +0000
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=matthieu.sozeau AT inria.fr; spf=Pass smtp.mailfrom=matthieu.sozeau AT gmail.com; spf=None smtp.helo=postmaster AT mail-wm0-f54.google.com
- Ironport-phdr: 9a23:ti7rgxe0FyD7qzWZ+FCkFwgblGMj4u6mDksu8pMizoh2WeGdxc+4Yx7h7PlgxGXEQZ/co6odzbGG4ua9CSdZu83JmUtBWaIPfidNsd8RkQ0kDZzNImzAB9muURYHGt9fXkRu5XCxPBsdMs//Y1rPvi/6tmZKSV3BPAZ4bt74BpTVx5zukbviqtuOM04R3mH1SIgxBSv1hD2ZjtMRj4pmJ/R54TryiVwMRd5rw3h1L0mYhRf265T41pdi9yNNp6BprJYYAu3SNp41Rr1ADTkgL3t9pIiy7UGCHkOz4S5WamwLllJhRUD+8BzxXZP8qGGy4vFh1SKZFdbqQLs3QjOs8+FgTxq+zG8lPiU+9in4kMtrl+oPohu6oBpw2YnPe9C9O/93f6ebdtQfEzlvRMFUAglIHp+8boYSR9EGL+tRssGpolISsRu/CBTqH+T9xzZVrn7wx6wzleo7R1KVlDc8Fs4D5SyH5O7+M70fBKXslPHF
Hi,
I had never thought of this and this might be a bad idea, but what if we said that applying:
Hint Extern 0 (Proper (le ==> _ ==> impl) le) => fail 1 : typeclass_instances.
Would make the rest of the list of applicable hints be ignored (I.e backtracking on the previous goal). [fail n] could backtrack to a specific depth of the search tree I think, and we could have fail oo too. [fail 0] would retain its meaning, which is to try to apply the next available hint.
Cheers,
-- Matthieu
Le mer. 1 juin 2016 à 21:45, Paul A. Steckler <steck AT stecksoft.com> a écrit :
On Wed, Jun 1, 2016 at 12:43 PM, Jason Gross <jasongross9 AT gmail.com> wrote:
> This means I need to be extremely careful to not put any lemmas in my rewriting databases which can utterly fail to be respected by any other relation (so any facts about [le] or [lt] are right out).
Maybe there are some heuristics to be applied here, since we can't
identify such lemmas in general.
-- Paul
- Re: [Coq-Club] Getting typeclass resolution to fail quickly?, Abhishek Anand, 06/01/2016
- Re: [Coq-Club] Getting typeclass resolution to fail quickly?, Jason Gross, 06/01/2016
- Re: [Coq-Club] Getting typeclass resolution to fail quickly?, Paul A. Steckler, 06/01/2016
- Re: [Coq-Club] Getting typeclass resolution to fail quickly?, Matthieu Sozeau, 06/02/2016
- Re: [Coq-Club] Getting typeclass resolution to fail quickly?, Jason Gross, 06/02/2016
- Re: [Coq-Club] Getting typeclass resolution to fail quickly?, Matthieu Sozeau, 06/02/2016
- Re: [Coq-Club] Getting typeclass resolution to fail quickly?, Paul A. Steckler, 06/01/2016
- Re: [Coq-Club] Getting typeclass resolution to fail quickly?, Jason Gross, 06/01/2016
Archive powered by MHonArc 2.6.18.