We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 467c610 commit b586ad1Copy full SHA for b586ad1
1 file changed
src/Lean/Meta/ExprDefEq.lean
@@ -2142,7 +2142,8 @@ private partial def isUnitLikeType (e : Expr) : MetaM Bool :=
2142
private def isDefEqUnitLike (t : Expr) (s : Expr) : MetaM Bool := do
2143
let tType ← inferType t
2144
match (← cachedUnitLike? tType) with
2145
- | some b => return b
+ | some false => return false
2146
+ | some true => Meta.isExprDefEqAux tType (← inferType s)
2147
| none => cacheUnitLike tType (← do
2148
let isUnit ← isUnitLikeType tType
2149
if !isUnit then return false
0 commit comments