Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - feat(NumberTheory.NumberField.Units): add torsion subgroup #5748

Closed
wants to merge 15 commits into from

Conversation

xroblot
Copy link
Collaborator

@xroblot xroblot commented Jul 6, 2023

We define the torsion subgroup of the units of a number field and prove some results about it, mostly: it is finite, cyclic and
an unit is torsion iff its value is 1 at all infinite places. Some results linking to rootsOfUnity are also proved.

This PR also includes a direct coercion from (π“ž K)Λ£ to K that is very convenient, although I am not sure it's done properly.


Open in Gitpod

@xroblot xroblot changed the title feat(NumberTheory.NumberField.Unit): add torsion subgroup feat(NumberTheory.NumberField.Units): add torsion subgroup Jul 6, 2023
@semorrison
Copy link
Contributor

Please remember to add the label awaiting-review when this is ready for review. (Alternatively PRs that refactor files that were ported from mathlib3 should be labelled after-port.)

@xroblot xroblot added the WIP Work in progress label Jul 8, 2023
@xroblot xroblot added the t-number-theory Number theory (also use t-algebra or t-analysis to specialize) label Jul 16, 2023
@xroblot xroblot added awaiting-review The author would like community review of the PR and removed WIP Work in progress labels Jul 19, 2023
@xroblot xroblot added WIP Work in progress awaiting-review The author would like community review of the PR and removed awaiting-review The author would like community review of the PR WIP Work in progress labels Jul 24, 2023
Copy link
Member

@riccardobrasca riccardobrasca left a comment

Choose a reason for hiding this comment

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

We probably want also the fact that the double coercion from (π“ž K)Λ£ to π“ž K to K is the same as the coercion from (π“ž K)Λ£ to K.

LGTM but I am not very familiar with coercions in Lean4. You can maybe ask on Zulip.

Mathlib/NumberTheory/NumberField/Units.lean Outdated Show resolved Hide resolved
Mathlib/NumberTheory/NumberField/Units.lean Outdated Show resolved Hide resolved
Mathlib/NumberTheory/NumberField/Units.lean Show resolved Hide resolved
@xroblot
Copy link
Collaborator Author

xroblot commented Jul 29, 2023

We probably want also the fact that the double coercion from (π“ž K)Λ£ to π“ž K to K is the same as the coercion from (π“ž K)Λ£ to K.

LGTM but I am not very familiar with coercions in Lean4. You can maybe ask on Zulip.

As you suggested, I asked for some expert opinion on Zulip

@Vierkantor Vierkantor self-assigned this Jul 31, 2023
@Vierkantor Vierkantor added awaiting-author A reviewer has asked the author a question or requested changes and removed awaiting-review The author would like community review of the PR labels Jul 31, 2023
@xroblot xroblot added awaiting-review The author would like community review of the PR and removed awaiting-author A reviewer has asked the author a question or requested changes labels Aug 2, 2023
Copy link
Contributor

@Vierkantor Vierkantor left a comment

Choose a reason for hiding this comment

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

Thanks!

bors d+

@bors
Copy link

bors bot commented Aug 2, 2023

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

@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added delegated and removed awaiting-review The author would like community review of the PR labels Aug 2, 2023
@xroblot
Copy link
Collaborator Author

xroblot commented Aug 2, 2023

bors r+

bors bot pushed a commit that referenced this pull request Aug 2, 2023
We define the torsion subgroup of the units of a number field and prove some results about it, mostly: it is finite, cyclic and 
an unit is torsion iff its value is 1 at all infinite places. Some results linking to `rootsOfUnity` are also proved. 

This PR also includes a direct coercion from `(π“ž K)Λ£` to `K` that is very convenient, although I am not sure it's done properly.
@bors
Copy link

bors bot commented Aug 3, 2023

Pull request successfully merged into master.

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors bot changed the title feat(NumberTheory.NumberField.Units): add torsion subgroup [Merged by Bors] - feat(NumberTheory.NumberField.Units): add torsion subgroup Aug 3, 2023
@bors bors bot closed this Aug 3, 2023
@bors bors bot deleted the xfr-unit-torsion branch August 3, 2023 00:24
semorrison pushed a commit that referenced this pull request Aug 3, 2023
We define the torsion subgroup of the units of a number field and prove some results about it, mostly: it is finite, cyclic and 
an unit is torsion iff its value is 1 at all infinite places. Some results linking to `rootsOfUnity` are also proved. 

This PR also includes a direct coercion from `(π“ž K)Λ£` to `K` that is very convenient, although I am not sure it's done properly.
semorrison pushed a commit that referenced this pull request Aug 3, 2023
We define the torsion subgroup of the units of a number field and prove some results about it, mostly: it is finite, cyclic and 
an unit is torsion iff its value is 1 at all infinite places. Some results linking to `rootsOfUnity` are also proved. 

This PR also includes a direct coercion from `(π“ž K)Λ£` to `K` that is very convenient, although I am not sure it's done properly.
semorrison pushed a commit that referenced this pull request Aug 14, 2023
We define the torsion subgroup of the units of a number field and prove some results about it, mostly: it is finite, cyclic and 
an unit is torsion iff its value is 1 at all infinite places. Some results linking to `rootsOfUnity` are also proved. 

This PR also includes a direct coercion from `(π“ž K)Λ£` to `K` that is very convenient, although I am not sure it's done properly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
delegated t-number-theory Number theory (also use t-algebra or t-analysis to specialize)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants