Debian Codegraph @

plugins/ltac2/tac2dyn.mli

raw symbols SCIP
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 (** Dynamic arguments for Ltac2. *)
12
13 module Arg :
14 sig
15 type ('a, 'b) tag
16 val create : string -> ('a, 'b) tag
17 val eq : ('a1, 'b1) tag -> ('a2, 'b2) tag -> ('a1 * 'b1, 'a2 * 'b2) CSig.eq option
18 val repr : ('a, 'b) tag -> string
19 type glb = Glb : (_,'a) tag * 'a -> glb
20 end
21 (** Arguments that are part of an AST. *)
22
23 module type Param = sig type ('raw, 'glb) t end
24
25 module ArgMap (M : Param) :
26 sig
27 type _ pack = Pack : ('raw, 'glb) M.t -> ('raw * 'glb) pack
28 type t
29 val empty : t
30 val add : ('a, 'b) Arg.tag -> ('a * 'b) pack -> t -> t
31 val remove : ('a, 'b) Arg.tag -> t -> t
32 val find : ('a, 'b) Arg.tag -> t -> ('a * 'b) pack
33 val mem : ('a, 'b) Arg.tag -> t -> bool
34 end
35
36 module Val : Dyn.S
37 (** Toplevel values *)