Let be a set, a binary operation on is a function where we denote as using infix notation
Note the distinction between binary operation and binary relation, a binary operation is a function, which is a binary relation with some extra conditions.
Commutative Binary Operation
A binary operation on a set such that for any , then is called commutative
Associative Binary Operation
A binary operation on a set such that for any , then is called associative
Left Fold
Suppose that is a binary operation, and be a tuple in for some then
Left fold formalizes the idea that we want to look at objects of the form , we also have a right fold:
Right Fold
Suppose that is a binary operation, and be a tuple in for some then
Distributivity
Let be a binary operation on a set , and let be a binary function for some set then we say that distributes into whenever we have for any and
Bracket Placement Doesn't Matter for Associative Binary Operations
Suppose that is an associative binary operation, then for any , then no matter how one places the brackets in the product it always evaluates to the same value
In order to prove this statement we have to prove that no matter the bracketing we get the same value, but what exactly is this value? It must be the result of some bracketing so to make our life easier let's select a left-most bracketing of the form
Therefore the statement we are trying to prove is equivalent to that of: for any given the syntactically incorrect then given any syntactically valid version (obtained by inserting brackets), the value of the expression is equal to the value of the version where it is bracketed in the left-most manner. We'll prove this by strong induction or induction, which we will determine as the proof continues.
For the base case this holds true because of associativity. Now for the induction step assume it holds true for and lets show that it holds true for , suppose we have a product and then an arbitrary bracketing of the product which is syntactically valid, it must have the form where where without loss of generality and , due to this we also know that
Since we are (now) using strong induction then we know that the property holds true on as they are arbitrarily bracketed expressions, each of which have the same value as their left-most bracketed counterparts, and therefore since they have the same value, they can be substituted so that at this point we've done some work, now if we can re-arrange this to be fully left-bracketed which would prove the statement true, recall that one of the properties we haven't used yet is associativity of . Closing our left eye, we can observe that: Now is a arbitrarily bracketed expression of using elements and so by our strong induction hypothesis we know that it's value is equal to the leftmost bracketed version of itself, so we have
Chaining equalities, we've proven that , which is exactly what we wanted to show, therefore by induction this shows that the property holds for every expression.
Associativity Implies Folds are Equal
Suppose that is associative, and is a tuple in , then
Suppose that is a composition law, and a tuple in for
Sum Fold
Suppose we have then and a finite tuple, then we define in terms of the sum fold
Ellipses Notation
Suppose that is a composition law, and a tuple in for
Since all bracketings yield the same value, our definition of fold to be the left fold was quite arbitrary. We can also now look at previous things under simpler lights, recall a definition of that you're familiar with, this is simply just
note: informally this says that you can do nothing, and you can also undo anything
Trivial Group
A trivial group is a group that has one element
The Integers are a Group
form a group
Note that at this point in time we can write things like and that makes sense, if we were to write something like this should not make sense because at this point we only have one operator, and not a multiplication operator yet, but we can think of as "syntactic sugar" for (with repetitions) and it's alright.
One Point sets are Form Trivial Groups
Suppose that is a set such that , and is a constant composition law, then forms a group
Let be the only element of , we claim this is the identity, which we can verify by checking , because is constant, thus it is an identity element.
Now we can also show that we have inversion as well, because for every element in (which is just ) we have an element (which is also ) such that , where the on the right hand side is the identity.
It should be clear by now that is not a group since it cannot have an identity element because there are no elements as candidate for this position. At this point in time we know that in a group there is at least one element with the above properties, we will now find out that there is exactly one such element.
identity element is unique in a group
Suppose is a group, then the identity element is unique
Suppose that and are both identity elements, then by the identity property of a group, we know that since is an identity element, but also since is the identity, as well. Relating the equalities yields that and therefore the identity element is unique.
inverse element is unique
Suppose is a group, and , then there is a unique element such that
Suppose that and are both inverses to , thus , then so then
Inverse
Given a group and , we denote the unique element such that as and call it the inverse of
two inverses cancel
To show this is true we want to show that , though the definition of is such that and since the equality symbol is a reflexive relation, this proves what we needed to show
inverse of ab
Given a group and , then
For ease let , so thatsince we know , and thus , thus , which simplifies to , so we can see that , as needed
Cancellation
Suppose is a group and , then and , in other words, we can cancel common elements on right and left
Suppose that , let be the inverse of , then we have the following Where we've used associativity followed by the definition of inverse and then the identity element. The proof for right cancellation can be obtained by placing a mirror on the left of the above chain of equalities and reversing individual elements, so that if you see Ι you interpret it as e.
Order of a group
The order of a group denoted by is the cardinality of
where is defined in the usual sense form an abelian group
Cartesian Product of Abelian Groups is Abelian
Let be an abelian group, then forms an abelian group with the operation defined for as
Can the above be generalized for any extra group properties?
Multiplicative Notation
Given a group then since there is only one operation in question, instead of writing the operator between every two pairs of elements we may limit it to , to refer to to reduce visual clutter
note: since is also a simple thing to write, we may also use it in place of
Power of an Element
Given a group and , then we define for any and , when then , thus we've defined for all
Power Properties
For all , and for any
TODO
Order of a Group Element
The order of an element , denoted , is the smallest such that
Suppose is a group and that if has finite order given by , then iff
If the power of an element with finite order yields the identity then the order divides the power
Let be a group and suppose has order then if then
We know that therefore therefore as needed.
Subgroup
Suppose that is a group, then if is a group under , then we say that is a subgroup of and write
Let be a group. Given a non-empty if for any , then
Since is non-empty then there is some element , thus we know that , since , since , then we know that , and therefore in we have an inverse such that , where but by assumption this is also an element of , thus .
So now we know that , how can we be sure this is the identity in ? Perhaps it is not, but given any , since , we know then using the fact that is a group we see , since is also in this confirms that it is 's identity.
Now we'll show that has inverses, so let , at the same time we know we have , thus and thus as needed.
At this point it may seem like we've verified all the requirements for to be a group, but there's something a little subtle, when we were working with we know that it was composition law meaning that this operation is closed for elements in , so we also need to verify that is closed in , that is to say that is a composition law in , so let , then from the previous paragraph we know that is a member of , thus
Notice that the equation stated above is special, firstly given two elements in it combines and , the special thing here is the , originally we don't know if this element is a member of because in the proof we verify if indeed it is a group, and we don't know that inverses exists until we verify them, but we do know when it's combined with it produces an element of .
Note that we need to be non-empty otherwise the empty set would satisfy the above, and we know that the empty set is not a group. It also helps us bootstrap the proof.
TODO
An element of a group has order if and only if
Suppose that , then if and only if note that , so as needed
For the reverse direction, follow the above proof backwards, noting that each connection is a bi-implication
TODO
Show that are groups under multiplicaiton
TODO
Generator
The notation denotes the set . Then is said to be a generator of if and only if
For a positive integer n, all groups of order n are cyclic iff GCD(n, phi(n)) = 1
cyclic group
A group is considered a cyclic group if and only iff there exists some such that
cyclic implies abelian
If a group is cyclic, then it is abelian
TODO
power equivalence
For a group with , if has infinite order, then if and only if otherwise if has finite order then if and only if