| 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 | (** Utility code for section variables handling in Proof using... *) |
| 12 | |
| 13 | (** At some point it would be good to make this abstract *) |
| 14 | type t = Names.Id.Set.t |
| 15 | |
| 16 | (** Process a [using] expression in definitions to provide the list of |
| 17 | used terms *) |
| 18 | val definition_using |
| 19 | : Environ.env |
| 20 | -> Evd.evar_map |
| 21 | -> fixnames:Names.Id.t list (* names of fixpoint occurring recursively, if any *) |
| 22 | -> using:Vernacexpr.section_subset_expr |
| 23 | -> terms:EConstr.constr list |
| 24 | -> t |
| 25 | |
| 26 | val name_set : Names.Id.t -> Vernacexpr.section_subset_expr -> unit |
| 27 | |
| 28 | val suggest_constant : Environ.env -> Names.Constant.t -> unit |
| 29 | |
| 30 | val suggest_variable : Environ.env -> Names.Id.t -> unit |
| 31 | |
| 32 | val get_default_proof_using : unit -> Vernacexpr.section_subset_expr option |
| 33 | |
| 34 | val proof_using_opt_name : string list |
| 35 | (** For the stm *) |
| 36 | |
| 37 | val using_from_string : string -> Vernacexpr.section_subset_expr |