[Merged by Bors] - refactor(Analysis/LocallyConvex/AbsConvex): Redefine AbsConvex to use a single ring of scalars#29342
Closed
mans0954 wants to merge 30 commits intoleanprover-community:masterfrom
Closed
Conversation
PR summary 724a6cb9d7Import changes for modified filesNo significant changes to the import graph Import changes for all files
Declarations diffNo declarations were harmed in the making of this PR! 🐙 You can run this locally as follows## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>
## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>The doc-module for No changes to technical debt.You can run this locally as
|
This was referenced Sep 5, 2025
Closed
1 task
Collaborator
|
This PR/issue depends on: |
j-loreaux
reviewed
Oct 6, 2025
Comment on lines
+85
to
+86
| open ComplexOrder | ||
|
|
Contributor
There was a problem hiding this comment.
I'd venture that this is the most controversial part of this PR. I think this PR is a good change, but in the past many people have been resistant to letting ℂ (and hence also RCLike 𝕜) have a PartialOrder instance.
Suggested change
| open ComplexOrder | |
| open scoped ComplexOrder | |
I think this PR likely warrants a Zulip discussion.
Co-authored-by: Jireh Loreaux <[email protected]>
Contributor
|
bors merge |
mathlib-bors bot
pushed a commit
that referenced
this pull request
Oct 14, 2025
… a single ring of scalars (#29342) Currently the definition of Absolutely Convex in Mathlib is a little unexpected: ``` def AbsConvex (s : Set E) : Prop := Balanced 𝕜 s ∧ Convex ℝ s ``` At the time this definition was formulated, Mathlib's definition of `Convex` required the scalars to be an `OrderedSemiring` whereas the definition of `Balanced` required the scalars to be a `SeminormedRing`. Mathlib didn't have a concept of a semi-normed ordered ring, so a set was defined as `AbsConvex` if it is balanced over a `SeminormedRing` `𝕜` and convex over `ℝ`. Recently the requirements for the definition of `Convex` have been relaxed (#24392, #20595) so it is now possible to use a single scalar ring in common with the literature. Previous discussion: - #17029 (comment) - #26345 (comment)
Contributor
|
Pull request successfully merged into master. Build succeeded: |
Jlh18
pushed a commit
to Jlh18/mathlib4
that referenced
this pull request
Oct 24, 2025
… a single ring of scalars (leanprover-community#29342) Currently the definition of Absolutely Convex in Mathlib is a little unexpected: ``` def AbsConvex (s : Set E) : Prop := Balanced 𝕜 s ∧ Convex ℝ s ``` At the time this definition was formulated, Mathlib's definition of `Convex` required the scalars to be an `OrderedSemiring` whereas the definition of `Balanced` required the scalars to be a `SeminormedRing`. Mathlib didn't have a concept of a semi-normed ordered ring, so a set was defined as `AbsConvex` if it is balanced over a `SeminormedRing` `𝕜` and convex over `ℝ`. Recently the requirements for the definition of `Convex` have been relaxed (leanprover-community#24392, leanprover-community#20595) so it is now possible to use a single scalar ring in common with the literature. Previous discussion: - leanprover-community#17029 (comment) - leanprover-community#26345 (comment)
BeibeiX0
pushed a commit
to BeibeiX0/mathlib4
that referenced
this pull request
Nov 7, 2025
… a single ring of scalars (leanprover-community#29342) Currently the definition of Absolutely Convex in Mathlib is a little unexpected: ``` def AbsConvex (s : Set E) : Prop := Balanced 𝕜 s ∧ Convex ℝ s ``` At the time this definition was formulated, Mathlib's definition of `Convex` required the scalars to be an `OrderedSemiring` whereas the definition of `Balanced` required the scalars to be a `SeminormedRing`. Mathlib didn't have a concept of a semi-normed ordered ring, so a set was defined as `AbsConvex` if it is balanced over a `SeminormedRing` `𝕜` and convex over `ℝ`. Recently the requirements for the definition of `Convex` have been relaxed (leanprover-community#24392, leanprover-community#20595) so it is now possible to use a single scalar ring in common with the literature. Previous discussion: - leanprover-community#17029 (comment) - leanprover-community#26345 (comment)
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.
Currently the definition of Absolutely Convex in Mathlib is a little unexpected:
At the time this definition was formulated, Mathlib's definition of
Convexrequired the scalars to be anOrderedSemiringwhereas the definition ofBalancedrequired the scalars to be aSeminormedRing. Mathlib didn't have a concept of a semi-normed ordered ring, so a set was defined asAbsConvexif it is balanced over aSeminormedRing𝕜and convex overℝ.Recently the requirements for the definition of
Convexhave been relaxed (#24392, #20595) so it is now possible to use a single scalar ring in common with the literature.Previous discussion: