Text this: A resolution calculus for modal logic S4