coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Pierre Courtieu <pierre.courtieu AT gmail.com>
- 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 15:27:04 +0200
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=pierre.courtieu AT gmail.com; spf=Pass smtp.mailfrom=pierre.courtieu AT gmail.com; spf=None smtp.helo=postmaster AT mail-lf0-f45.google.com
- Ironport-phdr: 9a23:TIPfrRAHnjzJH1YZuLuvUyQJP3N1i/DPJgcQr6AfoPdwSP78oMbcNUDSrc9gkEXOFd2CrakU2qyO6eu+BCQp2tWojjMrSNR0TRgLiMEbzUQLIfWuLgnFFsPsdDEwB89YVVVorDmROElRH9viNRWJ+iXhpQAbFhi3DwdpPOO9QteU1JTmkbjosMOOKyxzxxODIppKZC2sqgvQssREyaBDEY0WjiXzn31TZu5NznlpL1/A1zz158O34YIxu38I46Fp34d6XK77Z6U1S6BDRHRjajhtpZ6jiR6WZgyWrlAYT29exhFPGk3O6Azwdpb3qCrz8ORnjnq0J8rzGIg1VC644u9ATwLylCYKKnZt6GDakNZ9yqlcvQi9phFi64HRaYCRcvF5e/WOLpshWWNdU5MJBGR6CYSmYt5KVrJZMA==
2016-05-04 14:45 GMT+02:00 Ralf Jung
<jung AT mpi-sws.org>:
> 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.
It is possible actually:
Lemma foo n (P Q : Prop) : n = O -> Q -> P -> Q.
Proof.
intros H H0 H1.
auto.
Qed.
Print Implicit foo. (* no implicits*)
Lemma trying : False -> False.
Proof.
apply foo with (P:=False) (n:=0) .
Undo.
Fail apply foo with (P:=False). (* fails because n should be given
if Q is given *)
eapply foo with (P:=False). (* OK *)
Qed.
P.
> Kind regards,
> Ralf
- [Coq-Club] Names of bound variables of existing lemma changes, Ralf Jung, 05/04/2016
- Re: [Coq-Club] Names of bound variables of existing lemma changes, Beta Ziliani, 05/04/2016
- Re: [Coq-Club] Names of bound variables of existing lemma changes, Hugo Herbelin, 05/04/2016
- Re: [Coq-Club] Names of bound variables of existing lemma changes, Ralf Jung, 05/06/2016
- Re: [Coq-Club] Names of bound variables of existing lemma changes, Hugo Herbelin, 05/06/2016
- Re: [Coq-Club] Names of bound variables of existing lemma changes, Ralf Jung, 05/06/2016
- Re: [Coq-Club] Names of bound variables of existing lemma changes, Pierre Courtieu, 05/04/2016
- Re: [Coq-Club] Names of bound variables of existing lemma changes, Ralf Jung, 05/04/2016
- Re: [Coq-Club] Names of bound variables of existing lemma changes, Pierre Courtieu, 05/04/2016
- Re: [Coq-Club] Names of bound variables of existing lemma changes, Ralf Jung, 05/04/2016
- <Possible follow-up(s)>
- Re: [Coq-Club] Names of bound variables of existing lemma changes, Beta Ziliani, 05/04/2016
Archive powered by MHonArc 2.6.18.