Support for rw suggestions in #click_suggestions #
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.
If we rewrite into this expression, then the goal will be solved.
- pos : Lean.SubExpr.Pos
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.
- 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.