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
- ref : Lean.Syntax
- modifiers : Lean.Elab.Modifiers
- declName : Lean.Name
- binders : Lean.Syntax
- type? : Option Lean.Syntax
Instances For
Equations
- Lean.Elab.Command.instInhabitedCtorView = { default := { ref := default, modifiers := default, declName := default, binders := default, type? := default } }
- ref : Lean.Syntax
- modifiers : Lean.Syntax
- fieldId : Lean.Name
- type : Lean.Term
- matchAlts : Lean.TSyntax `Lean.Parser.Term.matchAlts
Instances For
- ref : Lean.Syntax
- declId : Lean.Syntax
- modifiers : Lean.Elab.Modifiers
- shortDeclName : Lean.Name
- declName : Lean.Name
- binders : Lean.Syntax
- type? : Option Lean.Syntax
- ctors : Array Lean.Elab.Command.CtorView
- derivingClasses : Array Lean.Elab.DerivingClassView
- computedFields : Array Lean.Elab.Command.ComputedFieldView
Instances For
Equations
- One or more equations did not get rendered due to their size.
- lctx : Lean.LocalContext
- localInsts : Lean.LocalInstances
- type : Lean.Expr
Instances For
Equations
- One or more equations did not get rendered due to their size.
Return some ?m if u is of the form ?m + k.
Return none if u does not contain universe metavariables.
Throw exception otherwise.
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
Auxiliary function for updateResultingUniverse
accLevel u r rOffset add u to state if it is not already there and
it is different from the resulting universe level r+rOffset.
If u is a max, then its components are recursively processed.
If u is a succ and rOffset > 0, we process the us child using rOffset-1.
This method is used to infer the resulting universe level of an inductive datatype.
Equations
- Lean.Elab.Command.accLevel u r rOffset = Lean.Elab.Command.accLevel.go r u rOffset
Instances For
Instances For
Auxiliary function for updateResultingUniverse
accLevelAtCtor ctor ctorParam r rOffset add u (ctorParam's universe) to state if it is not already there and
it is different from the resulting universe level r+rOffset.
See accLevel.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Execute k using the Syntax reference associated with constructor ctorName.
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
- 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
- Lean.Elab.Command.elabInductive modifiers stx = Lean.Elab.Command.elabInductives #[(modifiers, stx)]
Instances For
Equations
- Lean.Elab.Command.elabClassInductive modifiers stx = Lean.Elab.Command.elabInductive (modifiers.addAttr { kind := Lean.AttributeKind.global, name := `class, stx := Lean.Syntax.missing }) stx
Instances For
Returns true if all elements of the mutual block (Lean.Parser.Command.mutual) are inductive declarations.
Equations
- Lean.Elab.Command.isMutualInductive stx = stx[1].getArgs.all fun (elem : Lean.Syntax) => let decl := elem[1]; let declKind := decl.getKind; declKind == `Lean.Parser.Command.inductive
Instances For
Elaborates a mutual block satisfying Lean.Elab.Command.isMutualInductive.
Equations
- One or more equations did not get rendered due to their size.