Documentation

Lean.MonadEnv

def Lean.setEnv {m : Type → Type} [inst : Lean.MonadEnv m] (env : Lean.Environment) :
Equations
def Lean.isInductive {m : Type → Type} [inst : Monad m] [inst : Lean.MonadEnv m] (declName : Lean.Name) :
Equations
def Lean.isRecCore (env : Lean.Environment) (declName : Lean.Name) :
Equations
def Lean.isRec {m : Type → Type} [inst : Monad m] [inst : Lean.MonadEnv m] (declName : Lean.Name) :
Equations
@[inline]
def Lean.withoutModifyingEnv {m : Type → Type} [inst : Monad m] [inst : Lean.MonadEnv m] [inst : MonadFinally m] {α : Type} (x : m α) :
m α
Equations
@[inline]
def Lean.matchConst {m : Type → Type} {α : Type} [inst : Monad m] [inst : Lean.MonadEnv m] (e : Lean.Expr) (failK : Unit → m α) (k : Lean.ConstantInfo → List Lean.Level → m α) :
m α
Equations
@[inline]
def Lean.matchConstInduct {m : Type → Type} {α : Type} [inst : Monad m] [inst : Lean.MonadEnv m] (e : Lean.Expr) (failK : Unit → m α) (k : Lean.InductiveVal → List Lean.Level → m α) :
m α
Equations
@[inline]
def Lean.matchConstCtor {m : Type → Type} {α : Type} [inst : Monad m] [inst : Lean.MonadEnv m] (e : Lean.Expr) (failK : Unit → m α) (k : Lean.ConstructorVal → List Lean.Level → m α) :
m α
Equations
@[inline]
def Lean.matchConstRec {m : Type → Type} {α : Type} [inst : Monad m] [inst : Lean.MonadEnv m] (e : Lean.Expr) (failK : Unit → m α) (k : Lean.RecursorVal → List Lean.Level → m α) :
m α
Equations
def Lean.hasConst {m : Type → Type} [inst : Monad m] [inst : Lean.MonadEnv m] (constName : Lean.Name) :
Equations
def Lean.mkAuxName {m : Type → Type} [inst : Monad m] [inst : Lean.MonadEnv m] (baseName : Lean.Name) (idx : Nat) :
Equations
def Lean.getConstInfo {m : Type → Type} [inst : Monad m] [inst : Lean.MonadEnv m] [inst : Lean.MonadError m] (constName : Lean.Name) :
Equations
def Lean.mkConstWithLevelParams {m : Type → Type} [inst : Monad m] [inst : Lean.MonadEnv m] [inst : Lean.MonadError m] (constName : Lean.Name) :
Equations
def Lean.getConstInfoInduct {m : Type → Type} [inst : Monad m] [inst : Lean.MonadEnv m] [inst : Lean.MonadError m] (constName : Lean.Name) :
Equations
def Lean.getConstInfoCtor {m : Type → Type} [inst : Monad m] [inst : Lean.MonadEnv m] [inst : Lean.MonadError m] (constName : Lean.Name) :
Equations
def Lean.getConstInfoRec {m : Type → Type} [inst : Monad m] [inst : Lean.MonadEnv m] [inst : Lean.MonadError m] (constName : Lean.Name) :
Equations
@[inline]
def Lean.matchConstStruct {m : Type → Type} {α : Type} [inst : Monad m] [inst : Lean.MonadEnv m] [inst : Lean.MonadError m] (e : Lean.Expr) (failK : Unit → m α) (k : Lean.InductiveVal → List Lean.Level → Lean.ConstructorVal → m α) :
m α
Equations
def Lean.addDecl {m : Type → Type} [inst : Monad m] [inst : Lean.MonadEnv m] [inst : Lean.MonadError m] [inst : Lean.MonadOptions m] (decl : Lean.Declaration) :
Equations
def Lean.compileDecl {m : Type → Type} [inst : Monad m] [inst : Lean.MonadEnv m] [inst : Lean.MonadError m] [inst : Lean.MonadOptions m] (decl : Lean.Declaration) :
Equations
def Lean.addAndCompile {m : Type → Type} [inst : Monad m] [inst : Lean.MonadEnv m] [inst : Lean.MonadError m] [inst : Lean.MonadOptions m] (decl : Lean.Declaration) :
Equations
unsafe def Lean.evalConst {m : Type → Type} [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 : Type → Type} [inst : Monad m] [inst : Lean.MonadEnv m] [inst : Lean.MonadError m] [inst : Lean.MonadOptions m] (α : Type) (typeName : Lean.Name) (constName : Lean.Name) :
m α
Equations
def Lean.findModuleOf? {m : Type → Type} [inst : Monad m] [inst : Lean.MonadEnv m] [inst : Lean.MonadError m] (declName : Lean.Name) :
Equations
def Lean.isEnumType {m : Type → Type} [inst : Monad m] [inst : Lean.MonadEnv m] [inst : Lean.MonadError m] (declName : Lean.Name) :
Equations