equal
deleted
inserted
replaced
114 (string * term) list -> (string * term) list -> theory -> theory |
114 (string * term) list -> (string * term) list -> theory -> theory |
115 val open_locale: xstring -> theory -> theory |
115 val open_locale: xstring -> theory -> theory |
116 val close_locale: xstring -> theory -> theory |
116 val close_locale: xstring -> theory -> theory |
117 val print_scope: theory -> unit |
117 val print_scope: theory -> unit |
118 val read_cterm: Sign.sg -> string * typ -> cterm |
118 val read_cterm: Sign.sg -> string * typ -> cterm |
119 val setup: (theory -> theory) list |
|
120 end; |
119 end; |
121 |
120 |
122 structure Goals: GOALS = |
121 structure Goals: GOALS = |
123 struct |
122 struct |
124 |
123 |
214 end; |
213 end; |
215 end; |
214 end; |
216 |
215 |
217 |
216 |
218 structure LocalesData = TheoryDataFun(LocalesArgs); |
217 structure LocalesData = TheoryDataFun(LocalesArgs); |
|
218 val _ = Context.add_setup [LocalesData.init]; |
219 val print_locales = LocalesData.print; |
219 val print_locales = LocalesData.print; |
220 |
220 |
221 |
221 |
222 (* access locales *) |
222 (* access locales *) |
223 |
223 |
623 val nosyn = List.concat (map #nosyn locale_list); |
623 val nosyn = List.concat (map #nosyn locale_list); |
624 val str_list = (collect_consts sign) \\ nosyn |
624 val str_list = (collect_consts sign) \\ nosyn |
625 in Sign.pretty_term sign o (const_ssubst_list str_list) |
625 in Sign.pretty_term sign o (const_ssubst_list str_list) |
626 end |
626 end |
627 else Sign.pretty_term sign; |
627 else Sign.pretty_term sign; |
628 |
|
629 |
|
630 (** locale theory setup **) |
|
631 |
|
632 val setup = |
|
633 [LocalesData.init]; |
|
634 |
628 |
635 |
629 |
636 |
630 |
637 (*** Goal package ***) |
631 (*** Goal package ***) |
638 |
632 |