Debian Codegraph @

src/Algebra/Properties/AbelianGroup.agda

raw
1 ------------------------------------------------------------------------
2 -- The Agda standard library
3 --
4 -- Some derivable properties
5 ------------------------------------------------------------------------
6
7 {-# OPTIONS --cubical-compatible --safe #-}
8
9 open import Algebra.Bundles using (AbelianGroup)
10
11 module Algebra.Properties.AbelianGroup
12 {a ℓ} (G : AbelianGroup a ℓ) where
13
14 open import Function.Base using (_$_)
15
16 open AbelianGroup G
17 open import Relation.Binary.Reasoning.Setoid setoid
18
19 ------------------------------------------------------------------------
20 -- Publicly re-export group properties
21
22 open import Algebra.Properties.Group group public
23
24 ------------------------------------------------------------------------
25 -- Properties of abelian groups
26
27 ⁻¹-anti-homo‿- : ∀ x y → (x - y) ⁻¹ ≈ y - x
28 ⁻¹-anti-homo‿- = ⁻¹-anti-homo-//
29
30 xyx⁻¹≈y : ∀ x y → x ∙ y ∙ x ⁻¹ ≈ y
31 xyx⁻¹≈y x y = begin
32 x ∙ y ∙ x ⁻¹ ≈⟨ ∙-congʳ $ comm _ _ ⟩
33 y ∙ x ∙ x ⁻¹ ≈⟨ assoc _ _ _ ⟩
34 y ∙ (x ∙ x ⁻¹) ≈⟨ ∙-congˡ $ inverseʳ _ ⟩
35 y ∙ ε ≈⟨ identityʳ _ ⟩
36 y ∎
37
38 ⁻¹-∙-comm : ∀ x y → x ⁻¹ ∙ y ⁻¹ ≈ (x ∙ y) ⁻¹
39 ⁻¹-∙-comm x y = begin
40 x ⁻¹ ∙ y ⁻¹ ≈⟨ ⁻¹-anti-homo-∙ y x ⟨
41 (y ∙ x) ⁻¹ ≈⟨ ⁻¹-cong $ comm y x ⟩
42 (x ∙ y) ⁻¹ ∎