Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Induction Principle

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Induction Principle


Chronological Thread 
  • From: karsar <karen.sarkisyan AT gmail.com>
  • To: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] Induction Principle
  • Date: Tue, 12 Jun 2018 21:08:18 +0800
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=karen.sarkisyan AT gmail.com; spf=Pass smtp.mailfrom=karen.sarkisyan AT gmail.com; spf=None smtp.helo=postmaster AT mail-ot0-f172.google.com
  • Ironport-phdr: 9a23:aS8IcR2piS8ZekDasmDT+DRfVm0co7zxezQtwd8Zse0SLvad9pjvdHbS+e9qxAeQG9mDtrQc06L/iOPJYSQ4+5GPsXQPItRndiQuroEopTEmG9OPEkbhLfTnPGQQFcVGU0J5rTngaRAGUMnxaEfPrXKs8DUcBgvwNRZvJuTyB4Xek9m72/q99pHPYwhEniaxba9vJxiqsAvdsdUbj5F/Iagr0BvJpXVIe+VSxWx2IF+Yggjx6MSt8pN96ipco/0u+dJOXqX8ZKQ4UKdXDC86PGAv5c3krgfMQA2S7XYBSGoWkx5IAw/Y7BHmW5r6ryX3uvZh1CScIMb7S60/Vza/4KdxUBLnhykHODw5/m/ZicJ+kbxVrw66qhNl34LZepuYOOZicq7fe94RWGpPXtxWVyxEGo68bJEAD/AaPelCtYn2ulwDrRikCgm2GuzvzCVEhmTs0q0g0OQhEBrG3Qw6ENIIq3nUo9D1O70TUeCx1qXH0TLDb/ZP1Dr79YPGfBchofSWUrJxd8rc0VUgFwPBjlWRsYzqJTeV2f4Xv2id8eVgSeSigHMkpQFpujWixMghhpPUio4Lyl3I7yZ0zJgvKdGlSkN3f9ipG4ZKuS6ALYt5WMYiTnlouCkkzr0Gvoa2fC0Qx5Qmwx7TcvuHc5SU7h76WuadPDV1iGx/dLKwgBay9kegyuniWcWuzFlKqS9FnsHNtnALyRPT9tCKR/ly80u7xDqDyQDe5vtHLEwqj6bXNpwszqAompoWq0vDHyv2mEvsjK+Rc0Up4uuo5P79Yrr4oJ+QLZR0hRvkMqQtm8y/GuQ5PRIIX2WA9uS80afs/Uz9QLlQkvI2lazZvIjAJcsHvq65HxNV0oE75hmjCDemyc0UkmUDLFJYYx2KlJPpOlHLIPDgF/izmVWskDFxx/DHJLLtGJvNLmKQ2IvmKL168gtXzBc55dFZ/ZNdTL8bc9zpXUqkt9XCFRYje1i3yvzqDpNm35kdWHmeC6mxP6bbsFvO7eUqdbrfLLQJsSrwfqB2r8XlimU0zAdELPuZmKAPYXX9JcxIZkCQYH7imNAESD5YsQ83Teisg1qHA2cKOySCGpkk7zR+M7qISJ/ZT9n00rOE1Sa/WJZRYzIeUw3eITLTb4yBHsw0RmeSL8tmyGJWULGgT8omyUnrulalkfxoKe3b/iBevpXmhoB4

You may find useful information in http://adam.chlipala.net/cpdt/cpdt.pdf where author talks about induction principles
associated with the induction types, illustrates how to construct induction principle manually (you may get an understanding
what in essence automatic generation performs). He also brings an example where automatically generated induction
principle is not good enough and manually created one solves the task. And a plenty of other material.  

Best,
Karen

On Tue, Jun 12, 2018 at 8:52 PM Carmine Abate <carmine.abate AT inria.fr> wrote:
Formally my question can be formulated as

" given an inductive type \alpha, (like the one I wrote previously)
  what is its induction principle \alpha_ind?
  and what is a term with type \alpha_ind? "

Coq Art is useful as it shows many examples
(and maybe I can try to write the rule by myself),
but is there some reference showing a general rule?

Thanks,

Carmine


----- Original Message -----
> From: "Pierre Courtieu" <pierre.courtieu AT gmail.com>
> To: "coq-club" <coq-club AT inria.fr>
> Sent: Tuesday, 12 June, 2018 14:19:42
> Subject: Re: [Coq-Club] Induction Principle

> Hi,
> I don't know what you mean by "write the term". Do you mean "prove"?
> If yes then you can look at the definition of, say, nat_ind by doing:
> "Print nat_ind."
> You get something like this.
>
> fix F (n : nat) : P n :=
>  match n as n0 return (P n0) with
>  | 0 => f
>  | S n0 => f0 n0 (F n0)
>  end.
>
> Notice the form "fix F n .. := match n with ....end"
> This Fix + match is the core structure of the proofs of induction
> principles: it is the nominal application of the elimination mechanism
> at the heart of CIC.
>
> Hope this helps.
> P.



Archive powered by MHonArc 2.6.18.

Top of Page