Debian Codegraph @

tactics/btermdn.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 open Pattern
12
13 (** Discrimination nets with bounded depth. *)
14
15 (** This module registers actions (typically tactics) mapped to patterns *)
16
17 (** Patterns are stocked linearly as the list of its node in prefix
18 order in such a way patterns having the same prefix have this common
19 prefix shared and the seek for the action associated to the patterns
20 that a term matches are found in time proportional to the maximal
21 number of nodes of the patterns matching the term. The [TransparentState.t]
22 indicates which constants and variables can be considered as rigid.
23 These dnets are able to cope with existential variables as well, which match
24 [Everything]. *)
25
26 module Make :
27 functor (Z : Map.OrderedType) ->
28 sig
29 type t
30
31 type pattern
32
33 val pattern : Environ.env -> TransparentState.t option -> constr_pattern -> pattern
34 val pattern_syntactic : Environ.env -> constr_pattern -> pattern
35 val constr_pattern : Environ.env -> Evd.evar_map -> TransparentState.t option -> EConstr.t -> pattern
36
37 val empty : t
38
39 val add : t -> pattern -> Z.t -> t
40 val rmv : t -> pattern -> Z.t -> t
41
42 val lookup : Environ.env -> Evd.evar_map -> TransparentState.t option -> t -> EConstr.constr -> Z.t list
43 end
44
45 val dnet_depth : int ref