4. First-Order Logic Flashcards
Whats the definition of a well formed term for first-order logic?
The smallest set such that
- variable v in V is a term
- if f in F has arity n and t1, … tn are terms, so is f(t1, …, tn)
Where:
- V is a countably infinite set of variables
- F is a finite/countably infinite set of function letters each with an arity
What is a constant in first order logic?
A function with an arity of zero
What is the definition for a wff in first-order logic?
The smallest set such that
- if A in P has arity n and t1, …, tn are terms then A(t1, …, tn) is a wff
- if P and Q are wff, so are ¬P, P ∨ Q, P ∧ Q, P → Q, P ↔ Q
- if P is a wff, so are ∃x. P and ∀x. P for any x in V
where P is a countable infinite set of predicates each with an arity
Whats the binding strength or ∀, ∃?
Weaker than any of the propositional connectives
What is a bound variable (FOL)?
A variable x in formula P is bound if its within the scope of a quantifier
What is a free variable (FOL)?
A variable that is not bound
What does P[s/x] mean?
The formula obtained by substituting s for all free occurrences of x in P
How can a relation r(x, y) be represented as a function in FOL?
f_r(x) = {y | r(x, y)}