- isCandidateFn : Lean.Compiler.LCNF.LetDecl → Lean.FVarIdSet → Lean.Compiler.LCNF.CompilerM Bool
- included : Lean.FVarIdSet
Instances For
- toPull : Array Lean.Compiler.LCNF.LetDecl
Instances For
@[inline, reducible]
Equations
Instances For
@[inline]
def
Lean.Compiler.LCNF.PullLetDecls.withFVar
{α : Type}
(fvarId : Lean.FVarId)
(x : Lean.Compiler.LCNF.PullLetDecls.PullM α)
:
Equations
- Lean.Compiler.LCNF.PullLetDecls.withFVar fvarId x = withReader (fun ctx => { isCandidateFn := ctx.isCandidateFn, included := Lean.FVarIdSet.insert ctx.included fvarId }) x
Instances For
@[inline]
def
Lean.Compiler.LCNF.PullLetDecls.withParams
{α : Type}
(ps : Array Lean.Compiler.LCNF.Param)
(x : Lean.Compiler.LCNF.PullLetDecls.PullM α)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[inline]
def
Lean.Compiler.LCNF.PullLetDecls.withNewScope
{α : Type}
(x : Lean.Compiler.LCNF.PullLetDecls.PullM α)
:
Equations
- Lean.Compiler.LCNF.PullLetDecls.withNewScope x = withReader (fun ctx => { isCandidateFn := ctx.isCandidateFn, included := ∅ }) x
Instances For
def
Lean.Compiler.LCNF.PullLetDecls.withCheckpoint
(x : Lean.Compiler.LCNF.PullLetDecls.PullM Lean.Compiler.LCNF.Code)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
partial def
Lean.Compiler.LCNF.PullLetDecls.withCheckpoint.go
(c : Lean.Compiler.LCNF.Code)
(toPull : Array Lean.Compiler.LCNF.LetDecl)
(i : Nat)
(included : Lean.FVarIdSet)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Lean.Compiler.LCNF.PullLetDecls.PullM.run
{α : Type}
(x : Lean.Compiler.LCNF.PullLetDecls.PullM α)
(isCandidateFn : Lean.Compiler.LCNF.LetDecl → Lean.FVarIdSet → Lean.Compiler.LCNF.CompilerM Bool)
:
Equations
- Lean.Compiler.LCNF.PullLetDecls.PullM.run x isCandidateFn = StateRefT'.run' (x { isCandidateFn := isCandidateFn, included := ∅ }) { toPull := #[] }
Instances For
def
Lean.Compiler.LCNF.Decl.pullLetDecls
(decl : Lean.Compiler.LCNF.Decl)
(isCandidateFn : Lean.Compiler.LCNF.LetDecl → Lean.FVarIdSet → Lean.Compiler.LCNF.CompilerM Bool)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.