-
Notifications
You must be signed in to change notification settings - Fork 297
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(algebra/group_ring_action): split out subobject actions (#17786
) This moves: * Instances for `submonoid` and `subgroup` to a new `algebra.group_ring_action.subobjects` module * Instances for `subsemiring` and `subring` inline with the other smul instances * `invariant_subring` to its own file The argument goes that `mul_semiring_action` is just `mul_distrib_mul_action` + `ring`, so should be available as early as possible in the import hierarchy where both are already available. Cutting out subobject dependencies makes this easier.
- Loading branch information
1 parent
70d50ec
commit afad8e4
Showing
15 changed files
with
82 additions
and
60 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,30 @@ | ||
/- | ||
Copyright (c) 2021 Eric Wieser. All rights reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Authors: Eric Wieser | ||
-/ | ||
import ring_theory.subring.pointwise | ||
|
||
/-! # Subrings invariant under an action -/ | ||
section ring | ||
|
||
variables (M R : Type*) [monoid M] [ring R] [mul_semiring_action M R] | ||
variables (S : subring R) | ||
open mul_action | ||
variables {R} | ||
|
||
/-- A typeclass for subrings invariant under a `mul_semiring_action`. -/ | ||
class is_invariant_subring : Prop := | ||
(smul_mem : ∀ (m : M) {x : R}, x ∈ S → m • x ∈ S) | ||
|
||
instance is_invariant_subring.to_mul_semiring_action [is_invariant_subring M S] : | ||
mul_semiring_action M S := | ||
{ smul := λ m x, ⟨m • x, is_invariant_subring.smul_mem m x.2⟩, | ||
one_smul := λ s, subtype.eq $ one_smul M s, | ||
mul_smul := λ m₁ m₂ s, subtype.eq $ mul_smul m₁ m₂ s, | ||
smul_add := λ m s₁ s₂, subtype.eq $ smul_add m s₁ s₂, | ||
smul_zero := λ m, subtype.eq $ smul_zero m, | ||
smul_one := λ m, subtype.eq $ smul_one m, | ||
smul_mul := λ m s₁ s₂, subtype.eq $ smul_mul' m s₁ s₂ } | ||
|
||
end ring |
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,32 @@ | ||
/- | ||
Copyright (c) 2021 Eric Wieser. All rights reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Authors: Eric Wieser | ||
-/ | ||
import algebra.group_ring_action.basic | ||
import group_theory.subgroup.basic | ||
|
||
/-! | ||
# Instances of `mul_semiring_action` for subobjects | ||
These are defined in this file as `semiring`s are not available yet where `submonoid` and `subgroup` | ||
are defined. | ||
Instances for `subsemiring` and `subring` are provided next to the other scalar actions instances | ||
for those subobjects. | ||
-/ | ||
variables {M G R : Type*} | ||
variables [monoid M] [group G] [semiring R] | ||
|
||
/-- A stronger version of `submonoid.distrib_mul_action`. -/ | ||
instance submonoid.mul_semiring_action [mul_semiring_action M R] (H : submonoid M) : | ||
mul_semiring_action H R := | ||
{ smul := (•), | ||
.. H.mul_distrib_mul_action, | ||
.. H.distrib_mul_action } | ||
|
||
/-- A stronger version of `subgroup.distrib_mul_action`. -/ | ||
instance subgroup.mul_semiring_action [mul_semiring_action G R] (H : subgroup G) : | ||
mul_semiring_action H R := | ||
H.to_submonoid.mul_semiring_action |
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