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(linear_algebra): determinant of vectors in a basis #3919

Closed
wants to merge 8 commits into from

Conversation

PatrickMassot
Copy link
Member

@PatrickMassot PatrickMassot commented Aug 23, 2020

From the sphere eversion project, define the determinant of a family of vectors with respects to a basis.

The main result is is_basis.iff_det asserting a family of vectors is a basis iff its determinant in some basis is invertible.

Also renames equiv_fun_basis to is_basis.equiv_fun and equiv_fun_basis_symm_apply to is_basis.equiv_fun_symm_apply, in order to use dot notation.

Co-authored-by: Anne Baanen t.baanen@vu.nl


Note that this file linear_algebra.matrix is becoming a mess. We should probably move a few things and add headers, but I didn't want to do this and add content at the same time (and also I'm too lazy busy right now).

@PatrickMassot PatrickMassot added the awaiting-review The author would like community review of the PR label Aug 23, 2020
@Vierkantor Vierkantor self-requested a review August 25, 2020 20:35
Copy link
Collaborator

@Vierkantor Vierkantor left a comment

Choose a reason for hiding this comment

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

Thanks 🎉

src/linear_algebra/matrix.lean Outdated Show resolved Hide resolved
src/linear_algebra/matrix.lean Outdated Show resolved Hide resolved
src/linear_algebra/matrix.lean Outdated Show resolved Hide resolved
src/linear_algebra/matrix.lean Show resolved Hide resolved
src/linear_algebra/matrix.lean Outdated Show resolved Hide resolved
src/linear_algebra/matrix.lean Outdated Show resolved Hide resolved
@Vierkantor Vierkantor 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 labels Aug 26, 2020
PatrickMassot and others added 2 commits August 27, 2020 20:57
Co-authored-by: Vierkantor <Vierkantor@users.noreply.github.com>
Also renames `equiv_fun_basis` to `is_basis.equiv_fun`
in order to use dot notation.
@PatrickMassot PatrickMassot 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 Aug 28, 2020
Copy link
Collaborator

@Vierkantor Vierkantor left a comment

Choose a reason for hiding this comment

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

Thanks for the work! Since I co-authored some of the definitions, I'll invite someone else to take a look as well.

robertylewis and others added 2 commits August 28, 2020 17:46
Co-authored-by: Bryan Gin-ge Chen <bryangingechen@gmail.com>
src/analysis/normed_space/finite_dimension.lean Outdated Show resolved Hide resolved
src/linear_algebra/basis.lean Outdated Show resolved Hide resolved
src/linear_algebra/basis.lean Outdated Show resolved Hide resolved
Co-authored-by: Bryan Gin-ge Chen <bryangingechen@gmail.com>
@PatrickMassot
Copy link
Member Author

Thanks @robertylewis!

Copy link
Collaborator

@bryangingechen bryangingechen left a comment

Choose a reason for hiding this comment

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

I'm not too familiar with the linear algebra part of the library, but this looks good to me.

I do agree that linear_algebra/matrix.lean does need to be cleaned up or split up into multiple files. The file could also use sectioning module doc strings.

src/algebra/big_operators/pi.lean Outdated Show resolved Hide resolved
src/linear_algebra/matrix.lean Show resolved Hide resolved
@@ -1709,6 +1709,9 @@ rfl
@[simp] theorem map_zero : e 0 = 0 := e.to_linear_map.map_zero
@[simp] theorem map_smul (c : R) (x : M) : e (c • x) = c • e x := e.map_smul' c x

@[simp] lemma map_sum [fintype ι] (u : ι → M) : e (∑ i, u i) = ∑ i, e (u i) :=
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't this rather be done more generally for sums over finsets?

@jcommelin jcommelin 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 labels Aug 29, 2020
PatrickMassot and others added 2 commits August 29, 2020 17:06
Co-authored-by: Bryan Gin-ge Chen <bryangingechen@gmail.com>
@PatrickMassot PatrickMassot 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 Aug 29, 2020
@jcommelin
Copy link
Member

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 Aug 29, 2020
bors bot pushed a commit that referenced this pull request Aug 29, 2020
From the sphere eversion project, define the determinant of a family of vectors with respects to a basis. 

The main result is `is_basis.iff_det` asserting a family of vectors is a basis iff its determinant in some basis is invertible.

Also renames `equiv_fun_basis` to `is_basis.equiv_fun` and `equiv_fun_basis_symm_apply` to `is_basis.equiv_fun_symm_apply`, in order to use dot notation.

Co-authored-by: Anne Baanen t.baanen@vu.nl



Co-authored-by: Rob Lewis <Rob.y.lewis@gmail.com>
Co-authored-by: Rob Lewis <rob.y.lewis@gmail.com>
@bors
Copy link

bors bot commented Aug 29, 2020

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat(linear_algebra): determinant of vectors in a basis [Merged by Bors] - feat(linear_algebra): determinant of vectors in a basis Aug 29, 2020
@bors bors bot closed this Aug 29, 2020
@bors bors bot deleted the det-vec branch August 29, 2020 18:46
robertylewis added a commit that referenced this pull request Aug 31, 2020
From the sphere eversion project, define the determinant of a family of vectors with respects to a basis. 

The main result is `is_basis.iff_det` asserting a family of vectors is a basis iff its determinant in some basis is invertible.

Also renames `equiv_fun_basis` to `is_basis.equiv_fun` and `equiv_fun_basis_symm_apply` to `is_basis.equiv_fun_symm_apply`, in order to use dot notation.

Co-authored-by: Anne Baanen t.baanen@vu.nl



Co-authored-by: Rob Lewis <Rob.y.lewis@gmail.com>
Co-authored-by: Rob Lewis <rob.y.lewis@gmail.com>
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