Conversion from Lean nodes to LaTeX.
Equations
Instances For
We convert nodes to LaTeX.
The output provides the following macros:
\inputleannode{name}: Inputs the theorem or definition with labelname.\inputleanmodule{Module}: Inputs the entire module (containing nodes and blueprint module docstrings in it) with module nameModule.
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
- Architect.Latex.input file = "\\input{" ++ "/".intercalate file.components ++ "}"
Instances For
Equations
Instances For
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
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
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.
- header : System.FilePath → Latex
The header file requires the path to the artifacts directory.
- artifacts : Array LatexArtifact
Instances For
Equations
- node.toLatexArtifact = do let __do_lift ← node.toLatex pure { id := node.latexLabel, content := __do_lift }
Instances For
Equations
- (Architect.BlueprintContent.node n).toLatex = pure ("\\inputleannode{" ++ n.latexLabel ++ "}")
- (Architect.BlueprintContent.modDoc d).toLatex = pure d.doc
Instances For
Convert imported module to LaTeX (header file, artifact files).
Equations
- Architect.moduleToLatexOutput module = do let contents ← Architect.getBlueprintContents module Architect.moduleToLatexOutputAux✝ module contents
Instances For
Convert current module to LaTeX (header file, artifact files).
Equations
- Architect.mainModuleToLatexOutput = do let contents ← Architect.getMainModuleBlueprintContents let __do_lift ← Lean.getMainModule Architect.moduleToLatexOutputAux✝ __do_lift contents
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
Equations
- (Architect.BlueprintContent.node n).toJson = Lean.Json.mkObj [("type", Lean.Json.str "node"), ("data", Lean.toJson n.toJson)]
- (Architect.BlueprintContent.modDoc d).toJson = Lean.Json.mkObj [("type", Lean.Json.str "moduleDoc"), ("data", Lean.toJson d.doc)]
Instances For
Equations
- Architect.moduleToJson module = do let __do_lift ← Architect.getBlueprintContents module pure (Lean.Json.arr (Array.map Architect.BlueprintContent.toJson __do_lift))
Instances For
Equations
- Architect.mainModuleToJson = do let __do_lift ← Architect.getMainModuleBlueprintContents pure (Lean.Json.arr (Array.map Architect.BlueprintContent.toJson __do_lift))
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
- Architect.moduleToRelPath module ext = Lean.modToFilePath { toString := "module" } module ext
Instances For
Equations
- Architect.libraryToRelPath library ext = (System.mkFilePath ["library", library.toString false]).addExtension ext
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
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
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.