(Predicate Logic and Mathematical Theories)
A signature that has only one binary predicate R: โ๐ฅ ๐ ๐ฅ, ๐ฅ specifies all structures where ๐ is reflexive. Symmetry: โ๐ฅ โ๐ฆ (๐ (๐ฅ, ๐ฆ )โ ๐ (๐ฆ, ๐ฅ). Transitivity: โ๐ฅ โ๐ฆ โ๐ง ๐ ๐ฅ, ๐ฆ โง ๐ ๐ฆ, ๐ง โ ๐ ๐ฅ, ๐ง. Anti-symmetry: โ๐ฅ โ๐ฆ ( ๐ (๐ฅ, ๐ฆ) โง ๐ (๐ฆ, ๐ฅ) โ ๐ฅ = ๐ฆ)
A signature with a unary function ๐ and a binary predicate = One-to-one (injective) functions โ๐ฅ โ๐ฆ (๐ (๐ฅ) = ๐( ๐ฆ) โ ๐ฅ = ๐ฆ). Onto (surjective) functions โ๐ฅ โ๐ฆ (๐ (๐ฆ) = x)
Example: ๐ฅ is a prime number: ๐ฅ > 1 โง โ๐ฆ (๐ท๐๐ฃ๐๐ ๐๐๐๐(๐ฅ, ๐ฆ) โ (๐ฆ = 1 โจ ๐ฆ = ๐ฅ))
Example: All even numbers greater than two are the sum of two primes (Goldbach's Conjecture) โ๐ฅ(( ๐ฅ > 2 โง ๐ธ๐ฃ๐๐ (๐ฅ)) โ โ๐ฆโ๐ง ((๐ฅ = ๐ฆ + ๐ง) โง ๐๐๐๐๐ (๐ฆ) โง ๐๐๐๐๐ (๐ง) )
What Cannot be Expressed in Predicate Logic?: Reachability
Reachability theorem: Assume there is ๐ that is true if and only if ๐ฃ1 is reachable from ๐ฃ2. A sentence ๐น with ๐ฃ1 and ๐ฃ2 replaced with constants ๐1 and ๐2 ๐น = ๐ โง ยฌ๐1 โง ยฌ๐2 โง โฏ ๐น is a contradiction. Every finite subset of ๐น is satisfiable, and therefore it is satisfiable! (Compactness). There is no ๐!
A sentence ๐ (or a set of sentences) specifies: a set of models ๐ด(๐), i.e., the structures that satisfy ๐. ๐ด ๐ = ๐ข | ๐ข โจ ๐}. ๐(๐) is like a set of possible worlds in which ๐ is true
What Is Closure Under an Operator?: A set ๐ด โ ๐ and an operator ๐: ๐ โฆ ๐. ๐ด is closed under ๐ if ๐ maps elements of ๐ด to the elements in the same set ๐ด. โ๐ โ ๐ด, ๐ ๐ โ A. E.g. ๐ด = {1,2,3} is not closed under addition . โ is closed under addition. What about multiplication and subtraction? Is ๐ต = { ๐ , ๐ ,{๐, ๐}} closed under union?
Theory: a set of sentences that is closed under logical entailment. ๐น = {๐1,๐2, โฆ } is a theory if any sentence ๐ that is entailed from ๐น is also in ๐น, i.e., if ๐น โจ ๐ then ๐ โ F
Theory structure: The theory of a structure ๐ฎ, denoted by ๐โ(๐ฎ), is the set of all sentences ๐ such that ๐ฎ โจ ๐
Axiomatic system:Using a set of sentences called axioms โข For an axiom ๐ (or a set of axioms), ๐ช๐๐๐(๐) is the set of all sentences ๐ that are logical consequence of (or entailed from) ๐, i.e., ๐ โจ ๐
Inconsistent theories: a theory ๐ is inconsistent if โฅโ T
An inconsistent theory consists of: all the possible sentences with the given signature
๐ถ๐๐๐ (โ ): the set of all valid sentences, a subset of every theory
A theory ๐ is complete if: for every sentence ๐ of the same signature either ๐ โ ๐ or ยฌ๐ โ T
The set of valid sentences is an: incomplete theory
For any structure ๐ฎ, ๐โ(๐ฎ) is: complete or every sentence ๐, either ๐ฎ โจ ๐ or ๐ฎ โจ ยฌ๐
๐โ( โ) , ๐โ (โ) , and ๐โ (โค) are : complete theories
A theory is decidable if: it is possible to decide if any sentence is in the theory
Churchโs Theorem: The theory of valid sentences in First Order (FO) predicate logic is undecidable.
The proof of Churchโs theorem: Reducing an undecidable problem called Postโs Correspondence Problem (PCP) to checking validity
Reduction means: transforming problem ๐โ into problem ๐โ in such a way that a solution to ๐โ also solves ๐โ. Reduction can show one problem is at least as hard (difficult) as another. For example, if solving ๐โ requires solving ๐โ, ๐โ is as hard as ๐โ. To prove a problem ๐ is undecidable, show that solving an undecidable problem, like the halting problem, is necessary to solve P
The answer to the correspondence problem ๐พ = ( ๐ฅ1, ๐ฆ1 , ๐ฅ2, ๐ฆ2 , ๐ฅ3, ๐ฆ3 ) = (( 1,101)) , (10,00) , (011,11)): a sequence ๐๐๐๐๐๐๐๐ = ๐๐๐๐๐๐๐๐๐ = ๐๐๐๐๐๐๐๐
A consequence of Churchโs theorem is that: a correct (sound and complete) proof system for first-order predicate logic does not exist
A theory ๐ is (finitely) axiomatizable if: ๐ = ๐ถ๐๐๐ (๐น) for some finite set of axioms F
The theory of valid sentences (tautologies): is axiomatizable
An inconsistent theory is: also axiomatizable
A structure ๐ฎ1 with ๐๐ฎ1 = {๐, ๐, ๐} .An acceptable interpretation, An unacceptable interpretation: { ๐, ๐ , ๐, ๐ , (๐, ๐)} , { ๐, ๐ , ๐, ๐ }
Axioms of equality: A set of sentences that any structure satisfies iff it interprets โ=โ as the equality relation
Ax1 Reflexivity: โ๐ฅ (๐ฅ = ๐ฅ)
Ax2 Symmetry: โ๐ฅโ๐ฆ ( ๐ฅ = ๐ฆ โ ๐ฆ = ๐ฅ )
Ax 3 Transitivity: โ๐ฅโ๐ฆโ๐ง ( ๐ฅ = ๐ฆ โง ๐ฆ = ๐ง โ (๐ฅ = ๐ง))