Consider the following true statement
(1) The set whose only members are the prime numbers between 6 and 12 is the same as the set whose only members are the solutions to the equation x^2-18x+77=0.
How do I translate statement (1) above to first-order naive set theory?
The book I am following seems to define a set as follows: ∃a ∀x (x ∈ a ↔ P(x)).
But doesn't this say rather that a set "a" exists such that its members have the property P?
If I write
∃a ∀x (x ∈ a ↔ Prime(x) & 6<x<12)
∃b ∀x (x ∈ b ↔ x^2-18x+77=0)
My attempt would be:
(∃a ∀x (x ∈ a ↔ Prime(x) & 6<x<12)) & (∃b ∀x (x ∈ b ↔ x^2-18x+77=0)) & a=b
Note that informally (ie outside of FOL) we write {x | P(x)} to mean the same thing as ∃a ∀x (x ∈ a ↔ P(x)).
Thus, informally, I believe statement (1) is {x | Prime(x) & 6<x<12} = {x | x^2-18x+77=0}.
Is this attempt at translating to first-order naive set theory correct?