coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Yao Li <liyao AT seas.upenn.edu>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Commands/Tools for Debugging Universe Inconsistency?
- Date: Fri, 10 Apr 2020 10:42:40 -0500
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=liyao AT seas.upenn.edu; spf=Pass smtp.mailfrom=liyao AT seas.upenn.edu; spf=None smtp.helo=postmaster AT mail-qt1-f171.google.com
- Ironport-phdr: 9a23:TM10hBETWBZIA8UP/0AQk51GYnF86YWxBRYc798ds5kLTJ7zo8WwAkXT6L1XgUPTWs2DsrQY0reQ6fqrCDVIoc7Y9ixbLNoUD15NoP5VtjJjKfbNMVf8Iv/uYn5yN+V5f3ghwUuGN1NIEt31fVzYry76xzcTHhLiKVg9fbytScbdgMutyu+95YDYbRlWizqhe7NyKwi9oRnMusUMjoZuN6Y8xgHXrndWdOhbwX5kLk+Xkxrg+8u85pFu/zlftv4768JMTaD2dLkkQLJFCzgrL2866Mr3uBfZUACB/GEcUmIYkhpJBwjK8hT3VYrvvyX5q+RwxjCUMdX5Qr4oVzui6bxrSALzhyccKzE56mDXhddug69dvRmsugZww4/QYIGSKfp+YqbQds4USGZdQspcUTFKD4WhZIUNEuUBJ/5VoYnhqFQBsBWwCwesCv3txTFLgXH7xrc13/gkEQzc3AwsA9ADvXLJp9v1LqcSVuW1wbHKwjrZaPNdxDHz6InVeR0mpfGMXLJxftDWyUQ0DAPKkE+fqZf/MzOIzuQCrW6b7+x6We2xlmEnthh8rz6yzckijYnJg5gaylHC9ShhwYY1I8e4SE9hbtK+HptQrSeXPJZ1TMM6W2xkpjo2x7kctZO4fCUG0okryh/DZ/CdboSF4A/vWP6PLTp5mH5pZbeyiwi9/ES8z+DxVca53EpWoidAj9XAqn8A2h3W58WITvZw/luu1DOP2g3X6uxLO0U5mK7ZJpI/37E9k4ccvEDHEyL0nkj9kbWYeV8++uey7uTqerXmqYGYN49zkgz+N74hms27AeghKwgOQ3WX9f2y1LH+/0D1Xa9GjvIxkqnev5DaIdoUqrSlDA9S14Yv8xe/DzG439QEhXQLMk5JdRadg4XqO1zCOu30APajj1i2jTtmxe3KMqXkAprXL3jDlLnhfax6605Z0AczydFf5pJOBbEGO//zQVH+u8bDDhMjLgy02/joCNN71o8ER22AH7KZPLvIsVCU/uIvP/WMZIgNtTnhLPgl/ufigmM9mV8AZqakxoAXaXC9HvR+OUqVe3vsgtEbEWcLpAUyVuLqiEfRGQJUMn21Ruc34iwxIIOgF4bKAI6305Kb2yLuL5RRLkRHQgSIEGbhcK2fVv4XLj+KL8ln1DEISO7yGMcayRiyuVqimPJcJe3O93hA7M6x5J1O/+TW0CoK23lsFc3EjTOWQmhv2H4QSjkwmq1zvB4lkwbR4e1Dm/VdUOdrybZMWwY+O4TbyrUkWcv/UxmHY8+ETlDgT9m7U2hoE4ABhuQWakM4IO2MyxDO2y3wXe0Qnr2PQYUoq+fShieoYcl6zHnC2e8qiFx0GsY=
Hi Christian,
Thanks for the pointers! They are helpful. In particular, I find your suggestion of using the “Constraint” command quite useful. I would like to reiterate that suggestion here:
- once one has located the spot where needlessly strong constraints (usually
U = V for some U and V) are enforced, one can precede said lemma/definition
with a "Contraint" command ruling out the equality (e.g., Contraint U < V) to
force backtracking within the definition/lemma. Afterwards, the desired
parallel structure can be reestablished.
However, I have universe variables whose names are in the form of “Foo.2”, which cannot be parsed by Coq, even under “Constraint” command (Coq would complain:"Error: Syntax Error: Lexer: Undefined token”). This prevents me from putting any constraints regarding “Foo.2”. Is this a bug or did I miss something?
Best,
Yao
On Apr 10, 2020, at 3:30 AM, Christian Doczkal <christian.doczkal AT inria.fr> wrote:Hi,
the subject has been discussed on this list before, and I am not aware
of any tooling advances made since then. The two treads I have been
involved in are:
https://sympa.inria.fr/sympa/arc/coq-club/2018-09/msg00008.html
https://sympa.inria.fr/sympa/arc/coq-club/2019-11/msg00087.html
I hope this helps!
Best,
Christian
On 4/10/20 1:14 AM, Yao Li wrote:Dear All,
I am having some recurring universe inconsistency problems lately and I would like to know if there are any commands/tools for helping me debugging what happened.
For example, a recurring pattern is that Coq complains to me that it cannot unify two universe levels (assuming they are u1 and u4) because “u1 <= u2 < u3 <= u4” or “u1 <= u2 < u3 = u4”. I would like to know where the constraints concerning u3 and u4 (and perhaps other relevant constraints as well) are generated—or better yet, why. However, I haven’t found a tool for doing that.
I have tried “Set Printing Universes”. Unfortunately, the constraints concerning u3 and u4 cannot be found at any relevant definitions. I have also tried “Print Universes”, but I cannot find what I’m looking for in the sea of constraints that Coq shows me.
Best,
Yao
- [Coq-Club] Commands/Tools for Debugging Universe Inconsistency?, Yao Li, 04/10/2020
- Re: [Coq-Club] Commands/Tools for Debugging Universe Inconsistency?, Christian Doczkal, 04/10/2020
- Re: [Coq-Club] Commands/Tools for Debugging Universe Inconsistency?, Yao Li, 04/10/2020
- Re: [Coq-Club] Commands/Tools for Debugging Universe Inconsistency?, Gaëtan Gilbert, 04/10/2020
- Re: [Coq-Club] Commands/Tools for Debugging Universe Inconsistency?, Yao Li, 04/10/2020
- Re: [Coq-Club] Commands/Tools for Debugging Universe Inconsistency?, Yao Li, 04/10/2020
- Re: [Coq-Club] Commands/Tools for Debugging Universe Inconsistency?, Yao Li, 04/10/2020
- Re: [Coq-Club] Commands/Tools for Debugging Universe Inconsistency?, Gaëtan Gilbert, 04/10/2020
- Re: [Coq-Club] Commands/Tools for Debugging Universe Inconsistency?, Yao Li, 04/10/2020
- Re: [Coq-Club] Commands/Tools for Debugging Universe Inconsistency?, Christian Doczkal, 04/10/2020
Archive powered by MHonArc 2.6.18.