Skip to content

[Merged by Bors] - chore: ofNat lemmas for Complex.normSq and abs#7975

Closed
timotree3 wants to merge 5 commits intomasterfrom
TCB/complex-ofNat
Closed

[Merged by Bors] - chore: ofNat lemmas for Complex.normSq and abs#7975
timotree3 wants to merge 5 commits intomasterfrom
TCB/complex-ofNat

Conversation

@timotree3
Copy link
Copy Markdown
Collaborator

@timotree3 timotree3 commented Oct 27, 2023

Having _ofNat lemmas is important for confluence given that for both normSq and abs, the _ofReal lemma is @[simp] and so is ofReal_ofNat. We already have lemmas for 0 and 1 from the bundled classes for both functions, so I'm only adding lemmas for the AtLeastTwo case here.


Open in Gitpod

@timotree3 timotree3 added the WIP Work in progress label Oct 27, 2023
@timotree3 timotree3 marked this pull request as ready for review October 27, 2023 04:38
@timotree3 timotree3 added awaiting-review awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. and removed WIP Work in progress labels Oct 27, 2023
@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 Oct 27, 2023
@eric-wieser eric-wieser added awaiting-author A reviewer has asked the author a question or requested changes. and removed awaiting-review labels Oct 27, 2023
Copy link
Copy Markdown
Member

@eric-wieser eric-wieser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bors d+

Just the long line to fix.

@bors
Copy link
Copy Markdown

bors bot commented Oct 27, 2023

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

@ghost ghost added the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Oct 27, 2023
@timotree3
Copy link
Copy Markdown
Collaborator Author

bors r+

bors bot pushed a commit that referenced this pull request Oct 27, 2023
Having `_ofNat` lemmas is important for confluence given that for both `normSq` and `abs`, the `_ofReal` lemma is `@[simp]` and so is `ofReal_ofNat`. We already have lemmas for 0 and 1 from the bundled classes for both functions, so I'm only adding lemmas for the `AtLeastTwo` case here.
@bors
Copy link
Copy Markdown

bors bot commented Oct 27, 2023

Build failed (retrying...):

bors bot pushed a commit that referenced this pull request Oct 27, 2023
Having `_ofNat` lemmas is important for confluence given that for both `normSq` and `abs`, the `_ofReal` lemma is `@[simp]` and so is `ofReal_ofNat`. We already have lemmas for 0 and 1 from the bundled classes for both functions, so I'm only adding lemmas for the `AtLeastTwo` case here.
@bors
Copy link
Copy Markdown

bors bot commented Oct 27, 2023

Build failed (retrying...):

@eric-wieser
Copy link
Copy Markdown
Member

bors r-

bors d+

@bors
Copy link
Copy Markdown

bors bot commented Oct 27, 2023

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

@bors
Copy link
Copy Markdown

bors bot commented Oct 27, 2023

Canceled.

@eric-wieser eric-wieser added the awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. label Oct 27, 2023
@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 Oct 27, 2023
@timotree3
Copy link
Copy Markdown
Collaborator Author

bors r+

Sorry for causing bors to repeatedly retry. I thought it was safe to r+ before CI passed because I assumed bors would cancel if CI failed.

bors bot pushed a commit that referenced this pull request Oct 27, 2023
Having `_ofNat` lemmas is important for confluence given that for both `normSq` and `abs`, the `_ofReal` lemma is `@[simp]` and so is `ofReal_ofNat`. We already have lemmas for 0 and 1 from the bundled classes for both functions, so I'm only adding lemmas for the `AtLeastTwo` case here.
@bors
Copy link
Copy Markdown

bors bot commented Oct 27, 2023

Pull request successfully merged into master.

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors bot changed the title chore: ofNat lemmas for Complex.normSq and abs [Merged by Bors] - chore: ofNat lemmas for Complex.normSq and abs Oct 27, 2023
@bors bors bot closed this Oct 27, 2023
@bors bors bot deleted the TCB/complex-ofNat branch October 27, 2023 17:59
grunweg pushed a commit that referenced this pull request Nov 1, 2023
Having `_ofNat` lemmas is important for confluence given that for both `normSq` and `abs`, the `_ofReal` lemma is `@[simp]` and so is `ofReal_ofNat`. We already have lemmas for 0 and 1 from the bundled classes for both functions, so I'm only adding lemmas for the `AtLeastTwo` case here.
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 This pull request has been delegated to the PR author (or occasionally another non-maintainer).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants