Repository navigation
[Merged by Bors] - chore: replace numeric projections with named projections throughout mathlib - #45389
[Merged by Bors] - chore: replace numeric projections with named projections throughout mathlib#45389thorimur wants to merge 43 commits into
Conversation
PR summary 572f60fc12Import changes for modified filesNo significant changes to the import graph Import changes for all files
|
… the wrapped `ULift.down` field
Whitespace-only: wrap lines over 100 characters introduced by the `scripts/runSkimmer.sh` rewrite. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
This pull request has conflicts, please merge |
|
#45341 is now stacked on #45389: both are in a linked bundle and merge in the same batch, or not at all. The batch applies #45389's changes first. Each pull request still needs its own Review: #45341's own changes: the diff of #45341 without #45389's changes. View this bundle in bors (sign in with GitHub to view). |
|
This pull request has conflicts, please merge |
|
This pull request has conflicts, please merge |
Takes num-proj-lint-skimmer-algebra (leanprover-community#45722) from upstream/master, where it has landed.
|
This pull request has conflicts, please merge |
|
This pull request has conflicts, please merge |
| @[trans, simps! source target iso] | ||
| noncomputable def trans (f : X.PartialIso Y) (g : Y.PartialIso Z) : X.PartialIso Z := | ||
| have := f.dense_target.inter_of_isOpen_right g.dense_source g.source.2 | ||
| have := f.dense_target.inter_of_isOpen_right g.dense_source g.source.is_open' |
There was a problem hiding this comment.
Shouldn't all the is_open's be isOpen, without the prime?
There was a problem hiding this comment.
This sounds reasonable, though I'd suggest we address it in a follow-up PR instead of auditing our projections here. Moreover, there seem to be various named projections that we are allowed to use but shouldn't; ideally we should either make them private or lint against them.
I'm not sure if making this particular one private is feasible, since a couple of spots outside of the file use the field to construct the structure with { carrier := ..., is_open' := ... }. But we can at least replace them all, and hypothetically we could lint against using them as a projection separately.
I've replaced them all in the follow-up PR #46133. :)
|
This pull request has conflicts, please merge |
|
This pull request is no longer linked; it will merge on its own. |
|
Thanks 🎉 bors merge |
…mathlib (#45389) This PR replaces numeric projections such as `.2` with the named version of that projection, with the exception of certain types. This was generated using `scripts/runSkimmer.sh` in the output of #45341, plus some manual fixes and an LLM whitespace-only fix for handling (hundreds of) long lines. Co-authored-by: Jireh Loreaux <[email protected]>
|
Pull request successfully merged into master. Build succeeded: |
Takes num-proj-lint-skimmer (leanprover-community#45389) from upstream/master, where it has landed.
Takes num-proj-lint-skimmer (leanprover-community#45389) from upstream/master, where it has landed.
This PR replaces numeric projections such as
.2with the named version of that projection, with the exception of certain types. This was generated usingscripts/runSkimmer.shin the output of #45341, plus some manual fixes and an LLM whitespace-only fix for handling (hundreds of) long lines.map_continuousorfun_propinstead of.2which iscontinuous_toFun#45600