Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - chore(analysis/convex/strict_convex_space): generalize/add strict_convex_space.of_* lemmas #17206

Closed
wants to merge 18 commits into from

Conversation

urkud
Copy link
Member

@urkud urkud commented Oct 27, 2022

@urkud urkud added awaiting-review The author would like community review of the PR t-analysis Analysis (normed *, calculus) labels Oct 27, 2022
Comment on lines 311 to 313
lemma open_segment_subset_union (c : 𝕜) (x y : E) :
open_segment 𝕜 x y ⊆ insert (line_map x y c) (open_segment 𝕜 x (line_map x y c) ∪
open_segment 𝕜 (line_map x y c) y) :=
Copy link
Collaborator

Choose a reason for hiding this comment

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

This statement could do with a docstring explanation.

EDIT: If you modify it according to my next comment, maybe not.

src/analysis/convex/segment.lean Outdated Show resolved Hide resolved
rcases lt_trichotomy a c with hac|rfl|hca,
{ right, left,
have hc : 0 < c, from h₀.trans hac,
refine ⟨a / c, ⟨div_pos h₀ hc, (div_lt_one hc).2 hac⟩, _⟩,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
refine ⟨a / c, ⟨div_pos h₀ hc, (div_lt_one hc).2 hac⟩, _⟩,
refine ⟨a / c, ⟨by positivity, (div_lt_one hc).2 hac⟩, _⟩,

and in other places.

Copy link
Member Author

Choose a reason for hiding this comment

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

What's wrong with short *_pos proofs?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Not much, but I thought I would showcase positivity!

/-- A convex set `s` is strictly convex provided that for any two distinct points of
`s \ interior s`, the line passing through these points has nonempty intersection with
`interior s`. -/
lemma convex.to_strict_convex' {s : set E} (hs : convex 𝕜 s)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
lemma convex.to_strict_convex' {s : set E} (hs : convex 𝕜 s)
lemma convex.strict_convex' {s : set E} (hs : convex 𝕜 s)

The to_ convention is reserved for instance names.

Copy link
Member Author

Choose a reason for hiding this comment

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

We already had convex.strict_convex. I renamed the old lemma to convex.strict_convex_of_open and golfed lemmas about strict_convex_Ixx.

src/analysis/convex/strict_convex_space.lean Outdated Show resolved Hide resolved
@semorrison semorrison added awaiting-author A reviewer has asked the author a question or requested changes and removed awaiting-review The author would like community review of the PR labels Nov 5, 2022
@mathlib-dependent-issues-bot mathlib-dependent-issues-bot added the blocked-by-other-PR This PR depends on another PR which is still in the queue. A bot manages this label via PR comment. label Nov 10, 2022
@mathlib-dependent-issues-bot mathlib-dependent-issues-bot removed the blocked-by-other-PR This PR depends on another PR which is still in the queue. A bot manages this label via PR comment. label Nov 11, 2022
@mathlib-dependent-issues-bot
Copy link
Collaborator

This PR/issue depends on:

@urkud urkud added awaiting-review The author would like community review of the PR and removed awaiting-author A reviewer has asked the author a question or requested changes labels Nov 11, 2022
Copy link
Collaborator

@YaelDillies YaelDillies left a comment

Choose a reason for hiding this comment

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

bors merge

@bors
Copy link

bors bot commented Nov 12, 2022

🔒 Permission denied

Existing reviewers: click here to make YaelDillies a reviewer

@urkud
Copy link
Member Author

urkud commented Nov 12, 2022

@YaelDillies Did you mean maintainer merge?

@YaelDillies
Copy link
Collaborator

Uh yeah sorry.

maintainer merge

@github-actions
Copy link

🚀 Pull request has been placed on the maintainer queue by YaelDillies.

@semorrison
Copy link
Collaborator

bors merge

@github-actions github-actions bot added ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) and removed awaiting-review The author would like community review of the PR labels Nov 12, 2022
bors bot pushed a commit that referenced this pull request Nov 12, 2022
@bors
Copy link

bors bot commented Nov 13, 2022

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title chore(analysis/convex/strict_convex_space): generalize/add strict_convex_space.of_* lemmas [Merged by Bors] - chore(analysis/convex/strict_convex_space): generalize/add strict_convex_space.of_* lemmas Nov 13, 2022
@bors bors bot closed this Nov 13, 2022
@bors bors bot deleted the YK-scs-of-norm-add branch November 13, 2022 01:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) t-analysis Analysis (normed *, calculus)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants