Skip to content

[Merged by Bors] - feat: API and proof of isStrictMap_prodMap - #38937

Closed
KanCup wants to merge 16 commits into
leanprover-community:masterfrom
KanCup:grouphomo
Closed

KanCup wants to merge 16 commits into
leanprover-community:masterfrom
KanCup:grouphomo

Conversation

@KanCup

@KanCup KanCup commented May 4, 2026

Copy link
Copy Markdown
Contributor

Open in Gitpod

@KanCup KanCup changed the title skip Ad May 4, 2026
@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 4, 2026
@github-actions

github-actions Bot commented May 4, 2026

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.

@KanCup KanCup changed the title Ad API and proof of isStrictMap_prodMap May 4, 2026
@github-actions github-actions Bot added merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) t-topology Topological spaces, uniform spaces, metric spaces, filters labels May 4, 2026
@github-actions

github-actions Bot commented May 4, 2026 •

Copy link
Copy Markdown

✅ PR Title Formatted Correctly

The title of this PR has been updated to match our commit style conventions.
Thank you!

@ADedecker

Copy link
Copy Markdown
Member

@zw810-ctrl Okay, I think I know where your problem is coming from.

The issue is that you created this PR from an old version of master (mid-march). This is probably because your local master branch is tracking your fork's master instead of the main repo.

I would suggest the following:

  1. Switch to your local master: git switch master
  2. Add the upstream remote: git remote add upstream https://github.com/leanprover-community/mathlib4.git
  3. Fetch upstream: git fetch upstream
  4. Configure your local master: git branch --set-upstream-to=upstream/master master
  5. Pull the changes on master: git pull
  6. Switch back to the branch for this pr: git switch grouphomo
  7. Merge master: git merge upstream/master.
  8. Solve conflicts.
  9. Push

And then everything should be good. Do not hesitate to ask if you need any help or explanation.

@github-actions github-actions Bot added large-import Automatically added label for PRs with a significant increase in transitive imports and removed merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) labels May 10, 2026
@github-actions

github-actions Bot commented May 10, 2026 •

Copy link
Copy Markdown

PR summary 7c4c6a64c6

Import changes exceeding 2%

% File
+53.73% Mathlib.Topology.Maps.Strict.Basic

Import changes for modified files

Dependency changes

File Base Count Head Count Change
Mathlib.Topology.Maps.Strict.Basic 711 1093 +382 (+53.73%)
Import changes for all files
Files Import difference
Mathlib.Topology.Maps.Strict.Basic 382

Declarations diff (regex)

+ Homeomorph.comp_isStrictMap_iff
+ Homeomorph.isStrictMap_comp_iff
+ MonoidHom.isOpenQuotientMap_iff_isQuotientMap
+ isStrictMap_iff_isOpenQuotientMap_rangeRestrict
+ isStrictMap_prodMap

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.

Declarations diff (Lean)

✅ Lean-aware diff — post-build, computed from the Lean environment (commit 7c4c6a6).

  • +8 new declarations
  • −0 removed declarations
+AddMonoidHom.isOpenQuotientMap_iff_isQuotientMap
+AddMonoidHom.isStrictMap_iff_isOpenQuotientMap_rangeRestrict
+AddMonoidHom.isStrictMap_prodMap
+MonoidHom.isOpenQuotientMap_iff_isQuotientMap
+MonoidHom.isStrictMap_iff_isOpenQuotientMap_rangeRestrict
+MonoidHom.isStrictMap_prodMap
+Topology.Homeomorph.comp_isStrictMap_iff
+Topology.Homeomorph.isStrictMap_comp_iff

No changes to strong technical debt.

No changes to weak technical debt.

Current commit 7c4c6a64c6
Reference commit 66255bfc74

This script lives in the mathlib-ci repository. To run it locally, from your mathlib4 directory:

git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci
../mathlib-ci/scripts/reporting/technical-debt-metrics.sh pr_summary
  • The relative value is the weighted sum of the differences with weight given by the inverse of the current value of the statistic.
  • The absolute value is the relative value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).

@KanCup

KanCup commented May 10, 2026

Copy link
Copy Markdown
Contributor Author

@zw810-ctrl Okay, I think I know where your problem is coming from.

The issue is that you created this PR from an old version of master (mid-march). This is probably because your local master branch is tracking your fork's master instead of the main repo.

I would suggest the following:

  1. Switch to your local master: git switch master
  2. Add the upstream remote: git remote add upstream https://github.com/leanprover-community/mathlib4.git
  3. Fetch upstream: git fetch upstream
  4. Configure your local master: git branch --set-upstream-to=upstream/master master
  5. Pull the changes on master: git pull
  6. Switch back to the branch for this pr: git switch grouphomo
  7. Merge master: git merge upstream/master.
  8. Solve conflicts.
  9. Push

And then everything should be good. Do not hesitate to ask if you need any help or explanation.

Thank you! I resend the pr this time. Seem I track true master. But it is still fail in some checks

@ADedecker

ADedecker commented May 10, 2026 •

Copy link
Copy Markdown
Member

Hi! The errors are cause by the fact that you didn't do the merging completely, you can look online for more information about merge conflicts. I'm about to take the plane so I can't provide more details right now, but if you have any questions I can answer them in a few hours.

Comment thread Mathlib/Topology/Maps/Strict/Basic.lean Resolved

@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.

This should solve your problems.

Comment thread Mathlib/Topology/Maps/Strict/Basic.lean Resolved
Comment thread Mathlib/Topology/Maps/Strict/Basic.lean Resolved
Comment thread Mathlib/Topology/Maps/Strict/Basic.lean Resolved
Comment thread Mathlib/Topology/Maps/Strict/Basic.lean Resolved
Comment thread Mathlib/Topology/Maps/Strict/Basic.lean Resolved
@ADedecker ADedecker added the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label May 11, 2026
@mathlib-merge-conflicts

Copy link
Copy Markdown

This pull request has conflicts, please merge master and resolve them.

@mathlib-merge-conflicts mathlib-merge-conflicts 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 14, 2026
@KanCup
KanCup force-pushed the grouphomo branch 2 times, most recently from 9f162b2 to 05c5a69 Compare May 26, 2026 05:11
@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 26, 2026
@KanCup

KanCup commented May 26, 2026

Copy link
Copy Markdown
Contributor Author

Sorry for taking so long. I fixed all the problems in checking.

@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 for your work! And no worries about the delay, the important part is that this is moving forward :)

You can keep this for a later PR if you prefer, but one thing that would be useful to me would be an iff version of isStrictMap_prodMap. The missing fact for the other direction is that Prod.fst is an open quotient map (unless one of the spaces is empty, but this is not possible for groups), from which you would deduce that if Prod.map f g is a quotient map then f and g are quotient maps.

Let me know if you need more details (and again, maybe it's best to leave this for later).

Comment thread Mathlib/Topology/Maps/Strict/Basic.lean Resolved
Comment thread Mathlib/Topology/Maps/Strict/Basic.lean Resolved
Comment thread Mathlib/Topology/Maps/Strict/Basic.lean Resolved
Comment thread Mathlib/Topology/Maps/Strict/Basic.lean Resolved
Comment thread Mathlib/Topology/Maps/Strict/Basic.lean Resolved
@ocfnash

ocfnash commented May 29, 2026

Copy link
Copy Markdown
Contributor

@zw810-ctrl Thanks for working on this. I hope you don't mind that I pushed up a commit to try to help here a bit.

@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.

Sorry for the huge delay! I think this is close to ready 🙂 There are a few extra additions I'll need, but I'll add them myself.

Comment thread Mathlib/Topology/Maps/Strict/Basic.lean Resolved
Comment thread Mathlib/Topology/Maps/Strict/Basic.lean Resolved
Comment thread Mathlib/Topology/Maps/Strict/Basic.lean Resolved
Comment thread Mathlib/Topology/Maps/Strict/Basic.lean Resolved
Comment thread Mathlib/Topology/Maps/Strict/Basic.lean Resolved
Comment thread Mathlib/Topology/Maps/Strict/Basic.lean Resolved
Comment thread Mathlib/Topology/Maps/Strict/Basic.lean Resolved
@ADedecker

Copy link
Copy Markdown
Member

Please merge master for CI to work correctly!

Comment thread Mathlib/Topology/Maps/Strict/Basic.lean Resolved
@ADedecker

Copy link
Copy Markdown
Member

@zw810-ctrl I took the freedom to merge master and fix conflicts.

ADedecker and others added 2 commits June 23, 2026 12:05
@KanCup

KanCup commented Jun 23, 2026

Copy link
Copy Markdown
Contributor Author

@zw810-ctrl I took the freedom to merge master and fix conflicts.

Sorry for my delay and thank you!

@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!

bors d+

Comment thread Mathlib/Topology/Maps/Strict/Basic.lean Resolved
Comment thread Mathlib/Topology/Maps/Strict/Basic.lean Resolved
Comment thread Mathlib/Topology/Maps/Strict/Basic.lean Resolved
Comment thread Mathlib/Topology/Maps/Strict/Basic.lean Resolved
@mathlib-bors mathlib-bors Bot added the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Jun 24, 2026
@mathlib-bors

mathlib-bors Bot commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

✌️ zw810-ctrl can now approve this pull request until 2026-07-08 09:48 UTC (in 2 weeks). To approve and merge, reply with bors r+. More detailed instructions are available here.

⚠️ This delegation only covers changes within Archive/**, Counterexamples/**, docs/**, DownstreamTest/**, Mathlib/**, MathlibTest/**, widget/**, Archive.lean, Counterexamples.lean, docs.lean, Mathlib.lean; an author commit touching anything else will revoke it. Bors also revokes it if a later push changes too many files for it to check the full list — even if it stays within scope.

@ADedecker ADedecker removed the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Jun 24, 2026
@ADedecker

Copy link
Copy Markdown
Member

In fact my suggestions were all pretty trivial, so I pushed them directly to move a bit quicker.
Thanks again for your work!

bors merge

@mathlib-bors mathlib-bors Bot added the ready-to-merge This PR has been sent to bors. label Jun 24, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Jun 24, 2026
Co-authored-by: Oliver Nash <[email protected]>
Co-authored-by: Monica Omar <[email protected]>
Co-authored-by: ADedecker <[email protected]>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
Co-authored-by: Anatole Dedecker <[email protected]>
@mathlib-bors mathlib-bors Bot added the bors-staging This PR is currently being built by bors on the staging branch. label Jun 24, 2026
@mathlib-bors

mathlib-bors Bot commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

@mathlib-bors mathlib-bors Bot changed the title feat: API and proof of isStrictMap_prodMap [Merged by Bors] - feat: API and proof of isStrictMap_prodMap Jun 24, 2026
@mathlib-bors mathlib-bors Bot closed this Jun 24, 2026
@mathlib-bors mathlib-bors Bot removed the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Jun 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bors-staging This PR is currently being built by bors on the staging branch. large-import Automatically added label for PRs with a significant increase in transitive imports 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.

5 participants