The Syntax of Predicate Logic Flashcards
Predicate letters
All expressions of the form Pkn, Qkn, Rkn are predicate letters where k and n are either missing or a numeral ‘1’, ‘2’ . . . .
Arity
the value of the upper index of a predicate letter is called its arity. If a predicate letter does not have an upper index its arity is 0.
Constants
a, b, c, a1, b1, c1, a2, b2, c2, . . . are constants.
Variables
Variables: x, y, z, x1, y1, z1, x2, y2, z2, . . . are variables.
Atomic formulae of L2
If Z is a predicate letter of arity n and each of t1, . . . ., tn is a variable or constant, then Zt1 . . . tn is an atomic formula of L2.
Quantifier
A quantifier is an expression ∀v or ∃v where v is a variable.
Formulae of L2
(i) All atomic formulae of L2 are formulae of L2.
(ii) If φ and ψ are formulae of L2 then ¬φ, (φ∧ψ), (φ∨ψ), (φ → ψ) and (φ ↔ ψ) are formulae of L2.
(iii) If v is a variable and φ is a formula then ∀vφ and ∃vφ are formulae of L2.
(iv) Nothing else is a formula of L2.
Free occurrence of a variable
(i) All occurrences of variables in atomic formulae are free.
(ii) The occurences of a varaiable that are free in φ and ψ are also free in ¬φ, φ ∧ ψ, φ ∨ ψ, φ→ψ, andφ↔ψ.
(iii) In a formula ∀vφ or ∃vφ no occurrence of the variable v is free; all occurrences of variables other than v that are free in φ are also free in ∀vφ and ∃vφ.
An occurrence of a variable is bound iff it is not free.
A variable occurs freely in a formula iff there is at least one free occurrence of the variable in the formula.
Sentence of L2
A formula of L2 is a sentence of L2 iff no variable occurs freely in the formula.