logic and automated reasoning lecture 07 herbrand method 7770546