Skip to content

[Merged by Bors] - feat(Algebra/CharP/{Basic|ExpChar}): add sum_pow_{char|expChar}_pow - #9799

Closed
acmepjz wants to merge 3 commits into
masterfrom
acmepjz_sum_pow_char_pow
Closed

acmepjz wants to merge 3 commits into
masterfrom
acmepjz_sum_pow_char_pow

Conversation

@acmepjz

@acmepjz acmepjz commented Jan 17, 2024

Copy link
Copy Markdown
Collaborator

Open in Gitpod

@acmepjz acmepjz added awaiting-review 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 Jan 17, 2024
@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 Jan 17, 2024

@riccardobrasca riccardobrasca 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 d+

Comment thread Mathlib/Algebra/CharP/Basic.lean Resolved
Comment thread Mathlib/Algebra/CharP/ExpChar.lean Resolved
@mathlib-bors

mathlib-bors Bot commented Jan 17, 2024

Copy link
Copy Markdown
Contributor

✌️ acmepjz can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@ghost ghost added delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). and removed awaiting-review labels Jan 17, 2024
@acmepjz

acmepjz commented Jan 17, 2024

Copy link
Copy Markdown
Collaborator Author

I changed the newly added code to use induction and cases, but the existing code is unchanged.

@acmepjz

acmepjz commented Jan 17, 2024

Copy link
Copy Markdown
Collaborator Author

bors r+

@mathlib-bors

mathlib-bors Bot commented Jan 17, 2024

Copy link
Copy Markdown
Contributor

Canceled.

@alreadydone alreadydone left a comment

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.

I think we should probably construct iterateFrobenius as a RingHom (or make a general construction that allows to iterate an arbitrary ring endomorphism), so the proofs will just become map_(list/multiset_)sum etc. For the case of expChar, we'd need to intrduce RingHoms frobenius' (or expFrobenius?) and iterateFrobenius' (maybe we could even promote them to the "official" Frobenii).

@acmepjz

acmepjz commented Jan 17, 2024 •

Copy link
Copy Markdown
Collaborator Author

I think we should probably construct iterateFrobenius as a RingHom (or make a general construction that allows to iterate an arbitrary ring endomorphism), so the proofs will just become map_(list/multiset_)sum etc.

I think you are right. Probably we also need that iterateFrobenius p n x is defeq to x ^ p ^ n or just rw [iterate_frobenius].

or make a general construction that allows to iterate an arbitrary ring endomorphism

You also need iterate of group (or add group, or algebra) endomorphisms, probably also iterate of group (or add group, etc etc) automorphisms with negative n.

For the case of expChar, we'd need to intrduce RingHoms frobenius' (or expFrobenius?) and iterateFrobenius' (maybe we could even promote them to the "official" Frobenii).

I was thinking of protected def ExpChar.frobenius but maybe it's also good to change the original frobenius to use ExpChar.

@alreadydone

Copy link
Copy Markdown
Contributor

Probably we also need that iterateFrobenius p n x is defeq to x ^ p ^ n.

Yeah, even though we have RingHom.comp, frobenius.comp frobenius won't be defeq to (· ^ p ^ 2) ... I guess you can't achieve the defeq with the general construction, so we should satisfy ourselves with the special case of Frobenius.

@acmepjz

acmepjz commented Jan 18, 2024

Copy link
Copy Markdown
Collaborator Author

bors r+

@mathlib-bors

mathlib-bors Bot commented Jan 18, 2024

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title feat(Algebra/CharP/{Basic|ExpChar}): add sum_pow_{char|expChar}_pow [Merged by Bors] - feat(Algebra/CharP/{Basic|ExpChar}): add sum_pow_{char|expChar}_pow Jan 18, 2024
@mathlib-bors mathlib-bors Bot closed this Jan 18, 2024
@mathlib-bors
mathlib-bors Bot deleted the acmepjz_sum_pow_char_pow branch January 18, 2024 01:57
mathlib-bors Bot pushed a commit that referenced this pull request Feb 2, 2024
Consequently, the part about `frobenius` in Algebra/CharP/Basic is moved to CharP/ExpChar, and imports are adjusted as necessary.

+ Add instances from `CharP+Fact(Nat.Prime)` and `CharZero` to `ExpChar`, to allow lemmas generalized to ExpChar still apply to CharP.

+ Remove lemmas in Algebra/CharP/ExpChar from [#9799](1e74fcf) because they coincide with the generalized lemmas, and golf the other lemmas (in Algebra/CharP/Basic).

+ Define the RingHom `iterateFrobenius` and the semilinear map `LinearMap.(iterate)Frobenius` for an algebra. When the characteristic is zero (ExpChar is 1), these are all equal to the identity map (· ^ 1). Also define `iterateFrobeniusEquiv` for perfect rings.

+ Fix and/or generalize other files.



Co-authored-by: Junyan Xu <[email protected]>
Co-authored-by: acmepjz <[email protected]>
atarnoam pushed a commit that referenced this pull request Feb 9, 2024
Consequently, the part about `frobenius` in Algebra/CharP/Basic is moved to CharP/ExpChar, and imports are adjusted as necessary.

+ Add instances from `CharP+Fact(Nat.Prime)` and `CharZero` to `ExpChar`, to allow lemmas generalized to ExpChar still apply to CharP.

+ Remove lemmas in Algebra/CharP/ExpChar from [#9799](1e74fcf) because they coincide with the generalized lemmas, and golf the other lemmas (in Algebra/CharP/Basic).

+ Define the RingHom `iterateFrobenius` and the semilinear map `LinearMap.(iterate)Frobenius` for an algebra. When the characteristic is zero (ExpChar is 1), these are all equal to the identity map (· ^ 1). Also define `iterateFrobeniusEquiv` for perfect rings.

+ Fix and/or generalize other files.



Co-authored-by: Junyan Xu <[email protected]>
Co-authored-by: acmepjz <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). t-algebra Algebra (groups, rings, fields, etc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants