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] - refactor(data/complex/*): replace complex.conj and is_R_or_C.conj with star #9640

Closed
wants to merge 50 commits into from

Conversation

dupuisf
Copy link
Collaborator

@dupuisf dupuisf commented Oct 9, 2021

This PR replaces complex.conj and is_R_or_C.conj by the star operation defined in algebra/star. Both of these are replaced with star_ring_aut, which is also made available under the notation conj defined in the locale complex_conjugate. This effectively also upgrades conj from a ring_hom to a ring_aut.

Fixes #9421


Open in Gitpod

dupuisf and others added 2 commits October 18, 2021 17:36
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
@semorrison
Copy link
Collaborator

bors merge

@github-actions github-actions bot added ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) and removed awaiting-review The author would like community review of the PR labels Oct 21, 2021
bors bot pushed a commit that referenced this pull request Oct 21, 2021
… with star (#9640)

This PR replaces `complex.conj` and `is_R_or_C.conj` by the star operation defined in `algebra/star`. Both of these are replaced with `star_ring_aut`, which is also made available under the notation `conj` defined in the locale `complex_conjugate`. This effectively also upgrades conj from a `ring_hom` to a `ring_aut`.

Fixes #9421
@bors
Copy link

bors bot commented Oct 21, 2021

Build failed (retrying...):

bors bot pushed a commit that referenced this pull request Oct 21, 2021
… with star (#9640)

This PR replaces `complex.conj` and `is_R_or_C.conj` by the star operation defined in `algebra/star`. Both of these are replaced with `star_ring_aut`, which is also made available under the notation `conj` defined in the locale `complex_conjugate`. This effectively also upgrades conj from a `ring_hom` to a `ring_aut`.

Fixes #9421
@bors
Copy link

bors bot commented Oct 21, 2021

Build failed:

@bryangingechen bryangingechen added awaiting-author A reviewer has asked the author a question or requested changes and removed ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) labels Oct 21, 2021
@bryangingechen
Copy link
Collaborator

Looks like #9824 broke this.
bors d+

@bors
Copy link

bors bot commented Oct 21, 2021

✌️ dupuisf can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@github-actions github-actions bot added the delegated The PR author may merge after reviewing final suggestions. label Oct 21, 2021
@dupuisf
Copy link
Collaborator Author

dupuisf commented Oct 21, 2021

bors r+

bors bot pushed a commit that referenced this pull request Oct 21, 2021
… with star (#9640)

This PR replaces `complex.conj` and `is_R_or_C.conj` by the star operation defined in `algebra/star`. Both of these are replaced with `star_ring_aut`, which is also made available under the notation `conj` defined in the locale `complex_conjugate`. This effectively also upgrades conj from a `ring_hom` to a `ring_aut`.

Fixes #9421
@bors
Copy link

bors bot commented Oct 21, 2021

Build failed (retrying...):

bors bot pushed a commit that referenced this pull request Oct 21, 2021
… with star (#9640)

This PR replaces `complex.conj` and `is_R_or_C.conj` by the star operation defined in `algebra/star`. Both of these are replaced with `star_ring_aut`, which is also made available under the notation `conj` defined in the locale `complex_conjugate`. This effectively also upgrades conj from a `ring_hom` to a `ring_aut`.

Fixes #9421
@bors
Copy link

bors bot commented Oct 22, 2021

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title refactor(data/complex/*): replace complex.conj and is_R_or_C.conj with star [Merged by Bors] - refactor(data/complex/*): replace complex.conj and is_R_or_C.conj with star Oct 22, 2021
@bors bors bot closed this Oct 22, 2021
@bors bors bot deleted the replace_conj_with_star branch October 22, 2021 01:15
@eric-wieser eric-wieser added the hacktoberfest-accepted Without this label hacktoberfest is scared off by bors label Oct 26, 2021
ericrbg pushed a commit that referenced this pull request Nov 9, 2021
… with star (#9640)

This PR replaces `complex.conj` and `is_R_or_C.conj` by the star operation defined in `algebra/star`. Both of these are replaced with `star_ring_aut`, which is also made available under the notation `conj` defined in the locale `complex_conjugate`. This effectively also upgrades conj from a `ring_hom` to a `ring_aut`.

Fixes #9421
bors bot pushed a commit that referenced this pull request Jan 16, 2022
…njugation) from `ring_equiv` to `ring_hom` and make type argument explicit (#11418)

Change the underlying object notated by `conj` from
```lean
def star_ring_aut [comm_semiring R] [star_ring R] : ring_aut R :=
```
to
```lean
def star_ring_end [comm_semiring R] [star_ring R] : R →+* R :=
```
and also make the `R` argument explicit.  These two changes allow the notation for conjugate-linear maps, `E →ₗ⋆[R] F` and variants, to pretty-print, see
https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/Pretty.20printer.20omits.20notation

This is a partial reversion of #9640, in which complex conjugation was upgraded from `ring_hom` to `ring_equiv`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-author A reviewer has asked the author a question or requested changes delegated The PR author may merge after reviewing final suggestions. hacktoberfest-accepted Without this label hacktoberfest is scared off by bors
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use has_star.star instead of complex.conj
5 participants