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.
Equations
- One or more equations did not get rendered due to their size.
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 : ℕ
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.
- replacement : Lean.Meta.AbstractMVarsResult
The new subexpression.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Whether the two suggestions are duplicates of each other.
Equations
Instances For
Generate the suggestion for rewriting with lem.
Equations
- One or more equations did not get rendered due to their size.