Documentation

Mathlib.Util.WithWeakNamespace

Defines with_weak_namespace command. #

Changes the current namespace without causing scoped things to go out of scope.

def Lean.Elab.Command.resolveNamespace (ns : Name) :
Name → Name

Adds the name to the namespace, _root_-aware.

resolveNamespace `A `B.b == `A.B.b
resolveNamespace `A `_root_.B.c == `B.c
Instances For
    def Lean.Elab.Command.withWeakNamespace {α : Type} (ns : Name) (m : CommandElabM α) :
    CommandElabM α

    Changes the current namespace without causing scoped things to go out of scope

    Instances For

      Changes the current namespace without causing scoped things to go out of scope

      Instances For