coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Gyesik Lee <gslee AT ropas.snu.ac.kr>
- To: coq-club AT inria.fr
- Subject: [Coq-Club] inductive types and well-foundness of the structural orderings
- Date: Thu, 28 Jan 2010 00:57:28 +0900
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=TdgCZ8YtTbcQRzk7n3YOwuqC4u/VM5wlLrYWFRrCZept2itsmuaAYR52kdPDSdz8Tg CmhuA3FDHHUYEUGR4HcFuqvreu3HyZyl9osaTFoUFjUh2Pd2Vc9L3gkQQ+KECkGq/6mG qBuG5ICBB7cY3+2oSIK7qjUkNa5IgWddz4y0M=
Hi,
as in the following case, an induction principle provided by Coq is
sometimes not strong enough:
(A modified version of the example in Section 8.4.1.1 of CoqArt book.)
===================
Open Scope nat_scope.
Inductive Pfact : nat -> nat -> Prop :=
| Pfact0 : Pfact 0 1
| Pfact1 : Pfact 1 1
| Pfact2 : forall n v : nat, Pfact n v -> Pfact (S (S n)) (n * v).
Axiom lt_wf : well_founded lt.
Theorem le_Pfact : forall x : nat, exists y, Pfact x y.
induction x.
(* then the induction hypothesis is not strong enough*)
Abort.
induction x using lt_wf.
(* then the claim can be easily proved. *)
===================
I am wondering if Coq provides a kind of mechanism producing the
induction principle reflecting the well-foundedness of the canonically
definable structural orderings on inductive types.
Or is there a way to prove le_Pfact without using the well-foundedness
of lt relation? I mean a "general" way, not specialized to this
problem.
Gyesik
- [Coq-Club] inductive types and well-foundness of the structural orderings, Gyesik Lee
- Re: [Coq-Club] inductive types and well-foundness of the structural orderings, Jean-Francois Monin
- Re: [Coq-Club] inductive types and well-foundness of the structural orderings, Matthieu Sozeau
Archive powered by MhonArc 2.6.16.