Equations
- Lean.Meta.Match.mkNamedPattern x h p = Lean.Meta.mkAppM `namedPattern #[x, p, h]
Instances For
Equations
- Lean.Meta.Match.isNamedPattern e = (e.consumeMData.getAppNumArgs == 4 && e.consumeMData.getAppFn.consumeMData.isConstOf `namedPattern)
Instances For
Equations
- Lean.Meta.Match.isNamedPattern? e = if (e.consumeMData.getAppNumArgs == 4 && e.consumeMData.getAppFn.consumeMData.isConstOf `namedPattern) = true then some e.consumeMData else none
Instances For
- inaccessible (e : Expr) : Pattern
- var (fvarId : FVarId) : Pattern
- ctor (ctorName : Name) (us : List Level) (params : List Expr) (fields : List Pattern) : Pattern
- val (e : Expr) : Pattern
- arrayLit (type : Expr) (xs : List Pattern) : Pattern
- as (varId : FVarId) (p : Pattern) (hId : FVarId) : Pattern
Instances For
Equations
Equations
- p.toExpr annotate = Lean.Meta.Match.Pattern.toExpr.visit✝ annotate p
Instances For
Apply the free variable substitution s to the given pattern
Equations
- Lean.Meta.Match.Pattern.replaceFVarId fvarId v p = Lean.Meta.Match.Pattern.applyFVarSubst ({ }.insert fvarId v) p
Instances For
Equations
Equations
Instances For
Equations
- altLHS.collectFVars = do altLHS.fvarDecls.forM fun (fvarDecl : Lean.LocalDecl) => fvarDecl.collectFVars altLHS.patterns.forM fun (p : Lean.Meta.Match.Pattern) => p.collectFVars
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Match alternative
- ref : Syntax
Syntaxobject for providing position information - idx : Nat
Original alternative index. Alternatives can be split, this index is the original position of the alternative that generated this one.
- rhs : Expr
Right-hand-side of the alternative.
Alternative pattern variables.
Alternative patterns.
Instances For
Equations
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
Return true if fvarId is one of the alternative pattern variables
Equations
- Lean.Meta.Match.Alt.isLocalDecl fvarId alt = alt.fvarDecls.any fun (d : Lean.LocalDecl) => d.fvarId == fvarId
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Equations
- Lean.Meta.Match.withGoalOf p x = p.mvarId.withContext x
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[reducible, inline]
Instances For
Equations
Instances For
- matcher : Expr
- counterExamples : List CounterExample
Instances For
Match congruence equational theorem names helper declarations and functions
Equations
- Lean.Meta.Match.congrEqnThmSuffixBase = "congr_eq"
Instances For
Instances For
Instances For
Returns true if s is of the form congr_eq_<idx>