Documentation

Mathlib.Tactic.ClickSuggestions.Rewrite

Support for rw suggestions in #click_suggestions #

The structure for rewrite lemmas stored in the RefinedDiscrTree.

  • name : Premise

    The lemma

  • symm : Bool

    symm is true when rewriting from right to left

Instances For

    The information needed for doing a rewrite.

    • rootExpr : Lean.Expr

      The outer expression in which the rewrite takes place.

    • subExpr : Lean.Expr

      The expression that is being rewritten.

    • rflTarget? : Option Lean.Expr

      If we rewrite into this expression, then the goal will be solved.

    • The expression that is being rewritten. This may not be the same as the selected expression, because we also suggest rewriting partial applications.

    • rwKind : RwKind

      Some information about the rewrite position.

    Instances For

      The key that is used for sorting and deduplicating rw lemmas.

      • numGoals : Nat

        The number of side goals created.

      • symm : Bool

        If symm := true, then the rewrite is right-to-left.

      • nameLength : Nat

        The name length of the used lemma.

      • replacementSize : Nat

        The length of the new subexpression.

      • name : String

        The nae of the used lemma.

      • The new subexpression.

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

        Generate the suggestion for rewriting with lem.

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