Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

[Merged by Bors] - chore(analysis/convex): move convex_on_norm, change API #13631

Closed
wants to merge 4 commits into from

Conversation

urkud
Copy link
Member

@urkud urkud commented Apr 22, 2022

  • Move convex_on_norm from specific_functions to topology, use it to golf the proof of convex_on_dist.
  • The old convex_on_norm is now called convex_on_univ_norm. The new convex_on_norm is about convexity on any convex set.
  • Add convex_on_univ_dist and make s : set E an implicit argument in convex_on_dist.

This way APIs about convexity of norm and distance agree.


Open in Gitpod

@urkud urkud added awaiting-review The author would like community review of the PR awaiting-CI The author would like to see what CI has to say before doing more work. labels Apr 22, 2022
@github-actions github-actions bot removed the awaiting-CI The author would like to see what CI has to say before doing more work. label Apr 22, 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.

When I wrote those lemmas I didn't know whether it was more practical to have the univ version or the convex set version.

By the way, do you think we should have a convex_on ℝ s (dist z) version?

src/analysis/convex/topology.lean Outdated Show resolved Hide resolved
src/analysis/convex/topology.lean Outdated Show resolved Hide resolved
Co-authored-by: Yaël Dillies <yael.dillies@gmail.com>
@urkud
Copy link
Member Author

urkud commented Apr 25, 2022

When I wrote those lemmas I didn't know whether it was more practical to have the univ version or the convex set version.

I don't know either. I just fixed the inconsistency in API.

By the way, do you think we should have a convex_on ℝ s (dist z) version?

IMHO, we should add it whenever we need it.

@ocfnash
Copy link
Collaborator

ocfnash commented Apr 29, 2022

Thanks!

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 Apr 29, 2022
bors bot pushed a commit that referenced this pull request Apr 29, 2022
* Move `convex_on_norm` from `specific_functions` to `topology`, use it to golf the proof of `convex_on_dist`.
* The old `convex_on_norm` is now called `convex_on_univ_norm`. The new `convex_on_norm` is about convexity on any convex set.
* Add `convex_on_univ_dist` and make `s : set E` an implicit argument in `convex_on_dist`.

This way APIs about convexity of norm and distance agree.
@bors
Copy link

bors bot commented Apr 29, 2022

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title chore(analysis/convex): move convex_on_norm, change API [Merged by Bors] - chore(analysis/convex): move convex_on_norm, change API Apr 29, 2022
@bors bors bot closed this Apr 29, 2022
@bors bors bot deleted the YK-conv-norm branch April 29, 2022 15:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants