equal
deleted
inserted
replaced
263 val goal = List.nth (cprems_of st,i-1); |
263 val goal = List.nth (cprems_of st,i-1); |
264 val rule = DistinctTreeProver.distinct_implProver distinct_thm goal; |
264 val rule = DistinctTreeProver.distinct_implProver distinct_thm goal; |
265 in EVERY [rtac rule i] st |
265 in EVERY [rtac rule i] st |
266 end |
266 end |
267 |
267 |
268 fun tac ctxt = EVERY [NewLocale.intro_locales_tac true ctxt [], |
268 fun tac ctxt = EVERY [Locale.intro_locales_tac true ctxt [], |
269 ALLGOALS (SUBGOAL (solve_tac ctxt))] |
269 ALLGOALS (SUBGOAL (solve_tac ctxt))] |
270 |
270 |
271 in thy |
271 in thy |
272 |> prove_interpretation_in tac (name,parent_expr) |
272 |> prove_interpretation_in tac (name,parent_expr) |
273 end; |
273 end; |
427 |
427 |
428 fun interprete_parent (_, pname, rs) = |
428 fun interprete_parent (_, pname, rs) = |
429 let |
429 let |
430 val expr = ([(pname, (("",false), Expression.Positional rs))],[]) |
430 val expr = ([(pname, (("",false), Expression.Positional rs))],[]) |
431 in prove_interpretation_in |
431 in prove_interpretation_in |
432 (fn ctxt => NewLocale.intro_locales_tac false ctxt []) |
432 (fn ctxt => Locale.intro_locales_tac false ctxt []) |
433 (full_name, expr) end; |
433 (full_name, expr) end; |
434 |
434 |
435 fun declare_declinfo updates lthy phi ctxt = |
435 fun declare_declinfo updates lthy phi ctxt = |
436 let |
436 let |
437 fun upd_prf ctxt = |
437 fun upd_prf ctxt = |