Defines with_weak_namespace
command. #
Changes the current namespace without causing scoped things to go out of scope.
Adds the name to the namespace, _root_
-aware.
resolveNamespace `A `B.b == `A.B.b
resolveNamespace `A `_root_.B.c == `B.c
Equations
- Lean.Elab.Command.resolveNamespace ns `_root_ = Lean.Name.anonymous
- Lean.Elab.Command.resolveNamespace ns (Lean.Name.str n s) = Lean.Name.mkStr (Lean.Elab.Command.resolveNamespace ns n) s
- Lean.Elab.Command.resolveNamespace ns (Lean.Name.num n i) = Lean.Name.mkNum (Lean.Elab.Command.resolveNamespace ns n) i
- Lean.Elab.Command.resolveNamespace ns Lean.Name.anonymous = ns
Instances For
def
Lean.Elab.Command.withWeakNamespace
{α : Type}
(ns : Lean.Name)
(m : Lean.Elab.Command.CommandElabM α)
:
Changes the current namespace without causing scoped things to go out of scope
Equations
- One or more equations did not get rendered due to their size.
Instances For
Changes the current namespace without causing scoped things to go out of scope
Equations
- One or more equations did not get rendered due to their size.