forked from HOL-Theorem-Prover/HOL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathKernelSig.sig
39 lines (32 loc) · 1.41 KB
/
KernelSig.sig
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
signature KernelSig =
sig
type kernelname = {Thy : string, Name : string}
val name_compare : kernelname * kernelname -> order
val name_toString : kernelname -> string
val name_toMLString : kernelname -> string
eqtype kernelid
val id_compare : kernelid * kernelid -> order
val name_of_id : kernelid -> kernelname
val id_toString : kernelid -> string
val new_id : kernelname -> kernelid
val uptodate_id : kernelid -> bool
val retire_id : kernelid -> unit
val name_of : kernelid -> string
val seg_of : kernelid -> string
type 'a symboltable
exception NotFound
val new_table : unit -> 'a symboltable
val insert : 'a symboltable * kernelname * 'a -> kernelid
val find : 'a symboltable * kernelname -> kernelid * 'a
val peek : 'a symboltable * kernelname -> (kernelid * 'a) option
val numItems : 'a symboltable -> int
val listItems : 'a symboltable -> (kernelname * (kernelid * 'a)) list
val listThy : 'a symboltable -> string -> (kernelname * (kernelid * 'a)) list
val listName : 'a symboltable -> string -> (kernelname * (kernelid * 'a)) list
val app : (kernelname * (kernelid * 'a) -> unit) -> 'a symboltable -> unit
val foldl : (kernelname * (kernelid * 'a) * 'b -> 'b) -> 'b ->
'a symboltable -> 'b
val retire_name : 'a symboltable * kernelname -> unit
val uptodate_name : 'a symboltable * kernelname -> bool
val del_segment : 'a symboltable * string -> unit
end