Documentation

Architect.Output

Conversion from Lean nodes to LaTeX.

@[reducible, inline]
Equations
Instances For

    We convert nodes to LaTeX.

    The output provides the following macros:

    The structure of the output of a module A with nodes b and c is:

    A.tex
    A/b.tex
    A/c.tex
    

    The first is a header file that defines the macro \inputleannode{name}, which simply inputs A/name.tex. The rest are artifact files that contain the LaTeX of each node.

    Equations
    Instances For
      Instances For
        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          def Architect.NodePart.inferUses {m : TypeType} [Monad m] [Lean.MonadEnv m] (part : NodePart) (latexLabel : String) (used : Lean.NameSet) :
          Equations
          • One or more equations did not get rendered due to their size.
          Instances For

            Infer the used constants of a node as (statement uses, proof uses).

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              def Architect.NodePart.toLatex {m : TypeType} [Monad m] (part : NodePart) (allParts : Array NodePart := #[part]) (inferredUses : InferredUses) (title : Option String := none) (additionalContent defaultText : String := "") :

              Merges and converts an array of NodePart to LaTeX. It is assumed that part ∈ allParts.

              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

                  LatexArtifact represents an auxiliary output file for a single node, containing its label (which is its filename) and content.

                  Instances For

                    LatexOutput represents the extracted LaTeX from a module, consisting of a header file and auxiliary files.

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

                          Convert imported module to LaTeX (header file, artifact files).

                          Equations
                          Instances For

                            Convert current module to LaTeX (header file, artifact files).

                            Equations
                            Instances For

                              Shows the blueprint LaTeX of the current module (#show_blueprint) or a blueprint node (#show_blueprint lean_name or #show_blueprint "latex_label").

                              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

                                    Shows the blueprint JSON of the current module (#show_blueprint_json) or a single Lean declaration (#show_blueprint_json name).

                                    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
                                        Instances For
                                          Equations
                                          Instances For

                                            Write latex to the appropriate blueprint tex file. Returns the list of paths to auxiliary output files (note: the returned paths are currently discarded).

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

                                              Write json to the appropriate blueprint json file.

                                              Equations
                                              • One or more equations did not get rendered due to their size.
                                              Instances For
                                                def Architect.outputLibraryLatex (basePath : System.FilePath) (library : Lean.Name) (modules : Array Lean.Name) :

                                                Write to an appropriate index tex file that \inputs all modules in a library.

                                                Equations
                                                • One or more equations did not get rendered due to their size.
                                                Instances For
                                                  def Architect.outputLibraryJson (basePath : System.FilePath) (library : Lean.Name) (modules : Array Lean.Name) :

                                                  Write to an appropriate index json file containing paths to json files of all modules in a library.

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