I'm studying very basic set theory for a module and have come across this symbol: | quite a few times, although I have no idea what it means, can someone explain what it is and how it makes sense in the relation below?
The symbol is the: $\mid$ symbol.
$${R=\left\{(x,y)\in A\times A\mid x-y=1\right\}}\subseteq A\times A.$$
Essentially, it means something along the lines of "such that," "for which," "satisfying," or "with the property that" (these phrases can usually be used interchangeably). Sometimes you'll see a colon : used instead of |.
So, the relation you wrote could be read: "$R$ is the set of tuples $(x, y)$ in $A \times A$ with the property that $x - y = 1$".