Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(algebra/algebra/subalgebra): reduce imports (#12636)
Splitting a file, and reducing imports. No change in contents. Co-authored-by: Scott Morrison <scott.morrison@gmail.com> Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
- Loading branch information
1 parent
daa257f
commit 7d34f78
Showing
14 changed files
with
81 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
/- | ||
Copyright (c) 2021 Eric Weiser. All rights reserved. | ||
This comment has been minimized.
Sorry, something went wrong. |
||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Authors: Eric Wieser | ||
-/ | ||
import algebra.algebra.operations | ||
import algebra.algebra.subalgebra.basic | ||
import ring_theory.subring.pointwise | ||
|
||
/-! | ||
# Pointwise actions on subalgebras. | ||
If `R'` acts on an `R`-algebra `A` (so that `R'` and `R` actions commute) | ||
then we get an `R'` action on the collection of `R`-subalgebras. | ||
-/ | ||
|
||
namespace subalgebra | ||
|
||
section pointwise | ||
variables {R : Type*} {A : Type*} [comm_semiring R] [semiring A] [algebra R A] (S : subalgebra R A) | ||
|
||
/-- As submodules, subalgebras are idempotent. -/ | ||
@[simp] theorem mul_self : S.to_submodule * S.to_submodule = S.to_submodule := | ||
begin | ||
apply le_antisymm, | ||
{ rw submodule.mul_le, | ||
intros y hy z hz, | ||
exact mul_mem S hy hz }, | ||
{ intros x hx1, | ||
rw ← mul_one x, | ||
exact submodule.mul_mem_mul hx1 (one_mem S) } | ||
end | ||
|
||
variables {R' : Type*} [semiring R'] [mul_semiring_action R' A] [smul_comm_class R' R A] | ||
|
||
/-- The action on a subalgebra corresponding to applying the action to every element. | ||
This is available as an instance in the `pointwise` locale. -/ | ||
protected def pointwise_mul_action : mul_action R' (subalgebra R A) := | ||
{ smul := λ a S, S.map (mul_semiring_action.to_alg_hom _ _ a), | ||
one_smul := λ S, | ||
(congr_arg (λ f, S.map f) (alg_hom.ext $ by exact one_smul R')).trans S.map_id, | ||
mul_smul := λ a₁ a₂ S, | ||
(congr_arg (λ f, S.map f) (alg_hom.ext $ by exact mul_smul _ _)).trans (S.map_map _ _).symm } | ||
|
||
localized "attribute [instance] subalgebra.pointwise_mul_action" in pointwise | ||
open_locale pointwise | ||
|
||
@[simp] lemma coe_pointwise_smul (m : R') (S : subalgebra R A) : ↑(m • S) = m • (S : set A) := rfl | ||
|
||
@[simp] lemma pointwise_smul_to_subsemiring (m : R') (S : subalgebra R A) : | ||
(m • S).to_subsemiring = m • S.to_subsemiring := rfl | ||
|
||
@[simp] lemma pointwise_smul_to_submodule (m : R') (S : subalgebra R A) : | ||
(m • S).to_submodule = m • S.to_submodule := rfl | ||
|
||
@[simp] lemma pointwise_smul_to_subring {R' R A : Type*} [semiring R'] [comm_ring R] [ring A] | ||
[mul_semiring_action R' A] [algebra R A] [smul_comm_class R' R A] (m : R') (S : subalgebra R A) : | ||
(m • S).to_subring = m • S.to_subring := rfl | ||
|
||
lemma smul_mem_pointwise_smul (m : R') (r : A) (S : subalgebra R A) : r ∈ S → m • r ∈ m • S := | ||
(set.smul_mem_smul_set : _ → _ ∈ m • (S : set A)) | ||
|
||
end pointwise | ||
|
||
end subalgebra |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Typo!