coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Enrico Tassi <enrico.tassi AT inria.fr>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Ssreflect rewrite term matching in vanilla Coq
- Date: Tue, 22 Dec 2015 19:33:03 +0100
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=enrico.tassi AT inria.fr; spf=None smtp.mailfrom=gares AT fettunta.org; spf=None smtp.helo=postmaster AT fettunta.org
- Ironport-phdr: 9a23:X+JUFB9VeLPvKP9uRHKM819IXTAuvvDOBiVQ1KB90OscTK2v8tzYMVDF4r011RmSDduds6oMotGVmp6jcFRI2YyGvnEGfc4EfD4+ouJSoTYdBtWYA1bwNv/gYn9yNs1DUFh44yPzahANS47AblHf6ke/8SQVUk2mc1EleKKtQsb7tIee6aObw9XreQJGhT6wM/tZDS6dikHvjPQQmpZoMa0ryxHE8TNicuVSwn50dxrIx06vrpT4wJk2+CNJ/vkl6sRoUKPgfq1+Q6YLIi4hNjUY4tfqvh6LcQKU/XpUBmgQiBtDBE7Z5QrhX7/wtDH7v6xzwn/JboXNUbkoVGH6vO9QQxjyhXJfOg==
On Mon, Dec 21, 2015 at 02:54:53PM +0100, Robbert Krebbers wrote:
> Hi Enrico,
>
> On 12/21/2015 02:50 PM, Enrico Tassi wrote:
> >Or, if you are not afraid of trying an experimental branch, you can
> >use /n/ instead of //, where /n/ invokes the user defined ltac ssrdonen
> >tactic (n is a number, 0 is reserved).
> >
> >The branch is called feature/plugin-next on github
> > https://github.com/math-comp/math-comp
> >Unfortunately the only doc at the current stage is `git log` and the only
> >examples are in the ssrtest disrectory. Last, it is for 8.5 only.
> That is a nice feature!
>
> But I have to say, a number is albeit short not very descriptive. Why not
> also allow /ltac/ where "ltac" can be arbitrary ltac code? I tend to write
> things like:
>
> rewrite foo by eauto using foo bar baz
In that case I would suggest something along the lines of what Guillaume
proposes:
rewrite foo; last by eauto using foo bar baz.
(It could be "first by ...", I don't recall now).
The // is a short expression to quickly kill sub goals, and continue the
rewrite line. Writing an ltac in there seems to go in a completely
different direction.
Best,
--
Enrico Tassi
- [Coq-Club] Ssreflect rewrite term matching in vanilla Coq, Robbert Krebbers, 12/21/2015
- Re: [Coq-Club] Ssreflect rewrite term matching in vanilla Coq, Guillaume Melquiond, 12/21/2015
- Re: [Coq-Club] Ssreflect rewrite term matching in vanilla Coq, Enrico Tassi, 12/21/2015
- Re: [Coq-Club] Ssreflect rewrite term matching in vanilla Coq, Robbert Krebbers, 12/21/2015
- Re: [Coq-Club] Ssreflect rewrite term matching in vanilla Coq, Enrico Tassi, 12/22/2015
- Re: [Coq-Club] Ssreflect rewrite term matching in vanilla Coq, Robbert Krebbers, 12/23/2015
- Re: [Coq-Club] Ssreflect rewrite term matching in vanilla Coq, Robbert Krebbers, 12/23/2015
- Re: [Coq-Club] Ssreflect rewrite term matching in vanilla Coq, Enrico Tassi, 12/23/2015
- Re: [Coq-Club] Ssreflect rewrite term matching in vanilla Coq, Enrico Tassi, 12/22/2015
- Re: [Coq-Club] Ssreflect rewrite term matching in vanilla Coq, Robbert Krebbers, 12/21/2015
- Re: [Coq-Club] Ssreflect rewrite term matching in vanilla Coq, Pierre Courtieu, 12/23/2015
- Re: [Coq-Club] Ssreflect rewrite term matching in vanilla Coq, Guillaume Melquiond, 12/23/2015
- Re: [Coq-Club] Ssreflect rewrite term matching in vanilla Coq, Robbert Krebbers, 12/23/2015
- Re: [Coq-Club] Ssreflect rewrite term matching in vanilla Coq, Guillaume Melquiond, 12/23/2015
- Re: [Coq-Club] Ssreflect rewrite term matching in vanilla Coq, Enrico Tassi, 12/21/2015
- Re: [Coq-Club] Ssreflect rewrite term matching in vanilla Coq, Guillaume Melquiond, 12/21/2015
Archive powered by MHonArc 2.6.18.