Abel群
module abelian-group where open import apartness-relation open import commutative-monoid open import group open import sigma-type
record AbelianGroupStr (S : ApartedSet) : Set where infixl 30 _+_ open ApartedSet S field group-str : GroupStr S open GroupStr group-str public renaming ( empty to zero ; _⁻¹ to -_ ; ⁻¹-pres-∼ to neg-pres-∼ ; ·-pres-∼ₗ to +-pres-∼ₗ ; ·-pres-∼ᵣ to +-pres-∼ᵣ ) hiding (_·_) _+_ = GroupStr._·_ group-str field comm : ∀ {x y} → x + y ≈ y + x commutative-monoid-str : CommutativeMonoidStr S commutative-monoid-str = record { monoid-str = monoid-str ; comm = comm }
AbelianGroup : Set₁ AbelianGroup = Σ ApartedSet AbelianGroupStr