equal
deleted
inserted
replaced
679 val ((statement, intro, axioms), thy') = |
679 val ((statement, intro, axioms), thy') = |
680 thy |
680 thy |
681 |> def_pred abinding parms defs' exts exts'; |
681 |> def_pred abinding parms defs' exts exts'; |
682 val (_, thy'') = |
682 val (_, thy'') = |
683 thy' |
683 thy' |
684 |> Sign.mandatory_path (Binding.name_of abinding) |
684 |> Sign.qualified_path true abinding |
685 |> PureThy.note_thmss "" |
685 |> PureThy.note_thmss "" |
686 [((Binding.conceal (Binding.name introN), []), [([intro], [Locale.unfold_add])])] |
686 [((Binding.conceal (Binding.name introN), []), [([intro], [Locale.unfold_add])])] |
687 ||> Sign.restore_naming thy'; |
687 ||> Sign.restore_naming thy'; |
688 in (SOME statement, SOME intro, axioms, thy'') end; |
688 in (SOME statement, SOME intro, axioms, thy'') end; |
689 val (b_pred, b_intro, b_axioms, thy'''') = |
689 val (b_pred, b_intro, b_axioms, thy'''') = |
693 val ((statement, intro, axioms), thy''') = |
693 val ((statement, intro, axioms), thy''') = |
694 thy'' |
694 thy'' |
695 |> def_pred binding parms defs' (ints @ the_list a_pred) (ints' @ the_list a_pred); |
695 |> def_pred binding parms defs' (ints @ the_list a_pred) (ints' @ the_list a_pred); |
696 val (_, thy'''') = |
696 val (_, thy'''') = |
697 thy''' |
697 thy''' |
698 |> Sign.mandatory_path (Binding.name_of binding) |
698 |> Sign.qualified_path true binding |
699 |> PureThy.note_thmss "" |
699 |> PureThy.note_thmss "" |
700 [((Binding.conceal (Binding.name introN), []), [([intro], [Locale.intro_add])]), |
700 [((Binding.conceal (Binding.name introN), []), [([intro], [Locale.intro_add])]), |
701 ((Binding.conceal (Binding.name axiomsN), []), |
701 ((Binding.conceal (Binding.name axiomsN), []), |
702 [(map (Drule.export_without_context o Element.conclude_witness) axioms, [])])] |
702 [(map (Drule.export_without_context o Element.conclude_witness) axioms, [])])] |
703 ||> Sign.restore_naming thy'''; |
703 ||> Sign.restore_naming thy'''; |