src/Pure/Syntax/syntax_phases.ML
changeset 80739 60801e5fae26
parent 80074 951c371c1cd9
child 80740 dad0cefb48dd
--- a/src/Pure/Syntax/syntax_phases.ML	Wed Aug 21 20:41:16 2024 +0200
+++ b/src/Pure/Syntax/syntax_phases.ML	Thu Aug 22 15:57:30 2024 +0200
@@ -468,7 +468,7 @@
     fun decode_appl ps asts = Ast.Appl (map (decode ps) asts)
     and decode ps (Ast.Constant c) = decode_const ps c
       | decode ps (Ast.Variable x) =
-          if is_some (Syntax.lookup_const syn x) orelse Long_Name.is_qualified x
+          if Syntax.is_const syn x orelse Long_Name.is_qualified x
           then decode_const ps x
           else decode_var ps x
       | decode ps (Ast.Appl (asts as (Ast.Constant c :: ast :: Ast.Variable x :: args))) =
@@ -803,7 +803,7 @@
     val thy = Proof_Context.theory_of ctxt;
     val syn = Proof_Context.syntax_of ctxt;
   in
-    unparse_t (term_to_ast (is_some o Syntax.lookup_const syn))
+    unparse_t (term_to_ast (Syntax.is_const syn))
       (Printer.pretty_term_ast (not (Pure_Thy.old_appl_syntax thy)))
       (Markup.language_term false) ctxt
   end;