Join points that are in scope.
jps : Lean.FVarIdSetVariables and local functions in scope
vars : Lean.FVarIdSet
Instances For
All free variables found
all : Lean.FVarIdHashSet
Instances For
@[inline]
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.
Equations
- Lean.Compiler.LCNF.Check.checkParams params = Array.forM Lean.Compiler.LCNF.Check.checkParam params 0 (Array.size params)
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.
@[inline]
def
Lean.Compiler.LCNF.Check.withFVarId
{α : Type}
(fvarId : Lean.FVarId)
(x : Lean.Compiler.LCNF.Check.CheckM α)
:
Equations
- Lean.Compiler.LCNF.Check.withFVarId fvarId x = do Lean.Compiler.LCNF.Check.addFVarId fvarId withReader (fun ctx => { jps := ctx.jps, vars := Lean.RBTree.insert ctx.vars fvarId }) x
@[inline]
def
Lean.Compiler.LCNF.Check.withJp
{α : Type}
(fvarId : Lean.FVarId)
(x : Lean.Compiler.LCNF.Check.CheckM α)
:
Equations
- Lean.Compiler.LCNF.Check.withJp fvarId x = do Lean.Compiler.LCNF.Check.addFVarId fvarId withReader (fun ctx => { jps := Lean.RBTree.insert ctx.jps fvarId, vars := ctx.vars }) x
@[inline]
def
Lean.Compiler.LCNF.Check.withParams
{α : Type}
(params : Array Lean.Compiler.LCNF.Param)
(x : Lean.Compiler.LCNF.Check.CheckM α)
:
Equations
- One or more equations did not get rendered due to their size.
partial def
Lean.Compiler.LCNF.Check.checkFunDeclCore
(declName : Lean.Name)
(type : Lean.Expr)
(params : Array Lean.Compiler.LCNF.Param)
(value : Lean.Compiler.LCNF.Code)
:
Equations
- One or more equations did not get rendered due to their size.
Equations
- Lean.Compiler.LCNF.Decl.check decl = Lean.Compiler.LCNF.Check.run (Lean.Compiler.LCNF.Check.checkFunDeclCore decl.name decl.type decl.params decl.value)
Check whether every local declaration in the local context is used in one of given decls
.
Equations
- One or more equations did not get rendered due to their size.
Equations
- Lean.Compiler.LCNF.checkDeadLocalDecls.visitFVar fvarId = modify fun a => Lean.HashSet.insert a fvarId