Skip to content

[Merged by Bors] - chore: remove instance of lift from Option to MetaM#18680

Closed
hrmacbeth wants to merge 10 commits intomasterfrom
HM-lift-option-metam
Closed

[Merged by Bors] - chore: remove instance of lift from Option to MetaM#18680
hrmacbeth wants to merge 10 commits intomasterfrom
HM-lift-option-metam

Conversation

@hrmacbeth
Copy link
Copy Markdown
Member

Remove the MonadLift Option MetaM instance which previously appeared in the middle of the norm_num implementation. This has been there since the port (#519) and my guess is that leaving it there was an oversight -- that @digama0 had intended either to move it earlier or to delete it entirely.

Anyway, this PR takes the easiest path to removing it: de-instance the definition, and invoke it as a local instance in the places where it had been used in Mathlib.

Zulip


Open in Gitpod

@hrmacbeth hrmacbeth changed the title Hm lift option metam chore: remove instance of lift from Option to MetaM Nov 5, 2024
@github-actions
Copy link
Copy Markdown

github-actions bot commented Nov 5, 2024

PR summary c915a10a0c

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ _root_.Mathlib.Meta.monadLiftOptionMetaM
- instance : MonadLift Option MetaM

You can run this locally as follows
## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>

## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>

The doc-module for script/declarations_diff.sh contains some details about this script.

@hrmacbeth hrmacbeth added easy < 20s of review time. See the lifecycle page for guidelines. t-meta Tactics, attributes or user commands labels Nov 5, 2024
@kmill
Copy link
Copy Markdown
Contributor

kmill commented Nov 6, 2024

Thanks!

bors r+

@github-actions github-actions bot added the ready-to-merge This PR has been sent to bors. label Nov 6, 2024
mathlib-bors bot pushed a commit that referenced this pull request Nov 6, 2024
Remove the `MonadLift Option MetaM` instance which previously appeared in the middle of the `norm_num` implementation.  This has been there since the port (#519) and my guess is that leaving it there was an oversight -- that @digama0 had intended either to move it earlier or to delete it entirely.

Anyway, this PR takes the easiest path to removing it: de-instance the definition, and invoke it as a local instance in the places where it had been used in Mathlib.

[Zulip](https://leanprover.zulipchat.com/#narrow/channel/239415-metaprogramming-.2F-tactics/topic/Lift.20from.20Option.20to.20MetaM)
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Nov 6, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title chore: remove instance of lift from Option to MetaM [Merged by Bors] - chore: remove instance of lift from Option to MetaM Nov 6, 2024
@mathlib-bors mathlib-bors bot closed this Nov 6, 2024
@mathlib-bors mathlib-bors bot deleted the HM-lift-option-metam branch November 6, 2024 19:19
TobiasLeichtfried pushed a commit that referenced this pull request Nov 21, 2024
Remove the `MonadLift Option MetaM` instance which previously appeared in the middle of the `norm_num` implementation.  This has been there since the port (#519) and my guess is that leaving it there was an oversight -- that @digama0 had intended either to move it earlier or to delete it entirely.

Anyway, this PR takes the easiest path to removing it: de-instance the definition, and invoke it as a local instance in the places where it had been used in Mathlib.

[Zulip](https://leanprover.zulipchat.com/#narrow/channel/239415-metaprogramming-.2F-tactics/topic/Lift.20from.20Option.20to.20MetaM)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

easy < 20s of review time. See the lifecycle page for guidelines. 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.

2 participants