Deciding Quantifier-Free First-Order Logic Formulas
Given a FOL formula with equality and without quantifiers, we wish to check whether it is satisfiable (does there exist an interpretation that makes this formula true).
We do not restrict ourselves to any particular class of structures, we look at all possible structures.
Example: are the following formulas satisfiable. If yes, give a model, if no give, proof that no model exists.
Suggest a general algorithm to check satisfiability:
- for conjunctions of literals and
- for arbitrary quantifier-free formulas in FOL with equality
Together with SAT solving engine, such algorithms are one of the main components of modern SMT provers.
Observation 1: We can represent predicate as equality , so it suffices to work with function symbols. The example becomes
where true is a particular constant in the theory (so, no need to restrict oneself to a two-valued domain).
Observation 2: When checking satisfiability of quantifier-free formulas, we can replace all variables with constants. The question we ask in both cases is the same: are there values and functions such that the given quantifier-free formula evaluates to true.