some hif the discriminant is annotated withh:
Instances For
A "matcher" auxiliary declaration has the following structure:
numParamsparameters- motive
numDiscrsdiscriminators (aka major premises)altNumParams.sizealternatives (aka minor premises) where alternativeihasaltNumParams[i]parametersuElimPos?issome poswhen the matcher can eliminate in different universe levels, andposis the position of the universe level parameter that specifies the elimination universe. It isnoneif the matcher only eliminates intoProp.
- numParams : Nat
- numDiscrs : Nat
discrInfos[i] = { hName? := some h }if the i-th discriminant was annotated withh :.
Instances For
Equations
Instances For
Equations
Instances For
Equations
Instances For
Equations
Instances For
Equations
Instances For
Equations
Instances For
Equations
Instances For
def
Lean.Meta.Match.Extension.addMatcherInfo
(env : Environment)
(matcherName : Name)
(info : MatcherInfo)
:
Equations
Instances For
Equations
Instances For
def
Lean.Meta.Match.addMatcherInfo
{m : Type → Type}
[Monad m]
[MonadEnv m]
(matcherName : Name)
(info : MatcherInfo)
:
m Unit
Equations
Instances For
Equations
Instances For
def
Lean.Meta.getMatcherInfo?
{m : Type → Type}
[Monad m]
[MonadEnv m]
(declName : Name)
:
m (Option MatcherInfo)
Equations
Instances For
@[export lean_is_matcher]