coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Jonathan <jonikelee AT gmail.com>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Eliminate duplicate subgoals?
- Date: Sat, 15 Nov 2014 12:31:28 -0500
On 11/15/2014 04:06 AM, Enrico Tassi wrote:
On Fri, Nov 14, 2014 at 07:14:04PM +0000, Colm Bhandal wrote:
It would be nice if there was a tactic "prune" or something to get rid ofAt least in principle it is very easy, a goal is just an evar, and you
the duplicate subgoal. Anybody got any ideas how to write a tactic like
this or does one already exist maybe?
can surly unify two evars that have the same associated type and
context.
In trunk goals can be named. I did not test that, but I guess you can:
refine ?[theothergoal]. (* or maybe even exact *)
to merge the ongoing goal with another one named "theothergoal".
Best,
Yes - this works in the trunk:
Variable P : Prop.
Axiom okP : P.
Goal P /\ P.
split.
Show Existentials. (*shows ?Goal0 and ?Goal1 as the goal names*)
exact ?Goal1.
apply okP.
Qed.
However, there currently is no cyclicity check, as this:
Goal False.
exact ?Goal.
Qed.
just loops forever at Qed.
- Re: [Coq-Club] Eliminate duplicate subgoals?, (continued)
- Re: [Coq-Club] Eliminate duplicate subgoals?, Jonathan, 11/15/2014
- Re: [Coq-Club] Eliminate duplicate subgoals?, Randy Pollack, 11/15/2014
- Re: [Coq-Club] Eliminate duplicate subgoals?, Jonathan, 11/15/2014
- Re: [Coq-Club] Eliminate duplicate subgoals?, Randy Pollack, 11/15/2014
- Re: [Coq-Club] Eliminate duplicate subgoals?, Enrico Tassi, 11/15/2014
- Re: [Coq-Club] Eliminate duplicate subgoals?, Pierre-Marie Pédrot, 11/15/2014
- Re: [Coq-Club] Eliminate duplicate subgoals?, Colm Bhandal, 11/15/2014
- Re: [Coq-Club] Eliminate duplicate subgoals?, Colm Bhandal, 11/15/2014
- Re: [Coq-Club] Eliminate duplicate subgoals?, Jonathan, 11/15/2014
- Re: [Coq-Club] Eliminate duplicate subgoals?, Colm Bhandal, 11/15/2014
- Re: [Coq-Club] Eliminate duplicate subgoals?, Jonathan, 11/15/2014
- Re: [Coq-Club] Eliminate duplicate subgoals?, Colm Bhandal, 11/15/2014
- Re: [Coq-Club] Eliminate duplicate subgoals?, Daniel Schepler, 11/15/2014
- Re: [Coq-Club] Eliminate duplicate subgoals?, Colm Bhandal, 11/15/2014
- Re: [Coq-Club] Eliminate duplicate subgoals?, Jonathan, 11/15/2014
- Re: [Coq-Club] Eliminate duplicate subgoals?, Pierre-Marie Pédrot, 11/15/2014
- Re: [Coq-Club] Eliminate duplicate subgoals?, Cedric Auger, 11/15/2014
- Re: [Coq-Club] Eliminate duplicate subgoals?, Jonathan, 11/15/2014
Archive powered by MHonArc 2.6.18.