Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Eliminate duplicate subgoals?

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Eliminate duplicate subgoals?


Chronological Thread 
  • From: Enrico Tassi <enrico.tassi AT inria.fr>
  • To: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] Eliminate duplicate subgoals?
  • Date: Sat, 15 Nov 2014 10:06:37 +0100

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 of
> the duplicate subgoal. Anybody got any ideas how to write a tactic like
> this or does one already exist maybe?

At least in principle it is very easy, a goal is just an evar, and you
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,
--
Enrico Tassi



Archive powered by MHonArc 2.6.18.

Top of Page