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] - chore(linear_algebra/std_basis): move std_basis to a new file #6020

Closed
wants to merge 2 commits into from

Conversation

eric-wieser
Copy link
Member

linear_algebra/basic is very long. This reduces its length by about 5%.

Authorship of the std_basis stuff seems to come almost entirely from 10a586b.

None of the lemmas have changed, and the variables are kept in exactly the same order as before.


@eric-wieser eric-wieser added the awaiting-review The author would like community review of the PR label Feb 3, 2021
linear_algebra/basic is _very_ long. This reduces its length by about 5%.

Authorship of the std_basis stuff seems to come almost entirely from 10a586b.

None of the lemmas have changed, and the variables are kept in exactly the same order as before.
@eric-wieser eric-wieser force-pushed the eric-wieser/split-linear_algebra.basic branch from 4ffd786 to 052d523 Compare February 3, 2021 12:59
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.

I love refactors of linear_algebra ❤️

Should we take the opportunity to shorten basis.lean as well, moving some std_basis results to the new std_basis file?

elsewhere.

To give a concrete example, `std_basis R (λ (i : fin 3), R) i 1` gives the `i`th unit basis vector
in `R³`, and `pi.is_basis_fun` proves this is a basis over `fin 3 → R`.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Since this file doesn't actually prove that the standard basis is a basis, maybe the import hierarchy should go basic.lean -> basis.lean -> std_basis.lean?

@eric-wieser
Copy link
Member Author

Moving the is_basis statements is probably a good idea, but since I don't plan to come back to this today my preference would be just to merge it so that the build time is slightly shorter (not incurring basic) when we move the lemmas you propose.

@Vierkantor
Copy link
Collaborator

Sounds good. Maybe I'll look into moving the basis stuff later today.

bors r+

@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 Feb 4, 2021
bors bot pushed a commit that referenced this pull request Feb 4, 2021
linear_algebra/basic is _very_ long. This reduces its length by about 5%.

Authorship of the std_basis stuff seems to come almost entirely from 10a586b.

None of the lemmas have changed, and the variables are kept in exactly the same order as before.
@bors
Copy link

bors bot commented Feb 4, 2021

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title chore(linear_algebra/std_basis): move std_basis to a new file [Merged by Bors] - chore(linear_algebra/std_basis): move std_basis to a new file Feb 4, 2021
@bors bors bot closed this Feb 4, 2021
@bors bors bot deleted the eric-wieser/split-linear_algebra.basic branch February 4, 2021 14:28
Vierkantor added a commit that referenced this pull request Feb 5, 2021
This is a follow-up to #6020 which moved `std_basis` to a new file,
now we move results about `std_basis` to that same file.
bors bot pushed a commit that referenced this pull request Feb 5, 2021
…6054)

This is a follow-up to #6020 which moved `std_basis` to a new file: now move results from `basis.lean` to that same file.

CC @eric-wieser 



Co-authored-by: Anne Baanen <Vierkantor@users.noreply.github.com>
b-mehta pushed a commit that referenced this pull request Apr 2, 2021
linear_algebra/basic is _very_ long. This reduces its length by about 5%.

Authorship of the std_basis stuff seems to come almost entirely from 10a586b.

None of the lemmas have changed, and the variables are kept in exactly the same order as before.
b-mehta pushed a commit that referenced this pull request Apr 2, 2021
…6054)

This is a follow-up to #6020 which moved `std_basis` to a new file: now move results from `basis.lean` to that same file.

CC @eric-wieser 



Co-authored-by: Anne Baanen <Vierkantor@users.noreply.github.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

2 participants