| 1 | (************************************************************************) |
| 2 | (* * The Rocq Prover / The Rocq Development Team *) |
| 3 | (* v * Copyright INRIA, CNRS and contributors *) |
| 4 | (* <O___,, * (see version control and CREDITS file for authors & dates) *) |
| 5 | (* \VV/ **************************************************************) |
| 6 | (* // * This file is distributed under the terms of the *) |
| 7 | (* * GNU Lesser General Public License Version 2.1 *) |
| 8 | (* * (see LICENSE file for the text of the license) *) |
| 9 | (************************************************************************) |
| 10 | |
| 11 | open Names |
| 12 | |
| 13 | (** Also used by [Declare] for constants, [DeclareInd] for inductives, etc. |
| 14 | Containts [object_kind , id]. *) |
| 15 | exception AlreadyDeclared of (string option * Id.t) |
| 16 | |
| 17 | (** Internally used to declare names of universes from monomorphic |
| 18 | constants/inductives. Noop on polymorphic references. *) |
| 19 | val declare_univ_binders : GlobRef.t -> UState.named_universes_entry -> unit |
| 20 | |
| 21 | (** Internally used to name universes associated with no particular constant in a section. *) |
| 22 | val name_mono_section_univs : Univ.Level.Set.t -> unit |
| 23 | |
| 24 | (** Command [Universes]. *) |
| 25 | val do_universe : poly:bool -> lident list -> unit |
| 26 | |
| 27 | (** Command [Constraint]. *) |
| 28 | val do_constraint : poly:bool -> Constrexpr.sort_constraint_expr list -> unit |
| 29 | |
| 30 | val add_constraint_source : GlobRef.t -> Univ.ContextSet.t -> unit |
| 31 | |
| 32 | val constraint_sources : unit -> (GlobRef.t * Univ.UnivConstraints.t) list |
| 33 | (** Returns constraints associated to globrefs, newest first. *) |
| 34 | |
| 35 | (** Command [Sort]. *) |
| 36 | val do_sort : poly:bool -> lident list -> unit |