refactor(data/int/cast): Use hom classes
Restate lemmas using monoid_with_zero_hom_class/ring_hom_class instead of monoid_with_zero_hom/ring_hom.
- [ ] depends on: #15985
Cc @urkud who was going to do this
Please don't do map_inv/map_div/map_units_inv in the same PR. I've started #15985 about these lemmas, and already fixed more files (also, my map_units_inv is more general).
It will be painful to undo, so I will just wait for yours to go through.
I'll try to fix my branch while waiting for the next flight (I have about 4h).
Safe flight!
My PR is ready.
This PR/issue depends on:
- ~~leanprover-community/mathlib#15985~~ By Dependent Issues (🤖). Happy coding!
@YaelDillies Could you please list API changes in the commit message?
Otherwise LGTM. Thanks! bors d+
:v: YaelDillies can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.
That became minimal after your PR, thanks!
bors merge
Pull request successfully merged into master.
Build succeeded: