-
Notifications
You must be signed in to change notification settings - Fork 297
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(analysis/convex/cone/basic): add has_add
, add_zero_class
, and add_comm_semigroup
instances to convex_cone
#16213
Conversation
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
Co-authored-by: mcdoll <moritz.doll@googlemail.com>
…/mathlib into apurva/dual-of-dual
I would guess that your addition and the zero element are compatible in the sense of add_zero_class and that the addition is associative add_semigroup I haven't tested it, but I would hope that you can use set_like.coe_injective and function.injective.add_semigroup and set.add_semigroup for that. |
Great, thanks! I'll upgrade the classes. |
This PR/issue depends on: |
I removed /- The |
has_add
, add_zero_class
, and add_comm_semigroup
instances to convex_cone
has_add
, add_zero_class
, and add_comm_semigroup
instances to convex_cone
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.
Sorry for the delay. Looks good to me, even though I am slightly sad that K1 + K2
did not work.
Co-authored-by: mcdoll <moritz.doll@googlemail.com>
No worries! I have also been super busy with teaching so this delay kinda worked out for me. |
Thanks 🐙 maintainer merge |
🚀 Pull request has been placed on the maintainer queue by mcdoll. |
Thanks! On the proposed lemma @[simp] lemma coe_add {K₁ K₂ : convex_cone 𝕜 E} : ((K₁ + K₂) : set E) = ↑K₁ + ↑K₂ := rfl I might guess the way to have Lean interpret it in a non-tautological way is bors r+ |
…d `add_comm_semigroup` instances to `convex_cone` (#16213) Adds `has_add`, `add_zero_class`, and `add_comm_semigroup` instance to `convex_cone`s.
Pull request successfully merged into master. Build succeeded: |
has_add
, add_zero_class
, and add_comm_semigroup
instances to convex_cone
has_add
, add_zero_class
, and add_comm_semigroup
instances to convex_cone
I'll try this out and if it works make a small PR. Thank you, |
Nope, still the same linter error :( |
Adds
has_add
,add_zero_class
, andadd_comm_semigroup
instance toconvex_cone
s.inner_dual_cone_of_inner_dual_cone_eq_self
for nonempty, closed, convex cones #15637 for thehas_zero
instance#15637 also adds a few other theorems not relevant for this PR.