A Production System for Automatic Deduction