-
Notifications
You must be signed in to change notification settings - Fork 297
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(linear_algebra/matrix): trace of an endomorphism independent of basis #3125
Conversation
kckennylau
commented
Jun 21, 2020
I'm delighted to see someone finally defining traces; nice work! Ages ago I had plans to do this and was planning to define the trace by showing that |
src/linear_algebra/matrix.lean
Outdated
... = trace_aux R hc : by { rw trace_aux_range R hc, congr } | ||
|
||
/-- Trace of an endomorphism independent of basis. -/ | ||
def trace' (R : Type u) [comm_ring R] (M : Type v) [add_comm_group M] [module R M] : |
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.
Shouldn't this be in a different namespace? linear_map.trace
?
@kckennylau What do you think of @ocfnash 's suggestion? That way the definition is intrinsically independent of a basis. And given a basis, you turn the linear map into a matrix, and relate the |
@jcommelin could we relate those in another PR? |
@kckennylau We could do that, but I guess it means that the next PR would refactor the definition and lemmas about |
the next PR can just be |
@kckennylau You don't like "Linear algebra done right"? |
Co-authored-by: Johan Commelin <johan@commelin.net>
Thanks 🎉 bors merge looking forward to the next PR |
Pull request successfully merged into master. Build succeeded: |