Documentation

Lean.Meta.Sym.Eta

If e is of the form (fun x₁ ... xₙ => f x₁ ... xₙ) and f does not contain x₁, ..., xₙ, then returns f. Otherwise, returns e.

Returns the original expression when not reducible to enable pointer equality checks.

Equations
Instances For

    Returns true if e can be eta-reduced. Uses pointer equality for efficiency.

    Equations
    Instances For

      Applies etaReduce to all subexpressions. Returns e unchanged if no subexpression is eta-reducible.

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