Skip to content

Commit c3efbde

Browse files
use instance reducibility, probably
1 parent cbdbff6 commit c3efbde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Mathlib/Util/DelabNonCanonical.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def delabCheckingCanonical : DelabM (Bool × Term) := do
2828
-- if there is no synthesized instance, still return `false`
2929
-- (because `inst` is still non-canonical)
3030
let .some synthInst ← Meta.trySynthInstance type | return (false, instD)
31-
return (← Meta.isDefEq inst synthInst, instD)
31+
withReducibleAndInstances <| return (← Meta.isDefEq inst synthInst, instD)
3232

3333
/-- Delaborate an expression with arity `arity` into a unary notation `mkStx` iff the argument
3434
`arg` is a non-canonical instance (is not defeq to what is synthesized for its type, or else

0 commit comments

Comments
 (0)