Skip to content

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

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

[Merged by Bors] - feat : port Algebra.GroupPower.Basic#874
javra wants to merge 12 commits intomasterfrom
port-algebra-group_power-basic

Conversation

@javra
Copy link
Copy Markdown
Collaborator

@javra javra commented Dec 6, 2022

mathlib3 SHA: 9b2660e1b25419042c8da10bf411aa3c67f14383

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

javra commented Dec 6, 2022

This fails on Tactic.Abel 🤷

@javra
Copy link
Copy Markdown
Collaborator Author

javra commented Dec 6, 2022

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

@javra
Copy link
Copy Markdown
Collaborator Author

javra commented Dec 6, 2022

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

· 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.

kim-em and others added 4 commits December 7, 2022 09:29
Co-authored-by: Chris Hughes <33847686+ChrisHughes24@users.noreply.github.com>
…r-community/mathlib4 into port-algebra-group_power-basic
@kim-em
Copy link
Copy Markdown
Contributor

kim-em commented Dec 6, 2022

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 A reviewer has asked the author a question or requested changes. and removed awaiting-review labels Dec 6, 2022
@javra
Copy link
Copy Markdown
Collaborator Author

javra commented Dec 7, 2022

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 A reviewer has asked the author a question or requested changes. labels Dec 7, 2022
@javra javra requested a review from kim-em December 7, 2022 13:47
@javra
Copy link
Copy Markdown
Collaborator Author

javra commented Dec 7, 2022

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

@kim-em
Copy link
Copy Markdown
Contributor

kim-em commented Dec 7, 2022

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
Copy link
Copy Markdown
Contributor

kim-em commented Dec 7, 2022

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 <scott@tqft.net>
Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
Co-authored-by: Ruben Van de Velde <65514131+Ruben-VandeVelde@users.noreply.github.com>
@bors
Copy link
Copy Markdown

bors bot commented Dec 7, 2022

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