Skip to content

[Merged by Bors] - feature(Analysis/LocallyConvex/AbsConvex): Add zero_mem_absConvexHull#23845

Closed
mans0954 wants to merge 9 commits intomasterfrom
mans0954/zero_mem_absConvexHull
Closed

[Merged by Bors] - feature(Analysis/LocallyConvex/AbsConvex): Add zero_mem_absConvexHull#23845
mans0954 wants to merge 9 commits intomasterfrom
mans0954/zero_mem_absConvexHull

Conversation

@mans0954
Copy link
Copy Markdown
Collaborator

@mans0954 mans0954 commented Apr 8, 2025

The origin is a member of the absolute convex hull of a non-empty set (under appropriate hypothesis).


Open in Gitpod

@mans0954 mans0954 changed the title Add zero_mem_absConvexHull feature(Analysis/LocallyConvex/AbsConvex): Add zero_mem_absConvexHull Apr 8, 2025
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 8, 2025

PR summary 587f1f5bc2

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ Balanced.balancedCore_eq
+ Balanced.zero_mem
+ zero_mem_absConvexHull

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


No changes to technical debt.

You can run this locally as

./scripts/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-analysis Analysis (normed *, calculus) label Apr 8, 2025
Comment on lines +309 to +315
lemma zero_mem_absConvexHull {s : Set E} [SeminormedRing 𝕜] [NormOneClass 𝕜]
[AddCommGroup E] [Module ℝ E] [Module 𝕜 E] [Nonempty s] : 0 ∈ absConvexHull 𝕜 s := by
obtain ⟨w, hw⟩ := (inferInstance : Nonempty s)
rw [← add_neg_cancel ((1/2 : ℝ) • w), ← smul_neg]
exact convex_absConvexHull (subset_absConvexHull hw)
((Balanced.neg_mem_iff balanced_absConvexHull).mpr (subset_absConvexHull hw))
(le_of_lt one_half_pos) (le_of_lt one_half_pos) (add_halves 1)
Copy link
Copy Markdown
Contributor

@RemyDegenne RemyDegenne Apr 11, 2025

Choose a reason for hiding this comment

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

absConvexHull is balanced, so you could use that 0 belongs to any nonempty balanced set (which seems to be a missing lemma):

lemma Balanced.zero_mem {E 𝕜 : Type*} [SeminormedRing 𝕜] [AddCommMonoid E] [Module 𝕜 E] {s : Set E}
    (hs_nonempty : s.Nonempty) (hs : Balanced 𝕜 s) : 0 ∈ s := by
  have : (0 : E) = (0 : 𝕜) • (hs_nonempty.some : E) := by simp
  rw [this]
  exact hs.smul_mem (by simp) hs_nonempty.some_mem

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

There is balancedCore_zero_mem and balancedCore_nonempty_iff with slightly different hypothesis.

@RemyDegenne RemyDegenne added the awaiting-author A reviewer has asked the author a question or requested changes. label Apr 11, 2025
@mans0954 mans0954 removed the awaiting-author A reviewer has asked the author a question or requested changes. label Apr 11, 2025
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 d+

@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Apr 11, 2025

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

@ghost ghost added the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Apr 11, 2025
@mans0954
Copy link
Copy Markdown
Collaborator Author

bors r+

mathlib-bors bot pushed a commit that referenced this pull request Apr 12, 2025
…#23845)

The origin is a member of the absolute convex hull of a non-empty set (under appropriate hypothesis).



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

mathlib-bors bot commented Apr 12, 2025

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title feature(Analysis/LocallyConvex/AbsConvex): Add zero_mem_absConvexHull [Merged by Bors] - feature(Analysis/LocallyConvex/AbsConvex): Add zero_mem_absConvexHull Apr 12, 2025
@mathlib-bors mathlib-bors bot closed this Apr 12, 2025
@mathlib-bors mathlib-bors bot deleted the mans0954/zero_mem_absConvexHull branch April 12, 2025 05:50
tannerduve pushed a commit that referenced this pull request May 13, 2025
…#23845)

The origin is a member of the absolute convex hull of a non-empty set (under appropriate hypothesis).



Co-authored-by: Christopher Hoskin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). t-analysis Analysis (normed *, calculus)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants