I have this statement (it's translated from a different language): "if x divides y and y divides x, then x = y"
I want to write that statement predicate-logical symbols. I'm new to this so my question is if my attempt is correct. If not please answer what is wrong and how to fix it thanks.
My attempt:
$(x | y) \land (y | x) \rightarrow x = y$
To my knowledge there isn't a "divides" symbol specific to predicate-logic so I just used | for it. Parenthesis around x|y is to know what divides what. $\land$ means and. The arrow pointing to the right means that if the left is true then it means that the statement on the right of the arrow true as well. Is this correct?