Skip to content

[Merged by Bors] - feat(RingTheory): definition of regular local ring#28682

Closed
Thmoas-Guan wants to merge 110 commits into
leanprover-community:masterfrom
Thmoas-Guan:Regular-Local-Ring-Def
Closed

[Merged by Bors] - feat(RingTheory): definition of regular local ring#28682
Thmoas-Guan wants to merge 110 commits into
leanprover-community:masterfrom
Thmoas-Guan:Regular-Local-Ring-Def

Conversation

@Thmoas-Guan

@Thmoas-Guan Thmoas-Guan commented Aug 20, 2025

Copy link
Copy Markdown
Collaborator

In this PR, we give the definition of regular local ring.
The class IsRegularLocalRing is defined as (maximalIdeal R).spanFinrank = ringKrullDim R
We also established the lemma IsRegularLocalRing.iff_finrank_cotangentSpace proving this definition is equivalent to the cotangent space version.


Open in Gitpod

@github-actions

github-actions Bot commented Aug 20, 2025

Copy link
Copy Markdown

PR summary 56e100aabd

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference
Mathlib.RingTheory.RegularLocalRing.Defs (new file) 2148

Declarations diff

+ IsRegularLocalRing
+ iff_finrank_cotangentSpace
+ instance [IsLocalRing R] [IsDomain R] [IsPrincipalIdealRing R] : IsRegularLocalRing R := by
+ isRegularLocalRing_iff
+ of_ringEquiv
+ of_spanFinrank_maximalIdeal_le
+ ringKrullDim_le_spanFinrank_maximalIdeal

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 scripts/pr_summary/declarations_diff.sh contains some details about this script.


Increase in tech debt: (relative, absolute) = (1.00, 0.00)
Current number Change Type
8728 1 backward.isDefEq

Current commit 24105372eb
Reference commit 56e100aabd

You can run this locally as

./scripts/reporting/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).

@Thmoas-Guan Thmoas-Guan added the t-ring-theory Ring theory label Aug 20, 2025

@chrisflav chrisflav left a comment

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 am happy to see that someone finally went forward and pinned down a definition.

Comment thread Mathlib/RingTheory/RegularLocalRing.lean Outdated
Comment thread Mathlib/RingTheory/RegularLocalRing.lean Outdated
Comment thread Mathlib/RingTheory/RegularLocalRing.lean Outdated
Comment thread Mathlib/RingTheory/RegularLocalRing.lean Outdated
Comment thread Mathlib/RingTheory/RegularLocalRing.lean Outdated
Comment thread Mathlib/RingTheory/RegularLocalRing.lean Outdated
Comment thread Mathlib/RingTheory/RegularLocalRing.lean Outdated
@chrisflav chrisflav added the awaiting-author A reviewer has asked the author a question or requested changes. label Aug 20, 2025
@chrisflav

Copy link
Copy Markdown
Member

Please also extend the PR description by which definition you choose and that you show it is equivalent to the Cotangent space one.

@Thmoas-Guan

Copy link
Copy Markdown
Collaborator Author

I am happy to see that someone finally went forward and pinned down a definition.

I choose this definition only because it depends the least to state, maybe there are other opinions I haven't heard of, but at least it can be easily changed to the cotangent space definition. And thanks for the help, these PR are currently a bit messy.

@chrisflav

Copy link
Copy Markdown
Member

I am happy to see that someone finally went forward and pinned down a definition.

I choose this definition only because it depends the least to state, maybe there are other opinions I haven't heard of, but at least it can be easily changed to the cotangent space definition. And thanks for the help, these PR are currently a bit messy.

I personally would have chosen the cotangent space definition, but it really does not matter, so please stick to your definition. Other people wanted to go via regular sequences, but as far as I can tell, this is also on your roadmap?

@chrisflav chrisflav self-assigned this Aug 20, 2025
@Thmoas-Guan

Copy link
Copy Markdown
Collaborator Author

What on my roadmap? Regular system of parameters is regular seqence? If this then it is in #28683

@chrisflav

chrisflav commented Aug 20, 2025

Copy link
Copy Markdown
Member

What on my roadmap? Regular system of parameters is regular seqence? If this then it is in #28683

Do you also have the converse? If the maximal ideal is generated by a regular sequence of length dim R, then R is regular? (this is trivial and already contained in this PR)
Yes, wonderful. Then I am very happy with your definition in this PR.

