coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: "William J. Bowman" <wilbowma AT ccs.neu.edu>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Debugging an apparently diverging Coq program
- Date: Fri, 20 Sep 2019 17:46:13 -0700
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=wilbowma AT ccs.neu.edu; spf=Fail smtp.mailfrom=wilbowma AT ccs.neu.edu; spf=None smtp.helo=postmaster AT williamjbowman.com
- Ironport-phdr: 9a23:RY/LYRPgkDzgjX26yDsl6mtUPXoX/o7sNwtQ0KIMzox0IvX+rarrMEGX3/hxlliBBdydt6sfzbCN+Pu/ESxYuNDd6SpEKMQNHzY+yuwu1zQ6B8CEDUCpZNXLVAcdWPp4aVl+4nugOlJUEsutL3fbo3m18CJAUk6nbVk9Kev6AJPdgNqq3O6u5ZLTfx9IhD2gar9uMRm6twrcutQYjId4NKo8xBTFr3VKdu9LwW9kOU+fkwzz68ut4pJv6Thct+4k+8VdTaj0YqM0QKBCAj87KW41/srrtRfCTQuL+HQRV3gdnwRLDQbY8hz0R4/9vSTmuOVz3imaJtD2QqsvWTu+9adrSQTnhzkBOjUk7WzYkM1wjKZcoBK8uxxyxpPfbY+JOPZieK7WYNUXTndDUMlMTSxMGoOyYJcAAeUOM+hWsorzp1UMohWgAgehH/ngxz1NhnLs3a02z+YsHAfb1wIgBdIOt3HUoc37OKgSUOC1yK3IzTTZYPNTxDzz7JLEeQ08rPGLU7NwdNDeyU8hGwjYiViRp43lPzeO2eQKvWmb6vBvWPmzhGE7sAF9uD6vydkxioXTmI0a103E+Dx/zY0oK9O4T0t7bsSlEJtWryyVK4x2QtkkQ252vCY6zqcKtoCmcygX0JgnyB/fa+CHc4iV+R3vTvqeITB9hH9jZbmxhA6y/FC9xuD4SMW4yktGoypFn9XWtX0A1Abf5tWaRvZ85kutxzeC2xzc5+xBL007iLbXJp0kz7MxmJoes0rDEyr1lUj2kKOaakAp+uao5uv5Yrjro5CRO5J6hwz7PKQjmc2yDv89PwUKXGWU5+Kx36D580LjWrVFlPg2n7HZsJ/EIcQboba0AgFU0oYn7xa/Di2p0NEanXYcK1JEdheHgJLvO13UPP/4CvK/j0ytkDdt2f/GIqXsDojJI3TdirvtYLZw5k5GxAcwzt1T/Y9YBqwALf7rX0/+rt3YDhs3MwyuxObnDc1w140fWWKLGaCZN63TsVqS6e80P+aDeJQVtCz7K/c7+v7il2E2lkIAfaWxx5sYdGi4Huh6I0WeeXfjntABEX4TsgUiSOzqlUaNXCVIZ3eyWqI8/is0BJinDYfFXICtgaaO0D21Hp1MNSh6DQWHFm6tfIGZUd8NbjiTK4lviG8qT7+kHsUe1BWqtQb/g5ghZsDT5SgRs9irgMd04+fUihQ73Td/FIKb3nzLQm1pyDBbDwQq1bxy9BQugmyI1rJ11qQBRI5joshRWwJ/DqbyiulzCtT8QAXEJ4zbQ129BNOrHHc8Qs9jn4ZSMXY4IM2ri1X45wTvG6UczufZD5cvtKTRwj78K9svky+bhplktEEvR450DUPjhqN78FKLVZHIl0GYnqOof6MD2SfLsmyEyDjWsQ==
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
Perhaps they forgot to instantiate the atom type? the computation would get stuck on (x == x'). `Program` often produces humongous functions.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, Abhishek Anand, 09/21/2019
Archive powered by MHonArc 2.6.18.