Classical Logic Flashcards

1
Q

Why do we need a richer logical language than provided by propositional logic? Give an example.

A

When the universe of discourse concerns a large number of objects, how do we state properties about all of those objects? We need quantification that does not exist in propositional logic.

For example, if you want to say all humans are mortals, then here’s no way to define a variable x such that for all x in the universe of discourse, H(x) -> M(x).

In propositional logic, one would need roughly 6.7 billion conjuncts (assuming there are no humans not on planet earth).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How does one compose FOL in relation to propositional logic?

A

FOL is propositional logic with some added features.

(1) There are quantifiers– there exists, and for all.
(2) There are predicates– which represent relations between individuals.
(3) There are now terms– variables, functions, and constants.

Constants are particular members of the universe of discourse. Variables can take on any value in the universe of discourse. And functions can be n-ary and map terms to terms. Predicates can also be of arbitrary arity.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How does one define terms in FOL?

A

Terms in the minimal set consisting of all constants, variables, and function symbols of any arity.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How does one define the set of WFF in FOL?

A

The set of WFF is the minimal set. Bottom is a member of the minimal set. All predicates of any arity are in the set of WFF. If a predicate P in is WFF, so is its negation. Similarly, if predicates P, Q are in WFF, then so are all of their logical connections. Similarly for quantification of predicates over variables.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the priority of quantifiers and connectives in FOL?

A

In descending order: there exists = for all = negation, and, or, implication

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

In words, what is a subformula?

A

A subformula is firstly any formula itself. The depending on the logical connective or quantification involved, then the subformula follow intuitively by removing the connective or quantifier level by level and stating the result formula.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How does mathematical induction differ from structural induction?

A

Mathematical induction proofs are generally based on the natural numbers. We prove for some base case the claim, and then go on to show that the claim holds for all cases enumerated by the natural numbers.

On the other hand structural induction, starts similarly with a base case that some property holds. But then based on the recursive definition of the structure, it is shown that the property also holds for all minimal ways new elements may be constructed. And therefore, it must holds for all the possible elements that could be constructed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

More formally, state how structural induction works in FOL.

A

Let A be a be property. Assume A holds for all variables, and constants in the set of terms. Then show that if the property A holds for all terms in the argument of an n-arity function symbol, then the property also holds for the function itself.

Let A be a property. A holds for all the WFF, if one can show.

  1. A holds for all atoms.
  2. If for all WFF, if A holds for the WFF it also holds for the negation of the WFF.
  3. For all the connectives if A holds for its subformulas it also holds for the logical connection of those subformulas.
  4. For quantification, if A holds for a WFF, then it holds over any quantification of the WFF.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a bound variable?

A

In a FOL formula, a bound variable is a variable that is controlled by a quantifier.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is a free variable?

A

This is a variable that has no quantifier controlling its occurrence.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the scope of a quantifier?

A

This is the propositional formula over which the quantifier acts.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How can one inductively define the free variables for terms?

A
  1. Constants do not constitute free variables. So if c is a constant FV(c) = empty.
  2. If x is simply a variable, then FV(x) = {x},
  3. If f is an n-ary function symbol f(t1,t2,…,tn). Then FV(f(t1,t2,…,tn) = FV(t1)UFV(tn)U…UFV(tn).
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How can one inductively define the free variables for WFF?

A

This is fairly intuitive. FV(falsum) = empty. The FV of a predicate are the union of the free variables of its terms. The FV a negated proposition are the same as the FV of the proposition. For the other logical connectives, we take the union of the FV of the subformulae. And for quantified WFF, one removes each variable which is quantifiers from the set of FV of the un-quantified propositional formulae.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How is the substitution operation defined for variables, constants, and functions?

A

For constants, no substitution occurs. So c[t/x] = c where c is a constant.

For variable y, y[t/x]. This is equation to just y again if y is not equal to x. On the other hand, if y is x, then we substitute and it’s equal to t.

For functions, we simply substitute for each term appearing in the function.

f(t1,…,tn)[t/x] = f(t1[y/x], …, tn[t/x]).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How does substitution work for WFF in FOL?

A

The case for the logical connectives is intuitive. Simply append the substitution to each subformulae. The case for quantified formula is more intricate.

There are a couple of issues. Consider the substitution [t/x]. If x is quantified over, this substitution creates a problem, so, in fact, we never make such substitutions when x is quantified over.

Another issue is if we quantify over a free variable in the term t, then this creates an issue because it changes the meaning of the term t. In this case, we just generate a new unused propositional variable z that does not appear in the formula P1 or the term t. Now we quantify over this new variable z, instead of the old conflict FV(t). We replace all instances of the old conflicting variable with z. And then we can substitute in [t/x].

Finally, if x is not quantified over, and any quantified variables do not appear in FV(t) then we may make a straightforward substitution of t for x in the formula.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

In the semantics of FOL, what is a structure?

A

It’s a pair consisting of a domain and an assignment. The domain is a non-empty set aka universe. The assignment maps constants, function symbols, and predicates.

(1) Each constant is mapped to an element in the domain.
(2) Each function symbol is mapped to an element in the domain.
(3) Each predicate symbol is mapped to {0,1}.

17
Q

In the semantics of FOL, what is an environment?

A

This is where we deal with the variables. It is a function from the variables to the domain of the structure.

We also talk about the set of all possible function maps from the variables to the domain. “ENV” of the structure A.