equal
deleted
inserted
replaced
76 orelse same_shape); |
76 orelse same_shape); |
77 in |
77 in |
78 not is_canonical_class ? Generic_Target.generic_const same_shape prmode ((b', mx), rhs') |
78 not is_canonical_class ? Generic_Target.generic_const same_shape prmode ((b', mx), rhs') |
79 end) #> |
79 end) #> |
80 Generic_Target.const_declaration |
80 Generic_Target.const_declaration |
81 (fn this_level => fn level => level <> 0 andalso level <> this_level) prmode ((b, mx), rhs); |
81 (fn (this, other) => other <> 0 andalso this <> other) prmode ((b, mx), rhs); |
82 |
82 |
83 |
83 |
84 (* define *) |
84 (* define *) |
85 |
85 |
86 fun locale_foundation ta (((b, U), mx), (b_def, rhs)) params = |
86 fun locale_foundation ta (((b, U), mx), (b_def, rhs)) params = |
129 if target = "" then Generic_Target.theory_declaration decl lthy |
129 if target = "" then Generic_Target.theory_declaration decl lthy |
130 else |
130 else |
131 lthy |
131 lthy |
132 |> pervasive ? Generic_Target.background_declaration decl |
132 |> pervasive ? Generic_Target.background_declaration decl |
133 |> Generic_Target.locale_declaration target syntax decl |
133 |> Generic_Target.locale_declaration target syntax decl |
134 |> Generic_Target.standard_declaration (fn _ => fn level => level <> 0) decl; |
134 |> Generic_Target.standard_declaration (fn (_, other) => other <> 0) decl; |
135 |
135 |
136 |
136 |
137 (* subscription *) |
137 (* subscription *) |
138 |
138 |
139 fun target_subscription (Target {target, ...}) = |
139 fun target_subscription (Target {target, ...}) = |