Skip to content
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

Closed
wants to merge 7 commits into from

Conversation

xroblot
Copy link
Collaborator

@xroblot xroblot commented Jan 21, 2023


Open in Gitpod

Mathbin -> Mathlib

fix certain import statements

move "by" to end of line

add import to Mathlib.lean
@xroblot xroblot added WIP Work in progress mathlib-port This is a port of a theory file from mathlib. labels Jan 21, 2023
@Ruben-VandeVelde Ruben-VandeVelde added awaiting-review The author would like community review of the PR and removed WIP Work in progress labels Jan 22, 2023
@xroblot
Copy link
Collaborator Author

xroblot commented Jan 22, 2023

@Ruben-VandeVelde Thanks for the fix!

Mathlib/Algebra/Star/Pointwise.lean Outdated Show resolved Hide resolved
Mathlib/Algebra/Star/Pointwise.lean Outdated Show resolved Hide resolved
Mathlib/Algebra/Star/Pointwise.lean Outdated Show resolved Hide resolved
Mathlib/Algebra/Star/Pointwise.lean Outdated Show resolved Hide resolved
Copy link
Member

@jcommelin jcommelin left a 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 :=
Copy link
Member

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?

Copy link
Collaborator Author

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

@jcommelin
Copy link
Member

Thanks 🎉

bors merge

@github-actions github-actions bot added ready-to-merge This PR has been sent to bors. and removed awaiting-review The author would like community review of the PR labels Jan 23, 2023
bors bot pushed a commit that referenced this pull request Jan 23, 2023
Co-authored-by: Ruben Van de Velde <65514131+Ruben-VandeVelde@users.noreply.github.com>
@bors
Copy link

bors bot commented Jan 23, 2023

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat : port Algebra.Star.Pointwise [Merged by Bors] - feat : port Algebra.Star.Pointwise Jan 23, 2023
@bors bors bot closed this Jan 23, 2023
@bors bors bot deleted the port/Algebra.Star.Pointwise branch January 23, 2023 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mathlib-port This is a port of a theory file from mathlib. ready-to-merge This PR has been sent to bors.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants