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
feat(data/matrix/companion): Companion matrix #15047
Open
pbazin
wants to merge
5
commits into
master
Choose a base branch
from
companion_matrix'
base: master
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
eric-wieser
reviewed
Jun 29, 2022
vihdzp
reviewed
Jun 30, 2022
YaelDillies
changed the title
feat(data/matrix/companion.lean): define companion matrix
feat(data/matrix/companion): Companion matrix
Jul 14, 2022
Is this meant to be labelled |
eric-wieser
reviewed
Mar 30, 2023
/-- The companion matrix of a polynomial. -/ | ||
def companion [ring R] (P : R[X]) : matrix (fin P.nat_degree) (fin P.nat_degree) R := | ||
if h : P.nat_degree = 0 then 0 else | ||
λ i j, if j = fin.last' h then -P.coeff i else if (j : ℕ) + 1 = i then 1 else 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggested change
λ i j, if j = fin.last' h then -P.coeff i else if (j : ℕ) + 1 = i then 1 else 0 | |
of (λ i j, if j = fin.last' h then -P.coeff i else if (j : ℕ) + 1 = i then 1 else 0) |
semorrison
added
the
not-too-late
This PR was ready at the point mathlib3 was frozen: we will try to merge it and port it to mathlib4
label
Jul 16, 2023
semorrison
added
too-late
This PR was ready too late for inclusion in mathlib3
and removed
not-too-late
This PR was ready at the point mathlib3 was frozen: we will try to merge it and port it to mathlib4
labels
Aug 6, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Defines the companion matrix of a polynomial.
companion_eq_to_matrix_lmul_root
provides a more abstract definition, from which it should be easier to prove some stuff (e.g. minimal polynomial) about the companion matrix.Edit : minimal polynomial of the companion matrix now proved.