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] - fix: generalize DivisionRing.toOfScientific #9947

Closed
wants to merge 1 commit into from

Conversation

eric-wieser
Copy link
Member

@eric-wieser eric-wieser commented Jan 23, 2024

If you can cast a rat to a type, then we probably want decimal notation to work there too.

This has the benefit of making the instance computable even in cases where some parts of the division ring structure are not.
It also means that this could apply to matrices of rational numbers, which are not a division ring, but could have a rat cast.


Open in Gitpod

If you can cast a rat to a type, then we probably want decimal notation to work there too
@eric-wieser eric-wieser added awaiting-review The author would like community review of the PR awaiting-CI labels Jan 23, 2024
@eric-wieser
Copy link
Member Author

!bench

@eric-wieser eric-wieser added the t-algebra Algebra (groups, rings, fields etc) label Jan 24, 2024
@leanprover-bot
Copy link
Collaborator

Here are the benchmark results for commit 23f4bc0.
There were no significant changes against commit bc9337e.

@godott
Copy link

godott commented Feb 1, 2024

I am wondering what's the status of this? Will it be approved?

@eric-wieser
Copy link
Member Author

I think probably it just needs some reviewer time, perhaps from @thorimur or @semorrison, just in case there's a reason I'm not aware of that makes this a bad idea

@semorrison
Copy link
Contributor

bors merge

@github-actions github-actions bot added ready-to-merge This PR has been sent to bors. and removed awaiting-review The author would like community review of the PR labels Feb 4, 2024
mathlib-bors bot pushed a commit that referenced this pull request Feb 5, 2024
If you can cast a rat to a type, then we probably want decimal notation to work there too.

This has the benefit of making the instance computable even in cases where some parts of the division ring structure are not.
It also means that this could apply to matrices of rational numbers, which are not a division ring, but could have a rat cast.
@mathlib-bors
Copy link

mathlib-bors bot commented Feb 5, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title fix: generalize DivisionRing.toOfScientific [Merged by Bors] - fix: generalize DivisionRing.toOfScientific Feb 5, 2024
@mathlib-bors mathlib-bors bot closed this Feb 5, 2024
@mathlib-bors mathlib-bors bot deleted the eric-wieser/RatCast.toOfScientific branch February 5, 2024 01:33
Vierkantor pushed a commit that referenced this pull request Feb 5, 2024
If you can cast a rat to a type, then we probably want decimal notation to work there too.

This has the benefit of making the instance computable even in cases where some parts of the division ring structure are not.
It also means that this could apply to matrices of rational numbers, which are not a division ring, but could have a rat cast.
atarnoam pushed a commit that referenced this pull request Feb 9, 2024
If you can cast a rat to a type, then we probably want decimal notation to work there too.

This has the benefit of making the instance computable even in cases where some parts of the division ring structure are not.
It also means that this could apply to matrices of rational numbers, which are not a division ring, but could have a rat cast.
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. t-algebra Algebra (groups, rings, fields etc)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants