Documentation

Batteries.Lean.Meta.Inaccessible

def Lean.LocalContext.inaccessibleFVars (lctx : LocalContext) :
Array LocalDecl

Obtain the inaccessible fvars from the given local context. An fvar is inaccessible if (a) its user name is inaccessible or (b) it is shadowed by a later fvar with the same user name.

Equations
  • One or more equations did not get rendered due to their size.
Instances For
    def Lean.Meta.getInaccessibleFVars {m : TypeType} [Monad m] [MonadLCtx m] :
    m (Array LocalDecl)

    Obtain the inaccessible fvars from the current local context. An fvar is inaccessible if (a) its user name is inaccessible or (b) it is shadowed by a later fvar with the same user name.

    Equations
    Instances For
      def Lean.MVarId.renameInaccessibleFVars (mvarId : MVarId) :
      MetaM (MVarId × Array FVarId)

      Rename all inaccessible fvars. An fvar is inaccessible if (a) its user name is inaccessible or (b) it is shadowed by a later fvar with the same user name. This function gives all inaccessible fvars a unique, accessible user name. It returns the new goal and the fvars that were renamed.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For