Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Problem proving "no number larger than n is in the subset of numbers up to n"

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Problem proving "no number larger than n is in the subset of numbers up to n"


Chronological Thread 
  • From: Amin Timany <amintimany AT gmail.com>
  • To: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] Problem proving "no number larger than n is in the subset of numbers up to n"
  • Date: Mon, 30 Nov 2015 13:05:44 +0100
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=amintimany AT gmail.com; spf=Pass smtp.mailfrom=amintimany AT gmail.com; spf=None smtp.helo=postmaster AT mail-wm0-f48.google.com
  • Ironport-phdr: 9a23:+LxGaBc+bwwZl4rwHfnGXfY6lGMj4u6mDksu8pMizoh2WeGdxc65YR7h7PlgxGXEQZ/co6odzbGG7uawBidbvt6oizMrTt9lb1c9k8IYnggtUoauKHbQC7rUVRE8B9lIT1R//nu2YgB/Ecf6YEDO8DXptWZBUiv2OQc9HOnpAIma153xjLDvvc2MKF4XzBOGIppMbzyO5T3LsccXhYYwYo0Q8TDu5kVyRuJN2GlzLkiSlRuvru25/Zpk7jgC86l5r50IAu3GePEzSqUdBzA7OUg04tfqvF/NV1ih/HwZB0wTkxwAPwnA5RfrFsP4tyr8qut40S+LFcLzRLEwHz+l6vE4G1fTlC4bOmthoynsgctqgfcDrQ==

Hi,

You could also use a more straightforward definition of ss as follows:

Definition ss n : Ensemble nat := fun x => x <= n.

This way, your lemma would easily simplify to:

forall n x, x > n -> ~ x <= n

— Amin

> On 30 Nov 2015, at 12:51, Laurent Thery
> <Laurent.Thery AT inria.fr>
> wrote:
>
>
>
> On 11/30/2015 12:38 PM, Volker Stolz wrote:
>> Require Import Ensembles.
>> Require Import Lt.
>>
>> Fixpoint ss n : Ensemble nat :=
>> match n with
>> | 0 => Singleton _ 0
>> | S m => Add _ (ss m) (S m)
>> end.
>>
>> Lemma succNotInSS: forall n x, x > n -> ~ In _ (ss n) x.
>> Proof.
>> Admitted.
>>
>> E.g., ss 1 := {0,1}, and show that no x>1 in (ss 1). It seems a proof by
>> induction is going nowhere, since I always end up having to prove that
>> an even larger value is also not in there.
>>
>> Could anyone please hint me at what I am missing?
>
> If you rewrite your goal as
>
> forall n x, ~ In _ (ss n) (S (n + x)).
>
> an induction on n makes you use the induction principle for (S x)
>
> --
> Laurent




Archive powered by MHonArc 2.6.18.

Top of Page