-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathindex.mli
73 lines (48 loc) · 1.96 KB
/
index.mli
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
(* Copyright 2004 INRIA *)
(* $Id: index.mli,v 1.11 2010-04-20 12:01:12 doligez Exp $ *)
open Expr;;
(* ==== main formula list ==== *)
(* [add] and [remove] must be used in LIFO order *)
val add : expr -> int -> unit;;
val remove : expr -> unit;;
val member : expr -> bool;;
val get_goalness : expr -> int;;
val get_all : unit -> (expr * goalness) list;;
val find_pos : string -> (expr * goalness) list;;
val find_neg : string -> (expr * goalness) list;;
val find_eq_lr : expr -> expr list;;
val find_eq_rl : expr -> expr list;;
val find_eq : expr -> expr list;;
val find_neq : expr -> expr list;;
val find_eq_str : unit -> (expr * string) list;;
val find_str_eq : unit -> (expr * string) list;;
val is_meta_set : expr -> bool;;
(* ==== transitive relations ==== *)
type direction = Left | Right | Both;;
type head = Sym of string | Tau of expr | Meta of expr;;
val get_head : expr -> head;;
exception No_head;;
val add_trans : expr -> unit;;
val find_trans_left : expr -> head -> (expr * goalness) list;;
val find_trans_right : expr -> head -> (expr * goalness) list;;
val add_negtrans : expr -> unit;;
val find_negtrans_left : expr -> head -> (expr * goalness) list;;
val find_negtrans_right : expr -> head -> (expr * goalness) list;;
val find_all_negtrans_left : head -> (expr * goalness) list;;
val find_all_negtrans_right : head -> (expr * goalness) list;;
(* ==== proof cache ==== *)
val add_proof : Mlproof.proof -> unit;;
val search_proof : unit -> Mlproof.proof option;;
(* ==== definitions ==== *)
val add_def : definition -> unit;;
val has_def : string -> bool;;
val get_def : string -> definition * expr * expr list * expr;;
(* ==== depth of metavariables ==== *)
val add_meta : expr -> int -> unit;;
val remove_meta : expr -> unit;;
val get_meta : expr -> int;;
(* ==== numbering for formulas ==== *)
val get_number : expr -> int;;
val get_formula : int -> expr (* raises Not_found *);;
(* ==== numbering for tau-expressions ==== *)
val make_tau_name : expr -> string;;