Skip to content

[Merged by Bors] - chore(Trace/Quotient): move isomorphism to Localization.AtPrime.Basic#32045

Closed
xroblot wants to merge 6 commits intoleanprover-community:masterfrom
xroblot:mv_isos
Closed

[Merged by Bors] - chore(Trace/Quotient): move isomorphism to Localization.AtPrime.Basic#32045
xroblot wants to merge 6 commits intoleanprover-community:masterfrom
xroblot:mv_isos

Conversation

@xroblot
Copy link
Copy Markdown
Collaborator

@xroblot xroblot commented Nov 24, 2025

This PR move isomorphisms previously defined in Trace.Quotient into Localization.AtPrime.Basic. The change is purely organizational: Localization.AtPrime.Basic is the canonical place for lemmas and constructions about localization at a prime. The isomorphisms are also renamed to match their new namespace:

  • equivQuotMaximalIdealOfIsLocalization -> IsLocalization.AtPrime.equivQuotMaximalIdeal
  • quotMapEquivQuotMapMaximalIdealOfIsLocalization -> IsLocalization.AtPrime.equivQuotMapMaximalIdeal

Open in Gitpod

@github-actions
Copy link
Copy Markdown

github-actions bot commented Nov 24, 2025

PR summary b5631451f1

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ comap_map_eq_map
+ equivQuotMaximalIdeal
+ equivQuotientMapMaximalIdeal
+ isMaximal_map
- comap_map_eq_map_of_isLocalization_algebraMapSubmonoid
- equivQuotMaximalIdealOfIsLocalization
- quotMapEquivQuotMapMaximalIdealOfIsLocalization

You can run this locally as follows
## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>

## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>

The doc-module for script/declarations_diff.sh contains some details about this script.


No changes to technical debt.

You can run this locally as

./scripts/technical-debt-metrics.sh pr_summary
  • The relative value is the weighted sum of the differences with weight given by the inverse of the current value of the statistic.
  • The absolute value is the relative value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).

@xroblot xroblot removed the WIP Work in progress label Dec 2, 2025
Comment thread Mathlib/RingTheory/Localization/AtPrime/Basic.lean Outdated
/-- The isomorphism `R ⧸ p ≃+* Rₚ ⧸ maximalIdeal Rₚ`, where `Rₚ` satisfies
`IsLocalization.AtPrime Rₚ p`. In particular, localization preserves the residue field. -/
noncomputable
def equivQuotMaximalIdeal : R ⧸ p ≃+* Rₚ ⧸ maximalIdeal Rₚ := by
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should say ResidueField Rₚ ≃+* R ⧸ p. Or even be upgraded to a R-algebra iso.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have made the other changes but I am not sure about doing this one in this PR since this PR is only intended for moving things around and this suggestion requires some more substantial changes.

Thanks for the review!

Comment thread Mathlib/RingTheory/Localization/AtPrime/Basic.lean Outdated
@erdOne erdOne added the awaiting-author A reviewer has asked the author a question or requested changes. label Dec 6, 2025
@xroblot xroblot removed the awaiting-author A reviewer has asked the author a question or requested changes. label Dec 8, 2025
Copy link
Copy Markdown
Member

@erdOne erdOne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!
maintainer merge

@github-actions
Copy link
Copy Markdown

🚀 Pull request has been placed on the maintainer queue by erdOne.

@ghost ghost added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Dec 13, 2025
@riccardobrasca
Copy link
Copy Markdown
Member

Thanks!

bors merge

@ghost ghost added ready-to-merge This PR has been sent to bors. and removed maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. labels Dec 13, 2025
mathlib-bors bot pushed a commit that referenced this pull request Dec 13, 2025
…c` (#32045)

This PR move isomorphisms previously defined in `Trace.Quotient` into `Localization.AtPrime.Basic`. The change is purely organizational: `Localization.AtPrime.Basic` is the canonical place for lemmas and constructions about localization at a prime. The isomorphisms are also renamed to match their new namespace: 
- `equivQuotMaximalIdealOfIsLocalization` -> `IsLocalization.AtPrime.equivQuotMaximalIdeal`
- `quotMapEquivQuotMapMaximalIdealOfIsLocalization` -> `IsLocalization.AtPrime.equivQuotMapMaximalIdeal`
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Dec 13, 2025

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title chore(Trace/Quotient): move isomorphism to Localization.AtPrime.Basic [Merged by Bors] - chore(Trace/Quotient): move isomorphism to Localization.AtPrime.Basic Dec 13, 2025
@mathlib-bors mathlib-bors bot closed this Dec 13, 2025
@xroblot xroblot deleted the mv_isos branch March 16, 2026 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge This PR has been sent to bors. t-ring-theory Ring theory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants