It looks like Microsoft completely pooched their "rise4fun" website and the Z3 Python tutorial no longer loads.
How can I define define a matrix in Z3 for Python and impose some constraints on it?
It looks like Microsoft completely pooched their "rise4fun" website and the Z3 Python tutorial no longer loads.
How can I define define a matrix in Z3 for Python and impose some constraints on it?
One example: 9x9 matrix of integer variables
X = [ [ Int("x_%s_%s" % (i+1, j+1)) for j in range(9) ]
for i in range(9) ]
Example: some constraints for the matrix X
cells_c = [ And(1 <= X[i][j], X[i][j] <= 9)
for i in range(9) for j in range(9) ]