Documentation

Lean.Compiler.LCNF.Internalize

Instances For
    @[inline]
    def Lean.Compiler.LCNF.Internalize.InternalizeM.run {pu : Purity} {α : Type} (x : InternalizeM pu α) (state : FVarSubst pu) (ctx : Context := { }) :
    Equations
    Instances For
      @[inline]
      def Lean.Compiler.LCNF.Internalize.InternalizeM.run' {pu : Purity} {α : Type} (x : InternalizeM pu α) (state : FVarSubst pu) (ctx : Context := { }) :
      Equations
      Instances For
        @[implicit_reducible]

        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
        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          Equations
          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
                def Lean.Compiler.LCNF.Code.internalize {pu : Purity} (code : Code pu) (s : FVarSubst pu := ) (uniqueIdents : Bool := false) :

                Refresh free variables ids in code, and store their declarations in the local context.

                Equations
                Instances For
                  def Lean.Compiler.LCNF.Decl.internalize {pu : Purity} (decl : Decl pu) (s : FVarSubst pu := ) (uniqueIdents : Bool := false) :
                  Equations
                  Instances For

                    Create a fresh local context and internalize the given decls.

                    Equations
                    • One or more equations did not get rendered due to their size.
                    Instances For
                      Equations
                      Instances For