digital object identifier event calculus first-order logic fluent calculus frame problem journal of the acm logic negation as failure sld resolution