logic and automated reasoning lecture 17 logical spreadsheet 579640