Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] 64-bit integers

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] 64-bit integers


Chronological Thread 
  • From: Eddy Westbrook <westbrook AT galois.com>
  • To: Xavier Leroy <Xavier.Leroy AT inria.fr>
  • Cc: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] 64-bit integers
  • Date: Fri, 19 Jan 2018 15:37:15 -0800
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=westbrook AT galois.com; spf=Pass smtp.mailfrom=westbrook AT galois.com; spf=None smtp.helo=postmaster AT mail-pg0-f53.google.com
  • Ironport-phdr: 9a23:iTR5DBGeKLIbwmZyxF4aw51GYnF86YWxBRYc798ds5kLTJ7zpsWwAkXT6L1XgUPTWs2DsrQY07OQ6/iocFdDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXdrXKo8DEdBAj0OxZrKeTpAI7SiNm82/yv95HJbAhEmCexbaluIBmqsA7cqtQYjYx+J6gr1xDHuGFIe+NYxWNpIVKcgRPx7dqu8ZBg7ipdpesv+9ZPXqvmcas4S6dYDCk9PGAu+MLrrxjDQhCR6XYaT24bjwBHAwnB7BH9Q5fxri73vfdz1SWGIcH7S60/VC+85Kl3VhDnlCYHNyY48G7JjMxwkLlbqw+lqxBm3oLYfJ2ZOP94c6jAf90VWHBBU95NWCNOH42yb4kAAeQOM+hboYnzuVwAoACiBQm1AePj1j9IimP00KA8zu8vERvG3AslH98Wv3rbscj6NacPWu+10qbI1inDYOhM2Tf674jIcQ0qrPaCXL1uasrR1VIgFxnCjlWXqozoJDyV2f4Js2ic7upgTvijhHIgqwF0uzWiwNonhIfOhoIQ0F/E9CN5zZ40Jd2+Uk57YMSrHIFetyGAMYZ9X8AsQ3lwtSs4xbAKo4O3cDYKxZg9xBPSZeaLfoiG7x77VeucIS10iG95dL6jnRq/8Uatxvf+W8S71ltBszBLncPWtn8X0hze8siHReV5/kemwTuP0hrc6uBAIUwtjarbJIItzqc+lpcTv0nPBCD2mELxjK+ZckUr5PKk5PjgYrXjvpOcNol0hR/iMqk2mMGyDv40PhUQU2Wb4+ix17Pu8Vf5TbhElvE2l7PWsJHeJcQVvK65BApV354t6hmhFDemzM8XnWMALFJCexKKlIfpNEvKIPD/DPe/mE6gnytsx/DDJrHhGInCLmDfkLf9erZw81JTyA0qzdxG+51UDqwBL+noV0/qtN3YCwc5PBauz+bmDtV9zIIeVniVDq+XKqOB+WOPs9ImPeiBfscxtSz6OrBx1/fwjHIj33sQZ6649ZoRcnGxWPp8dRa3e33p1/oNHXZCgQclUObwj1qBGWpMam2uVbg74TITB4uiCobYAIuqherSj2+AApRKazUeWRi3GnDyetDBAq9UMXPAEopaijUBEIOZZcok3BCquhX9zuM9fOXd/ioZrtTo090nvrSPxyF3ziR9CoGm60/IV3t9xzlaSDYy26Fk50d6zwXbiPUqs7ljDdVWoshxfEI6OJrblbEoDtnzXkfZcY/MRgv9BNqhBj41Q5Q6xNpcO0s=

Sorry for the delayed response, but thanks for the pointer, that looks very
helpful!

-Eddy

> On Jan 13, 2018, at 8:09 AM, Xavier Leroy
> <Xavier.Leroy AT inria.fr>
> wrote:
>
> On 01/12/2018 11:32 PM, Eddy Westbrook wrote:
>
>> Is there already a type of 64-bit integers in the Coq standard library? Or
>> at least 32-bit integers? I see some evidence of these in the
>> documentation of some of the numeric modules, but I don’t really
>> understand them…
>
> Maybe you stumbled on the 31-bit machine integers that are used in one of
> the implementations of (mathematical, arbitrary-precision) integers from
> Coq's standard library. But those 31-bit integers are not really usable on
> their own.
>
> For N-bit integer arithmetic in the style of C or Java, you could use
> CompCert's "Integers" library,
> http://compcert.inria.fr/doc/html/Integers.html
> It defines (as a parameterized module) N-bit integers and their signed and
> unsigned arithmetic and logical operations, plus a whole lot of theorems
> about those operations. Instantiations for N=8, N=32 and N=64 are
> provided, with extra operations and theorems relating 32- and 64-bit
> integers.
>
> - Xavier Leroy




Archive powered by MHonArc 2.6.18.

Top of Page