Skip to content

[Merged by Bors] - doc: add wikidata cross references#39909

Closed
jcommelin wants to merge 3 commits into
leanprover-community:masterfrom
jcommelin:wikidata-batch1
Closed

[Merged by Bors] - doc: add wikidata cross references#39909
jcommelin wants to merge 3 commits into
leanprover-community:masterfrom
jcommelin:wikidata-batch1

Conversation

@jcommelin

Copy link
Copy Markdown
Member

Open in Gitpod

@github-actions

github-actions Bot commented May 27, 2026

Copy link
Copy Markdown

PR summary 49c90097e6

Import changes for modified files

Dependency changes

File Base Count Head Count Change
Mathlib.Topology.Baire.Lemmas 619 620 +1 (+0.16%)
Import changes for all files
Files Import difference
6 files Mathlib.Topology.AlexandrovDiscrete Mathlib.Topology.Baire.Lemmas Mathlib.Topology.Compactness.NhdsKer Mathlib.Topology.Inseparable Mathlib.Topology.Maps.OpenQuotient Mathlib.Topology.NhdsKer
1

Declarations diff

No declarations were harmed in the making of this PR! 🐙

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.

@kim-em

kim-em commented May 27, 2026

Copy link
Copy Markdown
Contributor

Manual test run of #39876 / #39877 — no action needed. This is what the bot will post automatically on PRs like yours once #39876 (dump script), #39877 (CI workflow), and mathlib-ci#44 (orchestrator) all land. Posted here because your PR is the first real exerciser of the wikidata code path. Generated by running scripts/dump_crossref_tags.lean on a local merge of #39877 + #39909, then feeding the TSV through crossref-render in external-tags with --baseline-tsv (to subtract pre-existing stacks/kerodon tags) and --changed-files (your 13 paths).

