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(algebra/polynomial, data/polynomial): lemmas about monic polynomials #3402

Closed
wants to merge 87 commits into from

Conversation

jalex-stark
Copy link
Collaborator


This does most of the heavy lifting for "the trace of a matrix is the second coefficient of its characteristic polynomial"

@jalex-stark
Copy link
Collaborator Author

I'd like to check the naming more thoroughly (or someone else to say they've done so), but I should run for now.

I did a closer pass at the names. I got rid of all the *_eq names (which are old, so now this PR touches several more files), and I applied Scott's suggestion for renaming monic.degree_one. The rest of the names seem okay to me, with maybe the fishiest one being card_pred_coeff_prod_X_sub_C.

@jalex-stark jalex-stark 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 Jul 17, 2020
Comment on lines 91 to 92
lemma next_coeff_prod_X_sub_C [nontrivial R] {s : finset ι} (f : ι → R) :
next_coeff ∏ i in s, (X - C (f i)) = -∑ i in s, f i :=
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe easier to find as prod_X_sub_C_next_coeff? Can you move the next_coeff to use projection notation?

@semorrison
Copy link
Collaborator

After that, I think we're good to go! Thanks!

bors d+

@bors
Copy link

bors bot commented Jul 18, 2020

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

@semorrison semorrison 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 awaiting-author A reviewer has asked the author a question or requested changes labels Jul 18, 2020
@jalex-stark
Copy link
Collaborator Author

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

bors r+

bors bot pushed a commit that referenced this pull request Jul 18, 2020
…ials (#3402)




Co-authored-by: Aaron Anderson <awainverse@gmail.com>
@bors
Copy link

bors bot commented Jul 18, 2020

Build failed (retrying...):

bors bot pushed a commit that referenced this pull request Jul 18, 2020
…ials (#3402)




Co-authored-by: Aaron Anderson <awainverse@gmail.com>
@bors
Copy link

bors bot commented Jul 18, 2020

Canceled.

@jalex-stark
Copy link
Collaborator Author

Build failed (retrying...):

It's failing here

/home/runner/work/mathlib/mathlib/src/ring_theory/polynomial_algebra.lean:135:2: error: unknown identifier 'apply_eq_coeff'

which is confusing to me because that file just compiles on my machine.

@bryangingechen
Copy link
Collaborator

I think the build failure may have been due to #3420 which was in the same batch.
bors r+

@github-actions github-actions bot added the ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) label Jul 18, 2020
bors bot pushed a commit that referenced this pull request Jul 18, 2020
…ials (#3402)




Co-authored-by: Aaron Anderson <awainverse@gmail.com>
@bors
Copy link

bors bot commented Jul 18, 2020

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat(algebra/polynomial, data/polynomial): lemmas about monic polynomials [Merged by Bors] - feat(algebra/polynomial, data/polynomial): lemmas about monic polynomials Jul 18, 2020
@bors bors bot closed this Jul 18, 2020
@bors bors bot deleted the polynomial_lemmas_for_freek_83 branch July 18, 2020 17:34
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

5 participants