equal
deleted
inserted
replaced
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 |