Skip to content

[Merged by Bors] - feat(Geometry/Convex): a topology on StdSimplex - #42131

Closed
joelriou wants to merge 14 commits into
leanprover-community:masterfrom
joelriou:stdsimplex-topology
Closed

joelriou wants to merge 14 commits into
leanprover-community:masterfrom
joelriou:stdsimplex-topology

Conversation

@joelriou

@joelriou joelriou commented Jul 27, 2026 •

Copy link
Copy Markdown
Contributor

In this PR, we define a topology on the standard simplex StdSimplex R M. When M is finite, this is the topology that is induced by the embedding StdSimplex R M → (M → R). In general, we use the supremum of the coinduced topologies for the maps StdSimplex.map f : StdSimplex R ι → StdSimplex R M where f : ι → M is a map from a finite set ι.


This is different from the topology proposed in #40176.

Open in Gitpod

@joelriou joelriou added WIP Work in progress t-convex-geometry Affine geometry, cones, simplices labels Jul 27, 2026
@github-actions

github-actions Bot commented Jul 27, 2026 •

Copy link
Copy Markdown

PR summary b37a2c27ff

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference
Mathlib.Geometry.Convex.ConvexSpace.Topology (new file) 1263

Declarations diff (regex)

+ continuous_iff'
+ continuous_map_weights_apply
+ isClosedEmbedding_toFun_comp_weights
+ isEmbedding_toFun_comp_weights
+ mapDomain_fintype
+ map_comp'
+ map_id'
+ mem_range_map_iff
+ prod_eq_of_subset
+ range_toFun_comp_weights
+ sum_finsetSum
+ topologicalSpace
+ topologicalSpaceInduced
+ topologicalSpace_eq
+ total_of_fintype
++ continuous_iff
++ continuous_map
++ continuous_weights_apply

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

  • +16 new declarations
  • −0 removed declarations
+Convexity.StdSimplex.continuous_iff
+Convexity.StdSimplex.continuous_iff'
+Convexity.StdSimplex.continuous_map
+Convexity.StdSimplex.continuous_weights_apply
+Convexity.StdSimplex.isClosedEmbedding_toFun_comp_weights
+Convexity.StdSimplex.isEmbedding_toFun_comp_weights
+Convexity.StdSimplex.map_comp'
+Convexity.StdSimplex.map_id'
+Convexity.StdSimplex.mem_range_map_iff
+Convexity.StdSimplex.range_toFun_comp_weights
+Convexity.StdSimplex.topologicalSpace
+Convexity.StdSimplex.total_of_fintype
+Finset.prod_eq_of_subset
+Finset.sum_eq_of_subset
+Finsupp.mapDomain_fintype
+Finsupp.sum_finsetSum

No changes to strong technical debt.

No changes to weak technical debt.

Current commit b37a2c27ff
Reference commit e76467f1ca

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

@joelriou joelriou removed the WIP Work in progress label Jul 27, 2026
@joelriou joelriou added the WIP Work in progress label Jul 28, 2026
@jcommelin

Copy link
Copy Markdown
Member

Thanks 🎉

bors merge

@mathlib-bors mathlib-bors Bot added the ready-to-merge This PR has been sent to bors. label Aug 11, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Aug 11, 2026
In this PR, we define a topology on the standard simplex `StdSimplex R M`. When `M` is finite, this is the topology that is induced by the embedding `StdSimplex R M → (M → R)`. In general, we use the supremum of the coinduced topologies for the maps `StdSimplex.map f : StdSimplex R ι → StdSimplex R M` where `f : ι → M` is a map from a finite set `ι`.
@mathlib-bors mathlib-bors Bot added bors-staging This PR is currently being built by bors on the staging branch. awaiting-requeue This PR was on the bors queue but came off after a build failure or other issue. labels Aug 11, 2026
@mathlib-bors

mathlib-bors Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Build failed:

Fix if necessary, and then someone with permission can run bors r+ or bors retry.

@mathlib-bors mathlib-bors Bot removed ready-to-merge This PR has been sent to bors. bors-staging This PR is currently being built by bors on the staging branch. labels Aug 11, 2026
@joelriou

Copy link
Copy Markdown
Contributor Author

bors cancel

@joelriou

Copy link
Copy Markdown
Contributor Author

Retrying...

bors merge

@mathlib-bors mathlib-bors Bot added ready-to-merge This PR has been sent to bors. and removed awaiting-requeue This PR was on the bors queue but came off after a build failure or other issue. labels Aug 11, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Aug 11, 2026
In this PR, we define a topology on the standard simplex `StdSimplex R M`. When `M` is finite, this is the topology that is induced by the embedding `StdSimplex R M → (M → R)`. In general, we use the supremum of the coinduced topologies for the maps `StdSimplex.map f : StdSimplex R ι → StdSimplex R M` where `f : ι → M` is a map from a finite set `ι`.
@mathlib-bors mathlib-bors Bot added the bors-staging This PR is currently being built by bors on the staging branch. label Aug 11, 2026
@mathlib-bors

