coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Matej Kosik <5764c029b688c1c0d24a2e97cd764f AT gmail.com>
- To: "coq-club AT inria.fr" <coq-club AT inria.fr>
- Subject: [Coq-Club] a question about well-formedness of inductive definitions
- Date: Thu, 22 Jan 2015 16:06:02 +0000
Hello,
While reading Section 4.5.3 of the Reference Manual (Well-formed inductive
definitions)
and while going through the standard library, I have try to define this:
(* a superfluous definition of "ge" predicate *)
Inductive ge (n:nat) : nat -> Prop :=
| ge_n : ge n n
| ge_S : forall m:nat, ge n m -> ge (S n) m.
Coq rejects that definition with a message:
Error: Last occurrence of "ge" must have "n" as 1st argument in
"forall m : nat, ge n m -> ge (S n) m".
That is somewhat surprising because the definition (despite being superfluous
in practise) seems plausible to me.
If I may, I would like to ask:
- which side-condition of the W-Ind rule (?) the definition above breaks?
- why that kind of restriction must be enforced?
- [Coq-Club] a question about well-formedness of inductive definitions, Matej Kosik, 01/22/2015
- Re: [Coq-Club] a question about well-formedness of inductive definitions, Jean-Francois Monin, 01/22/2015
- Re: [Coq-Club] a question about well-formedness of inductive definitions, Pierre Courtieu, 01/22/2015
- Re: [Coq-Club] a question about well-formedness of inductive definitions, Maxime Dénès, 01/22/2015
Archive powered by MHonArc 2.6.18.