Documentation

Lean.Meta.Sym.Simp.Goal

Goal simplification #

Applies Sym.simp to a goal's target type, producing a simplified goal or closing it if the result is True.

Result of simplifying a goal with Sym.simp.

Instances For

    Converts a SimpGoalResult to an optional goal. Returns none if closed, some mvarId if simplified, or throws an error if no progress.

    Equations
    Instances For

      Converts a Simp.Result value into SimpGoalResult.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        def Lean.Meta.Sym.simpGoal (mvarId : MVarId) (methods : Simp.Methods := { }) (config : Simp.Config := { }) :

        Simplifies the target of mvarId using Sym.simp. Returns .closed if the target simplifies to True, .simp mvarId' if simplified to a new goal, or .noProgress if no simplification occurred.

        This function assumed the input goal is a valid Sym goal (e.g., expressions are maximally shared).

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

          Similar to simpGoal, but returns .goal mvarId if no progress was made.

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