from z3 import * x, y = Ints("x y") solver = Solver() # Check if for all x and y, s.t. if x < 0 and y < 0, x + y < 0 result = solver.check() print(result)