coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Taral <taralx AT gmail.com>
- To: Paul Tarau <paul.tarau AT gmail.com>
- Cc: coq-club AT inria.fr
- Subject: Re: [Coq-Club] connecting the dots between Fixpoint definitions
- Date: Sun, 11 Jul 2010 12:43:09 -0700
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=qABYMwOPUVSg80r3xxkV8uYAObuOsVzwbAqlT5tRcjkKEOldCMVM8Z5bE1k/tXusfR 6cButKPmxPAkTFwzW1/KUtgOXFFGPh+TDskbmSAISVxK6ufyFAF4MI2E7KWE/omZQact bkLIHA6l+zxPyhqsx6VYyWLaBSjtRrV7hcF9I=
On Sun, Jul 11, 2010 at 12:28 PM, Paul Tarau
<paul.tarau AT gmail.com>
wrote:
> After graciously saying that
> "half is recursively defined (decreasing on 1st argument)"
This means that the x in "S (half x)" is smaller than the n you passed in.
> "Recursive call to buggy has principal argument equal to
> "half n0" instead of n0"
This means that "half n0" (the principal argument in the recursive
call) cannot be inferred to be structurally smaller than n (the
principal argument of the main call).
This isn't about n > n0, it's about n = S (S (S ... (S n0))) for some
non-zero number of S's. And the only inference coq will do is
inspection of match clauses.
I'm sure someone here will explain the nature of the structural
fixpoint better than I could...
--
Taral
<taralx AT gmail.com>
"Please let me know if there's any further trouble I can give you."
-- Unknown
- [Coq-Club] connecting the dots between Fixpoint definitions, Paul Tarau
- Re: [Coq-Club] connecting the dots between Fixpoint definitions, Taral
- Re: [Coq-Club] connecting the dots between Fixpoint definitions,
Paul Tarau
- RE: [Coq-Club] connecting the dots between Fixpoint definitions,
Georges Gonthier
- Re: [Coq-Club] connecting the dots between Fixpoint definitions,
Paul Tarau
- RE: [Coq-Club] connecting the dots between Fixpoint definitions,
Georges Gonthier
- RE: [Coq-Club] connecting the dots between Fixpoint definitions, Georges Gonthier
- RE: [Coq-Club] connecting the dots between Fixpoint definitions,
Georges Gonthier
- Re: [Coq-Club] connecting the dots between Fixpoint definitions,
Paul Tarau
- RE: [Coq-Club] connecting the dots between Fixpoint definitions,
Georges Gonthier
- Re: [Coq-Club] connecting the dots between Fixpoint definitions,
Paul Tarau
- Re: [Coq-Club] connecting the dots between Fixpoint definitions, julien forest
- Re: [Coq-Club] connecting the dots between Fixpoint definitions, Taral
Archive powered by MhonArc 2.6.16.