-
Notifications
You must be signed in to change notification settings - Fork 260
Add principal ideal construction #2857
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: quotient-rings
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,54 @@ | ||
| ------------------------------------------------------------------------ | ||
| -- The Agda standard library | ||
| -- | ||
| -- Ideals generated by a single element of a commutative ring | ||
| ------------------------------------------------------------------------ | ||
|
|
||
| {-# OPTIONS --safe --cubical-compatible #-} | ||
|
|
||
| open import Algebra.Bundles using (CommutativeRing) | ||
|
|
||
| module Algebra.Ideal.Construct.Principal {c ℓ} (R : CommutativeRing c ℓ) where | ||
|
|
||
| open import Function.Base using (id; _on_) | ||
|
|
||
| open CommutativeRing R | ||
|
|
||
| open import Algebra.Ideal ring | ||
| open import Algebra.Properties.CommutativeSemigroup *-commutativeSemigroup | ||
| open import Algebra.Properties.Ring ring | ||
|
|
||
| ⟨_⟩ : Carrier → Ideal c ℓ | ||
| ⟨ a ⟩ = record | ||
| { subbimodule = record | ||
| { domain = record | ||
| { Carrierᴹ = Carrier | ||
| ; _≈ᴹ_ = _≈_ on a *_ | ||
| ; _+ᴹ_ = _+_ | ||
| ; _*ₗ_ = _*_ | ||
| ; _*ᵣ_ = _*_ | ||
| ; 0ᴹ = 0# | ||
| ; -ᴹ_ = -_ | ||
| } | ||
| ; ι = a *_ | ||
|
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. ... and here? |
||
| ; ι-monomorphism = record | ||
| { isBimoduleHomomorphism = record | ||
| { +ᴹ-isGroupHomomorphism = record | ||
| { isMonoidHomomorphism = record | ||
| { isMagmaHomomorphism = record | ||
| { isRelHomomorphism = record | ||
| { cong = id | ||
| } | ||
| ; homo = distribˡ a | ||
| } | ||
| ; ε-homo = zeroʳ a | ||
| } | ||
| ; ⁻¹-homo = λ x → sym (-‿distribʳ-* a x) | ||
| } | ||
| ; *ₗ-homo = x∙yz≈y∙xz a | ||
| ; *ᵣ-homo = λ r x → sym (*-assoc a x r) | ||
|
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. Is there nothing under
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. I don't think so, and certainly not with this argument order |
||
| } | ||
| ; injective = id | ||
| } | ||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.
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.
Can these be recreated by
record { RawBimodule rawBimodule hiding (_≈ᴹ_); _≈ᴹ_ = _≈_ on a *_ }, withrawBimodulebrought into scope by theopening ofsubbimoduleinIdeal?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.
Can we even lift out the definition
ι = a *_in awhereclause, so that this could 'just' be_≈ᴹ_ = _≈_ on ι?