[Merged by Bors] - chore: reorder arguments in DirSupClosed#37277
[Merged by Bors] - chore: reorder arguments in DirSupClosed#37277vihdzp wants to merge 5 commits intoleanprover-community:masterfrom
DirSupClosed#37277Conversation
PR summary 251d9c0ff4Import changes for modified filesNo significant changes to the import graph Import changes for all files
Declarations diffNo declarations were harmed in the making of this PR! 🐙 You can run this locally as follows## summary with just the declaration names:
./scripts/pr_summary/declarations_diff.sh <optional_commit>
## more verbose report:
./scripts/pr_summary/declarations_diff.sh long <optional_commit>The doc-module for No changes to technical debt.You can run this locally as
|
|
This PR/issue depends on: |
|
I'm going to (weakly) push back on this change. Even though I agree with you: of the two versions, the new one is better code. It's because I don't see that this makes things better enough. Is there a proof in a downstream project that becomes noticeably easier when you change this? And if that is the case, this PR is not enough, I think we should not change only one def: can we turn this into a general code style guideline, write a linter (optional but would be very good to have) and then make the improvement everywhere in Mathlib? |
|
I wouldn't say this makes the proofs easier, but I do think it makes writing them easier. The binders are in a more predictable order, and I it means I don't have to introduce four other variables before being reminded "ah! If we want to turn this into a guideline, I'd imagine it be saying that |
Agreed! I think we have a simproc even that does this rewrite. So if you could add this rule to the review checklist (or similar) then I'll approve it and we can look together at doing this in more places in Mathlib. |
|
I agree we should make this change globally too, but perhaps for pragmatic reasons (and since there's a few PRs around Scott and ScottHausdorff I'd like to prioritise right now), @Vierkantor do you think we could merge this one and do the broader changes in another PR? |
|
Okay! It was only weak pushback, so if you feel it is valuable in this form then I retract my objection. :) bors r+ |
We move `d ⊆ s` out of an unrelated binder.
|
Build failed (retrying...): |
We move `d ⊆ s` out of an unrelated binder.
|
Pull request successfully merged into master. Build succeeded: |
DirSupClosedDirSupClosed
We move
d ⊆ sout of an unrelated binder.