(Edited to pick up an external-tags fix: declaration names were being rendered with stray \_ escapes because the renderer was applying full Markdown escaping to text already inside a ` code span.)


Cross-reference review

This PR touches 14 cross-reference tags:

Wikidata

Tag Title Description Declaration Comment
Q193878 Chinese remainder theorem theorem for solving simultaneous congruences Ideal.quotientInfRingEquivPiQuotient
Q505798 Lagrange's theorem group theory Subgroup.card_subgroup_dvd_card
Q505798 Lagrange's theorem group theory AddSubgroup.card_addSubgroup_dvd_card
Q1052678 Baire category theorem theorem in topology and functional analysis dense_iInter_of_isOpen
Q245098 intermediate value theorem theorem intermediate_value_Icc
Q253214 Heine–Borel theorem theorem about compact sets in Euclidean space Metric.isCompact_iff_isClosed_bounded
Q190546 Cauchy–Schwarz inequality a useful inequality encountered in many different settings, such as linear algebra, analysis, probability theory, vector algebra and other areas. It is considered to be one of the most important inequalities in all of mathematics inner_mul_inner_self_le
Q193286 Rolle's theorem on stationary points between two equal values of a real differentiable function exists_deriv_eq_zero
Q189136 mean value theorem on the existence of a tangent to an arc parallel to the line through its endpoints exists_ratio_deriv_eq_ratio_slope
Q866116 Hahn–Banach theorem theorem on extension of bounded linear functionals exists_extension_norm_eq
Q192760 fundamental theorem of algebra Every polynomial has a real or complex root Complex.isAlgClosed
Q939927 Stone–Weierstrass theorem theorem that every continuous function on a compact Hausdorff space can be approximated by certain families of continuous functions ContinuousMap.subalgebra_topologicalClosure_eq_top_of_separatesPoints
Q1816967 Urysohn's lemma lemma that a topological space is normal iff any 2 disjoint closed subsets can be separated by a continuous function exists_continuous_zero_one_of_isClosed
Q220680 Banach fixed-point theorem theorem about metric spaces ContractingWith.exists_fixedPoint

Posted by external-tags. Snippets are fetched from upstream live. This check is advisory: the dump script runs from the PR checkout, so a PR can edit the producer to hide tags from this comment.


/-- Baire theorem: a countable intersection of dense open sets is dense. Formulated here with
an index set which is a countable type. -/
@[wikidata Q1052678]

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Wikidata Q1052678: Baire category theorem — theorem in topology and functional analysis

* `f` equals one on `t`;
* `0 ≤ f x ≤ 1` for all `x`.
-/
@[wikidata Q1816967]

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Wikidata Q1816967: Urysohn's lemma — lemma that a topological space is normal iff any 2 disjoint closed subsets can be separated by a continuous function


include hab hfc hgc hgd hfd in
/-- Cauchy's Mean Value Theorem, `deriv` version. -/
@[wikidata Q189136]

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Wikidata Q189136: mean value theorem — on the existence of a tangent to an arc parallel to the line through its endpoints

ring

/-- **Cauchy–Schwarz inequality**. -/
@[wikidata Q190546]

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Wikidata Q190546: Cauchy–Schwarz inequality — a useful inequality encountered in many different settings, such as linear algebra, analysis, probability theory, vector algebra and other areas. It is considered to be one of the most important inequalities in all of mathematics

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can we have multiple instances of a single tag? If so I'd advocate also linking to this from LinearMap.BilinForm.apply_mul_apply_le_of_forall_zero_le.

simp at hf

/-- **Fundamental theorem of algebra**: the field `ℂ` of complex numbers is algebraically closed. -/
@[wikidata Q192760]

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Wikidata Q192760: fundamental theorem of algebra — Every polynomial has a real or complex root


/-- **Intermediate Value Theorem** for continuous functions on closed intervals, case
`f a ≤ t ≤ f b`. -/
@[wikidata Q245098]

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Wikidata Q245098: intermediate value theorem — theorem

-- TODO: assume `[MetricSpace α]` instead of `[PseudoMetricSpace α] [T2Space α]`
/-- The **Heine–Borel theorem**:
In a proper Hausdorff space, a set is compact if and only if it is closed and bounded. -/
@[wikidata Q253214]

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Wikidata Q253214: Heine–Borel theorem — theorem about compact sets in Euclidean space

/-- **Lagrange's Theorem**: The order of a subgroup divides the order of its ambient group. -/
@[to_additive /-- **Lagrange's Theorem**: The order of an additive subgroup divides the order of its
ambient additive group. -/]
@[to_additive (attr := wikidata Q505798) /-- **Lagrange's Theorem**: The order of an additive

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Wikidata Q505798: Lagrange's theorem — group theory


/-- **Hahn-Banach theorem** for continuous linear functions over `𝕜`
satisfying `IsRCLikeNormedField 𝕜`. -/
@[wikidata Q866116]

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Wikidata Q866116: Hahn–Banach theorem — theorem on extension of bounded linear functionals

that a subalgebra `A` of `C(X, ℝ)`, where `X` is a compact topological space,
is dense if it separates points.
-/
@[wikidata Q939927]

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Wikidata Q939927: Stone–Weierstrass theorem — theorem that every continuous function on a compact Hausdorff space can be approximated by certain families of continuous functions

@ocfnash ocfnash left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

One suggestion. Otherwise LGTM.

bors d+

ring

/-- **Cauchy–Schwarz inequality**. -/
@[wikidata Q190546]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can we have multiple instances of a single tag? If so I'd advocate also linking to this from LinearMap.BilinForm.apply_mul_apply_le_of_forall_zero_le.

@mathlib-bors

mathlib-bors Bot commented May 28, 2026

Copy link
Copy Markdown
Contributor

✌️ jcommelin can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@mathlib-triage mathlib-triage Bot added the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label May 28, 2026
@jcommelin jcommelin added the auto-merge-after-CI Please do not add manually. Requests for a bot to merge automatically once CI is done. label May 29, 2026
@mathlib-auto-merge

Copy link
Copy Markdown

As this PR is labelled auto-merge-after-CI, we are now sending it to bors:

bors merge

mathlib-bors Bot pushed a commit that referenced this pull request May 29, 2026
@mathlib-bors

mathlib-bors Bot commented May 29, 2026

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title doc: add wikidata cross references [Merged by Bors] - doc: add wikidata cross references May 29, 2026
@mathlib-bors mathlib-bors Bot closed this May 29, 2026
grunweg pushed a commit to grunweg/mathlib4 that referenced this pull request May 30, 2026
b-mehta pushed a commit to b-mehta/mathlib4 that referenced this pull request Jun 2, 2026
Bergschaf pushed a commit to Bergschaf/mathlib4 that referenced this pull request Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-after-CI Please do not add manually. Requests for a bot to merge automatically once CI is done. delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants