coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Gregory Malecha <gmalecha AT eecs.harvard.edu>
- To: Coq Club <coq-club AT inria.fr>
- Subject: [Coq-Club] Debugging Tactics that produce terms
- Date: Wed, 21 Sep 2011 11:35:16 -0400
Hello,
I'm wondering if there is a good way to debug tactics that produce terms rather than manipulate goals. Normally I debug tactics with idtac, but it doesn't seem to work with these types of tactics. For example:
Ltac foo x :=
constr:(1).
Ltac foo_debug x :=
idtac "hello" ;
constr:(1).
Goal True.
match goal with
| [ |- ?G ] =>
let k := foo G in
pose k
end.
If I call foo then there isn't any problem, but if I call foo_debug, then things don't work. If I change "pose" to "idtac" then foo will cause 1 to be printed and foo_debug will cause "<tactic>" to be printed. Is there something that I could replace idtac with that will print something but not have this behavior?
Thank you.
gregory malecha
- [Coq-Club] Debugging Tactics that produce terms, Gregory Malecha
- Re: [Coq-Club] Debugging Tactics that produce terms, Adam Chlipala
Archive powered by MhonArc 2.6.16.