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] 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
- [Coq-Club] successor/predecessor on tree type, paul . tarau
- Re: [Coq-Club] successor/predecessor on tree type, Matthew Brecknell
- Re: [Coq-Club] successor/predecessor on tree type,
Taral
- Re: [Coq-Club] successor/predecessor on tree type,
Paul Tarau
- Re: [Coq-Club] successor/predecessor on tree type, Taral
- [Coq-Club] rewrite <- tactic, AUGER
- Re: [Coq-Club] successor/predecessor on tree type, Taral
- Re: [Coq-Club] successor/predecessor on tree type,
Paul Tarau
Archive powered by MhonArc 2.6.16.