coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Xuanrui Qi <xuanrui AT cs.tufts.edu>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Debugging an apparently diverging Coq program
- Date: Fri, 20 Sep 2019 20:40:07 -0700
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=xuanrui AT cs.tufts.edu; spf=Pass smtp.mailfrom=xuanrui AT cs.tufts.edu; spf=None smtp.helo=postmaster AT vm-delivery1.eecs.tufts.edu
- Ironport-phdr: 9a23:UcKTCh+8aEnVRv9uRHKM819IXTAuvvDOBiVQ1KB20OkcTK2v8tzYMVDF4r011RmVBN6dsakP1LGe8/i5HzBZu9DZ6DFKWacPfidNsd8RkQ0kDZzNImzAB9muURYHGt9fXkRu5XCxPBsdMs//Y1rPvi/6tmZKSV3wOgVvO+v6BJPZgdip2OCu4Z3TZBhDiCagbb9oIxi6sAvcutMIjYZsJao8yBXEqWZMd+hK2G9kP12ekwvi6suq4JJv7yFcsO89+sBdVqn3Y742RqFCAjQ8NGA16szrtR3dQgaK+3ARTGYYnAdWDgbc9B31UYv/vSX8tupmxSmVJtb2QqwuWTSj9KhkVhnlgzoaOjEj8WHXjstwjL9HoB+kuhdyzZLYbJ2TOfFjeazTYM4aRXFZXslPSyNBHo2yb4wKD+UbPOZYqZT2q18BoBa6AAWhAv7kxD1ViX/sxaA00PkvHwHY0gIuHd0Ovmjbo9v6O6kdSu210KrFwC/fY/9Kwzrw6o7FeQ0hr/GWWrJwdNLcxkgyFwzfiFWQs5HlPzKI3eoWsmiQ8u1tVO2yi2E9rQFxuCWvxsY3h4bVnYIZ0EzE9Th3wIYpPt20UlB0bsO5EJZJsSyRKoV4QsQnQ25yuSY6zKULtoK8fCgQzpQo2Rrfa/idf4eW/x3jSf6dITZ+hHJ/ebKwnQy+8Ua6yuHkWci0zUxFrixfktnRt3ANzh3T5tKbRft6+0etwTmP1wHP6uFEPEA7jrDXK58mwrIomZoTsFjDHi/rmErtlqOZakIk+u2u5u/6YbvmvoeRO5J6hw3iKKgjm8OyDf4mPgUARWSW9+ax2KXh8ED3WrlHivM7nrPEvJ3aJckXvK60Dg9T340+8RiwFS2m384dnXQfLFJKZhaHj4/xNlHQJfD0FOqwjEqokDdq2fDJIKfhA5XQInTZjrjuY6py61VGxAov0NBf6Y5UCqobLP3tR0DxqcTUDh4/MwOq3+bqEMhx240CVW6VA6KUP7nevUGG6+41LeSBZpcZuDPnJPgk4/7ug2U5mVgYfaSx0poXdWq3HvJ8I0WEYHrhmcsOEXwQsgoiUezqhkGCUSVJa3msQq08+yk3CJi6AofbWoCtnLuB0T+nEZ1Rf2BKE0yDEXP1d4qfQPoMcyKTIsp5kjMeT7ShSokh1QuvtADg0bZnIPDUqWUkssfo08Ew7OnOnzkz8yZ1BoKTyTKjVWZxy1MVTjkswaE3mE01nkee2K5inv1wHscV++5HThx8OJLBmb8pQ+vuUx7MK4/aAG2tRc+rVG1gF49j85o1e094Xu6aoFXD0i6tWe5HibnOCJEw87zRxWmoYctwwG2AyLQvk0JgT8dSZzX/1/xPsjPLDouMqH230qOjdKASxinIrTvRxnHIoFxWTBU2XKnYDylGOhnm6O/h70aHdIeATKw9O1Idm8WZbLdXZMHyy1hKWaW7NQ==
Hello all,
This looks really weird to me.
> `Program` often produces humongous functions
While this is generally true, I'm not sure it's the case here. You can
print the term and see that its size is not really humongous.
I tried using `Function` instead of `Program Fixpoint` and changing the
Defined into a Qed, but nothing changed. It could be the non-opaque
obligations thing but I'm not entirely sure.
It seems like a Coq bug to me now...
Best,
Xuanrui
--
Xuanrui Qi
xuanrui AT cs.tufts.edu
me AT xuanruiqi.com
https://www.xuanruiqi.com
On Sat, 2019-09-21 at 00:47 +0000, Jason -Zhong Sheng- Hu wrote:
> I suspect that Solve Obligations closes proofs transparently, which
> should consume much time to compute something irrelevant.
>
> https://coq.inria.fr/refman/addendum/program.html#coq:flag.transparent-obligations
> Program — Coq 8.9.1 documentation
> We present here the Program tactic commands, used to build certified
> Coq programs, elaborating them from their algorithmic skeleton and a
> rich specification .It can be thought of as a dual of Extraction.The
> goal of Program is to program as in a regular functional programming
> language whilst using as rich a specification as desired and proving
> that the code meets the specification using the ...
> coq.inria.fr
>
> > Controls whether all obligations should be declared as transparent
> (the default), or if the system should infer which obligations can be
> declared opaque.
>
> Thanks,
> Jason Hu
> https://hustmphrrr.github.io/
> From:
> coq-club-request AT inria.fr
>
> <coq-club-request AT inria.fr>
> on behalf
> of Abhishek Anand
> <abhishek.anand.iitg AT gmail.com>
> Sent: September 20, 2019 8:35 PM
> To: coq-club
> <coq-club AT inria.fr>
> Subject: Re: [Coq-Club] Debugging an apparently diverging Coq program
>
> 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
- Re: [Coq-Club] Debugging an apparently diverging Coq program, (continued)
- 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
Archive powered by MHonArc 2.6.18.