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 : port Algebra.Star.Pointwise #1749
Conversation
xroblot
commented
Jan 21, 2023
Mathbin -> Mathlib fix certain import statements move "by" to end of line add import to Mathlib.lean
@Ruben-VandeVelde Thanks for the fix! |
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.
1 question, otherwise LGTM
@@ -297,7 +297,7 @@ protected def mul : Mul (Set α) := | |||
scoped[Pointwise] attribute [instance] Set.mul Set.add | |||
|
|||
@[to_additive (attr := simp)] | |||
theorem image2_mul : image2 Mul.mul s t = s * t := | |||
theorem image2_mul : image2 (· * ·) s t = s * t := |
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.
Why is this change needed?
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.
Otherwise, the proof of star_mul
gets more complicated since at some point, one needs to prove that
(fun a b : α ↦ (Mul.mul a b)⋆) = (fun a b : α ↦ b⋆ * a⋆)
Note that I was the one that did the porting of Data/Pointwise/Basic
so it is likely that I wrote the wrong statement. The original mathlib3 lemma is:
lemma image2_mul : image2 has_mul.mul s t = s * t := rfl
This change was suggested by @Ruben-VandeVelde
Thanks 🎉 bors merge |
Co-authored-by: Ruben Van de Velde <65514131+Ruben-VandeVelde@users.noreply.github.com>
Pull request successfully merged into master. Build succeeded:
|