coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Matthieu Sozeau <mattam AT mattam.org>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Debugging Universe Inconsistencies
- Date: Mon, 10 Sep 2018 14:53:53 +0200
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=mattam AT mattam.org; spf=Pass smtp.mailfrom=matthieu.sozeau AT gmail.com; spf=None smtp.helo=postmaster AT mail-wm0-f43.google.com
- Ironport-phdr: 9a23:yFgYQh+RSUpkL/9uRHKM819IXTAuvvDOBiVQ1KB52uMcTK2v8tzYMVDF4r011RmVBdqds6oMotGVmpioYXYH75eFvSJKW713fDhBt/8rmRc9CtWOE0zxIa2iRSU7GMNfSA0tpCnjYgBaF8nkelLdvGC54yIMFRXjLwp1Ifn+FpLPg8it2O2+55/ebx9UiDahfLh/MAi4oQLNu8cMnIBsMLwxyhzHontJf+RZ22ZlLk+Nkhj/+8m94odt/zxftPw9+cFAV776f7kjQrxDEDsmKWE169b1uhTFUACC+2ETUmQSkhpPHgjF8BT3VYr/vyfmquZw3jSRMMvrRr42RDui9b9mRxDmiCgFNzA3/mLZhNFugq1Hux+uvQBzzpTObY2JKPZzfKXQds4aS2pbWcZRUjRMDISmYIsTE+oBPedYoJfgp1ATsBW+AgitC/31xT9Vm3T72qg63P49EQHaxgMgGskDsHHOo9XpKKcdS+W1wLPPzTXZYPNbwDHw45XLfBA5ufyBX719fdDMxUUxFw7JlFadpZL/Mz6a2OkAtXWQ4fB6WuK1kWEnrhl8ojixyccojYnEnocVxUrF9SV92Yo0K9i4RFJibd6qH5ZduTuWN4RxQsMlTGFovDg1xqcatp68eSgG0JUnxxjBZPyba4WF4B3uWPyMLTtmhH9pYrGyiwio/UWvxODwTsy030xLripBnNnMrHcN1xnL58iCUPR94luh2TaO1w/N9+FIO1s0la3aKpE/2LEwi4EesUvGHiDsmUX2iLWaeVkj+uit8+jneKnppoeAN49ojQHzKrghmsumAeghLgcOW3Wb9v+n2b34/Uz5Ra1KgecsnqnYtpDaP8UbqbSjDw9byIZwoyq4WjyhyZETmWQNBFNDYhOOyYbzaH/UJ/WtKP6jn1StnSoj/PfUM7T8SsHIJ2TfmbLJeL9h90dZjg0pwoYMtNpvFrgdLaerCQfKv9vCA0phal3m86PcENx4k7gmdyeKC66dPrnVtAbRtO0qKuiIIoQSvWSkcqR317vVlXY83GQlU+yxx5JOMiK9F+h6KkDfZmDj0I9YTDU6+zEmRemvs2WsFD5eY3HoAvA57zA/TZ2jVcLNGtvrj7uG0yO2WJZRYzIeBw==
Dear Christian,
There is documentation in dev/doc/universes about the changes necessary. The main idea is that if your tactic produces a term with polymorphic constants in it, it must produce one fresh instance of the constant at each use. Before giving the final proof term containing those fresh instances, you can call a type inference function to gather the universe constraints necessary for the whole term to typecheck automatically. Maybe a look at the OCaml code you use could help us fix this.
The « cannot ensure that i <= j » error could also be because that constraint is not present in the graph you produce in a tactic I believe.
The order-of-Imports issue is a bug for sure. Note that if you have a module A with everything polymorphic then importing it incurs no global constraints so the bug couldn’t happen in that case.
Best,
— Matthieu
Le lun. 10 sept. 2018 à 14:28, Christian Doczkal <christian.doczkal AT ens-lyon.fr> a écrit :
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
- [Coq-Club] Debugging Universe Inconsistencies, Christian Doczkal, 09/05/2018
- 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.