Repository navigation
[Merged by Bors] - refactor: generalize CharP+Prime to ExpChar in frobenius - #10016
alreadydone wants to merge 17 commits into
Conversation
CharP to ExpChar in frobenius CharP + Prime to ExpChar in frobenius
CharP + Prime to ExpChar in frobenius CharP+Prime to ExpChar in frobenius
|
Maybe we should also replace the |
|
You should not need to fix any file if you only replace CharP+Prime by ExpChar; I added an instance so that any declaration about ExpChar will continue to apply for CharP+Prime. If you replace CharP without an associated Nat.Prime assumption by ExpChar, then the declaration will be less general and may not apply in certain situations, and you'll need to keep the original lemma, but may still add an ExpChar version (for example Every CharP is associated with a Nat.Prime assumption in FieldTheory/Perfect though. However, there are declarations in the file that are tricky to generalize: for example |
|
In the end, I went ahead to generalize the whole file FieldTheory/Perfect, because it makes it smoother merging this into #9311. |
5ce1c06 to
ba5de88
Compare
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]>
|
Pull request successfully merged into master. Build succeeded: |
CharP+Prime to ExpChar in frobenius CharP+Prime to ExpChar in frobenius
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]>
Consequently, the part about
frobeniusin Algebra/CharP/Basic is moved to CharP/ExpChar, and imports are adjusted as necessary.Add instances from
CharP+Fact(Nat.Prime)andCharZerotoExpChar, to allow lemmas generalized to ExpChar still apply to CharP.Remove lemmas in Algebra/CharP/ExpChar from #9799 because they coincide with the generalized lemmas, and golf the other lemmas (in Algebra/CharP/Basic).
Define the RingHom
iterateFrobeniusand the semilinear mapLinearMap.(iterate)Frobeniusfor an algebra. When the characteristic is zero (ExpChar is 1), these are all equal to the identity map (· ^ 1). Also defineiterateFrobeniusEquivfor perfect rings.Fix and/or generalize other files.