-
Notifications
You must be signed in to change notification settings - Fork 339
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] - feat: forward-port PR 18990 #4328
Conversation
Forward-port of leanprover-community/mathlib3#18990 Original title: feat(analysis/normed_space/basic): scaling a set scales its diameter, translating it leaves it unchanged
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks 🎉
bors merge
Forward-port of leanprover-community/mathlib3#18990 Original title: feat(analysis/normed_space/basic): scaling a set scales its diameter, translating it leaves it unchanged
Pull request successfully merged into master. Build succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page. |
You didn't update any of the SHAs! |
/-- A variant of `le_inv_smul_iff` that holds for `ennreal`. -/ | ||
protected theorem le_inv_smul_iff {a b : ℝ≥0∞} {r : ℝ≥0} (hr₀ : r ≠ 0) : a ≤ r⁻¹ • b ↔ r • a ≤ b := | ||
by simpa [hr₀, ENNReal.smul_def] using (mul_le_iff_le_inv (coe_ne_zero.mpr hr₀) coe_ne_top).symm | ||
#align ennreal.le_inv_smul_iff ENNReal.le_inv_smul_iff | ||
|
||
/-- A variant of `inv_smul_le_iff` that holds for `ennreal`. -/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ennreal should be ENNReal
, right?
Forward-port of leanprover-community/mathlib3#18990 Original title: feat(analysis/normed_space/basic): scaling a set scales its diameter, translating it leaves it unchanged
The actual forward-porting was done in leanprover-community#4327 and leanprover-community#4328
Forward-port of leanprover-community/mathlib3#18990
Original title:
feat(analysis/normed_space/basic): scaling a set scales its diameter, translating it leaves it unchanged