Logical Reasoning of Multiagent Systems