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] - chore(*): remove some defeq abuse of ^ #18136

Closed
wants to merge 1 commit into from

Conversation

eric-wieser
Copy link
Member

There are various places where the proofs relied on the defeq of ^, namely that

  • rfl : x ^ 0 = 1
  • rfl : x ^ (n : ℕ) = x ^ (↑n : ℤ)
  • rfl : x ^ (n.succ : ℕ) = x * x ^ n

While exploiting defeq is not always a bad thing, in some of these cases it was clear that this wasn't intentional, and the author had not noticed that they were working with integer instead of natural powers.

This change is motivated by two possible refactors:


Open in Gitpod

There are various places where the proofs relied on the defeq of `^`, namely that

* `rfl : x ^ 0 = 1`
* `rfl : x ^ (n : ℕ) = x ^ (↑n : ℤ)`
* `rfl : x ^ (n.succ : ℕ) = x * x ^ n`

While exploiting defeq is not always a bad thing, in some of these cases it was clear that this wasn't intentional, and the author had not noticed that they were working with integer instead of natural powers.

This change is motivated by two possible refactors:

* Changing the definition of `monoid.npow_rec` to match `function.iterate`
* Changing the definition of `real.has_pow` to be the elementwise power on the cauchy sequence
@eric-wieser eric-wieser added awaiting-review The author would like community review of the PR awaiting-CI The author would like to see what CI has to say before doing more work. labels Jan 11, 2023
@github-actions github-actions bot removed the awaiting-CI The author would like to see what CI has to say before doing more work. label Jan 12, 2023
@jcommelin
Copy link
Member

LGTM, thanks!

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 Jan 12, 2023
bors bot pushed a commit that referenced this pull request Jan 12, 2023
There are various places where the proofs relied on the defeq of `^`, namely that

* `rfl : x ^ 0 = 1`
* `rfl : x ^ (n : ℕ) = x ^ (↑n : ℤ)`
* `rfl : x ^ (n.succ : ℕ) = x * x ^ n`

While exploiting defeq is not always a bad thing, in some of these cases it was clear that this wasn't intentional, and the author had not noticed that they were working with integer instead of natural powers.

This change is motivated by two possible refactors:

* Changing the definition of `monoid.npow_rec` to match `function.iterate`
* Changing the definition of `real.has_pow` to be the elementwise power on the cauchy sequence (#8146)
@bors
Copy link

bors bot commented Jan 12, 2023

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title chore(*): remove some defeq abuse of ^ [Merged by Bors] - chore(*): remove some defeq abuse of ^ Jan 12, 2023
@bors bors bot closed this Jan 12, 2023
@bors bors bot deleted the eric-wieser/real.comm_ring-basics branch January 12, 2023 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants