coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: "William J. Bowman" <wjb AT williamjbowman.com>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Debugging an apparently diverging Coq program
- Date: Mon, 23 Sep 2019 10:46:37 -0700
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=wjb AT williamjbowman.com; spf=None smtp.mailfrom=wjb AT williamjbowman.com; spf=None smtp.helo=postmaster AT williamjbowman.com
- Ironport-phdr: 9a23:zbr4lhYV4l4VLPC/rQPcjiL/LSx+4OfEezUN459isYplN5qZrsy5bnLW6fgltlLVR4KTs6sC17ON9fqwEjVZvN6oizMrSNR0TRgLiMEbzUQLIfWuLgnFFsPsdDEwB89YVVVorDmROElRH9viNRWJ+iXhpTEdFQ/iOgVrO+/7BpDdj9it1+C15pbffxhEiCCybL9vIhi6txvdu8oZjYd/N6o8ygbCr2dVdehR2W5mP0+YkQzm5se38p5j8iBQtOwk+sVdT6j0fLk2QKJBAjg+PG87+MPktR/YTQuS/XQcSXkZkgBJAwfe8h73WIr6vzbguep83CmaOtD2TawxVD+/4apnVAPkhSEaPDE+7W/Xl9dwjLpFrx29uxxxzYnUYISPO/p/eKPWYNcWSGVFU8pUUSFKH4GyYJYVD+cZM+hWr5fzqUYNoxuwCgajGP7gxDBKiXD4xqA6z+csHBva0AA8Bd8DsnLZp8j1OqcIVuC1ybHFwTvDYPNX3Tf97InIfQokofqRWbx8a9faxFQoFwLLi1Wfs4rlMz2I3ekKvWmb7fFvWPmhim4mrwFxpjmvyd0pionLnY0VzV7F9SBjz4YzP9G3VEl7Ydu9HZZWqiqUOYx2QsY4TGFpviY30qEJuZmhfCgM1psnwxrfZ+aZfIeV/xLvTOeRITFihHJkYr2znRiy8VK4xu3zV8m0zFZKrjdendXWt3AN0ATf6seGSvth/kehxC2A2xrP5eFDJEA5k7fQJZ05wrMoi5YetVrPEjXrlEj2jKKabEYp9+uy5+j6f7nrp4eQO5Jwhwz9KKgih82yDfoiPgUOX2WX4+ex2b3l8EbkWrtFlOc2nbPcsJ3CJcQUuKq5AwhN34ct6ha/CzOm0NUCknkCLlJKYxWHjobsO17UJvD0F+uwg1OpkDtzxvDGOKPuAonVI3TelLrtY6xx51NcxQcz19xS5JFZBqscLP7uW0L9rNnYAQU4MwywzebnEtJ91oYGVGOBAK+WK7jfsFGJ5uIrJ+mMZZUauDP/K/c+4P7vg3o5lkUbfaWzwZQXb3W4Eux8I0qFeXrsnssBEWASswUiS+zqkUSOXiJXZ3avRK0x/So7CYKjDYfbXI+hmr2B3CGhHp1XfG9KEF6MEW27P7mDDvwLcWeZJtJruj0CT7moDYE7hj+0swqvgYVmKu7V8yhQl9Sr/t9q4uTV31lm6j5+J9uc12WMRmR2lGQXQjYwmqt4pBoumR+4zaFkjqkARpRo7PRTX1JmZMeAndw/MMj7X0f6RvnMUEyvGI30HjA1StM4xt0EZFl4EtPkhRfGjXLzXu0l0oeTDZlxyZrymnj8I8EnkyTZ1a0ljlAjQMFIKmivgOh08A2BX9eYwXXcrL6jcOEn5ACI8W6CyWSUu0QCCFxvUKHBXHkaZEHRstHw4AXJSLr8Ubk=
Thanks all for the feedback!
This should give me plenty of places to continue debugging and some
workarounds
if it's simply a limitation of the code generated by Program.
--
William J. Bowman
PS: Sorry for my mis-sent empty email.
On Mon, Sep 23, 2019 at 07:36:54PM +0200, Xavier Leroy wrote:
> On Mon, Sep 23, 2019 at 7:19 PM Jason -Zhong Sheng- Hu <
> fdhzs2010 AT hotmail.com>
> wrote:
>
> > have you tried to extract to ocaml or haskell to reduce noise from Prop?
> >
>
> "Program Fixpoint" produces terms that don't play well with extraction:
> https://github.com/coq/coq/issues/10757
>
> The problem could come from accessibility proofs that don't compute. The
> following trick can help:
> https://sympa.inria.fr/sympa/arc/coq-club/2013-09/msg00034.html
>
> - Xavier Leroy
>
>
> >
> > *Thanks,*
> > *Jason Hu*
> > *https://hustmphrrr.github.io/ <https://hustmphrrr.github.io/>*
> > ------------------------------
> > *From:*
> > coq-club-request AT inria.fr
> >
> > <coq-club-request AT inria.fr>
> > on behalf
> > of William J. Bowman
> > <wilbowma AT ccs.neu.edu>
> > *Sent:* September 20, 2019 8:46 PM
> > *To:*
> > coq-club AT inria.fr
> >
> > <coq-club AT inria.fr>
> > *Subject:* Re: [Coq-Club] Debugging an apparently diverging Coq program
> >
> > I don’t think that’s the problem. Another model does get stuck on that
> > equality and returns the if statement waiting for an interpretation of
> > “==“. I didn’t expect Program to be efficient, but I do expect it to
> > terminate quickly on this example, without using 20 GB of memory.
> >
> > I’ll see if I can reduce the other model to something as small.
> >
> > --
> > Sent from my phoneamajig
> >
> > On Sep 20, 2019, at 17:35, Abhishek Anand
> > <abhishek.anand.iitg AT gmail.com>
> > wrote:
> >
> > Perhaps they forgot to instantiate the atom type? the computation would
> > get stuck on (x == x'). `Program` often produces humongous functions.
> >
> > -- Abhishek
> > http://www.cs.cornell.edu/~aa755/
> >
> >
> > On Fri, Sep 20, 2019 at 5:15 PM William J. Bowman
> > <wjb AT williamjbowman.com>
> > wrote:
> >
> > All,
> >
> > At the following URL is a model of a language with capture-avoiding
> > substitution
> > that a student wrote:
> >
> > https://gist.github.com/wilbowma/acf125222c64ff715a33b26a0ce8b4ab
> >
> > The program looks (to me) like it ought to terminate quickly, and it's
> > proven
> > terminating using Program, yet when we run the substitution function on a
> > small
> > example... coqtop eats about 20 GB of memory and doesn't terminate within
> > 5
> > minutes.
> > I'm using Coq 8.9.1 on MacOS 10.14.2; the same behavior is also observed
> > on
> > Windows 10.
> >
> > I'd appreciate any help debugging this.
> >
> > --
> > William J. Bowman
> >
> >
- [Coq-Club] Debugging an apparently diverging Coq program, William J. Bowman, 09/21/2019
- Re: [Coq-Club] Debugging an apparently diverging Coq program, Abhishek Anand, 09/21/2019
- Re: [Coq-Club] Debugging an apparently diverging Coq program, Nathaniel Yazdani, 09/21/2019
- Re: [Coq-Club] Debugging an apparently diverging Coq program, William J. Bowman, 09/21/2019
- Re: [Coq-Club] Debugging an apparently diverging Coq program, Jason -Zhong Sheng- Hu, 09/23/2019
- Re: [Coq-Club] Debugging an apparently diverging Coq program, Sylvain Boulmé, 09/23/2019
- Re: [Coq-Club] Debugging an apparently diverging Coq program, Sylvain Boulmé, 09/23/2019
- Re: [Coq-Club] Debugging an apparently diverging Coq program, Xavier Leroy, 09/23/2019
- Re: [Coq-Club] Debugging an apparently diverging Coq program, William J. Bowman, 09/23/2019
- Re: [Coq-Club] Debugging an apparently diverging Coq program, Pierre Courtieu, 09/24/2019
- Re: [Coq-Club] Debugging an apparently diverging Coq program, William J. Bowman, 09/23/2019
- Re: [Coq-Club] Debugging an apparently diverging Coq program, Sylvain Boulmé, 09/23/2019
- Re: [Coq-Club] Debugging an apparently diverging Coq program, Jason -Zhong Sheng- Hu, 09/23/2019
- Re: [Coq-Club] Debugging an apparently diverging Coq program, Jason -Zhong Sheng- Hu, 09/21/2019
- Re: [Coq-Club] Debugging an apparently diverging Coq program, William J. Bowman, 09/21/2019
- Re: [Coq-Club] Debugging an apparently diverging Coq program, Xuanrui Qi, 09/21/2019
- Re: [Coq-Club] Debugging an apparently diverging Coq program, Théo Winterhalter, 09/21/2019
- Re: [Coq-Club] Debugging an apparently diverging Coq program, Gaëtan Gilbert, 09/21/2019
- Re: [Coq-Club] Debugging an apparently diverging Coq program, Abhishek Anand, 09/21/2019
Archive powered by MHonArc 2.6.18.