Documentation

Lean.Compiler.LCNF.Internalize

Instances For
    @[reducible, inline]
    Instances For
      @[inline]
      def Lean.Compiler.LCNF.Internalize.InternalizeM.run {pu : Purity} {α : Type} (x : InternalizeM pu α) (state : FVarSubst pu) (ctx : Context := { }) :
      Instances For
        @[inline]
        def Lean.Compiler.LCNF.Internalize.InternalizeM.run' {pu : Purity} {α : Type} (x : InternalizeM pu α) (state : FVarSubst pu) (ctx : Context := { }) :
        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.

          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.

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

              Create a fresh local context and internalize the given decls.

              Instances For
                Instances For