Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Asking for help or hints with simple theorem

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Asking for help or hints with simple theorem


Chronological Thread 
  • From: Ilmārs Cīrulis <ilmars.cirulis AT gmail.com>
  • To: "coq-club AT inria.fr" <coq-club AT inria.fr>
  • Subject: [Coq-Club] Asking for help or hints with simple theorem
  • Date: Thu, 12 Dec 2013 01:21:43 +0200

Fixpoint list_of_nats n len: list nat :=
 match n with O => cons len nil | S m => cons (len - n) (list_of_nats m len) end.
Theorem list_of_nats_nth {k n} len default (p: k <= n): nth k (list_of_nats n len) default = len + k - n.
Admitted.

I can't prove it for long time already. Any hints are very appreciated.



Archive powered by MHonArc 2.6.18.

Top of Page