Files
agdaproofs/Groups/GroupsLemmas.agda
2019-01-18 13:00:15 +00:00

36 lines
1.4 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 #-}
open import LogicalFormulae
open import Setoids.Setoids
open import Functions
open import Agda.Primitive using (Level; lzero; lsuc; _⊔_)
open import Numbers.Naturals
open import Groups.Groups
open import Groups.GroupDefinition
module Groups.GroupsLemmas where
invInv : {a b : _} {A : Set a} {_·_ : A A A} {S : Setoid {a} {b} A} (G : Group S _·_) {x : A} Setoid.__ S (Group.inverse G (Group.inverse G x)) x
invInv {S = S} G {x} = symmetric (transferToRight' G invRight)
where
open Setoid S
open Group G
open Equivalence eq
open Symmetric symmetricEq
invIdent : {a b : _} {A : Set a} {_·_ : A A A} {S : Setoid {a} {b} A} (G : Group S _·_) Setoid.__ S (Group.inverse G (Group.identity G)) (Group.identity G)
invIdent {S = S} G = symmetric (transferToRight' G (Group.multIdentLeft G))
where
open Setoid S
open Group G
open Equivalence eq
open Symmetric symmetricEq
swapInv : {a b : _} {A : Set a} {_+_ : A A A} {S : Setoid {a} {b} A} (G : Group S _+_) {x y : A} Setoid.__ S (Group.inverse G x) y Setoid.__ S x (Group.inverse G y)
swapInv {S = S} G {x} {y} -x=y = transitive (symmetric (invInv G)) (inverseWellDefined G -x=y)
where
open Setoid S
open Group G
open Equivalence eq
open Symmetric symmetricEq
open Transitive transitiveEq