mathlib-bors Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

@mathlib-bors mathlib-bors Bot changed the title feat(Geometry/Convex): a topology on StdSimplex [Merged by Bors] - feat(Geometry/Convex): a topology on StdSimplex Aug 11, 2026
@mathlib-bors mathlib-bors Bot closed this Aug 11, 2026
rosborn added a commit to rosborn/mathlib4 that referenced this pull request Aug 12, 2026
* origin/master: (417 commits)
  feat(CategoryTheory/Presentable): more basic API for κ-filtered categories (leanprover-community#41184)
  feat(Tactic/Linter/UnusedTactic): mark `isIgnoreTacticKind` and `addIgnoreTacticKind` as public (leanprover-community#41993)
  doc: sync area READMEs with the directory tree (leanprover-community#42224)
  feat(CategoryTheory/Presentable): new constructor for `IsCardinalFilteredGenerator` (leanprover-community#41183)
  feat(Data/Finset): `insert a (s.erase a) = insert a s` (leanprover-community#40775)
  feat(CategoryTheory/Limits): morphisms between filtered limits are initially level-wise (leanprover-community#41009)
  chore: fix more linter warnings encountered by `scripts/rm_set_option.py` (leanprover-community#42659)
  chore(Algebra/Module/Submodule/Pointwise): remove `@[simp]` (leanprover-community#42643)
  feat(Algebra/QuadraticAlgebra): change of generator (leanprover-community#42209)
  chore(Condensed): reduce imports (leanprover-community#42022)
  chore: remove @[expose] from def-free public sections (leanprover-community#39388)
  feat: make `TFAE.out` 1-indexed (leanprover-community#42663)
  feat(Topology/Order): convergence of suprema and infima (leanprover-community#40578)
  feat: composition of Fredholm operators (leanprover-community#41601)
  chore: remove unused open declarations (leanprover-community#42235)
  chore(Algebra/Order/GroupWithZero/Canonical): remove unnecessary typeclass assumptions (leanprover-community#42539)
  chore(Algebra/Homology): make `HomologicalComplex.eval` `implicit_reducible` (leanprover-community#42648)
  chore: update Mathlib dependencies 2026-08-11 (leanprover-community#42651)
  chore: improve `Set` / `Finset` congruence API (leanprover-community#42640)
  feat(Geometry/Convex): a topology on StdSimplex (leanprover-community#42131)
  ...

# Conflicts:
#	Mathlib/Tactic/Linter/DirectoryDependency.lean
mathlib-bors Bot pushed a commit that referenced this pull request Sep 2, 2026
…StdSimplex` instead of `stdSimplex` (#42181)

Before #28893, the topological simplex (used for the definition of singular homology) was defined as a subtype of `Fin (n + 1) → ℝ≥0` which did not interact well with the convexity API which at the time required working with subtypes of vector spaces. Since #28893, we relied on `stdSimplex` which was a subtype of `Fin (n + 1) → ℝ` in order to use the convexity API. Since #31984, the convexity API allows to work with convex spaces not necessarily embedded in vector spaces and we have the new definition of `StdSimplex`, on which a topology was set up in #42131. This PR deprecates `stdSimplex` in favour of `StdSimplex`.
attilavjda pushed a commit to attilavjda/mathlib4 that referenced this pull request Sep 5, 2026
…#42131)

In this PR, we define a topology on the standard simplex `StdSimplex R M`. When `M` is finite, this is the topology that is induced by the embedding `StdSimplex R M → (M → R)`. In general, we use the supremum of the coinduced topologies for the maps `StdSimplex.map f : StdSimplex R ι → StdSimplex R M` where `f : ι → M` is a map from a finite set `ι`.
joelriou added a commit to joelriou/mathlib4 that referenced this pull request Sep 5, 2026
…StdSimplex` instead of `stdSimplex` (leanprover-community#42181)

Before leanprover-community#28893, the topological simplex (used for the definition of singular homology) was defined as a subtype of `Fin (n + 1) → ℝ≥0` which did not interact well with the convexity API which at the time required working with subtypes of vector spaces. Since leanprover-community#28893, we relied on `stdSimplex` which was a subtype of `Fin (n + 1) → ℝ` in order to use the convexity API. Since leanprover-community#31984, the convexity API allows to work with convex spaces not necessarily embedded in vector spaces and we have the new definition of `StdSimplex`, on which a topology was set up in leanprover-community#42131. This PR deprecates `stdSimplex` in favour of `StdSimplex`.
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. ready-to-merge This PR has been sent to bors. t-convex-geometry Affine geometry, cones, simplices

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants