#46708 feat(RingTheory): move ideal antidiagonally across a comm diagram of localization
PR description
The statement of this is similar to Ideal.under_map_eq_map_under, but requiring localization while dropping maximal ideal. With this, a downstream statement IsLocalization.AtPrime.liesOver_map_of_liesOver gets its proof simplified and P.IsPrime dropped.
AI usage: this lemma was discovered when I was asking Claude to develop a personal project. The statement was suggested by Claude. The proof was written by me.
Conversation on GitHub 1
PR summary 68d94ff04e
Import changes for modified files
No significant changes to the import graph
<details><summary>Import changes for all files</summary>
|Files|Import difference| |-|-|
</details>
<details><summary>
Declarations diff (regex)
</summary>
+ under_map_eq_map_under
<details>
<summary>You can run this locally as follows</summary>
## from your `mathlib4` directory:
git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci
## summary with just the declaration names:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh <optional_commit>
## more verbose report:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh long <optional_commit>
</details>
The doc-module for scripts/pr_summary/declarations_diff.sh in the undefined repository contains some details about this script.
</details>
Declarations diff (Lean)
✅ Lean-aware diff — post-build, computed from the Lean environment (commit
68d94ff).
- +1 new declarations
- −0 removed declarations
+IsLocalization.under_map_eq_map_under
No changes to strong technical debt. No changes to weak technical debt.
Current commit 68d94ff04e Reference commit 02a839bc62
This script lives in the undefined repository. To run it locally, from your mathlib4 directory:
git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci
../mathlib-ci/scripts/reporting/technical-debt-metrics.py pr_summary
- The
relativevalue is the weighted sum of the differences with weight given by the inverse of the current value of the statistic. - The
absolutevalue is therelativevalue divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).
Mathlib/RingTheory/Localization/AtPrime/Extension.lean +2 −5
theorem liesOver_comap_of_liesOver {T : Type*} [CommRing T] [Algebra R T] [AlgebMathlib/RingTheory/Localization/Ideal.lean +21 −0
lemma map_eq_top_of_not_subset {I : Ideal R} (hle : ¬ (I : Set R) ⊆ Mᶜ) :