Finding resolution proofs and using duplicate goals in and/or trees