If have a set of rules -
1 : If x then a
2 : If x then b
Then these rules shall be conflicting as we shall not know what is the action to be performed when x is triggered. Therefore -
Now suppose I want to check for consistency of rules such as -
1: If (100 < m < 120) and (200 < n < 220) then output = 200
2: If (110 < m < 120) and (200 < n <210) then output =220
Clearly rules 1 and 2 are conflicting because if m = 115 and n = 205, then output can be either 200 or 220.
Is there a way I can check for the consistency of the above rules using the Z3 library ? Or using the pure SMT-lib2 ? Pls help. If you can give me an example of the actual code which can be run on https://rise4fun.com/Z3/vd?frame=1&menu=0&course=1 I shall be really grateful.
Thank you