Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Stores information about a typed name.
- name : Lean.Name
The name that has this info attached.
- type : RenderedCode
The pretty printed type of this name.
- doc : Option (String ⊕ Lean.VersoDocString)
The doc string of the name if it exists.
Instances For
Equations
An argument to a declaration, e.g. the (x : Nat) in def foo (x : Nat) := x.
- binder : RenderedCode
The pretty printed binder syntax itself.
- implicit : Bool
Whether the binder is implicit.
Instances For
A base structure for information about a declaration.
The list of arguments to the declaration.
- declarationRange : Lean.DeclarationRange
In which lines the declaration was created.
A list of (known) attributes that are attached to the declaration.
- sorried : Bool
Whether this declaration directly uses
sorryAx. - render : Bool
Whether this info item should be rendered
Instances For
Equations
Equations
Equations
Information about an opaque declaration.
- definitionSafety : Lean.DefinitionSafety
A value of partial is interpreted as this opaque being part of a partial def since the actual definition for a partial def is hidden behind an inaccessible value.
Instances For
Equations
The maximum string length of equations before they are omitted from rendering.
This is an arbitrary cutoff that seems to work well in practice. Very long equations are unreadable in documentation and slow down page generation and rendering, so we drop them and show a notice instead. The number 200 has no deeper justification.
Equations exceeding this limit are stored as NULL blobs in the database (only text_length is
preserved). The equationsWereOmitted field in DefinitionInfo is set when any equation exceeds
this limit, causing the rendering code in DocGen4/Output/Definition.lean to show a notice.
Equations
Instances For
Information about a def declaration, note that partial defs are handled by OpaqueInfo.
- isUnsafe : Bool
- hints : Lean.ReducibilityHints
- equations : Option (Array RenderedCode)
- equationsWereOmitted : Bool
- isNonComputable : Bool
Instances For
Equations
Information about a constructor of an inductive type
Instances For
Information about an inductive declaration
- ctors : List ConstructorInfo
List of all constructors of this inductive type.
- isUnsafe : Bool
Instances For
Equations
Stores information about a structure field.
- isDirect : Bool
Whether or not this field is new to this structure, or instead whether it was inherited from a parent.
Instances For
Information about a structure parent.
- projFn : Lean.Name
Name of the projection function.
- type : RenderedCode
Pretty printed type.
Instances For
Information about a structure declaration.
Information about all the fields of the structure.
- parents : Array StructureParentInfo
All the structures this one inherited from.
- ctor : NameInfo
The constructor of the structure.
Instances For
Equations
A general type for informations about declarations.
- axiomInfo (info : AxiomInfo) : DocInfo
- theoremInfo (info : TheoremInfo) : DocInfo
- opaqueInfo (info : OpaqueInfo) : DocInfo
- definitionInfo (info : DefinitionInfo) : DocInfo
- instanceInfo (info : InstanceInfo) : DocInfo
- inductiveInfo (info : InductiveInfo) : DocInfo
- structureInfo (info : StructureInfo) : DocInfo
- classInfo (info : ClassInfo) : DocInfo
- classInductiveInfo (info : ClassInductiveInfo) : DocInfo
- ctorInfo (info : ConstructorInfo) : DocInfo
Instances For
Equations
Equations
- (DocGen4.Process.DocInfo.axiomInfo info).toInfo = info.toInfo
- (DocGen4.Process.DocInfo.theoremInfo info).toInfo = info.toInfo
- (DocGen4.Process.DocInfo.opaqueInfo info).toInfo = info.toInfo
- (DocGen4.Process.DocInfo.definitionInfo info).toInfo = info.toInfo
- (DocGen4.Process.DocInfo.instanceInfo info).toInfo = info.toInfo
- (DocGen4.Process.DocInfo.inductiveInfo info).toInfo = info.toInfo
- (DocGen4.Process.DocInfo.structureInfo info).toInfo = info.toInfo
- (DocGen4.Process.DocInfo.classInfo info).toInfo = info.toInfo
- (DocGen4.Process.DocInfo.classInductiveInfo info).toInfo = info.toInfo
- (DocGen4.Process.DocInfo.ctorInfo info).toInfo = info
Instances For
Turns an Expr into a pretty printed RenderedCode.
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.