Documentation

Mathlib.Util.Export

A rudimentary export format, adapted from https://github.com/leanprover-community/lean/blob/master/doc/export_format.md with support for Lean 4 kernel primitives.

Instances For
    @[implicit_reducible]
    @[implicit_reducible]
    @[implicit_reducible]
    @[implicit_reducible]
    structure Lean.Export.Alloc (α : Type u_1) [BEq α] [Hashable α] :
    Type u_1
    • map : Std.HashMap α
    • next :
    Instances For
      @[implicit_reducible]
      instance Lean.Export.instInhabitedAlloc {a✝ : Type u_1} {a✝¹ : BEq a✝} {a✝² : Hashable a✝} :
      Inhabited (Alloc a✝)
      def Lean.Export.instInhabitedAlloc.default {a✝ : Type u_1} {a✝¹ : BEq a✝} {a✝² : Hashable a✝} :
      Alloc a✝
      Instances For
        • names : Alloc Name
        • levels : Alloc Level
        • exprs : Alloc Expr
        • defs : Std.HashSet Name
        • stk : Array (Bool × Entry)
        Instances For
          @[implicit_reducible]
          class Lean.Export.OfState (α : Type) [BEq α] [Hashable α] :
          Instances
            @[implicit_reducible]
            @[implicit_reducible]
            @[implicit_reducible]
            @[reducible, inline]
            abbrev Lean.ExportM (α : Type) :
            Instances For
              def Lean.Export.alloc {α : Type} [BEq α] [Hashable α] [OfState α] (a : α) :
              Instances For
                def Lean.Export.exportName (n : Name) :
                Instances For
                  def Lean.Export.exportLevel (L : Level) :
                  Instances For
                    def Lean.Export.biStr :
                    BinderInfoString
                    Instances For
                      partial def Lean.Export.exportDef (n : Name) :
                      ExportM Unit
                      def Lean.Export.runExportM {α : Type} (m : ExportM α) :
                      CoreM α
                      Instances For