Revision 8cfa32bcc7b5a837876cf69e62c8f5b08ca1dce3 authored by Alley Stoughton on 29 March 2021, 13:09:27 UTC, committed by Pierre-Yves Strub on 03 March 2022, 09:50:40 UTC
1 parent 6199997
ecSection.mli
(* --------------------------------------------------------------------
* Copyright (c) - 2012--2016 - IMDEA Software Institute
* Copyright (c) - 2012--2021 - Inria
* Copyright (c) - 2012--2021 - Ecole Polytechnique
*
* Distributed under the terms of the CeCILL-C-V1 license
* -------------------------------------------------------------------- *)
(* -------------------------------------------------------------------- *)
open EcModules
open EcEnv
open EcTheory
(* -------------------------------------------------------------------- *)
exception SectionError of string
(* -------------------------------------------------------------------- *)
type sc_item =
| SC_th_item of theory_item
| SC_decl_mod of EcIdent.t * module_type * mod_restr
(* -------------------------------------------------------------------- *)
type scenv
val env : scenv -> env
val initial : env -> scenv
val add_item : theory_item -> scenv -> scenv
val add_decl_mod : EcIdent.t -> module_type -> mod_restr -> scenv -> scenv
val enter_section : EcSymbols.symbol option -> scenv -> scenv
val exit_section : EcSymbols.symbol option -> scenv -> scenv
type checked_ctheory = private ctheory
val enter_theory : EcSymbols.symbol -> EcTypes.is_local -> thmode -> scenv -> scenv
val exit_theory :
?clears:EcPath.path list ->
?pempty:[ `ClearOnly | `Full | `No ] ->
scenv -> EcSymbols.symbol * checked_ctheory option * scenv
val import : EcPath.path -> scenv -> scenv
val import_vars : EcPath.mpath -> scenv -> scenv
val add_th : import:import -> EcSymbols.symbol -> checked_ctheory -> scenv -> scenv
val require : EcSymbols.symbol -> checked_ctheory -> scenv -> scenv
val astop : scenv -> scenv
Computing file changes ...