Solution (source code)

= Solution
{c}

A left <group action> of $G$ on a set $S$ is a function $\phi:G\times S\to S$ satisfying
$$
\boxed{\phi(e,s)=s,\qquad\phi(gh,s)=\phi(g,\phi(h,s))}
$$
for all $s\in S$ and $g,h\in G$. Writing $g\cdot s=\phi(g,s)$, these are $e\cdot s=s$ and $(gh)\cdot s=g\cdot(h\cdot s)$. No commutativity is assumed, so the order of composition matters.