coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Jonathan Leivent <jonikelee AT gmail.com>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] multiple typeclass instance question
- Date: Sun, 13 Mar 2016 11:16:41 -0400
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=jonikelee AT gmail.com; spf=Pass smtp.mailfrom=jonikelee AT gmail.com; spf=None smtp.helo=postmaster AT mail-qg0-f45.google.com
- Ironport-phdr: 9a23:SOuLtBORGFE5kIspmrAl6mtUPXoX/o7sNwtQ0KIMzox0KP/yrarrMEGX3/hxlliBBdydsKIbzbuK+P69EUU7or+/81k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i760zceF13FOBZvIaytQ8iJ35vxhrz5pcCbSj4LrQT+SIs6FA+xowTVu5teqqpZAYF19CH0pGBVcf9d32JiKAHbtR/94sCt4MwrqHwI6Lpyv/JHBK79ZuEzSaFSJDUgKWE8osPx5jfZSg7axHwaW3kWmxwAJwXE8hz8Qt+lsCz8t+lw3CSXFcLzRLEwHz+l6vE4G1fTlC4bOmthoynsgctqgfcDrQ==
Without understanding what the pretyper does, is the implication of not having any backtracking in the pretyper that Coq can't change the decision about the type of any term once it is typed? That would indeed explain why backtracking back into typeclass instance search couldn't be made to work.
Does this restriction on backtracking in the pretyper also imply that experimental typed alternatives to LTac, such as MTac, would all be incapable of backtracking after a successful solution of a type? If so, would the potential solution of the issue for tactic-in-term also improve the situation for MTac-like alternatives?
-- Jonathan
On 03/13/2016 05:29 AM, Arnaud Spiwack wrote:
Possibly. In that case we'd have a much cleaner story for tactics in terms.
But
this would probably be the only source of backtracking in the pretyper, if I'm
not mistaken.
On 12 March 2016 at 13:51, Pierre-Marie Pédrot
<pierre-marie.pedrot AT inria.fr
<mailto:pierre-marie.pedrot AT inria.fr>>
wrote:
On 11/03/2016 21:58, Arnaud Spiwack wrote:
> Of course, for Coq, this is probably unworkable. Pretyping is the most
> sensitive part of Coq and making everything subtly different in
> unpredictable ways is probably not worth the huge effort this would
> represent.
I'm not sure that the pretyper by itself would be difficult to port to
the monad, at least for the pretyping.ml <http://pretyping.ml> file. This
would make it
compatible with the tactic-in-term bactracking. What would be more
difficult would be the unification stuff.
PMP
- Re: [Coq-Club] multiple typeclass instance question, (continued)
- Re: [Coq-Club] multiple typeclass instance question, Jason Gross, 03/10/2016
- Re: [Coq-Club] multiple typeclass instance question, Jonathan Leivent, 03/10/2016
- Re: [Coq-Club] multiple typeclass instance question, Jason Gross, 03/10/2016
- Re: [Coq-Club] multiple typeclass instance question, Jonathan Leivent, 03/10/2016
- Re: [Coq-Club] multiple typeclass instance question, Jonathan Leivent, 03/10/2016
- Re: [Coq-Club] multiple typeclass instance question, Jason Gross, 03/10/2016
- Re: [Coq-Club] multiple typeclass instance question, Jason Gross, 03/10/2016
- Re: [Coq-Club] multiple typeclass instance question, Jonathan Leivent, 03/11/2016
- Re: [Coq-Club] multiple typeclass instance question, Pierre-Marie Pédrot, 03/12/2016
- Re: [Coq-Club] multiple typeclass instance question, Arnaud Spiwack, 03/13/2016
- Re: [Coq-Club] multiple typeclass instance question, Jonathan Leivent, 03/13/2016
- Re: [Coq-Club] multiple typeclass instance question, Arnaud Spiwack, 03/15/2016
- Re: [Coq-Club] multiple typeclass instance question, Matthieu Sozeau, 03/15/2016
- Re: [Coq-Club] multiple typeclass instance question, Jonathan Leivent, 03/15/2016
- Re: [Coq-Club] multiple typeclass instance question, Matthieu Sozeau, 03/15/2016
- Re: [Coq-Club] multiple typeclass instance question, Arnaud Spiwack, 03/16/2016
- Re: [Coq-Club] multiple typeclass instance question, Matthieu Sozeau, 03/16/2016
- Re: [Coq-Club] multiple typeclass instance question, Arnaud Spiwack, 03/13/2016
- Re: [Coq-Club] multiple typeclass instance question, Arnaud Spiwack, 03/16/2016
Archive powered by MHonArc 2.6.18.