@Thmoas-Guan Thmoas-Guan removed the awaiting-author A reviewer has asked the author a question or requested changes. label Aug 20, 2025
Comment thread Mathlib/RingTheory/RegularLocalRing.lean Outdated
Comment thread Mathlib/RingTheory/RegularLocalRing.lean Outdated
Comment thread Mathlib/RingTheory/RegularLocalRing.lean Outdated
Comment thread Mathlib/RingTheory/RegularLocalRing.lean Outdated
Comment thread Mathlib/RingTheory/RegularLocalRing.lean Outdated
Comment thread Mathlib/RingTheory/RegularLocalRing.lean Outdated
Comment thread Mathlib/RingTheory/RegularLocalRing.lean Outdated
Comment thread Mathlib/RingTheory/RegularLocalRing.lean Outdated
@chrisflav chrisflav added the awaiting-author A reviewer has asked the author a question or requested changes. label Aug 22, 2025
@Thmoas-Guan

Copy link
Copy Markdown
Collaborator Author

Sorry that I just move the file, I'll try to address the comments

@mathlib-dependent-issues mathlib-dependent-issues Bot removed the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Mar 20, 2026
@mathlib-dependent-issues

Copy link
Copy Markdown

This PR/issue depends on:

@chrisflav

Copy link
Copy Markdown
Member

Could you please merge master?

@chrisflav chrisflav added the awaiting-author A reviewer has asked the author a question or requested changes. label Mar 20, 2026
@Thmoas-Guan Thmoas-Guan removed the awaiting-author A reviewer has asked the author a question or requested changes. label Mar 21, 2026
Comment thread Mathlib/RingTheory/RegularLocalRing/Defs.lean Outdated
Comment thread Mathlib/RingTheory/RegularLocalRing/Defs.lean Outdated
Comment thread Mathlib/RingTheory/RegularLocalRing/Defs.lean Outdated
Comment thread Mathlib/RingTheory/RegularLocalRing/Defs.lean Outdated
@chrisflav chrisflav added the awaiting-author A reviewer has asked the author a question or requested changes. label Mar 21, 2026
@Thmoas-Guan Thmoas-Guan removed the awaiting-author A reviewer has asked the author a question or requested changes. label Mar 21, 2026
Comment thread Mathlib/RingTheory/RegularLocalRing/Defs.lean Outdated
@chrisflav chrisflav added the awaiting-author A reviewer has asked the author a question or requested changes. label Mar 27, 2026
@Thmoas-Guan Thmoas-Guan removed the awaiting-author A reviewer has asked the author a question or requested changes. label Mar 27, 2026

@chrisflav chrisflav left a comment

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.

Thanks!

maintainer merge

@github-actions

Copy link
Copy Markdown

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


pull_request_review, wf_run

@mathlib-triage mathlib-triage Bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Mar 27, 2026

@riccardobrasca riccardobrasca left a comment

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.

Thanks!

bors d+

Comment thread Mathlib/RingTheory/RegularLocalRing/Defs.lean
@mathlib-bors

mathlib-bors Bot commented Mar 30, 2026

Copy link
Copy Markdown
Contributor

✌️ Thmoas-Guan can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@mathlib-triage mathlib-triage Bot added delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). and removed maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. labels Mar 30, 2026
@Thmoas-Guan

Copy link
Copy Markdown
Collaborator Author

bors r+

mathlib-bors Bot pushed a commit that referenced this pull request Mar 30, 2026
In this PR, we give the definition of regular local ring.
The class `IsRegularLocalRing` is defined as `(maximalIdeal R).spanFinrank = ringKrullDim R`
We also established the lemma `IsRegularLocalRing.iff_finrank_cotangentSpace` proving this definition is equivalent to the cotangent space version.
@mathlib-bors

mathlib-bors Bot commented Mar 30, 2026

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title feat(RingTheory): definition of regular local ring [Merged by Bors] - feat(RingTheory): definition of regular local ring Mar 30, 2026
@mathlib-bors mathlib-bors Bot closed this Mar 30, 2026
aditya-ramabadran pushed a commit to aditya-ramabadran/mathlib4 that referenced this pull request Apr 1, 2026
…ity#28682)

In this PR, we give the definition of regular local ring.
The class `IsRegularLocalRing` is defined as `(maximalIdeal R).spanFinrank = ringKrullDim R`
We also established the lemma `IsRegularLocalRing.iff_finrank_cotangentSpace` proving this definition is equivalent to the cotangent space version.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). t-ring-theory Ring theory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants