Documentation

Lean.Meta.Match.MatcherInfo

A "matcher" auxiliary declaration has the following structure:

  • numParams parameters
  • motive
  • numDiscrs discriminators (aka major premises)
  • altNumParams.size alternatives (aka minor premises) where alternative i has altNumParams[i] parameters
  • uElimPos? is some pos when the matcher can eliminate in different universe levels, and pos is the position of the universe level parameter that specifies the elimination universe. It is none if the matcher only eliminates into Prop.
Equations
  • One or more equations did not get rendered due to their size.
Equations
  • One or more equations did not get rendered due to their size.
def Lean.Meta.getMatcherInfo? {m : TypeType} [inst : Monad m] [inst : Lean.MonadEnv m] (declName : Lean.Name) :
Equations
@[export lean_is_matcher]
Equations
def Lean.Meta.isMatcher {m : TypeType} [inst : Monad m] [inst : Lean.MonadEnv m] (declName : Lean.Name) :
Equations
Equations
  • One or more equations did not get rendered due to their size.
def Lean.Meta.isMatcherApp {m : TypeType} [inst : Monad m] [inst : Lean.MonadEnv m] (e : Lean.Expr) :
Equations
structure Lean.Meta.MatcherApp:
Type
def Lean.Meta.matchMatcherApp? {m : TypeType} [inst : Monad m] [inst : Lean.MonadEnv m] (e : Lean.Expr) :
Equations
  • One or more equations did not get rendered due to their size.
Equations
  • One or more equations did not get rendered due to their size.