Commit 2026-08-11 15:45 4e9f33ff
View on Github →chore: improve Set / Finset congruence API (#42640)
These changes concern the following four equivalences:
variable {α β : Type*}
example (e : α ≃ β) : Set α ≃ Set β := Equiv.Set.congr e -- No change
example (e : α ≃ β) : Finset α ≃ Finset β := Equiv.finsetCongr e -- Rename to `Equiv.Finset.congr`
example {s t : Set α} (h : s = t) : s ≃ t := Equiv.setCongr h -- No change
example {s t : Finset α} (h : s = t) : s ≃ t := sorry -- Missing: add as `Equiv.finsetCongr`
In summary we essentially implement two changes:
- Rename the existing
Equiv.finsetCongrtoEquiv.Finset.congrsince it is currently inconsistent with bothEquiv.Set.congrandEquiv.setCongr - Fill a gap by giving the the now-available
Equiv.finsetCongrname to theFinsetversion ofEquiv.setCongr