Subject: Ssreflect Users Discussion List
List archive
- From: Enrico Tassi <>
- To:
- Subject: Re: [ssreflect] Scopes and rewrite patterns
- Date: Fri, 12 Feb 2016 15:45:18 +0100
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=None ; spf=None
- Ironport-phdr: 9a23:Pmh7ehDMemIempEu3yliUyQJP3N1i/DPJgcQr6AfoPdwSP7/r8bcNUDSrc9gkEXOFd2CrakU1KyN7eu9CCQp2tWojjMrSNR0TRgLiMEbzUQLIfWuLgnFFsPsdDEwB89YVVVorDmROElRH9viNRWJ+iXhpQAbFhi3DwdpPOO9QteU1JTokbvssMCCKyxzxxODIppKZC2sqgvQssREyaBDEY0WjiXzn31TZu5NznlpL1/A1zz158O34YIxu38I46FppIZ8VvDhZL41Q7hVBygONnsvocztrxjKCwqJ/HoVFGsMwTRSBA2QwRfgX5z2+hfzrfF8kH2XO9f3RrdyRT259KZDSRnyiS5BOSRvozKfsdB5kK8O+EHpnBd42YOBOIw=
On Fri, Feb 12, 2016 at 02:39:30PM +0100, Ralf Jung wrote:
> Hi all,
>
> We are formalizing a shallow embedding of a logic in Coq, and we are
> using scopes such that we can use the same notation for logic-level and
> Coq-level assertions. However, unfortunately, this does not work well
> with the ssreflect rewrite patterns: If, for example, "_ ★ _" is
> registered as notation in a scope delimited by M, I have to write
>
> rewrite [(a ★ _)%M]lemma.
>
> These additional parenthesis get very tedious. Is there any alternative
> available? Or, if not, is there any chance that a syntax like
>
> rewrite [a ★ _]lemma%M.
>
> could be supported?
Hello, it seems reasonable to me.
A little remark: "lemma" can be an arbitrary expression, a term in fact.
It could even be (lemma (c ★ d)). Would %M also apply to that ★ ? It
looks like the reasonable thing to do.
On a side note, did you consider other ways to overload ★ ?
I imagine one could guess which ★ you mean by looking at the type of a
for example. Am I wrong?
Best,
--
Enrico Tassi
- [ssreflect] Scopes and rewrite patterns, Ralf Jung, 02/12/2016
- Re: [ssreflect] Scopes and rewrite patterns, Enrico Tassi, 02/12/2016
- Re: [ssreflect] Scopes and rewrite patterns, Ralf Jung, 02/12/2016
- Re: [ssreflect] Scopes and rewrite patterns, Enrico Tassi, 02/12/2016
Archive powered by MHonArc 2.6.18.