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(data/polynomial): lemma about aeval on functions, and on subalgebras #7252

Closed
wants to merge 13 commits into from

Conversation

semorrison
Copy link
Collaborator

@semorrison semorrison commented Apr 18, 2021


Prerequisites PR for Stone-Weierstrass.

Open in Gitpod

semorrison and others added 2 commits April 19, 2021 10:04
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
eric-wieser and others added 5 commits April 20, 2021 11:36
This also renames some variables from α to R for readability
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
@github-actions github-actions bot added the blocked-by-other-PR This PR depends on another PR which is still in the queue. A bot manages this label via PR comment. label Apr 20, 2021
@github-actions github-actions bot removed the blocked-by-other-PR This PR depends on another PR which is still in the queue. A bot manages this label via PR comment. label Apr 21, 2021
@github-actions
Copy link

🎉 Great news! Looks like all the dependencies have been resolved:

💡 To add or remove a dependency please update this issue/PR description.

Brought to you by Dependent Issues (:robot: ). Happy coding!

@semorrison semorrison added the awaiting-review The author would like community review of the PR label Apr 21, 2021
@eric-wieser
Copy link
Member

Can you merge master again to shrink the diff?

(Or better; rebase, it will reduce the build time)

@semorrison
Copy link
Collaborator Author

@eric-wieser, why would rebasing make a difference to build time? It's unfortunate if there's an advantage there, because other times we've discouraged people from force-pushing to PRs.

@eric-wieser
Copy link
Member

Because CI pulls its cache from the chain of first parents.

If you rebase, that first parent is origin/master, so all that gets built is the stuff downstream of the files changed here. If you merge, that first parent is "your old commit on this branch", which then has to rebuild everything that has changed on master.

@eric-wieser
Copy link
Member

For PRs that touch logic/basic / data/quot etc, the behavior of reusing the cache from the branch is sensible - but for PRs that don't, it's almost always the slower choice.

Note that creating the merge commit with the parents "backwards" is probably not a good idea either, as that can confuse github.

Copy link
Member

@jcommelin jcommelin left a comment

Choose a reason for hiding this comment

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

Sorry for being very late to the party. I have a comment, but it can be dealt with in another PR. I don't want to hold this up any longer.

bors merge

@@ -119,7 +119,7 @@ alg_hom.map_zero (aeval x)

@[simp] lemma aeval_C (r : R) : aeval x (C r) = algebra_map R A r := eval₂_C _ x

lemma aeval_monomial {n : ℕ} {r : R} : aeval x (monomial n r) = (algebra_map _ _ r) * x^n :=
@[simp] lemma aeval_monomial {n : ℕ} {r : R} : aeval x (monomial n r) = (algebra_map _ _ r) * x^n :=
Copy link
Member

Choose a reason for hiding this comment

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

Hmm, should the right hand side of this lemma also be in terms of monomial?

@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 Apr 27, 2021
bors bot pushed a commit that referenced this pull request Apr 27, 2021
…bras (#7252)





Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
@bors
Copy link

bors bot commented Apr 27, 2021

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat(data/polynomial): lemma about aeval on functions, and on subalgebras [Merged by Bors] - feat(data/polynomial): lemma about aeval on functions, and on subalgebras Apr 27, 2021
@bors bors bot closed this Apr 27, 2021
@bors bors bot deleted the aeval_subalgebra branch April 27, 2021 11:31
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

3 participants