Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] The Proof of palindrome

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] The Proof of palindrome


Chronological Thread 
  • From: Vincent Siles <vincent.siles AT ens-lyon.org>
  • To: fengsheng <fsheng1990 AT 163.com>
  • Cc: Coq-Club Club <coq-club AT inria.fr>
  • Subject: Re: [Coq-Club] The Proof of palindrome
  • Date: Tue, 23 Jul 2013 10:42:31 +0200

Hi,
you can have a look at Pierre's webpage on this subject:

http://www.labri.fr/perso/casteran/CoqArt/inductive-prop-chap/palindrome.html

Best,
V.

2013/7/23 fengsheng
<fsheng1990 AT 163.com>:
> Hello everyone:
> I met a question of palindrome,the following is my definition of
> palindrome:
> Inductive pal {X : Type} : (list X) -> Prop :=
> | pal_empty : pal []
> | pal_single : forall (x : X), pal [x]
> | pal_app: forall (x : X) (l: list X), pal l -> pal (x::(snoc l x)).
>
> Now, I want to prove:
> THeorem forall l, l = rev l -> pal l.
> But I counld not work it out.
> Counld you give me a proof of the theorem?



Archive powered by MHonArc 2.6.18.

Top of Page