Files
agdaproofs/Modules/Definition.agda
2020-01-05 15:06:35 +00:00

19 lines
1.0 KiB
Agda
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{-# OPTIONS --safe --warning=error --without-K #-}
open import Groups.Definition
open import Groups.Abelian.Definition
open import Setoids.Setoids
open import Rings.Definition
open import Agda.Primitive using (Level; lzero; lsuc; _⊔_)
module Modules.Definition {a b : _} {A : Set a} {S : Setoid {a} {b} A} {_+R_ : A A A} {_*_ : A A A} (R : Ring S _+R_ _*_) {m n : _} {M : Set m} {T : Setoid {m} {n} M} {_+_ : M M M} {G' : Group T _+_} (G : AbelianGroup G') (_·_ : A M M) where
record Module : Set (a b m n) where
field
dotWellDefined : {r s : A} {t u : M} Setoid.__ S r s Setoid.__ T t u Setoid.__ T (r · t) (s · u)
dotDistributesLeft : {r : A} {x y : M} Setoid.__ T (r · (x + y)) ((r · x) + (r · y))
dotDistributesRight : {r s : A} {x : M} Setoid.__ T ((r +R s) · x) ((r · x) + (s · x))
dotAssociative : {r s : A} {x : M} Setoid.__ T ((r * s) · x) (r · (s · x))
dotIdentity : {x : M} Setoid.__ T ((Ring.1R R) · x) x