Documentation

Mathlib.Tactic.ClickSuggestions.GRewrite

Support for grw suggestions in #click_suggestions #

GRewritePos contains the ìnformation about a given subexpression position needed for applying a grw lemma.

  • relName : Lean.Name

    The name of the relation.

  • relation : Lean.Expr

    The expression of the relation.

  • symm? : Option Bool

    symm is none if the given relations are symmetric. symm is true when you can only rewrite from right to left.

Instances For

    Determine possible ways in which a grw call could rewrite at the given subexpression.

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

      The structure for rewrite lemmas stored in the RefinedDiscrTree.

      Instances For

        The information needed for doing a grewrite.

        • 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.

        • gpos : Array GrwPos

          The relations that can be used for rewriting.

        • rwKind : RwKind

          Some information about the rewrite position.

        Instances For

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

          • numGoals :

            The number of side goals created.

          • nameLength :

            The name length of the used lemma.

          • replacementSize :

            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