We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16fd4c3 commit 6cc3b36Copy full SHA for 6cc3b36
src/Lean/Meta/Tactic/Grind/MatchCond.lean
@@ -286,6 +286,8 @@ where
286
| reportIssue! "found term that has not been internalized{indentExpr lhs}\nwhile trying to construct a proof for `MatchCond`{indentExpr e}"
287
return none
288
let isHEq := α?.isSome
289
+ unless (← hasSameType root.self rhs) do
290
+ return none
291
let h ← if isHEq then
292
mkEqOfHEq (← mkHEqTrans (← mkHEqProof root.self lhs) h) (check := false)
293
else
0 commit comments