Recall that
def typeSpec := leading_parser " : " >> termParser
def optType : Parser := optional typeSpec
Equations
- Lean.Elab.Term.expandOptType ref optType = if optType.isNone = true then Lean.mkHole ref else optType[0][1]
Instances For
Helper function for expandEqnsIntoMatch
Equations
- Lean.Elab.Term.getMatchAltsNumPatterns matchAlts = matchAlts[0][0][1][0].getSepArgs.size
Instances For
Expand a match alternative such as | 0 | 1 => rhs
to an array containing | 0 => rhs
and | 1 => rhs
.
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.