coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Gaëtan Gilbert <gaetan.gilbert AT skyskimmer.net>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Debugging Universe Inconsistencies
- Date: Mon, 10 Sep 2018 15:03:01 +0200
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=gaetan.gilbert AT skyskimmer.net; spf=Pass smtp.mailfrom=gaetan.gilbert AT skyskimmer.net; spf=None smtp.helo=postmaster AT relay4-d.mail.gandi.net
- Ironport-phdr: 9a23:aS3dzx9WqK4Zff9uRHKM819IXTAuvvDOBiVQ1KB30uwcTK2v8tzYMVDF4r011RmVBdqds6oMotGVmpioYXYH75eFvSJKW713fDhBt/8rmRc9CtWOE0zxIa2iRSU7GMNfSA0tpCnjYgBaF8nkelLdvGC54yIMFRXjLwp1Ifn+FpLPg8it2O2+55/ebx9UiDahfLh/MAi4oQLNu8cMnIBsMLwxyhzHontJf+RZ22ZlLk+Nkhj/+8m94odt/zxftPw9+cFAV776f7kjQrxDEDsmKWE169b1uhTFUACC+2ETUmQSkhpPHgjF8BT3VYr/vyfmquZw3jSRMMvrRr42RDui9b9mRgL2hicJNzA382/ZhcJ/g61ZvB2vqAdyw5LXbYyPKPZyYq3QcNEcSGFcXshRTStBAoakYoUOFeUGIfpYoJP7p1QWrBW+BA2sC/jxxT9Smn/9wKo30+s7Hg7YwAwvBdQOvG7brNX0MKcdSv66zLPUzTjYdPNW2jf86JPLchAgpPGMWKx/cdDLxUkpCQzFkkydpIr4ND2b0eQNtnKU7+tmVe+3im4nrRtxojm1ycs2hInJnIQYwU3H+yVh2Is5O8C0RUxhbdOmDJdcrTyWOoh4T884Xm1lvCc3xqUbtZKneCUG0oorywLBZ/CdboSE/hDuWPyPLTtkgn9uZaixiAyo8Ue6z+3xTsm030hOripCitTMrG4C1xjJ5cmHRfZx51qu1SyK1w/J6+FEJVo4laXBJJ4n37Ewl4AfsULdES/qgEn2jamWeVs4+uWw9ejrf7frqoWeOoNokA3yL6cjl8KlDeglNgUDXnCX+eGm273i+U35Tq9KjvozkqTBv5DVP9oUprKjDA9TyIoj5Be/DzO939sGh3kHMElIeAmEj4npIFHOI/H4DfK6g1uyijdn3fbGMaP9ApnVNHjMjK/hfaph605b0Ac80ddf54tNBr4dJPLzR1T+ucfDDh45Ngy02/zoBM981oMYQ2KPA7WWPLncsV+StaoTJLyHY5ZQszLgIdAk4eTvhDk3gwwzZ66siLQe62yxGMNJIkGTbGDwyoMOGGoWtwx4Q+3uglCYTRZIZGepXKM54zwhToSrEdGQFciWnLWd0XLjTdVtbWdcBwXUSCa6R8C/Q/4JLRmqDIpkmz0AW6KmTtZ/hwqtpRT5yr9iI/CS/CAE58u6iIpFotbLnBR3zgRaStyH2jjTHXp3j3gLRjoz0bo5p0FhmA/ajPpIxsdAHNkW3MtnFwc3MZmGkr5gBtT7S16EcpGMQVeiBNqvBz0wCNQ8341Wbg==
This is an error from calling constr_of_global (from module Universes, in Coq master from module UnivGen) on some universe polymorphic global.
Tacmach.pf_global is a wrapper of it. You're unlikely to be using any other caller in an ocaml tactic.
This is a function to turn a constant or inductive into a term, but when the argument is universe polymorphic the universes need to be provided.
The standard solution is to use
[Evarutil.new_global : evar_map -> GlobRef.t -> evar_map * constr]
it will create new flexible (as https://coq.inria.fr/distrib/current/refman/addendum/universe-polymorphism.html#conversion-and-unification) universes to feed to your global.
You then have to pass around the updated evar map to work with it and to update the tactic layer (tclEVARS or the like), if you drop it you will get undeclared universe errors.
Gaëtan Gilbert
On 10/09/2018 14:28, Christian Doczkal wrote:
Hi,
- Require Import A B. succeeds
- Require Import B A. fails
That sounds like a bug, you can open an issue on github with
reproduction instructions and we will look into it.
Unfortunately, that's an internal repository with well over 10K lines,
and the problem occurs at the end. Should I manage to find a small
example, I will open an issue.
globalization of polymorphic reference <ID> would forget universes.
Unfortunately various tactics and commands do not support or badly
support universe polymorphism. This error means some function hasn't
been adapted. It should probably be an anomaly.
Depending on what exactly is failing it may be possible for us to fix
it, or it could be beyond our current manpower.
This happens when calling one of our own tactics written in OCaml. So
how does one have to adapt tactics in order to properly support universe
polymorphism? (The error occurred while trying to see what happens if I
make just about everything universe polymorphic, so it may or may not be
necessary to fix this)
Thanks for the pointers,
Christian
- Re: [Coq-Club] Debugging Universe Inconsistencies, (continued)
- Re: [Coq-Club] Debugging Universe Inconsistencies, Gaëtan Gilbert, 09/05/2018
- Message not available
- Re: [Coq-Club] Debugging Universe Inconsistencies, Gaëtan Gilbert, 09/06/2018
- Message not available
- Re: [Coq-Club] Debugging Universe Inconsistencies, Christian Doczkal, 09/06/2018
- Re: [Coq-Club] Debugging Universe Inconsistencies, Jan-Oliver Kaiser, 09/06/2018
- Re: [Coq-Club] Debugging Universe Inconsistencies, Christian Doczkal, 09/06/2018
- Re: [Coq-Club] Debugging Universe Inconsistencies, Christian Doczkal, 09/07/2018
- Re: [Coq-Club] Debugging Universe Inconsistencies, Gaëtan Gilbert, 09/07/2018
- Re: [Coq-Club] Debugging Universe Inconsistencies, Christian Doczkal, 09/10/2018
- Re: [Coq-Club] Debugging Universe Inconsistencies, Matthieu Sozeau, 09/10/2018
- Re: [Coq-Club] Debugging Universe Inconsistencies, Christian Doczkal, 09/11/2018
- Re: [Coq-Club] Debugging Universe Inconsistencies, Gaëtan Gilbert, 09/10/2018
- Re: [Coq-Club] Debugging Universe Inconsistencies, Gaëtan Gilbert, 09/07/2018
- Re: [Coq-Club] Debugging Universe Inconsistencies, Christian Doczkal, 09/07/2018
- Re: [Coq-Club] Debugging Universe Inconsistencies, Christian Doczkal, 09/06/2018
- Re: [Coq-Club] Debugging Universe Inconsistencies, Jan-Oliver Kaiser, 09/06/2018
- Re: [Coq-Club] Debugging Universe Inconsistencies, Gaëtan Gilbert, 09/05/2018
Archive powered by MHonArc 2.6.18.