src/HOL/Import/proof_kernel.ML
changeset 43895 09576fe8ef08
parent 43785 2bd54d4b5f3d
child 43918 6ca79a354c51
equal deleted inserted replaced
43894:182caf5cf0b6 43895:09576fe8ef08
   218           | G 4 f ctxt x = G 3 f (Config.put show_brackets true ctxt) x
   218           | G 4 f ctxt x = G 3 f (Config.put show_brackets true ctxt) x
   219           | G _ _ _ _ = raise SMART_STRING
   219           | G _ _ _ _ = raise SMART_STRING
   220         fun F n =
   220         fun F n =
   221             let
   221             let
   222                 val str = G n Syntax.string_of_term ctxt tn
   222                 val str = G n Syntax.string_of_term ctxt tn
   223                 val _ = warning (PolyML.makestring (n, str))
   223                 val _ = warning (@{make_string} (n, str))
   224                 val u = Syntax.parse_term ctxt str
   224                 val u = Syntax.parse_term ctxt str
   225                 val u = if t = t' then u else HOLogic.mk_Trueprop u
   225                 val u = if t = t' then u else HOLogic.mk_Trueprop u
   226                 val u = Syntax.check_term ctxt (Type.constraint T u)
   226                 val u = Syntax.check_term ctxt (Type.constraint T u)
   227             in
   227             in
   228                 if match u
   228                 if match u