Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] "Sequence is associative." (?)

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] "Sequence is associative." (?)


Chronological Thread 
  • From: Théo Zimmermann <theo.zimmi AT gmail.com>
  • To: Coq Club <coq-club AT inria.fr>
  • Subject: Re: [Coq-Club] "Sequence is associative." (?)
  • Date: Mon, 28 Jan 2019 17:43:26 +0100
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=theo.zimmi AT gmail.com; spf=Pass smtp.mailfrom=theo.zimmi AT gmail.com; spf=None smtp.helo=postmaster AT mail-ua1-f54.google.com
  • Ironport-phdr: 9a23:z9pInxwh8rAHnvTXCy+O+j09IxM/srCxBDY+r6Qd1O8QIJqq85mqBkHD//Il1AaPAd2Lraocw8Pt8InYEVQa5piAtH1QOLdtbDQizfssogo7HcSeAlf6JvO5JwYzHcBFSUM3tyrjaRsdF8nxfUDdrWOv5jAOBBr/KRB1JuPoEYLOksi7ze+/94HQbglSmDaxfa55IQmrownWqsQYm5ZpJLwryhvOrHtIeuBWyn1tKFmOgRvy5dq+8YB6/ShItP0v68BPUaPhf6QlVrNYFygpM3o05MLwqxbOSxaE62YGXWUXlhpIBBXF7A3/U5zsvCb2qvZx1S+HNsDtU7s6RSqt4LtqSB/wiScIKTg58H3MisdtiK5XuQ+tqwBjz4LRZoyeKfhwcb7Hfd4CSmVBUMReWSxPDI2/coUBEfYOM+lDoonhvlsDtweyCRWwCO7tzDJDm3/43bc90+QkCQzIwgwgGMgJsHvMr9r1NaISUeWrw6nSyDXMdfVW2THg44XPbhAhoe+DXbVqfcvQyEkvEgbFjlSLpIzqOjOazOUNs2yB4+V8UuKvjncqpgdsqTas3schkpfFip4Rx1ze9ih0wJw5KcOmREJle9KpEJRduieHPIVsWMwiWXtnuCMix70Gp5G7eC8KxYwixxHFavyHd5GE4g/5W+qMODt4inJodb2lixa99kigzeL8Vs2q31pQsiVFldzMumgM1xzV9MeHVuNw8lm91TuLzQze6eFJLVoqmabFNZIt2L49m5ULvUTGBCD2mUH2jKGMdkUj/+il8/jnYrX4qZ+bLYN1iwD+MqErmsy+Guk4PQ0OUHKa+eS4zrHs4Ur5QLBSgv0sjqbZqIzaJdgcpqOhHwBV1Z8j5w+jADeizdQXhmIKLElFeRKCl4jmIUvCIPH+DfelglSjii1nx/7cPu6pPpKYBX/a2JzlYLw1v0Vb0U84yc1Vz5NSELAIZvzpDBzfrtvdWyM5sguD8efiDdhn04oYXyrbHq+UN+XAsFqN58ogJuCNYMkevzOreKtt3OLnkXJswQxVRqKux5ZCLSngRq03cXXcWmLlh5I6KUlPuwM/SOLwj1jbCGxcYn+zW+Q34TRpUdv6X7eGfZikhfm65An+BodfPzkUBVWFEHOufIKBCa9VNXCiZ/R5mzlBboCPDo8s0Rb06V3/wrtja/fdo2gW6M6l299y6One0xo18G4sAg==

"all: tac" would be allowed to proceed like this (treat two goals at
once differently from the way it would treat these two subgoals if it
were applied on each one separately). However, most tactics are not
implemented like this. When they are called on multiple goals, they
just "dispatch" on each goal independently, which means that for most
tactics doing:

foo; [> bar .. ]

i.e.:

foo; [> bar | bar | bar ]

with the right number of goals, is the same as doing:

foo; bar

However, because that is not true of all tactics, it cannot in turn be
true of a constructor like ";" which can be used to combine two
tactics to create a new one.

Therefore:

foo; [> bar; foobar .. ]

is not the same as

foo; (bar; foobar)

In the latter case, bar will be applied to all subgoals generated by
foo, and foobar will be applied to all subgoals generated by bar.


Le lun. 28 janv. 2019 à 14:34, Jeremy Dawson
<Jeremy.Dawson AT anu.edu.au>
a écrit :
>
> OK, so I'm understanding that all:tac is a tactic which does a bit of
> tac on each goal, then a bit more of tac on each goal, and so forth, is
> that correct?
>
> If so then how do I find out or work out what the relevant bits of tac
> are? (eg, if tac is actually repeat tac')
>
> For example, based on what you say I might guess that
> all : repeat tac
> goes back and forth between two goals, applying tac to each (as though
> one instance of tac counted a bit of (repeat tac) - but it seems that is
> not what happens (eg as in my emails in the thread
> Re: [Coq-Club] goal selectors; tactic expressions)
>
> Cheers,
>
> Jeremy
>
> On 01/28/2019 11:53 PM, Pierre Courtieu wrote:
> > Le lun. 28 janv. 2019 à 13:48, Jeremy Dawson
> > <Jeremy.Dawson AT anu.edu.au>
> > a écrit :
> >> Thanks, but the words GLOBALLY and INDEPENDENTLY are the words used in
> >> the documentation (which, as I said, I don't understand). What do they
> >> mean?
> > Globally means that a tactic must be seen as a function taking n goals
> > and returning m goals. Hence "all:tac" is ONE tactic that applies to
> > ALL goals at once (even if it does it sequentially).
> >
> > P.
> >



Archive powered by MHonArc 2.6.18.

Top of Page