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: changeLevel for Dirichlet characters #7263

Closed
wants to merge 13 commits into from

Conversation

mo271
Copy link
Collaborator

@mo271 mo271 commented Sep 19, 2023


Open in Gitpod

@mo271
Copy link
Collaborator Author

mo271 commented Sep 19, 2023

@MichaelStollBayreuth adding you here, because of the helpful suggestions in #7010.

@mo271 mo271 added awaiting-review The author would like community review of the PR awaiting-CI labels Sep 19, 2023
@alexjbest
Copy link
Member

Can we add some "obvious" lemmas about change level here, like change_level_self for n | n is the identity map, and change_level_trans saying that if n | m | r then changing level twice is the same as changing just once

@mo271
Copy link
Collaborator Author

mo271 commented Sep 20, 2023

Can we add some "obvious" lemmas about change level here, like change_level_self for n | n is the identity map, and change_level_trans saying that if n | m | r then changing level twice is the same as changing just once

I was going to do that in a follow-up pull request in order to keep them small, but I'm happy to do it here now. Added those.

@alexjbest
Copy link
Member

Can we add some "obvious" lemmas about change level here, like change_level_self for n | n is the identity map, and change_level_trans saying that if n | m | r then changing level twice is the same as changing just once

I was going to do that in a follow-up pull request in order to keep them small, but I'm happy to do it here now. Added those.

I appreciate that! I think there is some sort of happy medium around 100 lines for a new Def + the basic lemmas to be sure that the Def works as intended.

@mo271 mo271 changed the title feat: change_level for Dirichlet characters feat: changeLevel for Dirichlet characters Sep 20, 2023
mo271 and others added 2 commits September 20, 2023 20:42
Co-authored-by: Alex J Best <alex.j.best@gmail.com>
Co-authored-by: Alex J Best <alex.j.best@gmail.com>
@MichaelStollBayreuth
Copy link
Collaborator

Should the indentation in

lemma toUnitHom_eq_char' {a : ZMod n} (ha : IsUnit a) :
  χ a = χ.toUnitHom ha.unit := by simp

lemma toUnitHom_eq_iff (ψ : DirichletCharacter R n) :
  toUnitHom χ = toUnitHom ψ ↔ χ = ψ := by simp

lemma eval_modulus_sub (x : ZMod n) :
  χ (n - x) = χ (-x) := by simp

also be changed (to indent by 4 for statements on the line(s) after ":")?

@mo271
Copy link
Collaborator Author

mo271 commented Sep 20, 2023

also be changed (to indent by 4 for statements on the line(s) after ":")?

I just put them on one line.

@MichaelStollBayreuth
Copy link
Collaborator

Looks good to me now!

Copy link
Member

@alexjbest alexjbest left a comment

Choose a reason for hiding this comment

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

maintainer merge

@github-actions
Copy link

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

Copy link
Member

@jcommelin jcommelin 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 merge

@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added ready-to-merge This PR has been sent to bors. and removed awaiting-review The author would like community review of the PR labels Sep 21, 2023
bors bot pushed a commit that referenced this pull request Sep 21, 2023
Co-authored-by: Moritz Firsching <firsching@google.com>
@bors
Copy link

bors bot commented Sep 21, 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: changeLevel for Dirichlet characters [Merged by Bors] - feat: changeLevel for Dirichlet characters Sep 21, 2023
@bors bors bot closed this Sep 21, 2023
@bors bors bot deleted the mo271/change_level branch September 21, 2023 02:30
kodyvajjha pushed a commit that referenced this pull request Sep 22, 2023
Co-authored-by: Moritz Firsching <firsching@google.com>
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants