Skip to content

[Merged by Bors] - doc(metric): add main results sections for metric spaces#37193

Closed
JJYYY-JJY wants to merge 5 commits intoleanprover-community:masterfrom
JJYYY-JJY:doc/main-results-metricspace-defs
Closed

[Merged by Bors] - doc(metric): add main results sections for metric spaces#37193
JJYYY-JJY wants to merge 5 commits intoleanprover-community:masterfrom
JJYYY-JJY:doc/main-results-metricspace-defs

Conversation

@JJYYY-JJY
Copy link
Copy Markdown
Contributor

Add Main results sections to metric-space definition modules

This PR improves discoverability in the metric-space definition modules by adding curated Main results sections and by fixing a stale internal file reference.

Add a Main results section to the pseudo-metric definitions module, highlighting key constructions and foundational lemmas.
Add a Main results section to the metric-space definitions module, highlighting core constructions and distance-based characterization lemmas.
Update the implementation note to point to the current pseudo-metric definitions path, clarifying where elementary pseudometric facts live.
This is a docstring-only change:

No declarations, theorem names, imports, instances, or proofs are changed;
only module docstrings in the two metric-space definition files are edited.


Open in Gitpod

- Summarize the key lemmas and constructions exposed in the metric-space modules to improve discoverability and orientation for readers.
- Clarify that many elementary facts live in the pseudo-metric module and update the referenced path accordingly.
Copilot AI review requested due to automatic review settings March 26, 2026 01:55
@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 Mar 26, 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
Copy link
Copy Markdown

github-actions bot commented Mar 26, 2026

PR summary 91b2017b29

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

No 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 scripts/pr_summary/declarations_diff.sh contains some details about this script.


No changes to technical debt.

You can run this locally as

./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).

@github-actions github-actions bot added the t-topology Topological spaces, uniform spaces, metric spaces, filters label Mar 26, 2026
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 26, 2026

✅ PR Title Formatted Correctly

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

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds curated “Main results” sections to the pseudo-metric and metric space definition modules to improve discoverability, and updates an implementation note to reference the current pseudo-metric definitions file.

Changes:

  • Add “Main results” bullets to Pseudo/Defs.lean highlighting key constructions and lemmas.
  • Add “Main results” bullets to Defs.lean highlighting core metric-space constructions and characterizations.
  • Update the implementation note to point to Mathlib/Topology/MetricSpace/Pseudo/Defs.lean (removing the stale PseudoMetric.lean reference).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
Mathlib/Topology/MetricSpace/Pseudo/Defs.lean Adds a “Main results” section listing central pseudo-metric constructions/lemmas.
Mathlib/Topology/MetricSpace/Defs.lean Adds a “Main results” section for metric spaces and fixes an internal file reference in the implementation notes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Mathlib/Topology/MetricSpace/Pseudo/Defs.lean Outdated
Comment thread Mathlib/Topology/MetricSpace/Pseudo/Defs.lean Outdated
Comment thread Mathlib/Topology/MetricSpace/Pseudo/Defs.lean
@JJYYY-JJY JJYYY-JJY changed the title docs(metric): add Main results sections for metric spaces doc(metric): add main results sections for metric spaces Mar 31, 2026
Copy link
Copy Markdown
Contributor

@j-loreaux j-loreaux 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 doing this! I think there's some room for further improvement.

Comment thread Mathlib/Topology/MetricSpace/Pseudo/Defs.lean Outdated
Comment thread Mathlib/Topology/MetricSpace/Pseudo/Defs.lean Outdated
Comment thread Mathlib/Topology/MetricSpace/Pseudo/Defs.lean
Comment thread Mathlib/Topology/MetricSpace/Defs.lean Outdated
@j-loreaux j-loreaux added the awaiting-author A reviewer has asked the author a question or requested changes. label Apr 7, 2026
JJYYY-JJY and others added 2 commits April 9, 2026 00:53
- Reorganize "Main definitions" and "Main results" sections in `MetricSpace/Defs.lean` and `MetricSpace/Pseudo/Defs.lean`.
- Move `ofDistTopology` and `replace*` functions to the definitions section.
- Expand the list of main results for pseudo-metric spaces to include uniformity bases and convergence characterizations.
@JJYYY-JJY
Copy link
Copy Markdown
Contributor Author

-awaiting-author

@github-actions github-actions bot removed the awaiting-author A reviewer has asked the author a question or requested changes. label Apr 9, 2026
Copy link
Copy Markdown
Contributor

@j-loreaux j-loreaux left a comment

Choose a reason for hiding this comment

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

Thanks!

bors merge

@mathlib-triage mathlib-triage bot added the ready-to-merge This PR has been sent to bors. label Apr 14, 2026
mathlib-bors bot pushed a commit that referenced this pull request Apr 14, 2026
Add Main results sections to metric-space definition modules

This PR improves discoverability in the metric-space definition modules by adding curated Main results sections and by fixing a stale internal file reference.

Add a Main results section to the pseudo-metric definitions module, highlighting key constructions and foundational lemmas.
Add a Main results section to the metric-space definitions module, highlighting core constructions and distance-based characterization lemmas.
Update the implementation note to point to the current pseudo-metric definitions path, clarifying where elementary pseudometric facts live.
This is a docstring-only change:

No declarations, theorem names, imports, instances, or proofs are changed;
only module docstrings in the two metric-space definition files are edited.

Co-authored-by: JJYYY <[email protected]>
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Apr 14, 2026

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title doc(metric): add main results sections for metric spaces [Merged by Bors] - doc(metric): add main results sections for metric spaces Apr 14, 2026
@mathlib-bors mathlib-bors bot closed this Apr 14, 2026
@JJYYY-JJY JJYYY-JJY deleted the doc/main-results-metricspace-defs branch April 15, 2026 00:44
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