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: robustifying for debug.byAsSorry #14993

Closed
wants to merge 4 commits into from

Conversation

kim-em
Copy link
Contributor

@kim-em kim-em commented Jul 22, 2024

These are some minor changes, which are think are positive or neutral in any case, that help Mathlib compile under set_option debug.byAsSorry true (an option that arrived in v4.10 that turns all by blocks into sorries --- Mathlib is very much broken, although perhaps less than one might expect).

Copy link

github-actions bot commented Jul 22, 2024

PR summary 77fd010eb8

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

++-- image_upperBounds_subset_upperBounds_image

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>

Copy link
Collaborator

@grunweg grunweg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the clean-up! I agree that these changes are neutral or positive. I left a couple of small tweaks, but in my eyes, this PR could be delegated easily. Hence, let me
maintainer merge


/-- Transferring from `IsField` to `Field`. -/
noncomputable def IsField.toField {R : Type u} [Ring R] (h : IsField R) : Field R :=
{ ‹Ring R›, IsField.toSemifield h with qsmul := _ }
{ ‹Ring R›, IsField.toSemifield h with
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just flagging for the other reviewers: I don't have an opinion on these - I trust you these are necessary later.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is harmless, but I don't understand why it is needed.

Clearly the _ is being populated by elaborating the rfl proof, but why is this impacted by whether the rfl proof is inlined or inserted automatically behind the scenes?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Under byAsSorry, rfl will never even run.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, is the difference here by rfl vs rfl?

Copy link

🚀 Pull request has been placed on the maintainer queue by grunweg.

Copy link
Member

@jcommelin jcommelin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bors d+

@mathlib-bors
Copy link
Contributor

mathlib-bors bot commented Jul 22, 2024

✌️ semorrison can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@eric-wieser
Copy link
Member

Can you explain in the PR description what debug.byAsSorry is? I assume there's a Lean issue or PR you could link to.

@kim-em
Copy link
Contributor Author

kim-em commented Jul 22, 2024

bors merge

@github-actions github-actions bot added the ready-to-merge This PR has been sent to bors. label Jul 22, 2024
mathlib-bors bot pushed a commit that referenced this pull request Jul 22, 2024
These are some minor changes, which are think are positive or neutral in any case, that help Mathlib compile under `set_option debug.byAsSorry true` (an option that [arrived](leanprover/lean4#4576) in v4.10 that turns all `by` blocks into sorries
@mathlib-bors
Copy link
Contributor

mathlib-bors bot commented Jul 22, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title chore: robustifying for debug.byAsSorry [Merged by Bors] - chore: robustifying for debug.byAsSorry Jul 22, 2024
@mathlib-bors mathlib-bors bot closed this Jul 22, 2024
@mathlib-bors mathlib-bors bot deleted the quickbench_backports branch July 22, 2024 20:52
mathlib-bors bot pushed a commit that referenced this pull request Jul 25, 2024
Followup to #14993.

Hopefully these are all independently positive or neutral.

These help get Mathlib compiling under `set_option debug.byAsSorry true`.
mathlib-bors bot pushed a commit that referenced this pull request Jul 25, 2024
@adomani adomani mentioned this pull request Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants