Skip to content

[Merged by Bors] - chore: remove Complex/RCLike bit0/1 lemmas - #11414

Closed
Ruben-VandeVelde wants to merge 9 commits into
masterfrom
complex-bit
Closed

[Merged by Bors] - chore: remove Complex/RCLike bit0/1 lemmas#11414
Ruben-VandeVelde wants to merge 9 commits into
masterfrom
complex-bit

Conversation

@Ruben-VandeVelde

Copy link
Copy Markdown
Contributor

These were interesting when they worked on number literals, which is no longer the case in lean4.


Open in Gitpod

Comment thread Mathlib/Data/IsROrC/Basic.lean

@eric-wieser eric-wieser left a comment

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.

I think every bit0/bit1 pair should be replaced by an ofNat lemma

@eric-wieser eric-wieser added awaiting-author A reviewer has asked the author a question or requested changes. and removed awaiting-review labels Mar 17, 2024
@Ruben-VandeVelde

Copy link
Copy Markdown
Contributor Author

I think every bit0/bit1 pair should be replaced by an ofNat lemma

These already existed except for conj (though map_* also applies there). I'm not sure that makes sense for I_{z,}pow, but maybe I should restore those for $2n$ and $2n+1$ instead.

Comment thread Mathlib/Data/Complex/Basic.lean
Comment thread Mathlib/Data/Complex/Basic.lean
Comment thread Mathlib/Data/IsROrC/Basic.lean
Comment thread Mathlib/Data/IsROrC/Basic.lean
Comment thread Mathlib/Data/IsROrC/Basic.lean
Comment thread Mathlib/Data/Complex/Basic.lean
Comment thread Mathlib/Data/IsROrC/Basic.lean
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
@Ruben-VandeVelde Ruben-VandeVelde added awaiting-review awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. and removed awaiting-author A reviewer has asked the author a question or requested changes. labels Mar 18, 2024
@github-actions github-actions Bot removed the awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. label Mar 18, 2024
@ghost ghost added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Mar 21, 2024
@ghost ghost added merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) and removed merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) labels Mar 24, 2024
@ghost ghost removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Mar 28, 2024
@dupuisf

dupuisf commented Mar 28, 2024

Copy link
Copy Markdown
Contributor

Can you change ROrCLike to RCLike in the comments?

@dupuisf dupuisf changed the title chore: remove Complex/IsRORC bit0/1 lemmas chore: remove Complex/RCLike bit0/1 lemmas Mar 28, 2024
@ghost ghost added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Mar 29, 2024
@Ruben-VandeVelde Ruben-VandeVelde removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Mar 29, 2024
@Ruben-VandeVelde

Copy link
Copy Markdown
Contributor Author

Done, thanks

@dupuisf

dupuisf commented Mar 29, 2024

Copy link
Copy Markdown
Contributor

Thanks!

bors r+

@github-actions github-actions Bot added ready-to-merge This PR has been sent to bors. and removed awaiting-review labels Mar 29, 2024
mathlib-bors Bot pushed a commit that referenced this pull request Mar 29, 2024
These were interesting when they worked on number literals, which is no longer the case in lean4.
@mathlib-bors

mathlib-bors Bot commented Mar 29, 2024

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title chore: remove Complex/RCLike bit0/1 lemmas [Merged by Bors] - chore: remove Complex/RCLike bit0/1 lemmas Mar 29, 2024
@mathlib-bors mathlib-bors Bot closed this Mar 29, 2024
@mathlib-bors
mathlib-bors Bot deleted the complex-bit branch March 29, 2024 22:43
Comment on lines +183 to +188
-- replaced by `RCLike.ofNat_re`
#noalign is_R_or_C.bit0_re
#noalign is_R_or_C.bit1_re
-- replaced by `RCLike.ofNat_im`
#noalign is_R_or_C.bit0_im
#noalign is_R_or_C.bit1_im

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.

Why disregard the align mechanism?

Suggested change
-- replaced by `RCLike.ofNat_re`
#noalign is_R_or_C.bit0_re
#noalign is_R_or_C.bit1_re
-- replaced by `RCLike.ofNat_im`
#noalign is_R_or_C.bit0_im
#noalign is_R_or_C.bit1_im
#align is_R_or_C.bit0_re RCLike.ofNat_re
#align is_R_or_C.bit1_re RCLike.ofNat_re
#align is_R_or_C.bit0_im RCLike.ofNat_im
#align is_R_or_C.bit1_im RCLike.ofNat_im

Same below

xgenereux pushed a commit that referenced this pull request Apr 15, 2024
These were interesting when they worked on number literals, which is no longer the case in lean4.
atarnoam pushed a commit that referenced this pull request Apr 16, 2024
These were interesting when they worked on number literals, which is no longer the case in lean4.
uniwuni pushed a commit that referenced this pull request Apr 19, 2024
These were interesting when they worked on number literals, which is no longer the case in lean4.
callesonne pushed a commit that referenced this pull request Apr 22, 2024
These were interesting when they worked on number literals, which is no longer the case in lean4.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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