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] - feat: recognize scientific notation in norm_num #1707

Closed
wants to merge 32 commits into from

Conversation

thorimur
Copy link
Collaborator

@thorimur thorimur commented Jan 20, 2023

We implement #1706.

In addition to a norm_num extension for OfScientific.ofScientific, we implement extensions for

  • Int.ofNat
  • mkRat
  • Rat.cast/RatCast.ratCast

which made implementation more convenient. We also patch up the other two *.cast evaluators consistently while we're at it.

We create an instance of OfScientific K for any division ring K.

See Zulip discussion here for the original discussion, and this Zulip discussion for the more recent one.


Open in Gitpod

@thorimur thorimur added WIP Work in progress blocked-by-other-PR This PR depends on another PR to Mathlib t-meta Tactics, attributes or user commands labels Jan 20, 2023
@thorimur thorimur linked an issue Jan 20, 2023 that may be closed by this pull request
@semorrison semorrison added merge-conflict The PR has a merge conflict with master, and needs manual merging. blocked-by-other-PR This PR depends on another PR to Mathlib and removed blocked-by-other-PR This PR depends on another PR to Mathlib merge-conflict The PR has a merge conflict with master, and needs manual merging. labels Jan 22, 2023
@semorrison semorrison removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. label Jan 30, 2023
@thorimur thorimur added awaiting-review The author would like community review of the PR and removed WIP Work in progress labels Jan 30, 2023
@thorimur thorimur added the WIP Work in progress label Mar 21, 2023
@semorrison semorrison added blocked-by-other-PR This PR depends on another PR to Mathlib and removed blocked-by-other-PR This PR depends on another PR to Mathlib labels Mar 21, 2023
@thorimur thorimur added awaiting-review The author would like community review of the PR and removed WIP Work in progress labels Mar 28, 2023
@digama0
Copy link
Member

digama0 commented Apr 12, 2023

bors r+

@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 Apr 12, 2023
bors bot pushed a commit that referenced this pull request Apr 12, 2023
We implement #1706.

In addition to a `norm_num` extension for `OfScientific.ofScientific`, we implement extensions for
* `Int.ofNat`
* `mkRat`
* `Rat.cast`/`RatCast.ratCast`

which made implementation more convenient. We also patch up the other two `*.cast` evaluators consistently while we're at it.

We create an instance of `OfScientific K` for any division ring `K`.

See [Zulip discussion here](https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/OfScientific) for the original discussion, and [this Zulip discussion](https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/finishing.20up.20ofScientific.20in.20norm_num) for the more recent one.
@bors
Copy link

bors bot commented Apr 12, 2023

Build failed (retrying...):

bors bot pushed a commit that referenced this pull request Apr 12, 2023
We implement #1706.

In addition to a `norm_num` extension for `OfScientific.ofScientific`, we implement extensions for
* `Int.ofNat`
* `mkRat`
* `Rat.cast`/`RatCast.ratCast`

which made implementation more convenient. We also patch up the other two `*.cast` evaluators consistently while we're at it.

We create an instance of `OfScientific K` for any division ring `K`.

See [Zulip discussion here](https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/OfScientific) for the original discussion, and [this Zulip discussion](https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/finishing.20up.20ofScientific.20in.20norm_num) for the more recent one.
@bors
Copy link

bors bot commented Apr 12, 2023

Build failed (retrying...):

bors bot pushed a commit that referenced this pull request Apr 12, 2023
We implement #1706.

In addition to a `norm_num` extension for `OfScientific.ofScientific`, we implement extensions for
* `Int.ofNat`
* `mkRat`
* `Rat.cast`/`RatCast.ratCast`

which made implementation more convenient. We also patch up the other two `*.cast` evaluators consistently while we're at it.

We create an instance of `OfScientific K` for any division ring `K`.

See [Zulip discussion here](https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/OfScientific) for the original discussion, and [this Zulip discussion](https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/finishing.20up.20ofScientific.20in.20norm_num) for the more recent one.
@bors
Copy link

bors bot commented Apr 12, 2023

This PR was included in a batch that was canceled, it will be automatically retried

bors bot pushed a commit that referenced this pull request Apr 12, 2023
We implement #1706.

In addition to a `norm_num` extension for `OfScientific.ofScientific`, we implement extensions for
* `Int.ofNat`
* `mkRat`
* `Rat.cast`/`RatCast.ratCast`

which made implementation more convenient. We also patch up the other two `*.cast` evaluators consistently while we're at it.

We create an instance of `OfScientific K` for any division ring `K`.

See [Zulip discussion here](https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/OfScientific) for the original discussion, and [this Zulip discussion](https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/finishing.20up.20ofScientific.20in.20norm_num) for the more recent one.
@bors
Copy link

bors bot commented Apr 12, 2023

Build failed (retrying...):

@ChrisHughes24
Copy link
Member

bors r+

bors bot pushed a commit that referenced this pull request Apr 12, 2023
We implement #1706.

In addition to a `norm_num` extension for `OfScientific.ofScientific`, we implement extensions for
* `Int.ofNat`
* `mkRat`
* `Rat.cast`/`RatCast.ratCast`

which made implementation more convenient. We also patch up the other two `*.cast` evaluators consistently while we're at it.

We create an instance of `OfScientific K` for any division ring `K`.

See [Zulip discussion here](https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/OfScientific) for the original discussion, and [this Zulip discussion](https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/finishing.20up.20ofScientific.20in.20norm_num) for the more recent one.
@bors
Copy link

bors bot commented Apr 12, 2023

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat: recognize scientific notation in norm_num [Merged by Bors] - feat: recognize scientific notation in norm_num Apr 12, 2023
@bors bors bot closed this Apr 12, 2023
@bors bors bot deleted the norm_num-scientific branch April 12, 2023 18:10
eric-wieser pushed a commit that referenced this pull request Apr 12, 2023
We implement #1706.

In addition to a `norm_num` extension for `OfScientific.ofScientific`, we implement extensions for
* `Int.ofNat`
* `mkRat`
* `Rat.cast`/`RatCast.ratCast`

which made implementation more convenient. We also patch up the other two `*.cast` evaluators consistently while we're at it.

We create an instance of `OfScientific K` for any division ring `K`.

See [Zulip discussion here](https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/OfScientific) for the original discussion, and [this Zulip discussion](https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/finishing.20up.20ofScientific.20in.20norm_num) for the more recent one.
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-meta Tactics, attributes or user commands
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Recognize scientific notation in norm_num
7 participants