Documentation

Lean.MonadEnv

def Lean.setEnv {m : TypeType} [inst : Lean.MonadEnv m] (env : Lean.Environment) :
Equations
def Lean.withEnv {m : TypeType} {α : Type} [inst : Monad m] [inst : MonadFinally m] [inst : Lean.MonadEnv m] (env : Lean.Environment) (x : m α) :
m α
Equations
def Lean.isInductive {m : TypeType} [inst : Monad m] [inst : Lean.MonadEnv m] (declName : Lean.Name) :
Equations
  • One or more equations did not get rendered due to their size.
def Lean.isRecCore (env : Lean.Environment) (declName : Lean.Name) :
Equations
def Lean.isRec {m : TypeType} [inst : Monad m] [inst : Lean.MonadEnv m] (declName : Lean.Name) :
Equations
@[inline]
def Lean.withoutModifyingEnv {m : TypeType} [inst : Monad m] [inst : Lean.MonadEnv m] [inst : MonadFinally m] {α : Type} (x : m α) :
m α
Equations
@[inline]
def Lean.withoutModifyingEnv' {m : TypeType} [inst : Monad m] [inst : Lean.MonadEnv m] [inst : MonadFinally m] {α : Type} (x : m α) :

Similar to withoutModifyingEnv, but also returns the updated environment

Equations
  • One or more equations did not get rendered due to their size.
@[inline]
def Lean.matchConst {m : TypeType} {α : Type} [inst : Monad m] [inst : Lean.MonadEnv m] (e : Lean.Expr) (failK : Unitm α) (k : Lean.ConstantInfoList Lean.Levelm α) :
m α
Equations
  • One or more equations did not get rendered due to their size.
@[inline]
def Lean.matchConstInduct {m : TypeType} {α : Type} [inst : Monad m] [inst : Lean.MonadEnv m] (e : Lean.Expr) (failK : Unitm α) (k : Lean.InductiveValList Lean.Levelm α) :
m α
Equations
@[inline]
def Lean.matchConstCtor {m : TypeType} {α : Type} [inst : Monad m] [inst : Lean.MonadEnv m] (e : Lean.Expr) (failK : Unitm α) (k : Lean.ConstructorValList Lean.Levelm α) :
m α
Equations
@[inline]
def Lean.matchConstRec {m : TypeType} {α : Type} [inst : Monad m] [inst : Lean.MonadEnv m] (e : Lean.Expr) (failK : Unitm α) (k : Lean.RecursorValList Lean.Levelm α) :
m α
Equations
def Lean.hasConst {m : TypeType} [inst : Monad m] [inst : Lean.MonadEnv m] (constName : Lean.Name) :
Equations
def Lean.mkAuxName {m : TypeType} [inst : Monad m] [inst : Lean.MonadEnv m] (baseName : Lean.Name) (idx : Nat) :
Equations
def Lean.getConstInfo {m : TypeType} [inst : Monad m] [inst : Lean.MonadEnv m] [inst : Lean.MonadError m] (constName : Lean.Name) :
Equations
  • One or more equations did not get rendered due to their size.
def Lean.mkConstWithLevelParams {m : TypeType} [inst : Monad m] [inst : Lean.MonadEnv m] [inst : Lean.MonadError m] (constName : Lean.Name) :
Equations
def Lean.getConstInfoDefn {m : TypeType} [inst : Monad m] [inst : Lean.MonadEnv m] [inst : Lean.MonadError m] (constName : Lean.Name) :
Equations
  • One or more equations did not get rendered due to their size.
def Lean.getConstInfoInduct {m : TypeType} [inst : Monad m] [inst : Lean.MonadEnv m] [inst : Lean.MonadError m] (constName : Lean.Name) :
Equations
  • One or more equations did not get rendered due to their size.
def Lean.getConstInfoCtor {m : TypeType} [inst : Monad m] [inst : Lean.MonadEnv m] [inst : Lean.MonadError m] (constName : Lean.Name) :
Equations
  • One or more equations did not get rendered due to their size.
def Lean.getConstInfoRec {m : TypeType} [inst : Monad m] [inst : Lean.MonadEnv m] [inst : Lean.MonadError m] (constName : Lean.Name) :
Equations
  • One or more equations did not get rendered due to their size.
@[inline]
def Lean.matchConstStruct {m : TypeType} {α : Type} [inst : Monad m] [inst : Lean.MonadEnv m] [inst : Lean.MonadError m] (e : Lean.Expr) (failK : Unitm α) (k : Lean.InductiveValList Lean.LevelLean.ConstructorValm α) :
m α
Equations
  • One or more equations did not get rendered due to their size.
unsafe def Lean.evalConst {m : TypeType} [inst : Monad m] [inst : Lean.MonadEnv m] [inst : Lean.MonadError m] [inst : Lean.MonadOptions m] (α : Type) (constName : Lean.Name) :
m α
Equations
unsafe def Lean.evalConstCheck {m : TypeType} [inst : Monad m] [inst : Lean.MonadEnv m] [inst : Lean.MonadError m] [inst : Lean.MonadOptions m] (α : Type) (typeName : Lean.Name) (constName : Lean.Name) :
m α
Equations
  • One or more equations did not get rendered due to their size.
def Lean.findModuleOf? {m : TypeType} [inst : Monad m] [inst : Lean.MonadEnv m] [inst : Lean.MonadError m] (declName : Lean.Name) :
Equations
  • One or more equations did not get rendered due to their size.
def Lean.isEnumType {m : TypeType} [inst : Monad m] [inst : Lean.MonadEnv m] [inst : Lean.MonadError m] (declName : Lean.Name) :
Equations
  • One or more equations did not get rendered due to their size.