------------------------------------------------------------------------
-- The Agda standard library
--
-- This module constructs the zero R-module, and similar for weaker
-- module-like structures.
-- The intended universal property is that, given any R-module M, there
-- is a unique map into and a unique map out of the zero R-module
-- from/to M.
------------------------------------------------------------------------

{-# OPTIONS --without-K --safe #-}

open import Level

module Algebra.Module.Construct.Zero {c  : Level} where

open import Algebra.Bundles
open import Algebra.Module.Bundles
open import Data.Unit.Polymorphic

private
  variable
    r s ℓr ℓs : Level

leftSemimodule : {R : Semiring r ℓr}  LeftSemimodule R c 
leftSemimodule = record
  { Carrierᴹ = 
  ; _≈ᴹ_ = λ _ _  
  }

rightSemimodule : {S : Semiring s ℓs}  RightSemimodule S c 
rightSemimodule = record
  { Carrierᴹ = 
  ; _≈ᴹ_ = λ _ _  
  }

bisemimodule :
  {R : Semiring r ℓr} {S : Semiring s ℓs}  Bisemimodule R S c 
bisemimodule = record
  { Carrierᴹ = 
  ; _≈ᴹ_ = λ _ _  
  }

semimodule : {R : CommutativeSemiring r ℓr}  Semimodule R c 
semimodule = record
  { Carrierᴹ = 
  ; _≈ᴹ_ = λ _ _  
  }

leftModule : {R : Ring r ℓr}  LeftModule R c 
leftModule = record
  { Carrierᴹ = 
  ; _≈ᴹ_ = λ _ _  
  }

rightModule : {S : Ring s ℓs}  RightModule S c 
rightModule = record
  { Carrierᴹ = 
  ; _≈ᴹ_ = λ _ _  
  }

bimodule : {R : Ring r ℓr} {S : Ring s ℓs}  Bimodule R S c 
bimodule = record
  { Carrierᴹ = 
  ; _≈ᴹ_ = λ _ _  
  }

⟨module⟩ : {R : CommutativeRing r ℓr}  Module R c 
⟨module⟩ = record
  { Carrierᴹ = 
  ; _≈ᴹ_ = λ _ _  
  }