Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/Lean/Meta/ExprDefEq.lean
Original file line number Diff line number Diff line change
Expand Up @@ -2426,7 +2426,10 @@ private def isExprDefEqExpensive (t : Expr) (s : Expr) : MetaM Bool := do
if (← (isDefEqEtaStruct t s <||> isDefEqEtaStruct s t)) then
return true
if t.isConst && s.isConst then
if t.constName! == s.constName! then isListLevelDefEqAux t.constLevels! s.constLevels! else return false
if t.constName! == s.constName! then
isListLevelDefEqAux t.constLevels! s.constLevels!
else
isDefEqUnitLike t s
else if (← pure t.isApp <&&> pure s.isApp) then
if (← isDefEqApp t s) then return true
isDefEqAppFallback t s
Expand Down
8 changes: 8 additions & 0 deletions tests/elab/14348.lean
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module

/-! Regression test for issue #14348: opaque constants of a unit-like type are definitionally equal. -/

opaque a : Unit
opaque b : Unit

example : a = b := rfl
Loading