Write your formula in the theory of ints and sets, and then you can check the steps done to verify satisfiability!
When writing variables, it is good practice to explicitly define its type. However, variables types can still be inferred for convenience.
Variables type can be inferred or explicit