Skip to content

[Merged by Bors] - feat : port Algebra.GroupPower.Basic - #874

Closed
javra wants to merge 12 commits into
masterfrom
port-algebra-group_power-basic
Closed

javra wants to merge 12 commits into
masterfrom
port-algebra-group_power-basic

Conversation

@javra

@javra javra commented Dec 6, 2022

Copy link
Copy Markdown
Collaborator

mathlib3 SHA: 9b2660e1b25419042c8da10bf411aa3c67f14383

@javra javra added the mathlib-port This is a port of a theory file from mathlib. label Dec 6, 2022
@javra

javra commented Dec 6, 2022

Copy link
Copy Markdown
Collaborator Author

This fails on Tactic.Abel 🤷

@javra

javra commented Dec 6, 2022

Copy link
Copy Markdown
Collaborator Author

Removed some @[simp] which violated SimpNF (and as far as I can see did so in mathlib3?)

@javra

javra commented Dec 6, 2022

Copy link
Copy Markdown
Collaborator Author

(couldn't commit the raw mathlib3port file due to the file already being half ported)

Comment thread Mathlib/Algebra/GroupPower/Basic.lean Outdated
· rw [Nat.mul_zero, pow_zero, pow_zero]
· rw [Nat.mul_succ, pow_add, pow_succ', ih]

@[to_additive mul_nsmul]

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.

Should this be @[to_additive mul_smul'] and the attribute above should also be changed?

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 did this, and left a porting note.

Comment thread Mathlib/Algebra/GroupPower/Basic.lean Resolved
@kim-em

kim-em commented Dec 6, 2022

Copy link
Copy Markdown
Contributor

There are lots of additional #aligns needed for the @[to_additive] versions. Hopefully this will be automated in mathport later: https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/.23align.20and.20to_additive. But for now we just need to do it by hand. :-(

@kim-em kim-em added awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. and removed awaiting-review labels Dec 6, 2022
@javra

javra commented Dec 7, 2022

Copy link
Copy Markdown
Collaborator Author

There are lots of additional #aligns needed for the @[to_additive] versions. Hopefully this will be automated in mathport later: https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/.23align.20and.20to_additive. But for now we just need to do it by hand. :-(

Thanks! I didn't really get the memo that we have to add all aligns generally instead of just the ones that deviate from the synport-generated ones.

@javra javra added awaiting-review and removed awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. labels Dec 7, 2022
@javra
javra requested a review from kim-em December 7, 2022 13:47
Comment thread Mathlib/Algebra/GroupPower/Basic.lean Resolved
Comment thread Mathlib/Algebra/GroupPower/Basic.lean Resolved
Comment thread Mathlib/Algebra/GroupPower/Basic.lean Resolved
Comment thread Mathlib/Algebra/GroupPower/Basic.lean Resolved
Comment thread Mathlib/Tactic/Abel.lean Resolved
@javra

javra commented Dec 7, 2022

Copy link
Copy Markdown
Collaborator Author

Thanks for those, hadn't touched the comments and docstsrings yet.

@kim-em

kim-em commented Dec 7, 2022

Copy link
Copy Markdown
Contributor

There are lots of additional #aligns needed for the @[to_additive] versions. Hopefully this will be automated in mathport later: https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/.23align.20and.20to_additive. But for now we just need to do it by hand. :-(

Thanks! I didn't really get the memo that we have to add all aligns generally instead of just the ones that deviate from the synport-generated ones.

We don't really need to add all of them. It seems we've just decided it's much easier to review / help out others PRs / maintain later, if all #align's are there.

@kim-em

kim-em commented Dec 7, 2022

Copy link
Copy Markdown
Contributor

bors merge

@github-actions github-actions Bot added the ready-to-merge This PR has been sent to bors. label Dec 7, 2022
bors Bot pushed a commit that referenced this pull request Dec 7, 2022
mathlib3 SHA: 9b2660e1b25419042c8da10bf411aa3c67f14383

Co-authored-by: Scott Morrison <[email protected]>
Co-authored-by: Scott Morrison <[email protected]>
Co-authored-by: Ruben Van de Velde <[email protected]>
@bors

bors Bot commented Dec 7, 2022

Copy link
Copy Markdown

Pull request successfully merged into master.

Build succeeded:

@bors bors Bot changed the title feat : port Algebra.GroupPower.Basic [Merged by Bors] - feat : port Algebra.GroupPower.Basic Dec 7, 2022
@bors bors Bot closed this Dec 7, 2022
@bors
bors Bot deleted the port-algebra-group_power-basic branch December 7, 2022 23:14
bors Bot pushed a commit to leanprover-community/mathlib3 that referenced this pull request Dec 8, 2022
Regenerated from the [port status wiki page](https://github.com/leanprover-community/mathlib/wiki/mathlib4-port-status).
Relates to the following PRs:
* `algebra.euclidean_domain.defs`: leanprover-community/mathlib4#871
* `algebra.group.ext`: leanprover-community/mathlib4#850
* `algebra.group_power.basic`: leanprover-community/mathlib4#874
* `algebra.hom.equiv.units.basic`: leanprover-community/mathlib4#895
* `algebra.hom.equiv.units.group_with_zero`: leanprover-community/mathlib4#901
* `algebra.order.group.instances`: leanprover-community/mathlib4#890
* `algebra.order.group.order_iso`: leanprover-community/mathlib4#895
* `algebra.order.group.units`: leanprover-community/mathlib4#898
* `algebra.order.monoid.nat_cast`: leanprover-community/mathlib4#893
* `algebra.order.monoid.type_tags`: leanprover-community/mathlib4#873
* `algebra.order.monoid.units`: leanprover-community/mathlib4#873
* `algebra.order.zero_le_one`: leanprover-community/mathlib4#893
* `combinatorics.quiver.push`: leanprover-community/mathlib4#868
* `control.traversable.basic`: leanprover-community/mathlib4#788
* `data.sum.order`: leanprover-community/mathlib4#880
* `group_theory.group_action.option`: leanprover-community/mathlib4#884
* `group_theory.group_action.sigma`: leanprover-community/mathlib4#885
* `group_theory.group_action.sum`: leanprover-community/mathlib4#882
* `group_theory.group_action.units`: leanprover-community/mathlib4#878
* `order.antisymmetrization`: leanprover-community/mathlib4#876
bors Bot pushed a commit that referenced this pull request Dec 8, 2022
* `one_zsmul` and `zsmul_zero` were added for real in #874, so we no longer need to stub them out.
* We can now remove the sorries in `zero_smulg` and `term_smul`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mathlib-port This is a port of a theory file from mathlib. ready-to-merge This PR has been sent to bors.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants