Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Is it possible to compare hypotheses over subgoals

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Is it possible to compare hypotheses over subgoals


chronological Thread 
  • From: "Andrew McCreight" <continuation AT gmail.com>
  • To: "Sean Wilson" <sean.wilson AT ed.ac.uk>
  • Cc: marko AT ffri.hr, coq-club AT pauillac.inria.fr
  • Subject: Re: [Coq-Club] Is it possible to compare hypotheses over subgoals
  • Date: Fri, 4 Apr 2008 07:44:58 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=aXOfUbFwujJrEZ4bPaZN6KfkP5aom/GEAwqW0z1FW2mLKywiYj+HTZM5k0P68w0ktOp5hDQI0QqJeUxu3JCxwJTphbrCNmokjJfy0E+pu9uEWmlKv/eB8betLdhD43qrs7L1r2uBEBMhiFGz1u8YDMUW5ImD/HcXuJy7phdu3dQ=
  • List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>

Yeah, I really don't understand why you would want to do something like that.  Why does the solution of one subgoal depend on the solution to another subgoal?  Subgoals are independent.

2008/4/4 Sean Wilson <sean.wilson AT ed.ac.uk>:
On Friday 04 April 2008 08:30:22 marko AT ffri.hr wrote:
> Greetings,
>
> I send this problem on this mailing list already but question was little
> different:
>
> How to compare hypotheses over subgoals?
>
> But now I am asking: "Is it possible to compare hypotheses over subgoals?"
> So is it possible in environment:
>
> Subgoal 1:
>
> H : x=value_1
>
> Subgoal 2:
>
> H : x=value_2
>
> ...
>
> Subgoal n:
>
> H : x=value_n
>
> find out are all x's have the same or different values and then to apply
> different tactics according of this knowledge?
>
> I spend five (5) days to find solution but every idea failed (pattern
> matching, rewriting, abstracting lemma from one subgoal and applying to
> other subgoals, etc...)
>
> Yves Bertot already answers me that he doesn t believe I can and I'm
> gratefully for the answer.
>
> But, I need to know is it impossible for sure? Are all tactics forbid it?
> Or is it maybe possible but nobody did something like that?

If you need more power than Ltac will give you, you can always write a tactic
in OCaml that will do what you want. However, I would advise you to consider
the reason you need such a tactic (i.e. what is the actual high-level problem
you're trying to solve?) and ask you to consider alternative solutions that
do not require tactic use with the behaviour you specify.

Regards,

Sean




Archive powered by MhonArc 2.6.16.

Top of Page