Documentation

Lean.Meta.CtorRecognizer

If e is a constructor application, then return the corresponding ConstructorVal.

Equations
  • One or more equations did not get rendered due to their size.

If e is a constructor application or a builtin literal defeq to a constructor application, then return the corresponding ConstructorVal.

Equations

Similar to isConstructorApp?, but uses whnf.

Equations
  • One or more equations did not get rendered due to their size.

Returns true, if e is constructor application of builtin literal defeq to a constructor application.

Equations

Returns true if isConstructorApp e or isConstructorApp (← whnf e)

Equations
  • One or more equations did not get rendered due to their size.

If e is a constructor application, return a pair containing the corresponding ConstructorVal and the constructor application arguments.

Equations
  • One or more equations did not get rendered due to their size.

Similar to constructorApp?, but on failure it puts e in WHNF and tries again. It also isOffset?

Equations
  • One or more equations did not get rendered due to their size.