-
Notifications
You must be signed in to change notification settings - Fork 839
feat(Geometry/Euclidean/Angle/Unoriented): triangle inequality for angles #26129
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
base: master
Are you sure you want to change the base?
feat(Geometry/Euclidean/Angle/Unoriented): triangle inequality for angles #26129
Conversation
Some comnents added
ran 'lake exe mk_all'
Remove "TODO" from docstring and also remove "proof_wanted".
Comments from Original PR #24206This section contains 10 comment(s) from the original PR, excluding bot comments. @github-actions (2025-04-19 19:02 UTC): PR summary 6a858d8eb6Import changes for modified filesNo significant changes to the import graph Import changes for all files
|
PR summary 39996ca4dbImport changes for modified filesNo significant changes to the import graph Import changes for all files
|
Next I suggest moving the more generally meaningful definitions and lemmas about vectors in inner product spaces, or in real normed spaces in general in the case of |
Now thinking about where and how to put different lemmas and defs into different files. |
Forgot to run `lake exe mk_all`
Added docstring to `Normalized.lean`; edited docstring of `UnitVectorAngles.lean`
|
Mathlib/Geometry/Euclidean/Angle/Unoriented/TriangleInequality.lean
Outdated
Show resolved
Hide resolved
Mathlib/Geometry/Euclidean/Angle/Unoriented/TriangleInequality.lean
Outdated
Show resolved
Hide resolved
have H := neg_le_of_abs_le (abs_real_inner_le_norm x y) | ||
simp_all |
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.
have H := neg_le_of_abs_le (abs_real_inner_le_norm x y) | |
simp_all | |
simpa [hx, hy] using neg_le_of_abs_le (abs_real_inner_le_norm x y) |
Mathlib/Geometry/Euclidean/Angle/Unoriented/TriangleInequality.lean
Outdated
Show resolved
Hide resolved
Mathlib/Geometry/Euclidean/Angle/Unoriented/TriangleInequality.lean
Outdated
Show resolved
Hide resolved
Mathlib/Geometry/Euclidean/Angle/Unoriented/TriangleInequality.lean
Outdated
Show resolved
Hide resolved
Mathlib/Geometry/Euclidean/Angle/Unoriented/TriangleInequality.lean
Outdated
Show resolved
Hide resolved
Mathlib/Geometry/Euclidean/Angle/Unoriented/TriangleInequality.lean
Outdated
Show resolved
Hide resolved
Mathlib/Geometry/Euclidean/Angle/Unoriented/TriangleInequality.lean
Outdated
Show resolved
Hide resolved
Mathlib/Geometry/Euclidean/Angle/Unoriented/TriangleInequality.lean
Outdated
Show resolved
Hide resolved
Mathlib/Geometry/Euclidean/Angle/Unoriented/TriangleInequality.lean
Outdated
Show resolved
Hide resolved
Mathlib/Geometry/Euclidean/Angle/Unoriented/TriangleInequality.lean
Outdated
Show resolved
Hide resolved
Mathlib/Geometry/Euclidean/Angle/Unoriented/TriangleInequality.lean
Outdated
Show resolved
Hide resolved
Thank you, @themathqueen! |
Mathlib/Geometry/Euclidean/Angle/Unoriented/TriangleInequality.lean
Outdated
Show resolved
Hide resolved
Mathlib/Geometry/Euclidean/Angle/Unoriented/TriangleInequality.lean
Outdated
Show resolved
Hide resolved
This pull request has conflicts, please merge |
- `inner_mul_inner_self_le`: the Cauchy-Schwarz inequality (one of many variants). | ||
- `norm_inner_eq_norm_iff`: the equality criterion in the Cauchy-Schwarz inequality (also in many | ||
- `norm_inner_eq_norm_iff`: the equality criteion in the Cauchy-Schwartz inequality (also in many |
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.
What happened here? Why is it now "criteion"?
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.
It seems that I accidentally deleted a letter during resolving merge conflict, most probably. Sorry.
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.
Great, I missed the second "Schwartz" that had to be changed to "Schwarz", too.
@[simp] | ||
theorem inner_self_eq_one_of_norm_one {x : E} (hx : ‖x‖ = 1) : ⟪x, x⟫_𝕜 = 1 := |
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.
I think this is a bit of a funny simp lemma. Could you put this in a separate PR and benchmark it to make sure it doesn't have a bad performance impact?
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.
Maybe some days (at most a week) later, as I've caught cold/flu/smth and can't think efficiently enough. :(
Still, how does one benchmark a PR?
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.
Ah that's too bad, I had a cold the last few days too!
To benchmark a PR, you simply write a comment saying !bench
. A helpful bot will do everything for you and comment the results after about an hour.
This PR continues the work from #24206.
Original PR: #24206