logic and automated reasoning lecture 18 1099272