Repository navigation
Conversation
PR summary a2c6b11ab0Import changes for modified filesNo significant changes to the import graph Import changes for all files
|
plp127
reviewed
Nov 23, 2025
plp127
reviewed
Nov 23, 2025
Contributor
|
I independently discovered this algebraic theory while biking two months ago, so I opened a zulip thread: #maths > Affine Combination Space |
plp127
reviewed
Nov 23, 2025
ADedecker
reviewed
Nov 23, 2025
plp127
reviewed
Nov 24, 2025
ConvexSpaceConvexSpace
ocfnash
reviewed
Dec 19, 2025
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
Contributor
|
bors merge |
mathlib-bors Bot
pushed a commit
that referenced
this pull request
Dec 19, 2025
This PR introduces `ConvexSpace`, an algebraic structure for spaces equipped with finite convex combinations. The main definitions are: * `StdSimplex R M`: A finitely supported probability distribution over `M` with non-negative coefficients in `R` that sum to 1. * `StdSimplex.single`, `StdSimplex.duple`: Constructors for point mass and two-point distributions. * `StdSimplex.map`, `StdSimplex.join`: Monadic operations on standard simplices. * `ConvexSpace R M`: A typeclass with `convexCombination : StdSimplex R M → M` satisfying monadic laws (`assoc` and `single`). * `convexCombo₂`: Binary convex combinations of two points. The design follows a monadic structure where `StdSimplex R` forms a monad and `convexCombination` is a monadic algebra. This eliminates the need for explicit extensionality axioms and avoids universe issues with indexed families. 🤖 Prepared with Claude Code Co-authored-by: ADedecker <[email protected]>
Contributor
|
Pull request successfully merged into master. Build succeeded: |
ConvexSpaceConvexSpace
kim-em
added a commit
to kim-em/mathlib4
that referenced
this pull request
Jan 6, 2026
This PR introduces `ConvexSpace`, an algebraic structure for spaces equipped with finite convex combinations. The main definitions are: * `StdSimplex R M`: A finitely supported probability distribution over `M` with non-negative coefficients in `R` that sum to 1. * `StdSimplex.single`, `StdSimplex.duple`: Constructors for point mass and two-point distributions. * `StdSimplex.map`, `StdSimplex.join`: Monadic operations on standard simplices. * `ConvexSpace R M`: A typeclass with `convexCombination : StdSimplex R M → M` satisfying monadic laws (`assoc` and `single`). * `convexCombo₂`: Binary convex combinations of two points. The design follows a monadic structure where `StdSimplex R` forms a monad and `convexCombination` is a monadic algebra. This eliminates the need for explicit extensionality axioms and avoids universe issues with indexed families. 🤖 Prepared with Claude Code Co-authored-by: ADedecker <[email protected]>
goliath-klein
pushed a commit
to PrParadoxy/mathlib4
that referenced
this pull request
Jan 24, 2026
This PR introduces `ConvexSpace`, an algebraic structure for spaces equipped with finite convex combinations. The main definitions are: * `StdSimplex R M`: A finitely supported probability distribution over `M` with non-negative coefficients in `R` that sum to 1. * `StdSimplex.single`, `StdSimplex.duple`: Constructors for point mass and two-point distributions. * `StdSimplex.map`, `StdSimplex.join`: Monadic operations on standard simplices. * `ConvexSpace R M`: A typeclass with `convexCombination : StdSimplex R M → M` satisfying monadic laws (`assoc` and `single`). * `convexCombo₂`: Binary convex combinations of two points. The design follows a monadic structure where `StdSimplex R` forms a monad and `convexCombination` is a monadic algebra. This eliminates the need for explicit extensionality axioms and avoids universe issues with indexed families. 🤖 Prepared with Claude Code Co-authored-by: ADedecker <[email protected]>
5 tasks done
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`.
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`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR introduces
ConvexSpace, an algebraic structure for spaces equipped with finite convex combinations.The main definitions are:
StdSimplex R M: A finitely supported probability distribution overMwith non-negative coefficients inRthat sum to 1.StdSimplex.single,StdSimplex.duple: Constructors for point mass and two-point distributions.StdSimplex.map,StdSimplex.join: Monadic operations on standard simplices.ConvexSpace R M: A typeclass withconvexCombination : StdSimplex R M → Msatisfying monadic laws (assocandsingle).convexCombo₂: Binary convex combinations of two points.The design follows a monadic structure where
StdSimplex Rforms a monad andconvexCombinationis a monadic algebra. This eliminates the need for explicit extensionality axioms and avoids universe issues with indexed families.🤖 Prepared with Claude Code