Logical and mathematical interpretation of decisions of intelligent agents