Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Tactic for and?

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Tactic for and?


chronological Thread 
  • From: "Carlos.SIMPSON" <carlos AT math1.unice.fr>
  • To: coq-club AT pauillac.inria.fr
  • Subject: [Coq-Club] Tactic for and?
  • Date: Fri, 09 May 2003 09:56:35 -0200
  • List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>

Hi.
Does anybody know how to write a tactic which would do the following
thing?

If there is a hypothesis in the context

H:(x1 : T1)(x2 : T2) ... (Xn : Tn)((P x1...xn) /\ (Q x1 ... xn)),

add to the context the two statements

H0 :(x1 : T1)(x2 : T2) ... (Xn : Tn)(P x1...xn)
and
H1 :(x1 : T1)(x2 : T2) ... (Xn : Tn)(Q x1 ... xn)


In general Ti could depend on x1 ... x(i-1). A special case which would
be of interest
is when T1 ... Tk are constant types, and then T(k+1) ... Tn are
propositions depending on x1 ... xk (but
independent of each other).

Also the same question with  /\ replaced by <->   (then you want to add
P-> Q and Q -> P).

Thanks----
Carlos Simpson







Archive powered by MhonArc 2.6.16.

Top of Page