equal
deleted
inserted
replaced
139 |
139 |
140 fun begin_theory name imports = |
140 fun begin_theory name imports = |
141 let |
141 let |
142 val thy = Context.begin_thy Syntax.pp_global name imports; |
142 val thy = Context.begin_thy Syntax.pp_global name imports; |
143 val wrappers = begin_wrappers thy; |
143 val wrappers = begin_wrappers thy; |
144 in thy |> Sign.local_path |> apply_wrappers wrappers end; |
144 in |
|
145 thy |
|
146 |> Sign.local_path |
|
147 |> Sign.map_naming (Name_Space.set_theory_name name) |
|
148 |> apply_wrappers wrappers |
|
149 end; |
145 |
150 |
146 fun end_theory thy = |
151 fun end_theory thy = |
147 thy |> apply_wrappers (end_wrappers thy) |> Context.finish_thy; |
152 thy |> apply_wrappers (end_wrappers thy) |> Context.finish_thy; |
148 |
153 |
149 |
154 |