Predicate Logic
Predicate logic is a formal logical system that introduces individuals, predicates and quantifiers on top of propositional logic; it can express statements involving sets of objects such as "all" and "there exists", and it is the most fundamental language of knowledge representation and inference in mathematics and artificial intelligence. First-order predicate logic is the standard inference framework of symbolic AI.
Core Principles
Predicate logic decomposes propositions into objects and properties. An atomic formula such as "man(Socrates)" states that an object has a certain property, and "loves(Zhangsan, Lisi)" states a relation between objects. Two quantifiers are then introduced: the universal quantifier means "holds for all x", and the existential quantifier means "holds for some x". For example, "all men are mortal" is written as: for all x, if x is a man then x is mortal; combined with the fact "Socrates is a man", it follows that "Socrates is mortal".
Inference relies on formal rules: modus ponens, hypothetical syllogism, universal instantiation, existential generalization, and the resolution principle. The resolution principle proposed by Robinson in 1965 turned proof into a mechanized process of clause resolution, and became the theoretical foundation of automated theorem proving and logic programming (Prolog).
Key Points
First-order versus higher-order: in first-order logic quantifiers range only over individuals, not over predicates or functions; second-order logic allows quantification over predicates, which is more expressive but loses completeness and is computationally harder to handle. The overwhelming majority of AI systems use first-order logic.
Expressive power and cost: first-order logic is semi-decidable: if a proposition is provable the algorithm will eventually find a proof, but if it is not provable the procedure may never stop. This means a general logical reasoning system cannot guarantee real-time response.
Difference from propositional logic: propositional logic treats whole sentences as indivisible atoms, and cannot express relations between objects or capture "all"; the introduction of predicate logic produced a qualitative change in representational power.
The non-monotonic problem: classical logic is monotonic, so new facts never overturn old conclusions; but real-world reasoning often needs defaults and exceptions ("birds fly, but penguins do not"), which led to extensions such as non-monotonic logic and default logic.
Common Misconceptions
Misconception one: that predicate logic can express all knowledge. It is good at expressing definite facts and rules, but it supports fuzzy, probabilistic and common-sense default reasoning poorly. Misconception two: equating logical inference with efficient computation. Practical applications require heavy engineering pruning and heuristic search, and pure logic systems are often impractical in large-scale open domains. Misconception three: confusing "formally provable" with "actually true"; formal systems depend on the choice of axioms.
Application Scenarios
Automated theorem proving, formal verification of programs, logic programming, the theoretical basis of database query languages, rule-based inference over knowledge graphs, semantic parsing, and AI planning and constraint solving.