coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Arthur Chargu�raud <arthur AT chargueraud.org>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] ltac problem
- Date: Fri, 16 Mar 2012 17:28:18 +0100
Ltac so H := solve [H].Hi, I think it's a kind of scoping problem. I usually use "tactic notation"
Lemma wtf:
false = true -> False.
Proof.
intro. so congruence. (*fails here*)
I do not understand why the above fails. Help please :)
to avoid this issue:
-------
Tactic Notation "so" tactic(H) := solve [H].
Lemma wtf:
false = true -> False.
Proof.
intro. so congruence.
-------
Alternatively, you can you "ltac:()" to locally change the scope:
-------
Ltac so H := solve [H].
Lemma wtf:
false = true -> False.
Proof.
intro. so ltac:(congruence).
-------
Best,
Arthur
- [Coq-Club] ltac problem, Nuno Gaspar
- Re: [Coq-Club] ltac problem,
Adam Chlipala
- Re: [Coq-Club] ltac problem, Nuno Gaspar
- Re: [Coq-Club] ltac problem, Arthur Charguéraud
- Re: [Coq-Club] ltac problem, Hugo Herbelin
- Re: [Coq-Club] ltac problem,
Adam Chlipala
Archive powered by MhonArc 2.6.16.