Skip to content

feat: unit lemmas and embedding for FiniteAdeleRing#35820

Open
smmercuri wants to merge 10 commits intoleanprover-community:masterfrom
smmercuri:FiniteAdeleRingUnits
Open

feat: unit lemmas and embedding for FiniteAdeleRing#35820
smmercuri wants to merge 10 commits intoleanprover-community:masterfrom
smmercuri:FiniteAdeleRingUnits

Conversation

@smmercuri
Copy link
Copy Markdown
Collaborator


Open in Gitpod

@smmercuri smmercuri mentioned this pull request Feb 26, 2026
5 tasks
@github-actions
Copy link
Copy Markdown

github-actions bot commented Feb 26, 2026

PR summary ffb5b8a658

Import changes for modified files

Dependency changes

File Base Count Head Count Change
Mathlib.RingTheory.DedekindDomain.FiniteAdeleRing 2259 2261 +2 (+0.09%)
Import changes for all files
Files Import difference
Mathlib.NumberTheory.NumberField.AdeleRing 1
Mathlib.RingTheory.DedekindDomain.FiniteAdeleRing 2

Declarations diff

+ algebraMap_apply
+ infinite_valued_ne_one_of_not_isUnit
+ isUnit_iff
+ unitEmbedding
+ unitEmbedding_apply
+ unitsEquiv_finite_valued_eq_one

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
6796 1 backward.isDefEq.respectTransparency

Current commit b5a1b1a1ef
Reference commit ffb5b8a658

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).

@github-actions github-actions bot added the t-ring-theory Ring theory label Feb 26, 2026
@mathlib-triage mathlib-triage bot assigned mattrobball and unassigned alreadydone Mar 25, 2026
Copy link
Copy Markdown
Collaborator

@Multramate Multramate left a comment

Choose a reason for hiding this comment

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

LGTM otherwise

Comment thread Mathlib/RingTheory/DedekindDomain/FiniteAdeleRing.lean Outdated
variable {R K}

set_option backward.isDefEq.respectTransparency false in
theorem isUnit_iff {a : FiniteAdeleRing R K} :
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Maybe:

Suggested change
theorem isUnit_iff {a : FiniteAdeleRing R K} :
theorem isUnit_iff (a : FiniteAdeleRing R K) :

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.

This is meant to be a rewrite lemma, so I think we want to keep a implicit?

Comment thread Mathlib/RingTheory/DedekindDomain/FiniteAdeleRing.lean Outdated
Comment thread Mathlib/RingTheory/DedekindDomain/FiniteAdeleRing.lean Outdated
Comment thread Mathlib/RingTheory/DedekindDomain/FiniteAdeleRing.lean
Comment thread Mathlib/RingTheory/DedekindDomain/FiniteAdeleRing.lean Outdated
Comment thread Mathlib/RingTheory/DedekindDomain/FiniteAdeleRing.lean Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t-ring-theory Ring theory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants