Zulip Chat Archive
Stream: lean4
Topic: open not opening a namespace
Michael Stoll (Dec 31 2024 at 19:46):
Is the following behavior intended?
def A.foo : Nat := 37
namespace B.A
open A
/- unknown identifier 'foo' -/
#check foo
I would expect open A
to open _root_.A
even though the current namespace ends with .A
.
Michael Stoll (Dec 31 2024 at 19:48):
Compare with
def A.foo : Nat := 37
namespace B
open A
/- A.foo : Nat -/
#check foo
Kyle Miller (Dec 31 2024 at 20:55):
I'm a bit surprised by this, because when I last read the open
source code, open A
opens all namespaces that A
resolves to.
Last updated: May 02 2025 at 03:31 UTC