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 (n.str s) = (Lean.Elab.Command.resolveNamespace ns n).mkStr s
- Lean.Elab.Command.resolveNamespace ns (n.num i) = (Lean.Elab.Command.resolveNamespace ns n).mkNum 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.