-
Notifications
You must be signed in to change notification settings - Fork 1
/
wavl.mli
71 lines (44 loc) · 1.18 KB
/
wavl.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
type compareSpecT =
| CompEqT
| CompLtT
| CompGtT
type 'a sig0 = 'a
(* singleton inductive, whose constructor was exist *)
type a (* AXIOM TO BE REALIZED *)
val compare_spec : a -> a -> compareSpecT
type wavltree =
| Node of bool * a * wavltree * wavltree
| Missing
type findResult =
| Found
| NotFound
val find : a -> wavltree -> findResult
val setgap : wavltree -> bool -> wavltree
val getgap : wavltree -> bool
val isgap : wavltree -> bool -> bool
val isMissing : wavltree -> bool
val irot1 : wavltree -> a -> wavltree -> bool -> wavltree
val irot2 : wavltree -> a -> wavltree -> bool -> wavltree
type insertedHow =
| ISameK
| IWasMissing
| IHigherK
type insertResult =
| Inserted of wavltree * insertedHow
| FoundByInsert
val insert : a -> wavltree -> insertResult
type tryLoweringResult =
| TLlowered of wavltree
| TLtooLow
val tryLowering : wavltree -> tryLoweringResult
type deletedHow =
| DSameK
| DLowerK
val drot1 : wavltree -> a -> wavltree -> bool -> ( * )
val drot2 : wavltree -> a -> wavltree -> bool -> ( * )
val delmin : wavltree -> ( * )
val delmax : wavltree -> ( * )
type deleteResult =
| Deleted of ( * )
| DNotFound
val delete : a -> wavltree -> deleteResult