Zulip Chat Archive
Stream: new members
Topic: Accessing shadowed names?
Martin Suda (Feb 26 2025 at 15:08):
Is there way to access Lean's true Nat
from the my_nat
namespace below, after the local Nat
has been defined?
namespace my_nat
inductive Nat : Type
| zero : Nat
| succ : Nat -> Nat
#print Nat
end my_nat
In C++, e.g., this could be something like ::Nat
or something like that.
Damiano Testa (Feb 26 2025 at 15:08):
You can prepend _root_.
, as in _root_.Nat
.
Martin Suda (Feb 26 2025 at 15:09):
Thank you!
Last updated: May 02 2025 at 03:31 UTC