| 1 |
------------------------------------------------------------------------ |
| 2 |
-- The Agda standard library |
| 3 |
-- |
| 4 |
-- This module constructs the zero R-module, and similar for weaker |
| 5 |
-- module-like structures. |
| 6 |
-- The intended universal property is that, given any R-module M, there |
| 7 |
-- is a unique map into and a unique map out of the zero R-module |
| 8 |
-- from/to M. |
| 9 |
------------------------------------------------------------------------ |
| 10 |
|
| 11 |
{-# OPTIONS --cubical-compatible --safe #-} |
| 12 |
|
| 13 |
open import Level using (Level) |
| 14 |
|
| 15 |
module Algebra.Module.Construct.Zero {c ℓ : Level} where |
| 16 |
|
| 17 |
open import Algebra.Bundles using (RawSemiring; Semiring; Ring; CommutativeSemiring; CommutativeRing) |
| 18 |
open import Algebra.Module.Bundles |
| 19 |
open import Data.Unit.Polymorphic using (⊤) |
| 20 |
open import Relation.Binary.Core using (Rel) |
| 21 |
|
| 22 |
private |
| 23 |
variable |
| 24 |
r s ℓr ℓs : Level |
| 25 |
|
| 26 |
------------------------------------------------------------------------ |
| 27 |
-- gather all the functionality in one place |
| 28 |
|
| 29 |
module ℤero where |
| 30 |
|
| 31 |
infix 4 _≈ᴹ_ |
| 32 |
Carrierᴹ : Set c |
| 33 |
Carrierᴹ = ⊤ |
| 34 |
|
| 35 |
_≈ᴹ_ : Rel Carrierᴹ ℓ |
| 36 |
_ ≈ᴹ _ = ⊤ |
| 37 |
|
| 38 |
------------------------------------------------------------------------ |
| 39 |
-- Raw bundles |
| 40 |
|
| 41 |
rawLeftSemimodule : {R : Set r} → RawLeftSemimodule R c ℓ |
| 42 |
rawLeftSemimodule = record { ℤero } |
| 43 |
|
| 44 |
rawLeftModule : {R : Set r} → RawLeftModule R c ℓ |
| 45 |
rawLeftModule = record { ℤero } |
| 46 |
|
| 47 |
rawRightSemimodule : {R : Set r} → RawRightSemimodule R c ℓ |
| 48 |
rawRightSemimodule = record { ℤero } |
| 49 |
|
| 50 |
rawRightModule : {R : Set r} → RawRightModule R c ℓ |
| 51 |
rawRightModule = record { ℤero } |
| 52 |
|
| 53 |
rawBisemimodule : {R : Set r} {S : Set s} → RawBisemimodule R S c ℓ |
| 54 |
rawBisemimodule = record { ℤero } |
| 55 |
|
| 56 |
rawBimodule : {R : Set r} {S : Set s} → RawBimodule R S c ℓ |
| 57 |
rawBimodule = record { ℤero } |
| 58 |
|
| 59 |
rawSemimodule : {R : Set r} → RawSemimodule R c ℓ |
| 60 |
rawSemimodule = record { ℤero } |
| 61 |
|
| 62 |
rawModule : {R : Set r} → RawModule R c ℓ |
| 63 |
rawModule = record { ℤero } |
| 64 |
|
| 65 |
------------------------------------------------------------------------ |
| 66 |
-- Bundles |
| 67 |
|
| 68 |
leftSemimodule : {R : Semiring r ℓr} → LeftSemimodule R c ℓ |
| 69 |
leftSemimodule = record { ℤero } |
| 70 |
|
| 71 |
rightSemimodule : {S : Semiring s ℓs} → RightSemimodule S c ℓ |
| 72 |
rightSemimodule = record { ℤero } |
| 73 |
|
| 74 |
bisemimodule : |
| 75 |
{R : Semiring r ℓr} {S : Semiring s ℓs} → Bisemimodule R S c ℓ |
| 76 |
bisemimodule = record { ℤero } |
| 77 |
|
| 78 |
semimodule : {R : CommutativeSemiring r ℓr} → Semimodule R c ℓ |
| 79 |
semimodule = record { ℤero } |
| 80 |
|
| 81 |
leftModule : {R : Ring r ℓr} → LeftModule R c ℓ |
| 82 |
leftModule = record { ℤero } |
| 83 |
|
| 84 |
rightModule : {S : Ring s ℓs} → RightModule S c ℓ |
| 85 |
rightModule = record { ℤero } |
| 86 |
|
| 87 |
bimodule : {R : Ring r ℓr} {S : Ring s ℓs} → Bimodule R S c ℓ |
| 88 |
bimodule = record { ℤero } |
| 89 |
|
| 90 |
⟨module⟩ : {R : CommutativeRing r ℓr} → Module R c ℓ |
| 91 |
⟨module⟩ = record { ℤero } |