@[reducible, inline]
Equations
Instances For
The InternalizeM
monad is a translator. It "translates" the free variables
in the input expressions and Code
, into new fresh free variables in the
local context.
Equations
- Lean.Compiler.LCNF.Internalize.instMonadFVarSubstInternalizeMTrue = { getSubst := get }
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
Equations
- One or more equations did not get rendered due to their size.
Instances For
Refresh free variables ids in code
, and store their declarations in the local context.
Equations
- code.internalize s = StateRefT'.run' (Lean.Compiler.LCNF.Internalize.internalizeCode code) s
Instances For
Equations
- decl.internalize s = StateRefT'.run' (Lean.Compiler.LCNF.Decl.internalize.go decl) s
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lean.Compiler.LCNF.normalizeFVarIds decl = do let ngenSaved ← Lean.getNGen Lean.setNGen { namePrefix := `_uniq, idx := 1 } tryFinally decl.internalize.run (Lean.setNGen ngenSaved)