src/Pure/Isar/locale.ML
changeset 30515 bca05b17b618
parent 30510 4120fc59dd85
child 30585 6b2ba4666336
equal deleted inserted replaced
30514:9455ecc7796d 30515:bca05b17b618
   485 fun intro_locales_tac eager ctxt facts st =
   485 fun intro_locales_tac eager ctxt facts st =
   486   Method.intros_tac
   486   Method.intros_tac
   487     (Witnesses.get ctxt @ Intros.get ctxt @ (if eager then Unfolds.get ctxt else [])) facts st;
   487     (Witnesses.get ctxt @ Intros.get ctxt @ (if eager then Unfolds.get ctxt else [])) facts st;
   488 
   488 
   489 val _ = Context.>> (Context.map_theory
   489 val _ = Context.>> (Context.map_theory
   490   (Method.add_methods
   490  (Method.setup (Binding.name "intro_locales") (Scan.succeed (METHOD o intro_locales_tac false))
   491     [("intro_locales",
   491     "back-chain introduction rules of locales without unfolding predicates" #>
   492       Method.ctxt_args (fn ctxt => METHOD (intro_locales_tac false ctxt)),
   492   Method.setup (Binding.name "unfold_locales") (Scan.succeed (METHOD o intro_locales_tac true))
   493       "back-chain introduction rules of locales without unfolding predicates"),
   493     "back-chain all introduction rules of locales"));
   494      ("unfold_locales",
   494 
   495       Method.ctxt_args (fn ctxt => METHOD (intro_locales_tac true ctxt)),
   495 end;
   496       "back-chain all introduction rules of locales")]));
   496 
   497 
       
   498 end;
       
   499