Repository navigation
[Merged by Bors] - chore: make pseudoparents of algebraic substructures reducible - #36097
matthewjasper wants to merge 3 commits into
Conversation
PR summary 82865a1a3fImport changes for modified filesNo significant changes to the import graph Import changes for all files
Declarations diffNo declarations were harmed in the making of this PR! 🐙 You can run this locally as follows## summary with just the declaration names:
./scripts/pr_summary/declarations_diff.sh <optional_commit>
## more verbose report:
./scripts/pr_summary/declarations_diff.sh long <optional_commit>The doc-module for No changes to technical debt.You can run this locally as
|
dagurtomas
left a comment
There was a problem hiding this comment.
Thanks!
maintainer delegate
|
🚀 Pull request has been placed on the maintainer queue by dagurtomas. trigger_name: pull_request_review |
1943caa to
706ba15
Compare
Vierkantor
left a comment
There was a problem hiding this comment.
Makes sense to me otherwise, thanks!
bors d+
|
✌️ matthewjasper can now approve this pull request. To approve and merge a pull request, simply reply with |
|
My PR #36395 which does a subset of this has now been merged, hence the merge conflict. For the remaining changes in this PR, I think if something is marked |
|
This pull request has conflicts, please merge |
706ba15 to
d48385c
Compare
d48385c to
27e08c7
Compare
| instance (priority := low) module' [Semiring R'] [SMul R' R] [Module R' A] [IsScalarTower R' R A] : | ||
| Module R' S := | ||
| S.toSubmodule.module' | ||
| inferInstance |
There was a problem hiding this comment.
Have you checked why these can now be inferred? Does that mean that these instances should now be removed entirely?
There was a problem hiding this comment.
I think that it was able to be inferred for a long time (it comes from SubmoduleClass.module') it's just that it's now defeq to previous definition. I think these still have value since they're higher priority than SubmoduleClass.module'.
There was a problem hiding this comment.
Aha, so what's the reason that this was changed to inferInstance?
There was a problem hiding this comment.
I chose to use inferInstance to make it clearer that this is short-cutting an already existing instance. I'm not sure whether that's preferred or not in Mathlib.
There was a problem hiding this comment.
Yeah, that's fine, I just didn't understand that this change was orthogonal to the rest of this PR.
|
bors r+ |
Make functions that take an algebraic substructure and return a sibling class reducible, this matches actual parents and resolves some usage of `set_option backward.isDefEq.respectTransparency false`. For example it ensures that the field instance on `IntermediateField` has a compatible `Semiring` instance to the one from it extending a `Subalgebra`. Also remove @[simp] from `adjoin_toSubsemiring`, since it prevents other simp lemmas on `adjoin` from applying. Co-authored-by: Matthew Jasper <[email protected]>
|
Pull request successfully merged into master. Build succeeded: |
Make functions that take an algebraic substructure and return a sibling class reducible, this matches actual parents and resolves some usage of
set_option backward.isDefEq.respectTransparency false. For example it ensures that the field instance onIntermediateFieldhas a compatibleSemiringinstance to the one from it extending aSubalgebra.Also remove @[simp] from
adjoin_toSubsemiring, since it prevents other simp lemmas onadjoinfrom applying.