Skip to content

[Merged by Bors] - fix: make HeightOneSpectrum.adicCompletion an abbrev#13020

Closed
kbuzzard wants to merge 4 commits intomasterfrom
kbuzzard-adicCompletion-abbrev
Closed

[Merged by Bors] - fix: make HeightOneSpectrum.adicCompletion an abbrev#13020
kbuzzard wants to merge 4 commits intomasterfrom
kbuzzard-adicCompletion-abbrev

Conversation

@kbuzzard
Copy link
Copy Markdown
Member

@kbuzzard kbuzzard commented May 19, 2024

IsDedekindDomain.HeightOneSpectrum.adicCompletion is currently a def and this causes a bunch of rws to fail in Lean 4; erw is needed. In developing the API further I ran into more irritating erw issues; changing it to an abbrev seems to solve them (we can get rid of several porting notes too).


Open in Gitpod

Remark: this change exposed a bug in the typeclass inference system. See https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/erw.20and.20IsDedekindDomain.2EHeightOneSpectrum.2EadicCompletion/near/439391094 for more details.

kbuzzard added a commit that referenced this pull request May 19, 2024
@kbuzzard kbuzzard added awaiting-review t-number-theory Number theory (also use t-algebra or t-analysis to specialize) t-algebra Algebra (groups, rings, fields, etc) labels May 19, 2024
@kbuzzard kbuzzard requested a review from mariainesdff May 19, 2024 13:26
@riccardobrasca
Copy link
Copy Markdown
Member

!bench

@riccardobrasca
Copy link
Copy Markdown
Member

Almost sure this is harmless, but let's wait for the benching result. Thanks!

bors d+

@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented May 23, 2024

✌️ kbuzzard 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 delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). and removed awaiting-review labels May 23, 2024
@leanprover-bot
Copy link
Copy Markdown
Collaborator

Here are the benchmark results for commit 38b32d6.
There were no significant changes against commit 2f2a2ac.

@riccardobrasca
Copy link
Copy Markdown
Member

bors merge

@github-actions github-actions bot added the ready-to-merge This PR has been sent to bors. label May 23, 2024
mathlib-bors bot pushed a commit that referenced this pull request May 23, 2024
`IsDedekindDomain.HeightOneSpectrum.adicCompletion` is currently a `def` and this causes a bunch of `rw`s to fail in Lean 4; `erw` is needed. In developing the API further I ran into more irritating `erw` issues; changing it to an `abbrev` seems to solve them (we can get rid of several porting notes too).
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented May 23, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title fix: make HeightOneSpectrum.adicCompletion an abbrev [Merged by Bors] - fix: make HeightOneSpectrum.adicCompletion an abbrev May 23, 2024
@mathlib-bors mathlib-bors bot closed this May 23, 2024
@mathlib-bors mathlib-bors bot deleted the kbuzzard-adicCompletion-abbrev branch May 23, 2024 12:46
grunweg pushed a commit that referenced this pull request May 24, 2024
`IsDedekindDomain.HeightOneSpectrum.adicCompletion` is currently a `def` and this causes a bunch of `rw`s to fail in Lean 4; `erw` is needed. In developing the API further I ran into more irritating `erw` issues; changing it to an `abbrev` seems to solve them (we can get rid of several porting notes too).
callesonne pushed a commit that referenced this pull request Jun 4, 2024
`IsDedekindDomain.HeightOneSpectrum.adicCompletion` is currently a `def` and this causes a bunch of `rw`s to fail in Lean 4; `erw` is needed. In developing the API further I ran into more irritating `erw` issues; changing it to an `abbrev` seems to solve them (we can get rid of several porting notes too).
js2357 pushed a commit that referenced this pull request Jun 18, 2024
`IsDedekindDomain.HeightOneSpectrum.adicCompletion` is currently a `def` and this causes a bunch of `rw`s to fail in Lean 4; `erw` is needed. In developing the API further I ran into more irritating `erw` issues; changing it to an `abbrev` seems to solve them (we can get rid of several porting notes too).
mathlib-bors bot pushed a commit that referenced this pull request Jan 17, 2025
#13020 turned this into an `abbrev`. The definition is kinda scary so I would argue we try to keep it behind the veil and only expose it when necessary. As a bonus, this fixes a crashing instance synthesis [Zulip](https://leanprover.zulipchat.com/#narrow/channel/287929-mathlib4/topic/adic.20completion.20is.20commutative).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). ready-to-merge This PR has been sent to bors. t-algebra Algebra (groups, rings, fields, etc) t-number-theory Number theory (also use t-algebra or t-analysis to specialize)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants