aboutsummaryrefslogtreecommitdiff
path: root/spartan/core/lib.ML
diff options
context:
space:
mode:
authorJosh Chen2020-07-16 16:46:09 +0200
committerJosh Chen2020-07-16 16:46:09 +0200
commit3bcaf5d1c40b513f8e4590f7d38d3eef8393092e (patch)
tree020b56710e1f1cd86c1b97a0c5ca6c689c30fb55 /spartan/core/lib.ML
parent2a2fa1e4c643b73165af030dc3b6128886f7b654 (diff)
Checkpoint. THIS BUILD WILL FAIL
Diffstat (limited to '')
-rw-r--r--spartan/core/lib.ML3
1 files changed, 3 insertions, 0 deletions
diff --git a/spartan/core/lib.ML b/spartan/core/lib.ML
index 615f601..7b93a08 100644
--- a/spartan/core/lib.ML
+++ b/spartan/core/lib.ML
@@ -7,6 +7,7 @@ val maxint: int list -> int
(*Terms*)
val is_rigid: term -> bool
+val no_vars: term -> bool
val dest_eq: term -> term * term
val mk_Var: string -> int -> typ -> term
val lambda_var: term -> term -> term
@@ -50,6 +51,8 @@ val maxint = max (op >)
val is_rigid = not o is_Var o head_of
+val no_vars = not o exists_subterm is_Var
+
fun dest_eq (Const (\<^const_name>\<open>Pure.eq\<close>, _) $ t $ def) = (t, def)
| dest_eq _ = error "dest_eq"