Support for grw suggestions in #click_suggestions #
GRewritePos contains the ìnformation about a given subexpression position needed for
applying a grw lemma.
Instances For
Determine possible ways in which a grw call could rewrite at the given subexpression.
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.
If we rewrite into this expression, then the goal will be solved.
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 : Nat
The number of side goals created.
- 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.
- replacement : Lean.Meta.AbstractMVarsResult
The new subexpression.
Instances For
Whether the two suggestions are duplicates of each other.
Instances For
Generate the suggestion for rewriting with lem.