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] - refactor(number_theory/legendre_symbol/): move Gauss/Eisenstein lemma code to separate file #13449

Closed
wants to merge 4 commits into from

Conversation

MichaelStollBayreuth
Copy link
Collaborator

In preparation of further changes to number_theory/legendre_symbol/quadratic_reciprocity, this takes most of the code dealing with the lemmas of Gauss and Eisenstein out of quadratic_reciprocity.lean into a new file gauss_eisenstein_lemmas.lean.

Since I am not planning to do much (if anything) to this part of the code and it is rather involved and slows down Lean when I'm editing quadratic_reciprocity.lean, it makes sense to separate this code from the remainder of the file.


Open in Gitpod

@MichaelStollBayreuth MichaelStollBayreuth added the awaiting-review The author would like community review of the PR label Apr 14, 2022
@jcommelin jcommelin changed the title refactor(number_theory/legednre_symbol/): move Gauss/Eisenstein lemma code to separate file refactor(number_theory/legendre_symbol/): move Gauss/Eisenstein lemma code to separate file Apr 14, 2022
@ocfnash
Copy link
Collaborator

ocfnash commented Apr 15, 2022

Just to be sure, I diff'd the move and aside from the new file header, the following are the only changes:

35a36,37
> end wilson
> 
37a40,44
> section gauss_eisenstein
> 
> namespace legendre_symbol
> 
113c120
< private lemma gauss_lemma_aux₂ (p : ℕ) [hp : fact p.prime] [fact (p % 2 = 1)]
---
> lemma gauss_lemma_aux (p : ℕ) [hp : fact p.prime] [fact (p % 2 = 1)]
153c160
< private lemma eisenstein_lemma_aux₂ (p : ℕ) [fact p.prime] [fact (p % 2 = 1)]
---
> lemma eisenstein_lemma_aux (p : ℕ) [fact p.prime] [fact (p % 2 = 1)]
204c211
< private lemma sum_mul_div_add_sum_mul_div_eq_mul (p q : ℕ) [hp : fact p.prime]
---
> lemma sum_mul_div_add_sum_mul_div_eq_mul (p q : ℕ) [hp : fact p.prime]
247c254
< variables (p q : ℕ) [fact p.prime] [fact q.prime]
---
> end legendre_symbol
249c256
< namespace zmod
---
> end gauss_eisenstein

@ocfnash
Copy link
Collaborator

ocfnash commented Apr 15, 2022

Thanks!

bors merge

@github-actions github-actions bot added ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) and removed awaiting-review The author would like community review of the PR labels Apr 15, 2022
@MichaelStollBayreuth
Copy link
Collaborator Author

Thanks!
Indeed, the changes listed above should be the only ones.

bors bot pushed a commit that referenced this pull request Apr 15, 2022
… code to separate file (#13449)

In preparation of further changes to number_theory/legendre_symbol/quadratic_reciprocity, this takes most of the code dealing with the lemmas of Gauss and Eisenstein out of quadratic_reciprocity.lean into a new file gauss_eisenstein_lemmas.lean.

Since I am not planning to do much (if anything) to this part of the code and it is rather involved and slows down Lean when I'm editing quadratic_reciprocity.lean, it makes sense to separate this code from the remainder of the file.



Co-authored-by: Oliver Nash <github@olivernash.org>
@bors
Copy link

bors bot commented Apr 15, 2022

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title refactor(number_theory/legendre_symbol/): move Gauss/Eisenstein lemma code to separate file [Merged by Bors] - refactor(number_theory/legendre_symbol/): move Gauss/Eisenstein lemma code to separate file Apr 15, 2022
@bors bors bot closed this Apr 15, 2022
@bors bors bot deleted the legendre_symbol branch April 15, 2022 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants