P(x,y) = def "x divides y"
Statement: "There is no largest prime number"
UoD: Z+
How do we translate this into logic?
I'm thinking between these two options:
$$∀x∃y[y>x \land ∀z(P(z,y) → ( z=1 \lor z=y))]$$
$$∀x∃y[y>x \land ∀z(( z=1 \lor z=y) → P(z,y))]$$
Definitely not the second statement: that one says that 1 and y divide y … which is true for any number, not just prime numbers.
The first one is right: it says that the only two numbers dividing y are 1 and y itself…. and that indeed makes y a prime number (and we don’t have to worry about y being 1, since the domain is positive integers, and so if the y is greater than x, we already have that y is greater than 1