Documentation

Lean.LocalContext

Equations
def Lean.mkLocalDeclEx (index : Nat) (fvarId : Lean.FVarId) (userName : Lean.Name) (type : Lean.Expr) (bi : Lean.BinderInfo) :
Equations
def Lean.mkLetDeclEx (index : Nat) (fvarId : Lean.FVarId) (userName : Lean.Name) (type : Lean.Expr) (val : Lean.Expr) :
Equations
Equations
Equations
Equations
Equations
Equations
Equations
Equations
Equations
Equations
Equations
Equations
Equations
Equations
Equations
Equations
Equations
Equations
Equations
Equations
def Lean.LocalContext.mkLetDecl (lctx : Lean.LocalContext) (fvarId : Lean.FVarId) (userName : Lean.Name) (type : Lean.Expr) (value : Lean.Expr) (nonDep : optParam Bool false) :
Equations
Equations
Equations
Equations
Equations
Equations
Equations
Equations
Equations
Equations
Equations
@[inline]
Equations
@[specialize]
def Lean.LocalContext.foldlM {m : Type u_1Type u_2} {β : Type u_1} [inst : Monad m] (lctx : Lean.LocalContext) (f : βLean.LocalDeclm β) (init : β) (start : optParam Nat 0) :
m β
Equations
@[specialize]
def Lean.LocalContext.foldrM {m : Type u_1Type u_2} {β : Type u_1} [inst : Monad m] (lctx : Lean.LocalContext) (f : Lean.LocalDeclβm β) (init : β) :
m β
Equations
@[specialize]
def Lean.LocalContext.forM {m : Type u_1Type u_2} [inst : Monad m] (lctx : Lean.LocalContext) (f : Lean.LocalDeclm PUnit) :
Equations
@[specialize]
def Lean.LocalContext.findDeclM? {m : Type u_1Type u_2} {β : Type u_1} [inst : Monad m] (lctx : Lean.LocalContext) (f : Lean.LocalDeclm (Option β)) :
m (Option β)
Equations
@[specialize]
def Lean.LocalContext.findDeclRevM? {m : Type u_1Type u_2} {β : Type u_1} [inst : Monad m] (lctx : Lean.LocalContext) (f : Lean.LocalDeclm (Option β)) :
m (Option β)
Equations
Equations
@[inline]
def Lean.LocalContext.foldl {β : Type u_1} (lctx : Lean.LocalContext) (f : βLean.LocalDeclβ) (init : β) (start : optParam Nat 0) :
β
Equations
@[inline]
def Lean.LocalContext.foldr {β : Type u_1} (lctx : Lean.LocalContext) (f : Lean.LocalDeclββ) (init : β) :
β
Equations
@[inline]
def Lean.LocalContext.findDecl? {β : Type u_1} (lctx : Lean.LocalContext) (f : Lean.LocalDeclOption β) :
Equations
Equations
@[inline]
Equations
@[inline]
def Lean.LocalContext.anyM {m : TypeType u_1} [inst : Monad m] (lctx : Lean.LocalContext) (p : Lean.LocalDeclm Bool) :
Equations
@[inline]
def Lean.LocalContext.allM {m : TypeType u_1} [inst : Monad m] (lctx : Lean.LocalContext) (p : Lean.LocalDeclm Bool) :
Equations
Equations
class Lean.MonadLCtx (m : TypeType) :
Type
Instances
instance Lean.instMonadLCtx {m : TypeType} {n : TypeType} [inst : MonadLift m n] [inst : Lean.MonadLCtx m] :
Equations
  • Lean.instMonadLCtx = { getLCtx := liftM Lean.getLCtx }
Equations