Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Help on list lemmas

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Help on list lemmas


Chronological Thread 
  • From: Marcus Ramos <marcus.ramos AT univasf.edu.br>
  • To: "coq-club AT inria.fr" <coq-club AT inria.fr>
  • Subject: [Coq-Club] Help on list lemmas
  • Date: Sun, 17 Aug 2014 15:57:33 -0300

Hi,

I guess the following two list lemmas are correct, however I am not able to finish their proofs by myself. In case you have any hints or comments, I would be glad to hear about them.

Require Import List.

Lemma skip_hd:
forall i: nat,
forall A: Type,
forall d: A,
forall l: list A,
hd d (skipn i l) = nth i l d.

Lemma skip_last:
forall i: nat,
forall A: Type,
forall d: A,
forall l: list A,
i < length l -> last (skipn i l) d = last l d.

Thanks in advance,
Marcus.



Archive powered by MHonArc 2.6.18.

Top of Page