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
- Architect.isMathlibOk name = do let __do_lift ← Lean.getEnv pure (Architect.isLibraryDecl __do_lift name)
Instances For
Whether a node is sorry-free (both statement and proof have no sorryAx).
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Progress report with aggregate stats and optional per-module breakdown.
- aggregate : ProgressStats
- byModule : Array (Lean.Name × ProgressStats)
- showByModule : Bool
Instances For
Equations
- One or more equations did not get rendered due to their size.
Equations
Instances For
Equations
- Architect.ProgressStats.empty = { total := 0, sorryFree := 0, containsSorry := 0, notReady := 0 }
Instances For
Compute progress statistics for an array of blueprint nodes.
Categories are mutually exclusive: a node is either formalized (sorry-free),
incomplete (contains sorry), or not ready. These three sum to total.
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
Shows blueprint progress statistics.
#blueprint_progressshows project-wide statistics with per-module breakdown.#blueprint_progress nobreakdownshows project-wide statistics without breakdown.#blueprint_progress localshows current module statistics with per-module breakdown.#blueprint_progress local nobreakdownshows current module statistics without breakdown.
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Architect.blueprintProgressOptLocal = Lean.ParserDescr.node `Architect.blueprintProgressOptLocal 1022 (Lean.ParserDescr.nonReservedSymbol "local" false)
Instances For
Equations
- Architect.blueprintProgressOptNobreakdown = Lean.ParserDescr.node `Architect.blueprintProgressOptNobreakdown 1024 (Lean.ParserDescr.symbol "nobreakdown")
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
Classification of a single blueprint node's formalization status.
- formalized : NodeStatus
- incomplete : NodeStatus
- notReady : NodeStatus
Instances For
Equations
- One or more equations did not get rendered due to their size.
A blueprint node entry with status and dependency completion data. Used uniformly for blocking deps, reverse deps, unblocked nodes, and incomplete nodes.
- name : Lean.Name
- status : NodeStatus
- depDone : Nat
- depTotal : Nat
- module : Lean.Name
Instances For
Compute dep-fraction column widths from an array of NodeEntry.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Format a dependency fraction with aligned / and % columns.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Format a list of NodeEntry as aligned MessageData rows: name frac status (for interactive).
Equations
- One or more equations did not get rendered due to their size.
Instances For
Classify a single blueprint node as formalized, incomplete, or not ready.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Status report for a specific blueprint node and its dependency subtree.
- name : Lean.Name
- selfStatus : NodeStatus
- depStats : ProgressStats
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Equations
- One or more equations did not get rendered due to their size.
Compute the formalization status of a specific blueprint node and its dependency subtree.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Shows formalization status of a specific blueprint node and its dependency subtree.
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
Report listing all incomplete blueprint nodes.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.
Collect all incomplete blueprint nodes with their dependency completion fraction.
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 incomplete blueprint nodes sorted by dependency completion.
#blueprint_incompleteshows incomplete nodes across all modules.#blueprint_incomplete localshows incomplete nodes in the current module only.
Equations
Instances For
Equations
- Architect.blueprintIncompleteOptLocal = Lean.ParserDescr.node `Architect.blueprintIncompleteOptLocal 1022 (Lean.ParserDescr.nonReservedSymbol "local" false)
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
Impact report: reverse dependencies and nodes that would be unblocked.
- name : Lean.Name
- selfStatus : NodeStatus
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Equations
- One or more equations did not get rendered due to their size.
Compute the impact of formalizing a specific blueprint node: which nodes depend on it and which would become actionable.
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.blueprintImpactOptLocal = Lean.ParserDescr.node `Architect.blueprintImpactOptLocal 1022 (Lean.ParserDescr.nonReservedSymbol "local" false)
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.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.