Given a structure S, Lean automatically creates an auxiliary definition (projection function)
for each field. This structure caches information about these auxiliary definitions.
- ctorName : Name
Constructor associated with the auxiliary projection function.
- numParams : Nat
Number of parameters in the structure
- i : Nat
The field index associated with the auxiliary projection function.
- fromClass : Bool
trueif the structure is a class.
Instances For
Instances For
Instances For
Instances For
Instances For
Instances For
If projName is the name of a projection function, return the associated structure name
Instances For
Auxiliary parent projection created when a parent structure cannot be represented as a subobject
(e.g., due to diamond inheritance). Unlike regular projections, these construct the parent value
from individual fields rather than extracting a single field.
Example: AddMonoid'.toAddZero' when AddZero' cannot be a subobject of AddMonoid'.
- numParams : Nat
Number of parameters in the child structure.
- fromClass : Bool
trueif the child structure is a class.