Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Inversion and induction beginner's problem

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Inversion and induction beginner's problem


chronological Thread 
  • From: Vincent Aravantinos <vincent.aravantinos AT yahoo.fr>
  • To: coq-club AT pauillac.inria.fr
  • Subject: [Coq-Club] Inversion and induction beginner's problem
  • Date: Sat, 17 Nov 2007 03:16:22 +0100
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr; h=Received:X-YMail-OSG:Mime-Version:Content-Transfer-Encoding:Message-Id:Content-Type:To:From:Subject:Date:X-Mailer; b=dTiBs1zbToyOlEuDDoFg2Wkj9doqEPw+yBGphLojFCuPvdGdYkh3erGIYWwVgqP8M2gUyCqmlnFmix4z4CnTjs33/gIBHjm/PoZY9///mtv1lvVyjkH+XLmvKZt1aM5+windVnlPVwvCkU4R1ZGSX5pFY8EmU74giSZenu5ldhc= ;
  • List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>

Hi,

I am a beginner in coq and I can't manage to prove a certain goal;
I'll try to get a minimal example out of my problem.

Say I have an inductive set S:

Inductive S : Set := C1 | C2 | C3 | ...

and an inductive predicate P over S:

Inductive P : S -> Prop :=
|D1 : P C1
|D2 : P C1 -> P C1
|D3 : ... -> P C2 (or P C3 or P C4, ... anything but C1)
|... : ... -> P C2 (idem)

My goal has the form:

... P C1 ...

To prove it, I need (first) an inversion on (P C1) in order to get
rid of cases D3,D4,... I can now focus on cases D1 and D2.

But it appears that I need now an induction on (P C1). The problem
is that the induction tactic will only destruct P, not (P C1).
This leads me to have to prove my goal over D3,D4,... ie. I lose
the benefit of my previous inversion.

It seems I should do both at once: inversion AND induction.

Is that right ? (Is my example understandable ?)
How can I deal with this ?


Thanks in advance,
Vincent Aravantinos





Archive powered by MhonArc 2.6.16.

Top of Page