logic and automated reasoning lecture 12 4494759