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(group_theory/group_action): generalize is_algebra_tower #3717

Closed
wants to merge 2 commits into from

Conversation

Vierkantor
Copy link
Collaborator

This PR introduces a new typeclass is_scalar_tower R M N stating that scalar multiplications between the three types are compatible: smul_assoc : ((x : R) • (y : M)) • (z : N) = x • (y • z).
This typeclass is the general form of is_algebra_tower. It also generalizes some of the existing instances of is_algebra_tower. I didn't try very hard though, so I might have missed some instances.

Related Zulip discussions:


This PR introduces a new typeclass `is_scalar_tower R M N` stating that
scalar multiplications between the three types are compatible:
`smul_assoc : ((x : R) • (y : M)) • (z : N) = x • (y • z)`.
This typeclass is the general form of `is_algebra_tower`.
It also generalizes some of the existing instances of `is_algebra_tower`.
I didn't try very hard though, so I might have missed some.

Related Zulip discussions:
 * https://leanprover.zulipchat.com/#narrow/stream/217875-Is-there.20code.20for.20X.3F/topic/Effect.20of.20changing.20the.20base.20field.20on.20span
 * https://leanprover.zulipchat.com/#narrow/stream/217875-Is-there.20code.20for.20X.3F/topic/pull.20back.20an.20R.20module.20along.20.60S.20-.3E.2B*.20R.60
@Vierkantor Vierkantor added the awaiting-review The author would like community review of the PR label Aug 7, 2020
src/ring_theory/algebra_tower.lean Outdated Show resolved Hide resolved
src/ring_theory/algebra_tower.lean Outdated Show resolved Hide resolved
src/algebra/module/pi.lean Outdated Show resolved Hide resolved
@kckennylau
Copy link
Collaborator

Thanks!

Co-authored-by: Kenny Lau <kc_kennylau@yahoo.com.hk>
@Nicknamen
Copy link
Collaborator

Should we merge this before derivations?

class is_algebra_tower [comm_semiring R] [comm_semiring S] [semiring A]
[algebra R S] [algebra S A] [algebra R A] : Prop :=
(smul_assoc : ∀ (x : R) (y : S) (z : A), (x • y) • z = x • (y • z))
abbreviation is_algebra_tower [comm_semiring R] [comm_semiring S] [semiring A]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you really want to keep this abbreviation? It seems simpler to just use is_scalar_tower everywhere.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I completely agree with this. Working with both names for derivations I already see that having to remember which name is used where is confusing and I do not see the point of having this abbreviation.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opened #3785.

@ChrisHughes24
Copy link
Member

bors merge

@github-actions github-actions bot added ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) and removed awaiting-review The author would like community review of the PR labels Aug 10, 2020
bors bot pushed a commit that referenced this pull request Aug 10, 2020
This PR introduces a new typeclass `is_scalar_tower R M N` stating that scalar multiplications between the three types are compatible: `smul_assoc : ((x : R) • (y : M)) • (z : N) = x • (y • z)`.
This typeclass is the general form of `is_algebra_tower`. It also generalizes some of the existing instances of `is_algebra_tower`. I didn't try very hard though, so I might have missed some instances.

Related Zulip discussions:
 * https://leanprover.zulipchat.com/#narrow/stream/217875-Is-there.20code.20for.20X.3F/topic/Effect.20of.20changing.20the.20base.20field.20on.20span
 * https://leanprover.zulipchat.com/#narrow/stream/217875-Is-there.20code.20for.20X.3F/topic/pull.20back.20an.20R.20module.20along.20.60S.20-.3E.2B*.20R.60
@bors
Copy link

bors bot commented Aug 10, 2020

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat(group_theory/group_action): generalize is_algebra_tower [Merged by Bors] - feat(group_theory/group_action): generalize is_algebra_tower Aug 10, 2020
@bors bors bot closed this Aug 10, 2020
@bors bors bot deleted the compatible_smul branch August 10, 2020 20:54
Vierkantor added a commit that referenced this pull request Aug 15, 2020
Delete the abbreviation `is_algebra_tower` for `is_scalar_tower`,
and replace all references (including the usages of the `is_algebra_tower`
namespace) with `is_scalar_tower`. Documentation should also have been
updated accordingly.

This change was requested in a comment on #3717.
Vierkantor added a commit that referenced this pull request Aug 15, 2020
Delete the abbreviation `is_algebra_tower` for `is_scalar_tower`,
and replace all references (including the usages of the `is_algebra_tower`
namespace) with `is_scalar_tower`. Documentation should also have been
updated accordingly.

This change was requested in a comment on #3717.
bors bot pushed a commit that referenced this pull request Aug 15, 2020
Delete the abbreviation `is_algebra_tower` for `is_scalar_tower`, and replace all references (including the usages of the `is_algebra_tower` namespace) with `is_scalar_tower`. Documentation should also have been updated accordingly.

This change was requested in a comment on #3717.




Co-authored-by: Vierkantor <Vierkantor@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants