aboutsummaryrefslogtreecommitdiffhomepage
path: root/tactics/termdn.mli
blob: 95cfc62438eb76c0e4f665e3daa4f5d06300e21e (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

(* $Id$ *)

(*i*)
open Generic
open Term
(*i*)
  
(* Discrimination nets of terms. *)

type lbl =
  | TERM of constr
  | DOPER of sorts oper
  | DLAMBDA

type 'a t = (lbl,constr,'a) Dn.t

val create : unit -> 'a t

val add : 'a t -> (constr * 'a) -> 'a t
val rmv : 'a t -> (constr * 'a) -> 'a t

val lookup : 'a t -> constr -> (constr * 'a) list
val app : ((constr * 'a) -> unit) -> 'a t -> unit

val constr_pat_discr : constr -> (lbl * constr list) option
val constr_val_discr : constr -> (lbl * constr list) option