123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354(************************************************************************)(* * The Rocq Prover / The Rocq Development Team *)(* v * Copyright INRIA, CNRS and contributors *)(* <O___,, * (see version control and CREDITS file for authors & dates) *)(* \VV/ **************************************************************)(* // * This file is distributed under the terms of the *)(* * GNU Lesser General Public License Version 2.1 *)(* * (see LICENSE file for the text of the license) *)(************************************************************************)openNamesopenUnivopenSortstypeuniverse_binders=QVar.tId.Map.t*Level.tId.Map.ttyperev_binders=Id.tQVar.Map.t*Id.tLevel.Map.tletempty_binders=Id.Map.empty,Id.Map.emptyletempty_rev_binders=QVar.Map.empty,Level.Map.emptytypeuniv_name_list=lnamelist*lnamelistletqualid_of_level(_,ctx)l=matchLevel.namelwith|Someqid->(trySome(Nametab.shortest_qualid_of_universectxqid)withNot_found->None)|None->Noneletpr_level_with_global_universes?(binders=empty_binders)l=matchqualid_of_levelbinderslwith|Someqid->Libnames.pr_qualidqid|None->Level.raw_prlletqualid_of_quality(ctx,_)q=trySome(Nametab.Quality.shortest_qualid_gen(funid->Id.Map.memidctx)q)withNot_found->Noneletpr_quality_with_global_universes?(binders=empty_binders)q=matchqualid_of_qualitybindersqwith|Someqid->Libnames.pr_qualidqid|None->Sorts.Quality.raw_prqletquality_printerbinders={Sorts.Quality.prvar=(funq->pr_quality_with_global_universes~binders(QVarq));prglobal=(funq->pr_quality_with_global_universes~binders(QGlobalq));}letsort_printerbinders={Sorts.prq=quality_printerbinders;pru=(funu->pr_level_with_global_universes~bindersu);}