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: Nadeem Abdul Hamid <nadeem AT acm.org>
  • To: Luke Palmer <lrpalmer AT gmail.com>
  • Cc: coq-club AT pauillac.inria.fr
  • Subject: Re: [Coq-Club] Proving a proper sublist is smaller
  • Date: Mon, 2 Mar 2009 13:47:28 -0500
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:cc:message-id:from:to:in-reply-to:content-type:mime-version :subject:date:references:x-mailer; b=ljP1gjEM8R1vPB897qNyWHuvjg8Hka9GgiGSD5Y4MuyxADZ5GW2rZFGhB5mYUCzek1 z4kH80Iz3NwyD3yVrqUtVBFZLFyv6uLx+9lOndAngP9T4ttnVaK22cnJEE7ptwhg5j4Y UtuomBcAzcclTRi49fg7UjCQSfonZ3vF6lJrk=
  • List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>

Yeah, that's problematic. :) OK, so perhaps I am missing some additional assumptions in the statement of the lemma like (NoDup A), (NoDup B)...


On Mar 2, 2009, at 1:44 PM, Luke Palmer wrote:

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