-
Notifications
You must be signed in to change notification settings - Fork 260
Add subgroups and submodules #2852
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| ------------------------------------------------------------------------ | ||
| -- The Agda standard library | ||
| -- | ||
| -- Definition of subgroups | ||
| ------------------------------------------------------------------------ | ||
|
|
||
| {-# OPTIONS --safe --cubical-compatible #-} | ||
|
|
||
| open import Algebra.Bundles using (Group; RawGroup) | ||
|
|
||
| module Algebra.Construct.Sub.Group {c ℓ} (G : Group c ℓ) where | ||
|
|
||
| private | ||
| module G = Group G | ||
|
|
||
| open import Algebra.Structures using (IsGroup) | ||
| open import Algebra.Morphism.Structures using (IsGroupMonomorphism) | ||
| import Algebra.Morphism.GroupMonomorphism as GroupMonomorphism | ||
| open import Level using (suc; _⊔_) | ||
|
|
||
| record Subgroup c′ ℓ′ : Set (c ⊔ ℓ ⊔ suc (c′ ⊔ ℓ′)) where | ||
| field | ||
| domain : RawGroup c′ ℓ′ | ||
|
|
||
| private | ||
| module H = RawGroup domain | ||
|
|
||
| field | ||
| ι : H.Carrier → G.Carrier | ||
| ι-monomorphism : IsGroupMonomorphism domain G.rawGroup ι | ||
|
|
||
| module ι = IsGroupMonomorphism ι-monomorphism | ||
|
|
||
| isGroup : IsGroup H._≈_ H._∙_ H.ε H._⁻¹ | ||
| isGroup = GroupMonomorphism.isGroup ι-monomorphism G.isGroup | ||
|
|
||
| group : Group _ _ | ||
| group = record { isGroup = isGroup } | ||
|
|
||
| open Group group public hiding (isGroup) | ||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,47 @@ | ||||||||||||||||||||||||||||||||||||||||||||
| ------------------------------------------------------------------------ | ||||||||||||||||||||||||||||||||||||||||||||
| -- The Agda standard library | ||||||||||||||||||||||||||||||||||||||||||||
| -- | ||||||||||||||||||||||||||||||||||||||||||||
| -- Definition of submodules | ||||||||||||||||||||||||||||||||||||||||||||
| ------------------------------------------------------------------------ | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| {-# OPTIONS --cubical-compatible --safe #-} | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| open import Algebra.Bundles using (Ring) | ||||||||||||||||||||||||||||||||||||||||||||
| open import Algebra.Module.Bundles using (Bimodule; RawBimodule) | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| module Algebra.Module.Construct.Sub.Bimodule {cr ℓr cs ℓs cm ℓm} {R : Ring cr ℓr} {S : Ring cs ℓs} (M : Bimodule R S cm ℓm) where | ||||||||||||||||||||||||||||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Styleguide says if you're splitting the module declaration,
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. touch'e! |
||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| private | ||||||||||||||||||||||||||||||||||||||||||||
| module R = Ring R | ||||||||||||||||||||||||||||||||||||||||||||
| module S = Ring S | ||||||||||||||||||||||||||||||||||||||||||||
| module M = Bimodule M | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| open import Algebra.Construct.Sub.Group M.+ᴹ-group | ||||||||||||||||||||||||||||||||||||||||||||
| open import Algebra.Module.Structures using (IsBimodule) | ||||||||||||||||||||||||||||||||||||||||||||
| open import Algebra.Module.Morphism.Structures using (IsBimoduleMonomorphism) | ||||||||||||||||||||||||||||||||||||||||||||
| import Algebra.Module.Morphism.BimoduleMonomorphism as BimoduleMonomorphism | ||||||||||||||||||||||||||||||||||||||||||||
| open import Level using (suc; _⊔_) | ||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+14
to
+23
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| record Subbimodule cm′ ℓm′ : Set (cr ⊔ cs ⊔ cm ⊔ ℓm ⊔ suc (cm′ ⊔ ℓm′)) where | ||||||||||||||||||||||||||||||||||||||||||||
| field | ||||||||||||||||||||||||||||||||||||||||||||
| domain : RawBimodule R.Carrier S.Carrier cm′ ℓm′ | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| private | ||||||||||||||||||||||||||||||||||||||||||||
| module N = RawBimodule domain | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| field | ||||||||||||||||||||||||||||||||||||||||||||
| ι : N.Carrierᴹ → M.Carrierᴹ | ||||||||||||||||||||||||||||||||||||||||||||
| ι-monomorphism : IsBimoduleMonomorphism domain M.rawBimodule ι | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| module ι = IsBimoduleMonomorphism ι-monomorphism | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| isBimodule : IsBimodule R S N._≈ᴹ_ N._+ᴹ_ N.0ᴹ N.-ᴹ_ N._*ₗ_ N._*ᵣ_ | ||||||||||||||||||||||||||||||||||||||||||||
jamesmckinna marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||||||||||||||||||||||||||||||
| isBimodule = BimoduleMonomorphism.isBimodule ι-monomorphism R.isRing S.isRing M.isBimodule | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| bimodule : Bimodule R S _ _ | ||||||||||||||||||||||||||||||||||||||||||||
| bimodule = record { isBimodule = isBimodule } | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| open Bimodule bimodule public hiding (isBimodule) | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| subgroup : Subgroup cm′ ℓm′ | ||||||||||||||||||||||||||||||||||||||||||||
| subgroup = record { ι-monomorphism = ι.+ᴹ-isGroupMonomorphism } | ||||||||||||||||||||||||||||||||||||||||||||
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.