Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Names of bound variables of existing lemma changes

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Names of bound variables of existing lemma changes


Chronological Thread 
  • From: Beta Ziliani <beta AT mpi-sws.org>
  • To: Coq Club <coq-club AT inria.fr>
  • Subject: Re: [Coq-Club] Names of bound variables of existing lemma changes
  • Date: Wed, 4 May 2016 09:58:51 -0300
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=beta AT mpi-sws.org; spf=Pass smtp.mailfrom=beta AT mpi-sws.org; spf=None smtp.helo=postmaster AT hera.mpi-klsb.mpg.de
  • Ironport-phdr: 9a23:r4IB8BXN+ieq+fdkarC+bFBIoQbV8LGtZVwlr6E/grcLSJyIuqrYZhKCt8tkgFKBZ4jH8fUM07OQ6PCxHzRaqsrb+Fk5M7VyFDY9wf0MmAIhBMPXQWbaF9XNKxIAIcJZSVV+9Gu6O0UGUOz3ZlnVv2HgpWVKQka3CwN5K6zPF5LIiIzvjqbpq8yVO18D2GD1SIgxBSv1hD2ZjtMRj4pmJ/R54TryiVwMRd5rw3h1L0mYhRf265T41pdi9yNNp6BprJYYAu3SNp41Rr1ADTkgL3t9pIiy7UGCHkOz4S43VXxeuR5VCUCR5xbjG5z1ryHSt+xn2SDcM9egHp4uXjH3xap3QVfaiSMGPjg4uDXdh9B5pKdDoVe6uAc5xJTbNtLGfMFid7/QKItJDVFKWdxcAmkYWtux

On Wed, May 4, 2016 at 9:45 AM, Ralf Jung <jung AT mpi-sws.org> wrote:
Hi all,

[...]
These circumstances depend on whether [foo] was using variables of an
enclosing section (the [n] above), and on the current context at the
time of *applying* [foo] (the first argument of [bar] is also called
[P]). To me this was obviously a bug; I cannot imagine any situation in
which you'd *want* this behavior. Guillaume however noticed that there's
actually code in Coq doing this "on purpose".


WAT? BTW, I run into this bug, but I didn't know exactly when it happened. Good to know.

 
[...]
And while I am on it -- what is the reason that this syntax can be used
only for implicit arguments? I think it would be just as useful for
explicit arguments; for example to give arguments in a different order,
or when applying a lemma, as in [apply (lemma (arg:=foo))], without
having to specify [arg] as implicit.


+1!

 
Kind regards,
Ralf





Archive powered by MHonArc 2.6.18.

Top of Page