I'm a math and latex novice, and I'm trying to write out the following rule with latex:
I'm having a hard time with this capital R. In the textbook, it has that nice side padding but when I type something like x R y, it's all squashed together.
As for the cancelled syntax, x \cancel{R} y seems to do the trick, but I'm not sure if that's the right way.



\[...\]instead of$$...$$. Explanation here. Also, for a relation you should use\;to imitate the spacing. The command\:produces the (slightly smaller) spacing used for binary operations like+. – Sandy G Aug 31 '23 at 18:55