added stmaryrd package, added theorem 3.7 (main theorem)