Skip to content

[Merged by Bors] - feat: port Algebra.Order.Group.Instances#890

Closed
hrmacbeth wants to merge 2 commits intomasterfrom
hrmacbeth-algebra-order-group-instances
Closed

[Merged by Bors] - feat: port Algebra.Order.Group.Instances#890
hrmacbeth wants to merge 2 commits intomasterfrom
hrmacbeth-algebra-order-group-instances

Conversation

@hrmacbeth
Copy link
Copy Markdown
Member

mathlib3 a95b16cbade0f938fc24abd05412bde1e84bab9b

Porting notes:

  • cannibalizes the former ad-hoc port Algebra/Order/Group
  • a number of proofs were broken because of instance auto-naming differences between Lean 3 and Lean 4. I did not change such names, instead I corrected the instance-invocations-by-name in the place where they were used, and added #aligns by the original instances so that mathport won't make the same mistake again. Is this the correct fix or should I do something different?

@hrmacbeth hrmacbeth added awaiting-review mathlib-port This is a port of a theory file from mathlib. labels Dec 6, 2022
@kbuzzard
Copy link
Copy Markdown
Member

kbuzzard commented Dec 6, 2022

I don't know the answer to the instance naming convention but just to note that when I ported Algebra.Group.WithOne.Defs I just changed the many Lean 3 instance names into the appropriate Lean 4 instance names and I didn't align anything :-(

@kim-em
Copy link
Copy Markdown
Contributor

kim-em commented Dec 7, 2022

bors merge

@github-actions github-actions bot added ready-to-merge This PR has been sent to bors. and removed awaiting-review labels Dec 7, 2022
bors bot pushed a commit that referenced this pull request Dec 7, 2022
mathlib3 a95b16cbade0f938fc24abd05412bde1e84bab9b

Porting notes:
- cannibalizes the former ad-hoc port `Algebra/Order/Group`
- a number of proofs were broken because of instance auto-naming differences between Lean 3 and Lean 4.  I did not change such names, instead I corrected the instance-invocations-by-name in the place where they were used, and added `#align`s by the original instances so that mathport won't make the same mistake again.  Is this the correct fix or should I do something different?
@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.Order.Group.Instances [Merged by Bors] - feat: port Algebra.Order.Group.Instances Dec 7, 2022
@bors bors bot closed this Dec 7, 2022
@bors bors bot deleted the hrmacbeth-algebra-order-group-instances branch December 7, 2022 03:37
bors bot pushed a commit that referenced this pull request Dec 7, 2022
mathlib3 a95b16cbade0f938fc24abd05412bde1e84bab9b

Porting notes:
- the module docstring title in mathlib3 was incorrect (probably a relic of a hasty split), I have changed it here without backporting
- one elaboration issue, see [Zulip](https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/elaboration.20failure.20in.20algebra.2Eorder.2Egroup.2Eunits)
- same issue with instance names as in #890, and I made the same choice about how to fix it
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
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.

3 participants