Commit 2026-04-29 14:58 55a84ce3

View on Github →

chore(*): remove unnecessary parentheses around '' and ⁻¹' (#38626) This PR follows up on #38625 by removing parentheses around Set.image and Set.preimage operators that have become unnecessary due to the switch in associativity. This PR was generated by running the command rg " ('|⁻¹)'"' \([^)]*'"('|⁻¹)' " --vimgrep **/*.lean | sort -h | vim - and then in Vim running the macro:

gF
/ \('|⁻¹\)' (
f(
sd(

followed by

:w
:buf 1

on every match that manually looked to have the right form. I deleted a few more parentheses when they looked appropriate. Then I did another filtering pass with git add -p, adding only the changes that made sense.

Estimated changes