Helper functions around named patterns
Equations
- Lean.Meta.Match.mkNamedPattern x h p = Lean.Meta.mkAppM `namedPattern #[x, p, h]
Instances For
Equations
- Lean.Meta.Match.isNamedPattern e = have e := e.consumeMData; e.getAppNumArgs == 4 && e.getAppFn.consumeMData.isConstOf `namedPattern
Instances For
Equations
- Lean.Meta.Match.isNamedPattern? e = have e := e.consumeMData; if (e.getAppNumArgs == 4 && e.getAppFn.consumeMData.isConstOf `namedPattern) = true then some e else none
Instances For
Equations
- One or more equations did not get rendered due to their size.