Skip to content

[Merged by Bors] - feat(Algebra/Polynomial/Bivariate): add lemmas for bivariate polynomials - #14579

Closed
Multramate wants to merge 4 commits into
masterfrom
Bivariate
Closed

Multramate wants to merge 4 commits into
masterfrom
Bivariate

Conversation

@Multramate

Copy link
Copy Markdown
Collaborator

Open in Gitpod

@Multramate Multramate added awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. t-algebra Algebra (groups, rings, fields, etc) labels Jul 9, 2024
@Multramate
Multramate requested a review from alreadydone July 9, 2024 17:23
@github-actions

github-actions Bot commented Jul 9, 2024 •

Copy link
Copy Markdown

PR summary 1644914045

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ evalEval_CC
+ evalEval_add
+ evalEval_dvd
+ evalEval_finset_sum
+ evalEval_intCast
+ evalEval_list_prod
+ evalEval_mul
+ evalEval_multiset_prod
+ evalEval_natCast
+ evalEval_neg
+ evalEval_one
+ evalEval_pow
+ evalEval_prod
+ evalEval_smul
+ evalEval_sub
+ evalEval_sum
+ evalEval_surjective
+ evalEval_zero

You can run this locally as follows
## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>

## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>
The doc-module for `script/declarations_diff.sh` contains some details about this script.

@Multramate

Multramate commented Jul 9, 2024 •

Copy link
Copy Markdown
Collaborator Author

These are not strictly necessary, because we can just rewrite evalEval into eval (or into evalEvalRingHom), and apply the corresponding lemmas of eval (or of general ring maps), but are API that are "nice to have".

I noted, when doing this, that there are a few missing gaps in the API of eval, but I'll not touch them here.

@github-actions github-actions Bot removed the awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. label Jul 9, 2024
@kim-em kim-em added the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Jul 15, 2024
@Multramate Multramate removed the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Jul 15, 2024

@[simp]
lemma evalEval_ofNat (x y : R) (n : ℕ) [n.AtLeastTwo] :
(OfNat.ofNat n : R[X][Y]).evalEval x y = OfNat.ofNat n := by

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is it necessary to write OfNat.ofNat here, rather than just n?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I copied the corresponding lemma for eval. Without the Ofnat.ofNat this is the same as evalEval_natCast.


@[simp]
lemma evalEval_ofNat (x y : R) (n : ℕ) [n.AtLeastTwo] :
(OfNat.ofNat n : R[X][Y]).evalEval x y = OfNat.ofNat n := by

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Does this work without no_index?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

What is no_index?

@jcommelin jcommelin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks 🎉

bors merge

@ghost ghost added the ready-to-merge This PR has been sent to bors. label Aug 23, 2024
@mathlib-bors

mathlib-bors Bot commented Aug 23, 2024

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title feat(Algebra/Polynomial/Bivariate): add lemmas for bivariate polynomials [Merged by Bors] - feat(Algebra/Polynomial/Bivariate): add lemmas for bivariate polynomials Aug 23, 2024
@mathlib-bors mathlib-bors Bot closed this Aug 23, 2024
@mathlib-bors
mathlib-bors Bot deleted the Bivariate branch August 23, 2024 04:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge This PR has been sent to bors. t-algebra Algebra (groups, rings, fields, etc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants