Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Bounding the Type Hierarchy

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Bounding the Type Hierarchy


Chronological Thread 
  • From: Guillaume Melquiond <guillaume.melquiond AT inria.fr>
  • To: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] Bounding the Type Hierarchy
  • Date: Tue, 08 Dec 2015 17:04:14 +0100

On 08/12/2015 15:59, Robbert Krebbers wrote:
> On 12/08/2015 03:54 PM, Dominique Larchey-Wendling wrote:
>> 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 ?
> Maybe "Print Sorted Universes" will help. From the reference manual:
>
> If the optional Sorted option is given, each universe will
> be made equivalent to a numbered label reflecting its level
> (with a linear ordering) in the universe hierarchy.

Yes, that is the way to do it. For instance, Coq's testsuite executes
the following script:

Require all_stdlib.
Print Sorted Universes "universes.txt".

Then it parses the generated file to check that the number of universe
levels needed to typecheck the standard library did not unexpectedly change.

Best regards,

Guillaume



Archive powered by MHonArc 2.6.18.

Top of Page