src/HOL/Import/proof_kernel.ML
changeset 37145 01aa36932739
parent 36960 01594f816e3a
child 37146 f652333bbf8e
equal deleted inserted replaced
37144:fd6308b4df72 37145:01aa36932739
   227         fun F n =
   227         fun F n =
   228             let
   228             let
   229                 val str =
   229                 val str =
   230                   setmp_CRITICAL show_brackets false (G n (Syntax.string_of_term ctxt o term_of)) ct
   230                   setmp_CRITICAL show_brackets false (G n (Syntax.string_of_term ctxt o term_of)) ct
   231                 val u = Syntax.parse_term ctxt str
   231                 val u = Syntax.parse_term ctxt str
   232                   |> TypeInfer.constrain T |> Syntax.check_term ctxt
   232                   |> Type_Infer.constrain T |> Syntax.check_term ctxt
   233             in
   233             in
   234                 if match u
   234                 if match u
   235                 then quote str
   235                 then quote str
   236                 else F (n+1)
   236                 else F (n+1)
   237             end
   237             end