Currently in my discrete mathematics course at the university I study at, we are on the topic of permutations and groups. We have learned that a group $G$ can be expressed in terms of a set of generators $S$ like this $G=\langle S\rangle$ such that all elements can be expressed using elements of $S$ and the operation under which $G$ is closed. However, in some examples in our lecture notes and in certain assignments, geometric groups containing a square with vertices $1,2,3,4$ are defined using $\langle (2\text{ }4),(1\text{ }2 \text{ }3 \text{ }4)\rangle$. I understand that $(2\text{ }4)$ is used to signify reflections, but why the identity permutation is used for signifying rotations is a mystery to me. According to the book, every $90^\circ$ rotation could then be written as $(1\text{ }2\text{ }3\text{ }4)^n$ which seems wrong considering how the identity permutation works. I have looked on the internet for answers but for some reason wikipedia has the exact same definition of a square by its symmetries and I couldn't find anything remotely relevant elsewhere (aside from some article to which I had no access). Is there something I am missing? Wouldn't it make more sense to use the permutation $(4 \text{ }1\text{ }2\text{ }3)$ instead as that alludes to an actual rotation?
Edit: first of all, thanks for all the answers so quickly! Secondly, for this course we learned that the single-line notation of permutations was always the same as the double-lined matrix notation except for the first line just being absent such that $$\left(\begin{matrix} 1 & 2 & 3 & 4 \\ \sigma(1) & \sigma(2) & \sigma(3) & \sigma(4)\end{matrix}\right)= (\sigma(1)\text{ }\sigma(2)\text{ }\sigma(3)\text{ }\sigma(4))$$ which probably led to all the confusion as all other examples in lecture notes either used the above added identity, the disjoint cycle notation or the transposition notation.
Second edit: after the question brought up by @LeeMosher about the non-standard notation, I took another look into the notation section in our lecture notes and apparently I confused normal brackets with square brackets in the one-lined notation (where one-lined notation is $[\sigma(1)...\sigma(n)]$). My apologies for this brain fart.
The notation $(1\ \ 2\ \ 3\ \ 4)$ does not denote the identity transformation. It denotes the cyclic permutation which maps $1$ into $2$, $2$ into $3$, $3$ into $4$, and $4$ into $1$. Which, by the way, is equal to $(4\ \ 1\ \ 2\ \ 3)$.