I do have the follow example:
locale A =
fixes x :: nat
locale B
begin
interpretation a: A 1 .
print_interps A
end
context B begin
print_interps A
end
The first print_interps A
will list my interpretation a
. The second (in the context of B
) says: no interpretations
I would assume, this is not expected?
To me, with the interpretation
keyword the interpretation is temporary (i.e., the interpretation will be lost after exiting the begin-end block), so that the current behaviour is expected. However, even if we replace interpretation
with sublocale
that introduces a permanent link between B and A the final print_interps A
still has no interpretations, which is not expected to me.
It probably worth raising this question in the mailing list.
Thank you Wenda
Last updated: Dec 21 2024 at 16:20 UTC