diff options
| author | Emilio Jesus Gallego Arias | 2019-06-06 13:21:48 +0200 |
|---|---|---|
| committer | Emilio Jesus Gallego Arias | 2019-06-24 20:55:09 +0200 |
| commit | b2aae7ba35a90e695d34f904c74f5156385344a9 (patch) | |
| tree | 20ab3a596f00e587309a578d5ba18689076a2185 /vernac/comAssumption.ml | |
| parent | 8b903319eae4d645f9385e8280d04d18a4f3a2bc (diff) | |
[api] Move `locality` from `library` to `vernac`.
This datatype does belong to this layer.
Diffstat (limited to 'vernac/comAssumption.ml')
| -rw-r--r-- | vernac/comAssumption.ml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vernac/comAssumption.ml b/vernac/comAssumption.ml index febe28879f..bf43438c1e 100644 --- a/vernac/comAssumption.ml +++ b/vernac/comAssumption.ml @@ -44,6 +44,7 @@ let should_axiom_into_instance = function | Definitional | Logical | Conjectural -> !axiom_into_instance let declare_assumption is_coe ~poly ~scope ~kind (c,ctx) pl imps impl nl {CAst.v=ident} = +let open DeclareDef in match scope with | Discharge -> let ctx = match ctx with @@ -123,6 +124,7 @@ let process_assumptions_udecls ~scope l = udecl, id | (_, ([], _))::_ | [] -> assert false in + let open DeclareDef in let () = match scope, udecl with | Discharge, Some _ -> let loc = first_id.CAst.loc in @@ -289,14 +291,14 @@ let context poly l = in let impl = List.exists test impls in let scope = - if Lib.sections_are_opened () then Discharge else Global ImportDefaultBehavior in + if Lib.sections_are_opened () then DeclareDef.Discharge else DeclareDef.Global ImportDefaultBehavior in let nstatus = match b with | None -> pi3 (declare_assumption false ~scope ~poly ~kind:Context (t, univs) UnivNames.empty_binders [] impl Declaremods.NoInline (CAst.make id)) | Some b -> let entry = Declare.definition_entry ~univs ~types:t b in - let _gr = DeclareDef.declare_definition ~name:id ~scope:Discharge ~kind:Definition UnivNames.empty_binders entry [] in + let _gr = DeclareDef.declare_definition ~name:id ~scope:DeclareDef.Discharge ~kind:Definition UnivNames.empty_binders entry [] in Lib.sections_are_opened () || Lib.is_modtype_strict () in status && nstatus |
