\documentclass{amsart}

\usepackage{tikz}
\usepackage{ulem}
\usepackage{amsthm}

\usepackage{stmaryrd}%\fatsemi
\newcommand{\dom}{\mathrm{Dom}}
\newcommand{\ran}{\mathrm{Ran}}
\newcommand{\Z}{\mathbb{Z}}
\newcommand{\N}{\mathbb{N}}
\newcommand{\Q}{\mathbb{Q}}
\newcommand{\R}{\mathbb{R}}
\newcommand{\defiff}{\stackrel{def}{\Longleftrightarrow}}
\theoremstyle{definition}\newtheorem{df}{\bf Definition}
\newtheorem{ex}{\bf Example}
\newtheorem{e}{\bf Exercise}
\newtheorem{prop}{\bf Proposition}
\newtheorem{thm}{\bf Theorem}
\newtheorem{lem}{\bf Lemma}
\newtheorem{cor}{\bf Corollary}

\begin{document}

\title{Introduction to algebra --- handout 6}
\maketitle


\section{properties of operations}


\begin{df}
Unary operation $U$ is called {\bf idempotent} if $U(U(x))=U(x)$ for all $x$.    
%\end{df}
%\begin{df}
Unary operation $U$ is called {\bf invertible} if there is another unary operation $W$ such that $U(W(x))=x$ for all $x$; and $U$ is called an {\bf involution} if $U(U(x))=x$ for all $x$.    
\end{df}


\begin{ex}
Grinding of coffee:
\begin{itemize}
\item $\langle\{\text{coffee},\text{ground
  coffee}\},\text{Grinding}\rangle$,
\item $\langle\{\text{coffee}, \text{1/2 ground coffee},\text{ground
  coffee}\},\text{Grinding}\rangle$,
\item $\langle\{\text{coffee}, \text{1/2 ground coffee},\text{ground
  coffee}\},0.5\text{-Grinding}\rangle$,
\item $\langle [0,1],\lambda\text{-Grinding}\rangle$, where
  $\lambda$-Gringding$(x)=\min(1,x+\lambda)$.
\end{itemize}
Turning the volume up and down:
\begin{itemize}
\item $\langle \Z, U, D\rangle$, where
$U(n)=n+1$ and $D(n)=n-1$,
\item  $\langle \Z\cap[-9,9], U, D\rangle$, where
$D(n)=\max(-9,n-1)$ and $U(n)=\min(9,n+1)$. 
\end{itemize}
Rotation of a dial.
\end{ex}

\begin{ex}
The absolute value is an idempotent unary operation on $\R$.
Taking the multiplicative inverse is an involution unary operation on $\R^+$. 
\end{ex}

\begin{df}
Binary operation $*$ is {\bf associative} if $(a*b)*c=a*(b*c)$, for
all $a,b,c$.
\end{df}

\begin{df}
Binary operation $*$ is {\bf commutative} if $a*b=b*a$ for all $a,b$.  
\end{df}

\begin{df}
Binary operation $*$ is {\bf idempotent} if $a*a=a$ for all $a$.  
\end{df}


\begin{df}
$e$ is {\bf neutral element} of binary operation $*$ if $e*a=a*e=a$ for all $a$. 
\end{df}

\begin{df}
$a'$ is called the {\bf inverse } of $a$ if $a'*a=a*a'=e$.   
\end{df}



\begin{ex}
Mixing $n$-liquids, e.g., mixing alcohol and water: $\langle [0,1], m\rangle$, where $m(x,y)=\frac{x+y}{2}$ or $\langle R^+\times\R^+,M\rangle$, where $M(a,b)=a+b$ .   
\end{ex}

\begin{e}
In two cups, we have equal amounts of tea and coffee. We put some tea
from the tea cup into coffee cup, stir it evenly, and then we
put back the same amount of mixture into the tea cup. Question:
After the mixing, what is more the amount of tea in the coffee cup or
the amount of coffee in the tea cup?
\end{e}

\begin{ex}
Genetic crossing of plants: 
\begin{itemize}
\item $\langle \text{Plants that cross},
c\rangle$, where $c$ is the crossing operation.
\item $\langle \text{Plants}\cup\{\emptyset\},
C\rangle$, where $C$ is the crossing operation resulting $\emptyset$ if the two plants cannot be crossed and $C(\emptyset, x)=C(x,\emptyset)=\emptyset$.  
\end{itemize}
\end{ex}

\begin{ex}
Concatenation of texts.
\end{ex}



\begin{e}
Find more examples of binary operations in every day life and check which properties they have. 
\end{e}



\end{document}
