| 1 |
------------------------------------------------------------------------ |
| 2 |
-- The Agda standard library |
| 3 |
-- |
| 4 |
-- Some basic properties of Loop |
| 5 |
------------------------------------------------------------------------ |
| 6 |
|
| 7 |
{-# OPTIONS --cubical-compatible --safe #-} |
| 8 |
|
| 9 |
open import Algebra.Bundles using (Loop) |
| 10 |
|
| 11 |
module Algebra.Properties.Loop {l₁ l₂} (L : Loop l₁ l₂) where |
| 12 |
|
| 13 |
open Loop L |
| 14 |
open import Algebra.Definitions _≈_ |
| 15 |
open import Algebra.Properties.Quasigroup quasigroup |
| 16 |
open import Data.Product.Base using (proj₂) |
| 17 |
open import Relation.Binary.Reasoning.Setoid setoid |
| 18 |
|
| 19 |
x//x≈ε : ∀ x → x // x ≈ ε |
| 20 |
x//x≈ε x = sym (x≈z//y _ _ _ (identityˡ x)) |
| 21 |
|
| 22 |
x\\x≈ε : ∀ x → x \\ x ≈ ε |
| 23 |
x\\x≈ε x = sym (y≈x\\z _ _ _ (identityʳ x)) |
| 24 |
|
| 25 |
ε\\x≈x : ∀ x → ε \\ x ≈ x |
| 26 |
ε\\x≈x x = sym (y≈x\\z _ _ _ (identityˡ x)) |
| 27 |
|
| 28 |
x//ε≈x : ∀ x → x // ε ≈ x |
| 29 |
x//ε≈x x = sym (x≈z//y _ _ _ (identityʳ x)) |
| 30 |
|
| 31 |
identityˡ-unique : ∀ x y → x ∙ y ≈ y → x ≈ ε |
| 32 |
identityˡ-unique x y eq = begin |
| 33 |
x ≈⟨ x≈z//y x y y eq ⟩ |
| 34 |
y // y ≈⟨ x//x≈ε y ⟩ |
| 35 |
ε ∎ |
| 36 |
|
| 37 |
identityʳ-unique : ∀ x y → x ∙ y ≈ x → y ≈ ε |
| 38 |
identityʳ-unique x y eq = begin |
| 39 |
y ≈⟨ y≈x\\z x y x eq ⟩ |
| 40 |
x \\ x ≈⟨ x\\x≈ε x ⟩ |
| 41 |
ε ∎ |
| 42 |
|
| 43 |
identity-unique : ∀ {x} → Identity x _∙_ → x ≈ ε |
| 44 |
identity-unique {x} id = identityˡ-unique x x (proj₂ id x) |
| 45 |
|