Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] successor/predecessor on tree type

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] successor/predecessor on tree type


chronological Thread 
  • From: Taral <taralx AT gmail.com>
  • To: Paul Tarau <paul.tarau AT gmail.com>
  • Cc: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] successor/predecessor on tree type
  • Date: Mon, 12 Apr 2010 21:10:07 -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; b=cL6GPdxGSWatRA1WPzcve0a1YPr35EDOM1JzYyYZXD+Qvw6V9PLFUlEq1jXjizXqI2 W1TmsSUPoNcr+GgGtlwuJ18zWnr5QGAcfvTntm96NLlHWbYkJCq+fNLvoq8SPwWvbvls /KKCQckY/qpmpF8E7xEjDbbvDL2QPNJY/VU7k=

On Mon, Apr 12, 2010 at 8:52 PM, Paul Tarau 
<paul.tarau AT gmail.com>
 wrote:
> Interpret (bijectively, with function i : T -> nat)
>
> i E = 0
> i (A x y) = 2^(i x)*(2*(i y)+1)
>
> Then i (s x) = (i x) + 1, a formula in Peano arithmetic,
> would show that s works like the successor function on nat,
> which obviously terminates.
>
> Still, my hope was that given this bijection, a direct
> inductive proof that "the mess" implements the equivalent
> of the successor function could be found using Coq.

Sure can. Define that function and then use the {measure f x}
termination annotation to Program Fixpoint.

-- 
Taral 
<taralx AT gmail.com>
"Please let me know if there's any further trouble I can give you."
    -- Unknown



Archive powered by MhonArc 2.6.16.

Top of Page