summaryrefslogtreecommitdiff
path: root/toplevel/libtypes.mli
blob: f3839ec1a2e974224ec9af9a888d6ae82e002d99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
(************************************************************************)
(*  v      *   The Coq Proof Assistant  /  The Coq Development Team     *)
(* <O___,, *   INRIA - CNRS - LIX - LRI - PPS - Copyright 1999-2010     *)
(*   \VV/  **************************************************************)
(*    //   *      This file is distributed under the terms of the       *)
(*         *       GNU Lesser General Public License Version 2.1        *)
(************************************************************************)

(* $Id:$ *)

(*i*)
open Term
(*i*)

(*
 * Persistent library of all declared object,
 * indexed by their types (uses Dnets)
 *)

(* results are the reference of the object, together with a context
(constr+evar) and a substitution under this context *)
type result = Libnames.global_reference * (constr*existential_key) * Termops.subst

(* this is the reduction function used in the indexing process *)
val reduce : types -> types

(* The different types of search available.
 * See term_dnet.mli for more explanations *)
val search_pattern : types -> result list
val search_concl : types -> result list
val search_head_concl : types -> result list
val search_eq_concl : constr -> types -> result list