src/Pure/Isar/locale.ML
changeset 53171 a5e54d4d9081
parent 53087 5a1dcda7967c
child 54795 e58623a33ba5
equal deleted inserted replaced
53170:96f7adb55d72 53171:a5e54d4d9081
   611     (get_witnesses ctxt @ get_intros ctxt @ (if eager then get_unfolds ctxt else []));
   611     (get_witnesses ctxt @ get_intros ctxt @ (if eager then get_unfolds ctxt else []));
   612 
   612 
   613 val intro_locales_tac = gen_intro_locales_tac Method.intros_tac;
   613 val intro_locales_tac = gen_intro_locales_tac Method.intros_tac;
   614 val try_intro_locales_tac= gen_intro_locales_tac Method.try_intros_tac;
   614 val try_intro_locales_tac= gen_intro_locales_tac Method.try_intros_tac;
   615 
   615 
   616 val _ = Context.>> (Context.map_theory
   616 val _ = Theory.setup
   617  (Method.setup (Binding.name "intro_locales") (Scan.succeed (METHOD o try_intro_locales_tac false))
   617  (Method.setup (Binding.name "intro_locales") (Scan.succeed (METHOD o try_intro_locales_tac false))
   618     "back-chain introduction rules of locales without unfolding predicates" #>
   618     "back-chain introduction rules of locales without unfolding predicates" #>
   619   Method.setup (Binding.name "unfold_locales") (Scan.succeed (METHOD o try_intro_locales_tac true))
   619   Method.setup (Binding.name "unfold_locales") (Scan.succeed (METHOD o try_intro_locales_tac true))
   620     "back-chain all introduction rules of locales"));
   620     "back-chain all introduction rules of locales");
   621 
   621 
   622 
   622 
   623 (*** diagnostic commands and interfaces ***)
   623 (*** diagnostic commands and interfaces ***)
   624 
   624 
   625 fun print_locales thy =
   625 fun print_locales thy =