Predicates: Logic as a Function
In basic logic, "5 is prime" is a static proposition. It is simply True. But what about "x is prime"? This is not a proposition; it's a Predicate. Its truth value depends entirely on what we plug in for x.
We write predicates like mathematical functions: P(x).
Before we evaluate P(x), we must define what x is allowed to be. This is the Domain of Discourse. If our domain is "all integers," then P(5) is True, and P(4) is False. If our domain is "cars," the predicate breaks!