Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - feat: port Algebra.Group.WithOne.Basic #922

Closed
wants to merge 6 commits into from

Conversation

j-loreaux
Copy link
Collaborator

@j-loreaux j-loreaux commented Dec 8, 2022

mathlib3 SHA: 4dc134b97a3de65ef2ed881f3513d56260971562

porting notes:

  1. In WithOne.lift mathport's output was broken, but I think the only reason was that it was parenthesized wrong (or maybe it was a whitespace / formatting issue?)
  2. In MulEquiv.withOneCongr, there were some simp calls that broke. I think this is a result of the way coercions are handled now. I think the net result is that simp doesn't get it into a form where it can apply Equiv.symm_apply_apply.
  3. I added the to_additive attribute to MulEquiv.withOneCongr_{refl, symm, trans} because it just seemed to be missing from mathlib3.
  4. WithOne already has semireducible transparency in mathlib4, so we are just ignoring the changing of transparency settings (this isn't even possible in Lean 4); see Zulip

@j-loreaux j-loreaux added WIP Work in progress mathlib-port This is a port of a theory file from mathlib. labels Dec 8, 2022
@digama0
Copy link
Member

digama0 commented Dec 8, 2022

SHAs shouldn't go in PR titles (ever?). Looking at this PR title and description I have no idea what it's about.

@j-loreaux
Copy link
Collaborator Author

sorry, that was just a typo. VS Code auto-named the PR title and I forgot to change it.

@j-loreaux j-loreaux changed the title raw mathport: 4dc134b97a3de65ef2ed881f3513d56260971562 feat: port Algebra.Group.WithOne.Basic Dec 8, 2022
@j-loreaux j-loreaux added awaiting-review The author would like community review of the PR and removed WIP Work in progress labels Dec 8, 2022
@semorrison
Copy link
Contributor

bors merge

@github-actions github-actions bot added ready-to-merge This PR has been sent to bors. and removed awaiting-review The author would like community review of the PR labels Dec 9, 2022
bors bot pushed a commit that referenced this pull request Dec 9, 2022
mathlib3 SHA: 4dc134b97a3de65ef2ed881f3513d56260971562

porting notes:

1. In `WithOne.lift` mathport's output was broken, but I think the only reason was that it was parenthesized wrong (or maybe it was a whitespace / formatting issue?)
2. In `MulEquiv.withOneCongr`, there were some `simp` calls that broke. I think this is a result of the way coercions are handled now. I think the net result is that `simp` doesn't get it into a form where it can apply `Equiv.symm_apply_apply`.
3. I added the `to_additive` attribute to `MulEquiv.withOneCongr_{refl, symm, trans}` because it just seemed to be missing from mathlib3.
4. `WithOne` already has semireducible transparency in mathlib4, so we are just ignoring the changing of transparency settings (this isn't even possible in Lean 4); see [Zulip](https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/local.20semireducible)
@bors
Copy link

bors bot commented Dec 9, 2022

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat: port Algebra.Group.WithOne.Basic [Merged by Bors] - feat: port Algebra.Group.WithOne.Basic Dec 9, 2022
@bors bors bot closed this Dec 9, 2022
@bors bors bot deleted the j-loreaux/algebra.group.with_one.basic branch December 9, 2022 01:07
bors bot pushed a commit to leanprover-community/mathlib that referenced this pull request Dec 10, 2022
Regenerated from the [port status wiki page](https://github.com/leanprover-community/mathlib/wiki/mathlib4-port-status).
Relates to the following PRs:
* `algebra.group.ulift`: leanprover-community/mathlib4#906
* `algebra.group.with_one.basic`: leanprover-community/mathlib4#922
* `algebra.group_with_zero.units.lemmas`: leanprover-community/mathlib4#920
* `algebra.order.field.defs`: leanprover-community/mathlib4#905
* `algebra.order.group.abs`: leanprover-community/mathlib4#896
* `algebra.order.group.inj_surj`: leanprover-community/mathlib4#916
* `algebra.order.group.type_tags`: leanprover-community/mathlib4#921
* `algebra.order.monoid.with_top`: leanprover-community/mathlib4#902
* `algebra.order.positive.ring`: leanprover-community/mathlib4#911
* `algebra.order.ring.canonical`: leanprover-community/mathlib4#905
* `algebra.order.ring.char_zero`: leanprover-community/mathlib4#905
* `algebra.order.ring.defs`: leanprover-community/mathlib4#905
* `algebra.order.ring.inj_surj`: leanprover-community/mathlib4#917
* `algebra.ring.idempotents`: leanprover-community/mathlib4#918
bors bot pushed a commit that referenced this pull request Dec 20, 2022
This is a proposed fix for the broken simp calls in #922. See https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/.60simp.60.20calls.20broken.20in.20mathlib4.23922/near/314783451 for more details. Note that `to_fun_as_coe` was a syntactic tautology when it was ported, but this is no longer the case because we now have `FunLike`.
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.

None yet

3 participants