Module Setup Information #
Data types used by Lean module headers and the --setup
CLI.
Equations
- Lean.instReprImport = { reprPrec := Lean.reprImport✝ }
Equations
- Lean.instToJsonImport = { toJson := Lean.toJsonImport✝ }
Equations
- Lean.instFromJsonImport = { fromJson? := Lean.fromJsonImport✝ }
Equations
- Lean.instToStringImport = { toString := fun (imp : Lean.Import) => toString imp.module }
Equations
- Lean.instReprModuleHeader = { reprPrec := Lean.reprModuleHeader✝ }
Equations
- Lean.instToJsonModuleHeader = { toJson := Lean.toJsonModuleHeader✝ }
Equations
- Lean.instFromJsonModuleHeader = { fromJson? := Lean.fromJsonModuleHeader✝ }
Module data files used for an import
statement.
This structure is designed for efficient JSON serialization.
- oleanParts : Array System.FilePath
Instances For
Equations
- Lean.instReprImportArtifacts = { reprPrec := Lean.reprImportArtifacts✝ }
Equations
- Lean.instToJsonImportArtifacts = { toJson := fun (x : Lean.ImportArtifacts) => Lean.toJson x.oleanParts }
Equations
- Lean.instFromJsonImportArtifacts = { fromJson? := fun (x : Lean.Json) => Lean.ImportArtifacts.mk <$> Lean.fromJson? x }
Instances For
Equations
- arts.oleanServer? = arts.oleanParts[1]?
Instances For
Equations
- arts.oleanPrivate? = arts.oleanParts[2]?
Instances For
Files containing data for a single module.
- lean? : Option System.FilePath
- olean? : Option System.FilePath
- oleanServer? : Option System.FilePath
- oleanPrivate? : Option System.FilePath
- ilean? : Option System.FilePath
- ir? : Option System.FilePath
- c? : Option System.FilePath
- bc? : Option System.FilePath
Instances For
Equations
- Lean.instReprModuleArtifacts = { reprPrec := Lean.reprModuleArtifacts✝ }
Equations
- One or more equations did not get rendered due to their size.
Equations
Equations
- Lean.instFromJsonModuleArtifacts = { fromJson? := Lean.fromJsonModuleArtifacts✝ }
Equations
- One or more equations did not get rendered due to their size.
Instances For
A module's setup information as described by a JSON file.
- name : Name
Name of the module.
- isModule : Bool
Whether the module, by default, participates in the module system. Even if
false
, a module can still choose to participate by usingmodule
in its header. The module's direct imports. If
none
, uses the imports from the module header.- importArts : NameMap ImportArtifacts
Pre-resolved artifacts of transitively imported modules.
- dynlibs : Array System.FilePath
Dynamic libraries to load with the module.
- plugins : Array System.FilePath
Plugins to initialize with the module.
- options : LeanOptions
Additional options for the module.
Instances For
Equations
- Lean.instReprModuleSetup = { reprPrec := Lean.reprModuleSetup✝ }
Equations
- One or more equations did not get rendered due to their size.
Equations
- Lean.instToJsonModuleSetup = { toJson := Lean.toJsonModuleSetup✝ }
Equations
- Lean.instFromJsonModuleSetup = { fromJson? := Lean.fromJsonModuleSetup✝ }
Load a ModuleSetup
from a JSON file.
Equations
- One or more equations did not get rendered due to their size.