coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Vladimir Voevodsky <vladimir AT ias.edu>
- To: coq-club AT inria.fr
- Cc: "Prof. Vladimir Voevodsky" <vladimir AT ias.edu>
- Subject: Re: [Coq-Club] Speeding up inversion on large inductives
- Date: Wed, 9 Sep 2015 18:20:05 +0300
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=vladimir AT ias.edu; spf=None smtp.mailfrom=vladimir AT ias.edu; spf=None smtp.helo=postmaster AT pps3.ias.edu
- Ironport-phdr: 9a23:s2+VcR0kfQYB+VQ7smDT+DRfVm0co7zxezQtwd8ZsegQKvad9pjvdHbS+e9qxAeQG96Lt7Qd16GG7ejJYi8p39WoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6kO74TNaIBjjLw09fr2zQd6OyZ3rnLDss7ToICx2xxOFKYtoKxu3qQiD/uI3uqBFbpgL9x3Sv3FTcP5Xz247bXianhL7+9vitMU7q3cYk7sb+sVBSaT3ebgjBfwdVWx+cjN92Mq+vh7aCACL+3E0U2MMkxMODRKWwgv9W8LPtiL2t+98wmGkOsDoSrwvWiXqu7lvQRPpjSYdHz8w6yfahtEm3/ETmw6ouxEqm92cW4qSLvcrO/qFJd4=
You may be interested in the experience that we have acquired formalizing
various complex mathematical concepts. Writing “flat” definitions where all
components are put linearly in one record leads to very slow processing time.
Building definitions in the form of roughly balanced binary trees using only
dependent sums, while it requires more care and thinking at the beginning
leads to code that compiles very fast.
I do not know if it applies to your case since there may be fewer internal
structures in the list of ARMv7 instructions than in the mathematical
definitions but maybe its’ worth a try.
Vladimir.
PS The speed-up comes from the fact that in many cases there is no need to
unfold the definitions on the branches away from the path from the node that
you need to the root.
> On Sep 9, 2015, at 5:46 PM, Xavier Leroy
> <xavier.leroy AT inria.fr>
> wrote:
>
>> 2015-09-07 16:58 GMT+02:00 Petar Maksimovic
>> <petar.maksimovic AT gmail.com
>> <mailto:petar.maksimovic AT gmail.com>>:
>>
>> Hello everyone,
>>
>> I'm working on a development where there's an inductive type with 400+
>> constructors. Recently, it has become necessary to invert on it
>> regularly, and this takes an exceedingly long time.
>>
>
> You might be interested in the work of Monin and Shi on "small inversions":
> http://www-verimag.imag.fr/~monin/Proof/SmallInvScalesUp/paper.pdf
> I'm not sure their approach solves your problems, but it could help.
>
> On 08/09/2015 09:43, Cedric Auger wrote:
>> I am curious of what would lead to such a big inductive type.
>
> One example: full modeling of the instruction set of a modern processor
> architecture. ARMv7 has 413 instructions, and don't get me
> started about ARMv8...
>
> - Xavier Leroy
Attachment:
signature.asc
Description: Message signed with OpenPGP using GPGMail
- RE: [Coq-Club] Speeding up inversion on large inductives, (continued)
- RE: [Coq-Club] Speeding up inversion on large inductives, Soegtrop, Michael, 09/10/2015
- Re: [Coq-Club] Speeding up inversion on large inductives, Pierre Courtieu, 09/10/2015
- Re: [Coq-Club] Speeding up inversion on large inductives, Petar Maksimovic, 09/10/2015
- Re: [Coq-Club] Speeding up inversion on large inductives, Enrico Tassi, 09/10/2015
- RE: [Coq-Club] Speeding up inversion on large inductives, Soegtrop, Michael, 09/10/2015
- RE: [Coq-Club] Speeding up inversion on large inductives, Soegtrop, Michael, 09/10/2015
- Re: [Coq-Club] Speeding up inversion on large inductives, Thomas Braibant, 09/10/2015
- Re: [Coq-Club] Speeding up inversion on large inductives, Jean-Francois Monin, 09/10/2015
- Re: [Coq-Club] Speeding up inversion on large inductives, Petar Maksimovic, 09/11/2015
- Re: [Coq-Club] Speeding up inversion on large inductives, Alan Schmitt, 09/15/2015
- Re: [Coq-Club] Speeding up inversion on large inductives, Jean-Francois Monin, 09/10/2015
- Re: [Coq-Club] Speeding up inversion on large inductives, Cedric Auger, 09/09/2015
- Re: [Coq-Club] Speeding up inversion on large inductives, Cedric Auger, 09/09/2015
- Re: [Coq-Club] Speeding up inversion on large inductives, Petar Maksimovic, 09/09/2015
- Re: [Coq-Club] Speeding up inversion on large inductives, Pierre Courtieu, 09/09/2015
- Re: [Coq-Club] Speeding up inversion on large inductives, Clément Pit--Claudel, 09/09/2015
- Re: [Coq-Club] Speeding up inversion on large inductives, Petar Maksimovic, 09/09/2015
- Re: [Coq-Club] Speeding up inversion on large inductives, Cedric Auger, 09/09/2015
Archive powered by MHonArc 2.6.18.