[Merged by Bors] - refactor: rename Rel to SetRel, restore the old Rel#27447
[Merged by Bors] - refactor: rename Rel to SetRel, restore the old Rel#27447eric-wieser wants to merge 10 commits intomasterfrom
Rel to SetRel, restore the old Rel#27447Conversation
Many users are confused that Rel no longer means what it used to. Since the design is not obvious, lets put it in a namespace that makes the choice obvious.
PR summary 1b235f6e15Import changes for modified filesNo significant changes to the import graph Import changes for all files
|
Rel to Set.Rel, restore the old Rel
|
Would |
|
Perhaps; can you create a zulip poll? |
|
|
Rel to Set.Rel, restore the old RelRel to SetRel, restore the old Rel
|
bors d+ |
|
✌️ eric-wieser can now approve this pull request. To approve and merge a pull request, simply reply with |
|
bors merge |
Many users are confused that Rel no longer means what it used to. Since the design is not obvious (and the implementation is explicitly part of the interface thanks to `abbrev`), let's give it a name that makes the choice obvious. This then restores the old definition of `Rel`, as an abbrev; it's conceivable that many users were just using this as a shorthand, and this stops them being broken by #25587. Such users will of course be broken if they used [the old API](https://github.com/leanprover-community/mathlib4/blob/59bd63c72671849996d64c5d3b5f24a36333483c%5E/Mathlib/Data/Rel.lean). This way, users bumping from 4.21.0 to 4.22.0 and using `Rel` only as a shorthand will not be broken. [#mathlib4 > Changing `Rel` to `Set (α × β)`, to help uniform spaces @ 💬](https://leanprover.zulipchat.com/#narrow/channel/287929-mathlib4/topic/Changing.20.60Rel.60.20to.20.60Set.20.28.CE.B1.20.C3.97.20.CE.B2.29.60.2C.20to.20help.20uniform.20spaces/near/528531852)
|
Pull request successfully merged into master. Build succeeded: |
Rel to SetRel, restore the old RelRel to SetRel, restore the old Rel
…-community#27447) Many users are confused that Rel no longer means what it used to. Since the design is not obvious (and the implementation is explicitly part of the interface thanks to `abbrev`), let's give it a name that makes the choice obvious. This then restores the old definition of `Rel`, as an abbrev; it's conceivable that many users were just using this as a shorthand, and this stops them being broken by leanprover-community#25587. Such users will of course be broken if they used [the old API](https://github.com/leanprover-community/mathlib4/blob/59bd63c72671849996d64c5d3b5f24a36333483c%5E/Mathlib/Data/Rel.lean). This way, users bumping from 4.21.0 to 4.22.0 and using `Rel` only as a shorthand will not be broken. [#mathlib4 > Changing &leanprover-community#96;Rel&leanprover-community#96; to &leanprover-community#96;Set (α × β)&leanprover-community#96;, to help uniform spaces @ 💬](https://leanprover.zulipchat.com/#narrow/channel/287929-mathlib4/topic/Changing.20.60Rel.60.20to.20.60Set.20.28.CE.B1.20.C3.97.20.CE.B2.29.60.2C.20to.20help.20uniform.20spaces/near/528531852)
Many users are confused that Rel no longer means what it used to. Since the design is not obvious (and the implementation is explicitly part of the interface thanks to
abbrev), let's give it a name that makes the choice obvious.This then restores the old definition of
Rel, as an abbrev; it's conceivable that many users were just using this as a shorthand, and this stops them being broken by #25587. Such users will of course be broken if they used the old API.This way, users bumping from 4.21.0 to 4.22.0 and using
Relonly as a shorthand will not be broken.#mathlib4 > Changing `Rel` to `Set (α × β)`, to help uniform spaces @ 💬