158 the instantiated theorems of the locale are added to the theory or proof |
158 the instantiated theorems of the locale are added to the theory or proof |
159 context. Interpretation is smart in that already active interpretations |
159 context. Interpretation is smart in that already active interpretations |
160 do not occur in proof obligations, neither are instantiated theorems stored |
160 do not occur in proof obligations, neither are instantiated theorems stored |
161 in duplicate. |
161 in duplicate. |
162 Use print_interps to inspect active interpretations of a particular locale. |
162 Use print_interps to inspect active interpretations of a particular locale. |
|
163 |
|
164 * Locales: proper static binding of attribute syntax -- i.e. types / |
|
165 terms / facts mentioned as arguments are always those of the locale |
|
166 definition context, independently of the context of later |
|
167 invocations. Moreover, locale operations (renaming and type / term |
|
168 instantiation) are applied to attribute arguments as expected. |
|
169 |
|
170 INCOMPATIBILITY of the ML interface: always pass Attrib.src instead |
|
171 of actual attributes; rare situations may require Attrib.attribute |
|
172 to embed those attributes into Attrib.src that lack concrete syntax. |
|
173 |
|
174 Attribute implementations need to cooperate properly with the static |
|
175 binding mechanism. Basic parsers Args.XXX_typ/term/prop and |
|
176 Attrib.XXX_thm etc. already do the right thing without further |
|
177 intervention. Only unusual applications -- such as "where" or "of" |
|
178 (cf. src/Pure/Isar/attrib.ML), which process arguments depending |
|
179 both on the context and the facts involved -- may have to assign |
|
180 parsed values to argument tokens explicitly. |
|
181 |
|
182 * Attributes 'induct' and 'cases': type or set names may now be |
|
183 locally fixed variables as well. |
163 |
184 |
164 * Isar: new syntax 'name(i-j, i-, i, ...)' for referring to specific |
185 * Isar: new syntax 'name(i-j, i-, i, ...)' for referring to specific |
165 selections of theorems in named facts via indices. |
186 selections of theorems in named facts via indices. |
166 |
187 |
167 |
188 |