- mapFVarM {m : Type → Type} [MonadLiftT Lean.Compiler.LCNF.CompilerM m] [Monad m] (f : Lean.FVarId → m Lean.FVarId) (val : α) : m α
Instances
partial def
Lean.Compiler.LCNF.Expr.mapFVarM
{m : Type → Type u_1}
[MonadLiftT Lean.Compiler.LCNF.CompilerM m]
[Monad m]
(f : Lean.FVarId → m Lean.FVarId)
(e : Lean.Expr)
:
partial def
Lean.Compiler.LCNF.Expr.forFVarM
{m : Type → Type u_1}
[Monad m]
(f : Lean.FVarId → m Unit)
(e : Lean.Expr)
:
m Unit
Equations
- One or more equations did not get rendered due to their size.
def
Lean.Compiler.LCNF.Arg.mapFVarM
{m : Type → Type}
[MonadLiftT Lean.Compiler.LCNF.CompilerM m]
[Monad m]
(f : Lean.FVarId → m Lean.FVarId)
(arg : Lean.Compiler.LCNF.Arg)
:
Equations
- Lean.Compiler.LCNF.Arg.mapFVarM f Lean.Compiler.LCNF.Arg.erased = pure Lean.Compiler.LCNF.Arg.erased
- Lean.Compiler.LCNF.Arg.mapFVarM f (Lean.Compiler.LCNF.Arg.type e) = do let __do_lift ← Lean.Compiler.LCNF.mapFVarM f e pure ((Lean.Compiler.LCNF.Arg.type e).updateType! __do_lift)
- Lean.Compiler.LCNF.Arg.mapFVarM f (Lean.Compiler.LCNF.Arg.fvar fvarId) = do let __do_lift ← f fvarId pure ((Lean.Compiler.LCNF.Arg.fvar fvarId).updateFVar! __do_lift)
Instances For
def
Lean.Compiler.LCNF.Arg.forFVarM
{m : Type → Type}
[Monad m]
(f : Lean.FVarId → m Unit)
(arg : Lean.Compiler.LCNF.Arg)
:
m Unit
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
def
Lean.Compiler.LCNF.LetValue.mapFVarM
{m : Type → Type}
[MonadLiftT Lean.Compiler.LCNF.CompilerM m]
[Monad m]
(f : Lean.FVarId → m Lean.FVarId)
(e : Lean.Compiler.LCNF.LetValue)
:
Equations
- One or more equations did not get rendered due to their size.
- Lean.Compiler.LCNF.LetValue.mapFVarM f (Lean.Compiler.LCNF.LetValue.value value) = pure (Lean.Compiler.LCNF.LetValue.value value)
- Lean.Compiler.LCNF.LetValue.mapFVarM f Lean.Compiler.LCNF.LetValue.erased = pure Lean.Compiler.LCNF.LetValue.erased
Instances For
def
Lean.Compiler.LCNF.LetValue.forFVarM
{m : Type → Type}
[Monad m]
(f : Lean.FVarId → m Unit)
(e : Lean.Compiler.LCNF.LetValue)
:
m Unit
Equations
- Lean.Compiler.LCNF.LetValue.forFVarM f (Lean.Compiler.LCNF.LetValue.value value) = pure ()
- Lean.Compiler.LCNF.LetValue.forFVarM f Lean.Compiler.LCNF.LetValue.erased = pure ()
- Lean.Compiler.LCNF.LetValue.forFVarM f (Lean.Compiler.LCNF.LetValue.proj typeName idx fvarId) = f fvarId
- Lean.Compiler.LCNF.LetValue.forFVarM f (Lean.Compiler.LCNF.LetValue.const declName us args) = Array.forM (Lean.Compiler.LCNF.forFVarM f) args
- Lean.Compiler.LCNF.LetValue.forFVarM f (Lean.Compiler.LCNF.LetValue.fvar fvarId args) = do f fvarId Array.forM (Lean.Compiler.LCNF.forFVarM f) args
Instances For
Equations
- One or more equations did not get rendered due to their size.
def
Lean.Compiler.LCNF.LetDecl.mapFVarM
{m : Type → Type}
[MonadLiftT Lean.Compiler.LCNF.CompilerM m]
[Monad m]
(f : Lean.FVarId → m Lean.FVarId)
(decl : Lean.Compiler.LCNF.LetDecl)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Lean.Compiler.LCNF.LetDecl.forFVarM
{m : Type → Type}
[Monad m]
(f : Lean.FVarId → m Unit)
(decl : Lean.Compiler.LCNF.LetDecl)
:
m Unit
Equations
- Lean.Compiler.LCNF.LetDecl.forFVarM f decl = do Lean.Compiler.LCNF.Expr.forFVarM f decl.type Lean.Compiler.LCNF.LetValue.forFVarM f decl.value
Instances For
Equations
- One or more equations did not get rendered due to their size.
def
Lean.Compiler.LCNF.Param.mapFVarM
{m : Type → Type u_1}
[MonadLiftT Lean.Compiler.LCNF.CompilerM m]
[Monad m]
(f : Lean.FVarId → m Lean.FVarId)
(param : Lean.Compiler.LCNF.Param)
:
Equations
- Lean.Compiler.LCNF.Param.mapFVarM f param = do let __do_lift ← Lean.Compiler.LCNF.Expr.mapFVarM f param.type liftM (param.update __do_lift)
Instances For
def
Lean.Compiler.LCNF.Param.forFVarM
{m : Type → Type u_1}
[Monad m]
(f : Lean.FVarId → m Unit)
(param : Lean.Compiler.LCNF.Param)
:
m Unit
Equations
- Lean.Compiler.LCNF.Param.forFVarM f param = Lean.Compiler.LCNF.Expr.forFVarM f param.type
Instances For
Equations
- One or more equations did not get rendered due to their size.
partial def
Lean.Compiler.LCNF.Code.mapFVarM
{m : Type → Type}
[MonadLiftT Lean.Compiler.LCNF.CompilerM m]
[Monad m]
(f : Lean.FVarId → m Lean.FVarId)
(c : Lean.Compiler.LCNF.Code)
:
partial def
Lean.Compiler.LCNF.Code.forFVarM
{m : Type → Type}
[Monad m]
(f : Lean.FVarId → m Unit)
(c : Lean.Compiler.LCNF.Code)
:
m Unit
Equations
- One or more equations did not get rendered due to their size.
def
Lean.Compiler.LCNF.FunDecl.mapFVarM
{m : Type → Type}
[MonadLiftT Lean.Compiler.LCNF.CompilerM m]
[Monad m]
(f : Lean.FVarId → m Lean.FVarId)
(decl : Lean.Compiler.LCNF.FunDecl)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Lean.Compiler.LCNF.FunDecl.forFVarM
{m : Type → Type}
[Monad m]
(f : Lean.FVarId → m Unit)
(decl : Lean.Compiler.LCNF.FunDecl)
:
m Unit
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.
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.
def
Lean.Compiler.LCNF.anyFVarM
{m : Type → Type}
{α : Type}
[Monad m]
[Lean.Compiler.LCNF.TraverseFVar α]
(f : Lean.FVarId → m Bool)
(x : α)
:
m Bool
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Lean.Compiler.LCNF.anyFVarM.go
{m : Type → Type}
[Monad m]
(f : Lean.FVarId → m Bool)
(fvar : Lean.FVarId)
:
Equations
- Lean.Compiler.LCNF.anyFVarM.go f fvar = do let __do_lift ← liftM (f fvar) if __do_lift = true then failure else pure PUnit.unit
Instances For
def
Lean.Compiler.LCNF.allFVarM
{m : Type → Type}
{α : Type}
[Monad m]
[Lean.Compiler.LCNF.TraverseFVar α]
(f : Lean.FVarId → m Bool)
(x : α)
:
m Bool
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Lean.Compiler.LCNF.allFVarM.go
{m : Type → Type}
[Monad m]
(f : Lean.FVarId → m Bool)
(fvar : Lean.FVarId)
:
Equations
- Lean.Compiler.LCNF.allFVarM.go f fvar = do let __do_lift ← liftM (f fvar) if (!__do_lift) = true then failure else pure PUnit.unit
Instances For
def
Lean.Compiler.LCNF.anyFVar
{α : Type}
[Lean.Compiler.LCNF.TraverseFVar α]
(f : Lean.FVarId → Bool)
(x : α)
:
Equations
- Lean.Compiler.LCNF.anyFVar f x = (Lean.Compiler.LCNF.anyFVarM f x).run
Instances For
def
Lean.Compiler.LCNF.allFVar
{α : Type}
[Lean.Compiler.LCNF.TraverseFVar α]
(f : Lean.FVarId → Bool)
(x : α)
:
Equations
- Lean.Compiler.LCNF.allFVar f x = (Lean.Compiler.LCNF.allFVarM f x).run