Abstract structure of an import statement.
- module : Name
- importAll : Bool
import all; whether to import and expose all data saved by the module. - isExported : Bool
Whether to activate this import when the current module itself is imported.
- isMeta : Bool
Whether to import IR for all definitions (transitively) reachable.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lean.instReprImport = { reprPrec := Lean.instReprImport.repr }
Equations
- Lean.instInhabitedImport = { default := Lean.instInhabitedImport.default }
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lean.instToJsonImport = { toJson := Lean.instToJsonImport.toJson }
Equations
- Lean.instFromJsonImport = { fromJson? := Lean.instFromJsonImport.fromJson }
Equations
- Lean.instBEqImport = { beq := Lean.instBEqImport.beq }
Equations
- One or more equations did not get rendered due to their size.
- Lean.instBEqImport.beq x✝¹ x✝ = false
Instances For
Equations
Equations
- One or more equations did not get rendered due to their size.
Equations
Equations
- Lean.instBEqIRPhases.beq x✝ y✝ = (x✝.ctorIdx == y✝.ctorIdx)
Instances For
Equations
Equations
- Lean.instReprIRPhases = { reprPrec := Lean.instReprIRPhases.repr }
Equations
- Lean.instReprIRPhases.repr Lean.IRPhases.runtime prec✝ = Repr.addAppParen (Std.Format.nest (if prec✝ ≥ 1024 then 1 else 2) (Std.Format.text "Lean.IRPhases.runtime")).group prec✝
- Lean.instReprIRPhases.repr Lean.IRPhases.comptime prec✝ = Repr.addAppParen (Std.Format.nest (if prec✝ ≥ 1024 then 1 else 2) (Std.Format.text "Lean.IRPhases.comptime")).group prec✝
- Lean.instReprIRPhases.repr Lean.IRPhases.all prec✝ = Repr.addAppParen (Std.Format.nest (if prec✝ ≥ 1024 then 1 else 2) (Std.Format.text "Lean.IRPhases.all")).group prec✝
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lean.instReprModuleHeader = { reprPrec := Lean.instReprModuleHeader.repr }
Equations
Equations
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Module data files used for an import statement.
This structure is designed for efficient JSON serialization.
- ofArrays :: (
- toArrays : Array (Array System.FilePath)
Two nested arrays of variable size:
#[#[olean, oleanServer?, oleanPrivate?], #[irSig, ir?]] - )
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lean.instReprImportArtifacts = { reprPrec := Lean.instReprImportArtifacts.repr }
Equations
Equations
- Lean.instToJsonImportArtifacts = { toJson := fun (x : Lean.ImportArtifacts) => Lean.toJson x.toArrays }
Equations
- Lean.instFromJsonImportArtifacts = { fromJson? := fun (x : Lean.Json) => Lean.ImportArtifacts.ofArrays <$> Lean.fromJson? x }
Instances For
Instances For
Instances For
Instances For
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
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
- irSig? : Option System.FilePath
- ir? : Option System.FilePath
- c? : Option System.FilePath
- bc? : Option System.FilePath
Instances For
Equations
- Lean.instReprModuleArtifacts = { reprPrec := Lean.instReprModuleArtifacts.repr }
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.
Instances For
Equations
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.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
A Lean plugin. Plugins are shared libraries with an initialization function.
- path : System.FilePath
The path to the plugin's shared library.
The name of the plugin initialization function symbol. If
none, the symbol is derived from the file name of the shared library.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lean.instReprPlugin = { reprPrec := Lean.instReprPlugin.repr }
Equations
- Lean.instToJsonPlugin.toJson x✝ = Lean.Json.mkObj [[("path", Lean.toJson x✝.path)], Lean.Json.opt "initFn" x✝.initFn?].flatten
Instances For
Equations
- Lean.instToJsonPlugin = { toJson := Lean.instToJsonPlugin.toJson }
Equations
Equations
- One or more equations did not get rendered due to their size.
- Lean.Plugin.fromJson? (Lean.Json.str path) = pure (Lean.Plugin.ofFilePath { toString := path })
- Lean.Plugin.fromJson? data = throw "expected string or object"
Instances For
Equations
- Lean.Plugin.instFromJson = { fromJson? := Lean.Plugin.fromJson? }
The type of module package identifiers.
This is a String that is used to disambiguate native symbol prefixes between
different packages (and different versions of the same package).
Equations
Instances For
A module's setup information as described by a JSON file.
- name : Name
The name of the module.
The package to which the module belongs (if any).
- isModule : Bool
Whether the module, by default, participates in the module system. Even if
false, a module can still choose to participate by usingmodulein 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 to initialize with the module.
- options : LeanOptions
Additional options for the module.
Instances For
Equations
- Lean.instReprModuleSetup = { reprPrec := Lean.instReprModuleSetup.repr }
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.
Instances For
Equations
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lean.instFromJsonModuleSetup = { fromJson? := Lean.instFromJsonModuleSetup.fromJson }
Load a ModuleSetup from a JSON file.
Equations
- One or more equations did not get rendered due to their size.