If P implies Q and Q implies R then P implies R