(************************************************************************) (* * The Coq Proof Assistant / The Coq Development Team *) (* v * INRIA, CNRS and contributors - Copyright 1999-2019 *) (* Univ.LSet.empty, [], None | Some (ty,impls) -> EConstr.universes_of_constr evd ty, impls, Some (EConstr.to_constr evd ty) in let evd = Evd.restrict_universe_context evd uvars in let uctx = UState.check_mono_univ_decl (Evd.evar_universe_context evd) UState.default_univ_decl in let entry = Entries.{ prim_entry_type = typopt; prim_entry_univs = uctx; prim_entry_content = prim; } in let _kn : Names.Constant.t = Declare.declare_constant ~name:id.CAst.v ~kind:Decls.IsPrimitive (Declare.PrimitiveEntry entry) in Flags.if_verbose Feedback.msg_info Pp.(Names.Id.print id.CAst.v ++ str " is declared")