src/Pure/Isar/local_theory.ML
changeset 73846 9447668d1b77
parent 72953 90ada01470cb
child 74333 a9b20bc32fa6
--- a/src/Pure/Isar/local_theory.ML	Wed Jun 09 18:04:21 2021 +0000
+++ b/src/Pure/Isar/local_theory.ML	Wed Jun 09 18:04:22 2021 +0000
@@ -253,6 +253,7 @@
 val operations_of = #operations o top_of;
 
 fun operation f lthy = f (operations_of lthy) lthy;
+fun operation1 f x = operation (fn ops => f ops x);
 fun operation2 f x y = operation (fn ops => f ops x y);
 
 
@@ -264,10 +265,9 @@
 val define_internal = operation2 #define true;
 val notes_kind = operation2 #notes;
 val declaration = operation2 #declaration;
-fun theory_registration registration =
-  assert_bottom #> operation (fn ops => #theory_registration ops registration);
+val theory_registration = operation1 #theory_registration;
 fun locale_dependency registration =
-  assert_bottom #> operation (fn ops => #locale_dependency ops registration);
+  assert_bottom #> operation1 #locale_dependency registration;
 
 
 (* theorems *)