-
Notifications
You must be signed in to change notification settings - Fork 265
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/Data.Finset.Pointwise #1911
Conversation
Mathbin -> Mathlib fix certain import statements move "by" to end of line add import to Mathlib.lean
Opened a Zulip thread on some of the |
A misaligned `to_additive` causes some proofs to fail in #1911. No backport needed, the misalign happened due to a mathlib4 exclusive mistake as I understand.
This PR/issue depends on: |
|
Mathlib/Data/Finset/Pointwise.lean
Outdated
#align finset.image_add Finset.image_add | ||
|
||
/-- The singleton operation as a `MulHom`. -/ | ||
@[to_additive "The singleton operation as an `add_hom`."] |
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.
@[to_additive "The singleton operation as an `add_hom`."] | |
@[to_additive "The singleton operation as an `AddHom`."] |
Mathlib/Data/Finset/Pointwise.lean
Outdated
scoped[Pointwise] attribute [instance] Finset.nsmul Finset.npow Finset.zsmul Finset.zpow | ||
|
||
/-- `Finset α` is a `Semigroup` under pointwise operations if `α` is. -/ | ||
@[to_additive "`Finset α` is an `add_semigroup` under pointwise operations if `α` is. "] |
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.
@[to_additive "`Finset α` is an `add_semigroup` under pointwise operations if `α` is. "] | |
@[to_additive "`Finset α` is an `AddSemigroup` under pointwise operations if `α` is. "] |
Mathlib/Data/Finset/Pointwise.lean
Outdated
#align finset.add_semigroup Finset.addSemigroup | ||
|
||
/-- `Finset α` is a `CommSemigroup` under pointwise operations if `α` is. -/ | ||
@[to_additive "`Finset α` is an `add_comm_semigroup` under pointwise operations if `α` is. "] |
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.
@[to_additive "`Finset α` is an `add_comm_semigroup` under pointwise operations if `α` is. "] | |
@[to_additive "`Finset α` is an `AddCommSemigroup` under pointwise operations if `α` is. "] |
Mathlib/Data/Finset/Pointwise.lean
Outdated
variable [MulOneClass α] | ||
|
||
/-- `Finset α` is a `MulOneClass` under pointwise operations if `α` is. -/ | ||
@[to_additive "`Finset α` is an `add_zero_class` under pointwise operations if `α` is."] |
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.
@[to_additive "`Finset α` is an `add_zero_class` under pointwise operations if `α` is."] | |
@[to_additive "`Finset α` is an `AddZeroClass` under pointwise operations if `α` is."] |
Mathlib/Data/Finset/Pointwise.lean
Outdated
/-- The singleton operation as a `monoid_hom`. -/ | ||
@[to_additive "The singleton operation as an `add_monoid_hom`."] |
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.
/-- The singleton operation as a `monoid_hom`. -/ | |
@[to_additive "The singleton operation as an `add_monoid_hom`."] | |
/-- The singleton operation as a `MonoidHom`. -/ | |
@[to_additive "The singleton operation as an `AddMonoidHom`."] |
Mathlib/Data/Finset/Pointwise.lean
Outdated
/-- The coercion from `Finset` to `set` as a `monoid_hom`. -/ | ||
@[to_additive "The coercion from `Finset` to `set` as an `add_monoid_hom`."] |
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.
/-- The coercion from `Finset` to `set` as a `monoid_hom`. -/ | |
@[to_additive "The coercion from `Finset` to `set` as an `add_monoid_hom`."] | |
/-- The coercion from `Finset` to `Set` as a `MonoidHom`. -/ | |
@[to_additive "The coercion from `Finset` to `Set` as an `AddMonoidHom`."] |
Mathlib/Data/Finset/Pointwise.lean
Outdated
/-- Lift a `monoid_hom` to `Finset` via `image`. -/ | ||
@[to_additive "Lift an `add_monoid_hom` to `Finset` via `image`", simps] |
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.
/-- Lift a `monoid_hom` to `Finset` via `image`. -/ | |
@[to_additive "Lift an `add_monoid_hom` to `Finset` via `image`", simps] | |
/-- Lift a `MonoidHom` to `Finset` via `image`. -/ | |
@[to_additive "Lift an `AddMonoidHom` to `Finset` via `image`", simps] |
Mathlib/Data/Finset/Pointwise.lean
Outdated
#align finset.coe_pow Finset.coe_pow | ||
|
||
/-- `Finset α` is a `Monoid` under pointwise operations if `α` is. -/ | ||
@[to_additive "`Finset α` is an `add_monoid` under pointwise operations if `α` is. "] |
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.
@[to_additive "`Finset α` is an `add_monoid` under pointwise operations if `α` is. "] | |
@[to_additive "`Finset α` is an `AddMonoid` under pointwise operations if `α` is. "] |
I'll just run |
@arienmalec unfortunately |
Ah, I see it now. Done. |
Thanks 🎉 bors merge |
port of data.finset.pointwise Co-authored-by: Lukas Miaskiwskyi <lukas.mias@gmail.com>
Build failed:
|
bors r+ |
port of data.finset.pointwise Co-authored-by: Lukas Miaskiwskyi <lukas.mias@gmail.com>
Build failed:
|
bors r+ |
port of data.finset.pointwise Co-authored-by: Lukas Miaskiwskyi <lukas.mias@gmail.com> Co-authored-by: Johan Commelin <johan@commelin.net>
Pull request successfully merged into master. Build succeeded: |
port of data.finset.pointwise