coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- 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: Fri, 25 Jan 2019 13:18:33 +0000
- Accept-language: en-US
- Authentication-results: mail2-smtp-roc.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-SY3-obe.outbound.protection.outlook.com
- Ironport-phdr: 9a23:gfvx6hIqwz413M+BM9mcpTZWNBhigK39O0sv0rFitYgeLfjxwZ3uMQTl6Ol3ixeRBMOHs6IC07KempujcFRI2YyGvnEGfc4EfD4+ouJSoTYdBtWYA1bwNv/gYn9yNs1DUFh44yPzahANS47xaFLIv3K98yMZFAnhOgppPOT1HZPZg9iq2+yo9JDffwZFiCChbb9uMR67sRjfus4KjIV4N60/0AHJonxGe+RXwWNnO1eelAvi68mz4ZBu7T1et+ou+MBcX6r6eb84TaFDAzQ9L281/szrugLdQgaJ+3ART38ZkhtMAwjC8RH6QpL8uTb0u+ZhxCWXO9D9QLYpUjqg8qhrUgflhicZOTAk7GHZhM9+jKxZrxKguxNxzIHbbZqJNPVlZK7RYc8WSXZDU8tXSidPApm8b4wKD+cZOehXsZP9qEULrRq+GAKiCvngyzFThn/x260xzuMsHwXY0ww6Ad0OtXTVoM/7OqgIX+G1167IzTPYYvxM3zf99ZLEfQ48rvGRR75/a9fRxFApGgjYjVuQsZToMjyJ2ugXrmSX8+htWfiyh2MpqQx9uCWjytojh4XRiY8YzkrI+Th9zYs1P9G0VVB3bcK+HJdNuSyXNJN6Qs08TGxrpCo3z7gLtJq4cScRx5kqwgPTZvKZfIeV5x/jWvieLDRkiH9gZr6wnBiy/Eemx+bhTMe7ykxKoTBAktTUtnACyRjT6s+fR/Zh8EivxCqD2x3K5u9ZI085m7PXK5k6zbEujJYTtlnDHjPtl0Xxka+WcFgr9vKw6+T9ZbXmuoGTOJNoigH/NaQunNazAeMlMggSW2ib/uO81L758ULlR7VKi+U6kqjfsJ/EOcQWvqG0DxNP3oo+9xqyDS2q3MkWkHQFNl5JZQ+LgofxN1HLOv/4DPO/g1q2kDdswvDLJrnvDYvXLnfdlbfgfaxx5UBGxws91tBf4JRUB6obL/L1R0/9rsLXAQIkMwCu2ennFc1x1pkCVmKXHq+ZLKTSvEeU6eIoOumAfZMauDLgK/c+/PPuln84mVoFfaazx5cXaXa4Hu5nI0qDe3bsjM0BQi82uV90R+vzzVaGTDR7ZnCoXqt66CtxQNatCp6GTYSwipSA2j26F9tYfDYVJEqLFCLKep+JXuZERCuNOchn2mgmWKKsTp5n+Rixrwj847NhM6zZ9jBevI+1h4s93PHaiRxnrW88NM+ayWzYFzglzFNNfCc/2eVEmWI4z16C1aZihPkBT45a4e4PXwsnc5fBnbUjV4LCHznZd9LMc26IB828CGhrHNs33pkDb1s7Esjw1kmejRrvOKcckvmwPLJx8q/Y2CSude9A8C6fkZIQ1BwhSMYJMnC6jKli8QSVH5TOj0iSi6etc+IbwTLJ82CAi2GJuRMBXQ==
Hi Gaëtan,
all: repeat solve_eqs
doesn't succeed, I don't know exactly what all : repeat solve_eqs does
(previous emails addressed this question and the answer I was given)
though in this case it's consistent with applying
1: repeat solve_eqs (which leaves one subgoal, so subgoal 2: is the
original subgoal 2)
then applying 2 : repeat solve_eqs.
or maybe just
1: solve_eqs. then 2: solve_eqs. (ie without "repeat", I can't tell)
It doesn't go back to try 1 : solve_eqs again.
eg see the following, where the
second application of the tactic
all : repeat solve_eqs
makes progress beyond the results of the first application of it.
2 focused subgoals
(shelved: 5)
V : Set
Φ2, Ψ1, Ψ2, Γ1 : list (PropF V)
Q : PropF V
sel1, l, l1 : list (PropF V)
============================
((Γ1 ++ Q :: sel1) ++ l ++ Φ2, Ψ1 ++ l1 ++ Ψ2) =
(?Γ1 ++ ?Q :: ?Γ2 ++ ?Γ3, ?Δ)
subgoal 2 is:
G ++ (?Γ1 ++ ?Γ2 ++ ?Q :: ?Γ3, ?Δ, d0) :: H6 =
G ++ ((Γ1 ++ sel1) ++ l ++ Q :: Φ2, Ψ1 ++ l1 ++ Ψ2, d0) :: H6
gen_moveL < all : repeat solve_eqs.
1 subgoal
V : Set
Φ2, sel1, l : list (PropF V)
============================
sel1 ++ l ++ Φ2 = (sel1 ++ l) ++ Φ2
gen_moveL < all : repeat solve_eqs.
This subproof is complete, but there are some unfocused goals.
Try unfocusing with "}".
Cheers,
Jeremy
On 01/25/2019 08:53 PM, Gaëtan Gilbert wrote:
> Note that repeat runs the inner tactic focused on each goal separately
> so "repeat (all: solve_eqs)" would (if the syntax allowed it) be the
> same as "repeat (only 1: solve_eqs)" which is also the same as "repeat
> solve_eqs", and "repeat (only 2: solve_eqs)" is the same as "repeat
> fail" ie idtac.
>
> I feel like "all: repeat solve_eqs" should work given what you describe,
> can you explain how it fails?
>
> Gaëtan Gilbert
>
> On 25/01/2019 06:54, Jeremy Dawson wrote:
>>
>> Hi Cyprian,
>>
>> What I wanted is what I would express as
>> repeat (all : solve_eqs)
>> but it seems as though that form is forbidden.
>>
>> The various things I tried as indicated in my earlier email were simply
>> looking for alternatives that work.
>>
>> Detailed background to what I want: solve_eqs doesn't seem to enlarge
>> the number of goals in the cases where I want to use it, and sometimes
>> solves a goal, sometimes only after solve_eqs has instantiated an evar
>> in another goal, sometimes only after being repeatedly called on the
>> same goal (where each time it simplifies the goal)
>>
>> Cheers,
>>
>> Jeremy
>>
>>
>> On 01/25/2019 10:00 AM, Cyprien Mangin wrote:
>>> What you probably meant is something like "all : repeat solve_eqs"
- [Coq-Club] goal selectors; tactic expressions, Jeremy Dawson, 01/24/2019
- Re: [Coq-Club] goal selectors; tactic expressions, Laurent Thery, 01/24/2019
- Re: [Coq-Club] goal selectors; tactic expressions, David Holland, 01/24/2019
- Re: [Coq-Club] goal selectors; tactic expressions, Jeremy Dawson, 01/24/2019
- Re: [Coq-Club] goal selectors; tactic expressions, Cyprien Mangin, 01/25/2019
- Re: [Coq-Club] goal selectors; tactic expressions, Jeremy Dawson, 01/25/2019
- Re: [Coq-Club] goal selectors; tactic expressions, Gaëtan Gilbert, 01/25/2019
- Re: [Coq-Club] goal selectors; tactic expressions, Jeremy Dawson, 01/25/2019
- Re: [Coq-Club] goal selectors; tactic expressions, Jason -Zhong Sheng- Hu, 01/25/2019
- Re: [Coq-Club] goal selectors; tactic expressions, Jeremy Dawson, 01/25/2019
- Re: [Coq-Club] goal selectors; tactic expressions, Jason -Zhong Sheng- Hu, 01/25/2019
- Re: [Coq-Club] goal selectors; tactic expressions, Gaëtan Gilbert, 01/25/2019
- Re: [Coq-Club] goal selectors; tactic expressions, Théo Zimmermann, 01/25/2019
- Re: [Coq-Club] goal selectors; tactic expressions, Pierre Courtieu, 01/28/2019
- Re: [Coq-Club] goal selectors; tactic expressions, Jeremy Dawson, 01/25/2019
- Re: [Coq-Club] goal selectors; tactic expressions, Jeremy Dawson, 01/25/2019
- Re: [Coq-Club] goal selectors; tactic expressions, Gaëtan Gilbert, 01/25/2019
- Re: [Coq-Club] goal selectors; tactic expressions, Jeremy Dawson, 01/25/2019
- Re: [Coq-Club] goal selectors; tactic expressions, Cyprien Mangin, 01/25/2019
- Re: [Coq-Club] goal selectors; tactic expressions, Gaëtan Gilbert, 01/25/2019
- Re: [Coq-Club] goal selectors; tactic expressions, Jeremy Dawson, 01/25/2019
- Re: [Coq-Club] goal selectors; tactic expressions, Laurent Thery, 01/24/2019
Archive powered by MHonArc 2.6.18.