equal
deleted
inserted
replaced
136 let val att0 = att o Args.transform_values (Local_Theory.background_morphism lthy) in |
136 let val att0 = att o Args.transform_values (Local_Theory.background_morphism lthy) in |
137 lthy |
137 lthy |
138 |> Local_Theory.background_theory_result (define_global binding att0 comment) |
138 |> Local_Theory.background_theory_result (define_global binding att0 comment) |
139 |-> (fn name => |
139 |-> (fn name => |
140 Local_Theory.map_contexts (K transfer_attributes) |
140 Local_Theory.map_contexts (K transfer_attributes) |
141 #> Local_Theory.declaration {syntax = false, pervasive = false} (fn phi => fn context => |
141 #> Local_Theory.generic_alias Attributes.map binding name |
142 let |
|
143 val naming = Name_Space.naming_of context; |
|
144 val binding' = Morphism.binding phi binding; |
|
145 in Attributes.map (Name_Space.alias_table naming binding' name) context end) |
|
146 #> pair name) |
142 #> pair name) |
147 end; |
143 end; |
148 |
144 |
149 |
145 |
150 (* check *) |
146 (* check *) |