aboutsummaryrefslogtreecommitdiffhomepage
path: root/hol-light/TacticRecording/mldata.ml
diff options
context:
space:
mode:
Diffstat (limited to 'hol-light/TacticRecording/mldata.ml')
-rw-r--r--hol-light/TacticRecording/mldata.ml33
1 files changed, 33 insertions, 0 deletions
diff --git a/hol-light/TacticRecording/mldata.ml b/hol-light/TacticRecording/mldata.ml
new file mode 100644
index 00000000..b547a89b
--- /dev/null
+++ b/hol-light/TacticRecording/mldata.ml
@@ -0,0 +1,33 @@
+
+
+type mlarg =
+ Mlint of int
+ | Mlstring of string
+ | Mlterm of term
+ | Mltype of hol_type
+ | Mlthm of mldata
+ | Mlpair of mlarg * mlarg
+ | Mllist of mlarg list
+ | Mlfn of mldata
+
+and mldata = string * mlarg list;; (* ML object name and args *)
+
+
+type label =
+ Tactical of mldata
+ | Label of string;;
+
+
+(* Atomic tests *)
+
+let is_atomic_mlarg arg =
+ match arg with
+ Mlthm (_,(_::_)) | Mlpair _ | Mlfn (_, _::_) -> false
+ | _ -> true;;
+
+let is_atomic_mldata ((x,args):mldata) = (is_empty args);;
+
+
+(* active_info *)
+
+let active_info = ("...",[]);;