# discrete 5.4
For any nonempty sets ๐ด, ๐ต,
any function **๐:๐ดร๐ดโ๐ต is called a binary operation on ๐ด.**.
If ๐ตโ๐ด, then the binary operation is said to be closed.
## commutative
f(a,b) = f(b,a)
## associative
f(a,f(b,c)) = f(f(a,b),c)
## identity
f(x,a) = f(a,x) = a