Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] How to compare hypotheses over subgoals

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] How to compare hypotheses over subgoals


chronological Thread 
  • From: Yves Bertot <Yves.Bertot AT sophia.inria.fr>
  • To: marko AT ffri.hr
  • Cc: coq-club AT pauillac.inria.fr
  • Subject: Re: [Coq-Club] How to compare hypotheses over subgoals
  • Date: Sat, 29 Mar 2008 08:49:45 +0100
  • List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>

marko AT ffri.hr
 wrote:
The question is: "How can I compare hypotheses H in different subgoals and
if in each subgoals the hypotheses H are the same then apply some tactic?"

Any idea?

I don't believe you can. The idea behind tactics is rather that you address each goal independently
from the others...

Can you turn your problem around so that all cases appear in the same goal?

As a side note, the example you give is very strange.  Do you believe that
by assuming

H: lista_predikata = predikat a1 b2 a3 c4 :: predikat d1 c2 a3 c4::nil


you are actually asserting that predikat a1 b2 a3 c4 hold? This is not the case!

Nobody prevents you from defining a list of propositions, even if no element in the proposition
hold, as in the following script:

Require Import List.

Definition l := False::nil.

Definition counter_example : l = False::nil := refl_equal l.

In this three line script, we never provide a proof of False.

Yves





Archive powered by MhonArc 2.6.16.

Top of Page