Skip to content

[Merged by Bors] - feat(Topology/Algebra/Module/Complement): bundle prodEquivOfIsCompl and quotientEquivOfIsCompl, add ContinuousLinearMap.ofIsTopCompl - #39260

Closed
sharky564 wants to merge 25 commits into
leanprover-community:masterfrom
sharky564:SK_top_compl

Conversation

@sharky564

Copy link
Copy Markdown
Contributor

This PR completes the three TODO items listed at the top of Mathlib/Topology/Algebra/Module/Complement.lean (introduced in #38547). Submodule.prodEquivOfIsCompl is shown to be a homeomorphism if and only if the two submodules are topological complements. The analogous characterisation for Submodule.quotientEquivOfIsCompl is also provided, and ContinuousLinearMap.ofIsTopCompl is defined as the continuous version of LinearMap.ofIsCompl, taking continuous linear maps from complementary submodules and producing the induced continuous linear map on the whole space.


@github-actions github-actions Bot added the new-contributor This PR was made by a contributor with at most 5 merged PRs. Welcome to the community! label May 12, 2026
@github-actions

Copy link
Copy Markdown

Welcome new contributor!

Thank you for contributing to Mathlib! If you haven't done so already, please review our contribution guidelines, as well as the style guide and naming conventions. In particular, we kindly remind contributors that we have guidelines regarding the use of AI when making pull requests.

We use a review queue to manage reviews. If your PR does not appear there, it is probably because it is not successfully building (i.e., it doesn't have a green checkmark), has the awaiting-author tag, or another reason described in the Lifecycle of a PR. The review dashboard has a dedicated webpage which shows whether your PR is on the review queue, and (if not), why.

If you haven't already done so, please come to https://leanprover.zulipchat.com/, introduce yourself, and mention your new PR.

Thank you again for joining our community.

@github-actions

github-actions Bot commented May 12, 2026 •

Copy link
Copy Markdown

PR summary 78fbe3d328

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ IsCompl.isTopCompl_iff_continuous_quotientEquivOfIsCompl
+ IsCompl.isTopCompl_iff_continuous_symm_prodEquivOfIsCompl
+ IsCompl.isTopCompl_iff_isHomeomorph_prodEquivOfIsCompl
+ continuous_prodEquivOfIsCompl
+ isTopCompl_comm
+ ofIsCompl_apply_left
+ ofIsCompl_apply_right
+ ofIsTopCompl
+ ofIsTopCompl_add
+ ofIsTopCompl_apply
+ ofIsTopCompl_apply_left
+ ofIsTopCompl_apply_right
+ ofIsTopCompl_eq
+ ofIsTopCompl_eq_add
+ ofIsTopCompl_zero
+ prodEquivOfIsTopCompl
+ prodEquivOfIsTopCompl_apply
+ prodEquivOfIsTopCompl_symm_apply
+ quotientEquivOfIsTopCompl
+ quotientEquivOfIsTopCompl_apply
+ quotientEquivOfIsTopCompl_apply_mk
+ quotientEquivOfIsTopCompl_symm_apply
+ range_ofIsTopCompl
+ toLinearEquiv_prodEquivOfIsTopCompl
+ toLinearEquiv_quotientEquivOfIsTopCompl
+ toLinearMap_ofIsTopCompl

You can run this locally as follows
## from your `mathlib4` directory:
git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci

## summary with just the declaration names:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh <optional_commit>

## more verbose report:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh long <optional_commit>

The doc-module for scripts/pr_summary/declarations_diff.sh in the mathlib-ci repository contains some details about this script.


No changes to strong technical debt.
No changes to weak technical debt.

@github-actions github-actions Bot added the t-topology Topological spaces, uniform spaces, metric spaces, filters label May 12, 2026
@github-actions github-actions Bot added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label May 13, 2026
@github-actions github-actions Bot removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label May 13, 2026

@ADedecker ADedecker left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks a lot! Here are some early comments.

@ADedecker

Copy link
Copy Markdown
Member

Tip: on the "Files Changed" view on GitHub, you can accept suggestions in batch in a single commit. (But there's nothing wrong with doing it one by one!)

@themathqueen themathqueen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Mostly happy with this

@themathqueen themathqueen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think there's still missing API to add. But for another PR. I don't want to hinder this much longer though. Thanks! :)

@ADedecker want to have another look?

@ADedecker ADedecker left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks a lot, this is almost good!
And thanks Monica for the review!

Comment thread Mathlib/LinearAlgebra/Projection.lean Resolved
@sharky564

Copy link
Copy Markdown
Contributor Author

@ADedecker @themathqueen I think this is good to merge in now :)

@ocfnash

ocfnash commented May 19, 2026

Copy link
Copy Markdown
Contributor

Thanks!

bors merge

mathlib-bors Bot pushed a commit that referenced this pull request May 19, 2026
… and `quotientEquivOfIsCompl`, add `ContinuousLinearMap.ofIsTopCompl` (#39260)

This PR completes the three TODO items listed at the top of `Mathlib/Topology/Algebra/Module/Complement.lean` (introduced in #38547). `Submodule.prodEquivOfIsCompl` is shown to be a homeomorphism if and only if the two submodules are topological complements. The analogous characterisation for `Submodule.quotientEquivOfIsCompl` is also provided, and `ContinuousLinearMap.ofIsTopCompl` is defined as the continuous version of `LinearMap.ofIsCompl`, taking continuous linear maps from complementary submodules and producing the induced continuous linear map on the whole space.
@mathlib-triage mathlib-triage Bot added the ready-to-merge This PR has been sent to bors. label May 19, 2026
@mathlib-bors

mathlib-bors Bot commented May 19, 2026

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title feat(Topology/Algebra/Module/Complement): bundle prodEquivOfIsCompl and quotientEquivOfIsCompl, add ContinuousLinearMap.ofIsTopCompl [Merged by Bors] - feat(Topology/Algebra/Module/Complement): bundle prodEquivOfIsCompl and quotientEquivOfIsCompl, add ContinuousLinearMap.ofIsTopCompl May 19, 2026
@mathlib-bors mathlib-bors Bot closed this May 19, 2026
b-mehta pushed a commit to b-mehta/mathlib4 that referenced this pull request Jun 2, 2026
… and `quotientEquivOfIsCompl`, add `ContinuousLinearMap.ofIsTopCompl` (leanprover-community#39260)

This PR completes the three TODO items listed at the top of `Mathlib/Topology/Algebra/Module/Complement.lean` (introduced in leanprover-community#38547). `Submodule.prodEquivOfIsCompl` is shown to be a homeomorphism if and only if the two submodules are topological complements. The analogous characterisation for `Submodule.quotientEquivOfIsCompl` is also provided, and `ContinuousLinearMap.ofIsTopCompl` is defined as the continuous version of `LinearMap.ofIsCompl`, taking continuous linear maps from complementary submodules and producing the induced continuous linear map on the whole space.
Bergschaf pushed a commit to Bergschaf/mathlib4 that referenced this pull request Jun 3, 2026
… and `quotientEquivOfIsCompl`, add `ContinuousLinearMap.ofIsTopCompl` (leanprover-community#39260)

This PR completes the three TODO items listed at the top of `Mathlib/Topology/Algebra/Module/Complement.lean` (introduced in leanprover-community#38547). `Submodule.prodEquivOfIsCompl` is shown to be a homeomorphism if and only if the two submodules are topological complements. The analogous characterisation for `Submodule.quotientEquivOfIsCompl` is also provided, and `ContinuousLinearMap.ofIsTopCompl` is defined as the continuous version of `LinearMap.ofIsCompl`, taking continuous linear maps from complementary submodules and producing the induced continuous linear map on the whole space.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-contributor This PR was made by a contributor with at most 5 merged PRs. Welcome to the community! ready-to-merge This PR has been sent to bors. t-topology Topological spaces, uniform spaces, metric spaces, filters

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants