| 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 | open Constr |
| 13 | open Printer |
| 14 | |
| 15 | (** Collects all the objects on which terms directly rely, bypassing kernel |
| 16 | opacity, together with the recursive dependence DAG of objects. |
| 17 | |
| 18 | WARNING: some terms may not make sense in the environment, because they are |
| 19 | sealed inside opaque modules. Do not try to do anything fancy with those |
| 20 | terms apart from printing them, otherwise demons may fly out of your nose. |
| 21 | |
| 22 | NOTE: this function is used in the plugins paramcoq and metarocq. |
| 23 | *) |
| 24 | val traverse : |
| 25 | Global.indirect_accessor -> GlobRef.t list -> |
| 26 | (GlobRef.Set_env.t * GlobRef.Set_env.t option GlobRef.Map_env.t * |
| 27 | (GlobRef.t * Constr.rel_context * types) list GlobRef.Map_env.t) |
| 28 | |
| 29 | (** Collects all the assumptions (optionally including opaque definitions) |
| 30 | on which terms rely (together with their type). The above warning of |
| 31 | {!traverse} also applies. *) |
| 32 | val assumptions : |
| 33 | ?add_opaque:bool -> ?add_transparent:bool -> Global.indirect_accessor -> |
| 34 | TransparentState.t -> GlobRef.t list -> types ContextObjectMap.t |