Debian Codegraph @

theories/Ltac2/Env.v

raw
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 From Ltac2 Require Import Init Std.
12
13 Ltac2 @ external get : ident list -> Std.reference option := "rocq-runtime.plugins.ltac2" "env_get".
14 (** Returns the global reference corresponding to the absolute name given as
15 argument if it exists. *)
16
17 Ltac2 @ external expand : ident list -> Std.reference list := "rocq-runtime.plugins.ltac2" "env_expand".
18 (** Returns the list of all global references whose absolute name contains
19 the argument list as a suffix. *)
20
21 Ltac2 @ external path : Std.reference -> ident list := "rocq-runtime.plugins.ltac2" "env_path".
22 (** Returns the absolute name of the given reference. Panics if the reference
23 does not exist. *)
24
25 Ltac2 @ external instantiate : Std.reference -> constr := "rocq-runtime.plugins.ltac2" "env_instantiate".
26 (** Returns a fresh instance of the corresponding reference, in particular
27 generating fresh universe variables and constraints when this reference is
28 universe-polymorphic. *)