Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] goal selectors; tactic expressions

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] goal selectors; tactic expressions


Chronological Thread 
  • From: Jeremy Dawson <Jeremy.Dawson AT anu.edu.au>
  • To: "coq-club AT inria.fr" <coq-club AT inria.fr>
  • Subject: Re: [Coq-Club] goal selectors; tactic expressions
  • Date: Thu, 24 Jan 2019 22:16:08 +0000
  • Accept-language: en-US
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=Jeremy.Dawson AT anu.edu.au; spf=Pass smtp.mailfrom=Jeremy.Dawson AT anu.edu.au; spf=Pass smtp.helo=postmaster AT AUS01-ME1-obe.outbound.protection.outlook.com
  • Ironport-phdr: 9a23:bopsaRzWqn4dxHDXCy+O+j09IxM/srCxBDY+r6Qd2uoSIJqq85mqBkHD//Il1AaPAd2Lraocw8Pt8InYEVQa5piAtH1QOLdtbDQizfssogo7HcSeAlf6JvO5JwYzHcBFSUM3tyrjaRsdF8nxfUDdrWOv5jAOBBr/KRB1JuPoEYLOksi7ze+/94HQbglSmDaxfa55IQmrownWqsQYm5ZpJLwryhvOrHtIeuBWyn1tKFmOgRvy5dq+8YB6/ShItP0v68BPUaPhf6QlVrNYFygpM3o05MLwqxbOSxaE62YGXWUXlhpIBBXF7A3/U5zsvCb2qvZx1S+HNsDwULs6Wymt771zRRHolikJKiI5/m/UhMx+jq1boQ6uqRNwzIPPfIGaL+Bzcr/Bcd8GR2dMWNtaWSxbAoO7aosCF+4PMvhCr4bjolsPrQa1Cwe2C+Lh0T9IgXn21rA93uolDw7GxhIvH9cOsXjOotv6LqkTUfuyzKnO1jjMdfVW2Srn5IfWbx8hvOuAUqhtccfIz0QkCg3LjlKVqYP/PjOV0PwAvHaC7+p7T+6glmknpgdsqTas3schkobEip4PxlzZ6Sl0wpw5KcC2RUN6e9KoDYVcuiKCO4Z5Rs4uWXxktSI6x7EcpJK3YjQGxI46yxPRaPGLa4aI7QzgWeqNJDp1gXZodbGkiBu99EWs1+PxWdep31tPoCpKjNrBumwI2hDN8ceHRPRw80G80jiVzQ/T8PtLIUUsmKrbNZEhxrkwm4IPvEvNAyH6hFj6gLaReEsr5+Sk8uPnba74qZOGMI90lx3+Pb8pmsyiB+Q3LxICX3CB+eS7yL3s41H2QKlLjv0xlKnVqpfaJdkHpq69BA9V1YUj5wyjADeh1dQUhXgHLFRbdxKbl4XkNE3CLOrlAfujgVmgiipnyv7HM7H7H5nBMHvOnK/kfbln6k5czAQzzcpY55JRErwPJOz8WlXvu9zdDh41KQK6zPzpCdVm0YMeX3mCDbWfMKPPq1OH+P8gI/SWaIAPpTbxM+Il6OL2jX8lhV8derGk0ocQaHChB/hpP0GZYWf3jdoaCmcLvg8+TPTwh1GYUD5TYWyyX6Mm6T0hBoKmF9SLeof4yreGxWKwGoBcTmFAEFGFV3nyPc3QUPAVLSmWP8VJkzoeVLHnRZV3hj+0swqv6bd9I+/FsgERqonk0pAhxeDJmBQjsxB9EN+a1UmESXwyk28VATYrivMs6Xdhw0uOhPAry8dTEsZesqsQA1UKcKXExuk/MOjcHwfIf9OHUlGjG4/0CDcsCN893pkHfhQkQonwvlX4xyOvRoQtufmTHpVtqPDV2WW3KspgjX/bhvF40gsWB/BXPGjjvZZRsgjeA4mVzBewqp3yLOE58XeI822Oi22ToEtfTQh8F73fWmwSbVfXqtK/4V7eS7ipCvIsNQ4TkMM=


OK, well, no doubt I didn't try for quite the right way of expressing it
but surely being misled on this point wouldn't lead to syntax errors,
would it?

How do I correctly write the tactic I tried to write as
repeat (only 1 : solve_eqs || only 2 : solve_eqs).

And what should
repeat (only 2 : solve_eqs).
do? I'm guessing that it means the second and subsequent invocations of
apply to the second subgoal produced by the previous invocation of
solve_eqs, but that doesn't explain why nothing happens on the first
invocation.

And what should
repeat (only 1-2 : try solve_eqs).
do? Again, shouldn't the first invocation of
only 1-2 : try solve_eqs
apply solve_eqs to each of the two subgoals?

Anyway, what I would like to know how to do is to apply a tactic
repeatedly to all the goals in turn, until they are all solved or there
is no further progress

Thanks,

Jeremy

On 01/24/2019 11:05 PM, Laurent Thery wrote:
>
>
> On 1/24/19 5:35 AM, Jeremy Dawson wrote:
>> ow do I write a tactic to repeatedly apply solve_eqs to goals 1 and 2
>> until either both are solved or there is no further progress?
>
> Maybe you are mislead by the fact that the goal numbering is local but
> not global
>
> For example:
>
> Goal (True /\ True) /\ (False /\ True).
> split; only 2 : (split; only 2 : trivial).
>
> solves the 3th goal
>



Archive powered by MHonArc 2.6.18.

Top of Page