coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Cedric Auger <sedrikov AT gmail.com>
- To: "coq-club AT inria.fr" <coq-club AT inria.fr>
- Subject: Re: [Coq-Club] Bounding the Type Hierarchy
- Date: Tue, 8 Dec 2015 16:17:01 +0100
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=sedrikov AT gmail.com; spf=Pass smtp.mailfrom=sedrikov AT gmail.com; spf=None smtp.helo=postmaster AT mail-ig0-f179.google.com
- Ironport-phdr: 9a23:khSWaR3E83weRG70smDT+DRfVm0co7zxezQtwd8ZsegTKvad9pjvdHbS+e9qxAeQG96LtbQc06L/iOPJZy8p2d65qncMcZhBBVcuqP49uEgeOvODElDxN/XwbiY3T4xoXV5h+GynYwAOQJ6tL2PbrnD61zMOABK3bVMzfbSrXNaKx+2MlMmMuLTrKz1SgzS8Zb4gZD6Xli728vcsvI15N6wqwQHIqHYbM85fxGdvOE7B102kvpT4r9Zf9HEasPU4ssVETK/SfqIiTLUeAi5sezQ+49Suvh3eRyOO4GEdWyMYiEwbLRLC6UTRU5vrsyCyn/dy1TPSadb7Qao1WjO8x6huQR7sziwAMmhqoynslsVsgfcD81qarBtlztuMbQ==
2015-12-08 15:54 GMT+01:00 Dominique Larchey-Wendling <dominique.larchey-wendling AT loria.fr>:
Dear all,
May be it is a simple question, but is it possible to bound the Type
hierarchy to some finite number while compiling a proof. The goal
could be for instance to determine the least size of the hierarchy
for a proof to type-check ?
Another way to formulate the question is how can I know the maximum
n such that Type_n is needed in the type-checking of a given proof ?
Of course, this might imply that all the parameters have a fixed
Type index which could be obtained by replacing
forall (X : Type) ...
by
forall (X : Set) ...
for instance.
It seems to me that Set Printing Universes is not enough for that.
Dominique
I
I am not completely sure of the reply to provide, but you must be aware that:
* now we have universe polymorphisms (we can define the "big" category of all "smaller" categories, for instance)
* using a library inside of an other project can "insert" new levels between already existing ones, and thus would require to change all these computed numbers.
You can even write a library A which compiles perfectly, and two other libraries B and C which use A and compile perfectly, and then a library D which only
contains "Require B. Require C." and crashes because of a universe inconsistency (B implies some constraints of universe levels of A which are not compatible
with those that C implies to A). That is not simply that you get an inconsistant theory, that is really that Coq (hopefully) refuses the theory, because
the "metatheory" itself becomes inconsistant.
- [Coq-Club] Bounding the Type Hierarchy, Dominique Larchey-Wendling, 12/08/2015
- Re: [Coq-Club] Bounding the Type Hierarchy, Robbert Krebbers, 12/08/2015
- Re: [Coq-Club] Bounding the Type Hierarchy, Guillaume Melquiond, 12/08/2015
- Re: [Coq-Club] Bounding the Type Hierarchy, Dominique Larchey-Wendling, 12/10/2015
- Re: [Coq-Club] Bounding the Type Hierarchy, Guillaume Melquiond, 12/10/2015
- Re: [Coq-Club] Bounding the Type Hierarchy, Dominique Larchey-Wendling, 12/10/2015
- Re: [Coq-Club] Bounding the Type Hierarchy, Guillaume Melquiond, 12/08/2015
- Re: [Coq-Club] Bounding the Type Hierarchy, Cedric Auger, 12/08/2015
- Re: [Coq-Club] Bounding the Type Hierarchy, Robbert Krebbers, 12/08/2015
Archive powered by MHonArc 2.6.18.