Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Proving a proper sublist is smaller

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Proving a proper sublist is smaller


chronological Thread 
  • From: Luke Palmer <lrpalmer AT gmail.com>
  • To: Nadeem Abdul Hamid <nadeem AT acm.org>
  • Cc: coq-club AT pauillac.inria.fr
  • Subject: Re: [Coq-Club] Proving a proper sublist is smaller
  • Date: Mon, 2 Mar 2009 11:44:01 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=iZtjNrHUcNyaHULuXNB8oji0c9IfnMzdsKMqRgGLY1IPeSM2SqgyUuuf+MCaDRV1tx rDm1BZluxudWlqrgBV/Oasv4aFbfVZCLYofmoT12TKBWFWFWi8lu1j7HzUyCz7gNfcZZ /xn+49HmwI6OF2c+wxYgm25ULiTkm28JFwQ1k=
  • List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>

On Mon, Mar 2, 2009 at 11:35 AM, Nadeem Abdul Hamid <nadeem AT acm.org> wrote:
I'm having trouble figuring out how to prove the statement below. What it's saying is that if every element in list A is also in list B, and then you know that there is an additional element in list B that's not in list A, then the size of list B must 
be larger than A.

You will always have trouble proving false theorems. :-)

A = [1,1,1,2,3] ; B = [1,2,3,4]
 
Luke

Whether I try induction on A or B (with either rearranged to be first), I run into problems at the very end. Can someone help me figure out this puzzle, a different way to prove it than direct induction on A/B, or if there is a reason why it's not true?

Lemma properSubset_smaller
 : forall (A B : list nat) (m:nat),
   (forall n, In n A -> In n B) ->
   In m B ->
   ~In m A ->
   length B > length A.

Thanks very much,

nadeem

--------------------------------------------------------
Bug reports: http://logical.saclay.inria.fr/coq-bugs
Archives: http://pauillac.inria.fr/pipermail/coq-club
        http://pauillac.inria.fr/bin/wilma/coq-club
Info: http://pauillac.inria.fr/mailman/listinfo/coq-club




Archive powered by MhonArc 2.6.16.

Top of Page