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_1 → Type u_2} {β : Type u_1} [inst : Monad m] (lctx : Lean.LocalContext) (f : β → Lean.LocalDecl → m β) (init : β) (start : optParam Nat 0) :
m β
Equations
@[specialize]
def Lean.LocalContext.foldrM {m : Type u_1 → Type 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_1 → Type u_2} [inst : Monad m] (lctx : Lean.LocalContext) (f : Lean.LocalDecl → m PUnit) :
Equations
@[specialize]
def Lean.LocalContext.findDeclM? {m : Type u_1 → Type u_2} {β : Type u_1} [inst : Monad m] (lctx : Lean.LocalContext) (f : Lean.LocalDecl → m (Option β)) :
m (Option β)
Equations
@[specialize]
def Lean.LocalContext.findDeclRevM? {m : Type u_1 → Type u_2} {β : Type u_1} [inst : Monad m] (lctx : Lean.LocalContext) (f : Lean.LocalDecl → m (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.LocalDecl → Option β) :
Equations
Equations
@[inline]
Equations
@[inline]
def Lean.LocalContext.anyM {m : Type → Type u_1} [inst : Monad m] (lctx : Lean.LocalContext) (p : Lean.LocalDecl → m Bool) :
Equations
@[inline]
def Lean.LocalContext.allM {m : Type → Type u_1} [inst : Monad m] (lctx : Lean.LocalContext) (p : Lean.LocalDecl → m Bool) :
Equations
Equations
class Lean.MonadLCtx (m : Type → Type) :
Type
Instances
instance Lean.instMonadLCtx {m : Type → Type} {n : Type → Type} [inst : MonadLift m n] [inst : Lean.MonadLCtx m] :
Equations
  • Lean.instMonadLCtx = { getLCtx := liftM Lean.getLCtx }
Equations