121 Week 5 - Predicate Logic Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Why is predicate logic needed

A

It lets us describe propositions in a more detailed and complex way than propositional logic can. It accounts for parts of and links between parts of propositions and quantifiers.

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

What are the 2 parts of predicate logic

A

Syntax and semantics

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

Syntax

A

notations for concepts and operators used to create formulae

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

Semantics

A

The meanings behind the formulas

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

Predicates

A

A verb describing a property or relation of a term

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

Terms

A

Subjects expressed through nouns or pronouns

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

Atomic formula

A

Smallest element of predicate logic
Consists of 1 predicate and 1 or more terms

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

Predicates for properties

A

Predicates can be used to describe the property of a subject - its features/attributes
E.g., the sky is blue or Tom’s car is blue

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

Predicates for relations

A

Predicates can be used to describe the relationship between terms - objects and a subjects.
E.g., Jay is the father of Kay or Jay and Kay are neighbours.

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

Constant terms

A

Specific objects e.g., Alice or Bob
Conventionally written as the lower case first letter of the term e.g., a and b for Alice and Bob

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

Predicate logic notation

A

Predicates - upper case first letter of the verb
Term - lower case first letter

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

Atomic formula

A

Combines terms and predicates to make a formula
e.g., Bob is a man -> M(a)

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

Arity of an atomic formulae

A

the number of variables it takes as arguments

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

Variable

A

Represents general terms - unspecified individuals of the same type.
Abstracts away from specific objects such as constants.

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

Conventions for variables

A

Written as a lowercase letter from the end of the alphabet like x or y
E.g., in M(x), variable x represents male humans and predicate M represents “is a man”.

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

Truth values

A

A value representing whether an atomic formula is true or false
E.g., M(x) where M is a predicate for “is male” would be true of x is a man.

17
Q

Closed/ground formulae

A

Predicates where the arguments are only constants
They are propositions and have truth values

18
Q

Open/unground formula

A

Predicates where at least 1 argument is a variable
They are not propositions and don’t have truth values

19
Q

Universe of discourse

A

All entities that can replace a variable in an atomic formula.

20
Q

Compound formulae

A

Formulae obtained by applying logical connectives to atomic formulae
E.g., “Jay and Kay are SCC121 students” = S(j) AND S(k)

21
Q

Quantifiers

A

Operates that state how many values from universe of discourse satisfy an open formula.
Quantified formulae are made when quantifiers are combined with terms in open formulae.

22
Q

Universal quantifier

A

Denotes that a statement applies to all elements in the domain.
It has the symbol ∀ which is read as “for all”.
∀x P(x) is true if P(x) is true for every x in the domain.
∀x P(x) is false if there exists at least one x for which P(x) is false.

23
Q

Existential Quantifier

A

Denotes that a statement applies to at least one element in the domain.
It has the symbol ∃ which reads “there exists”
∃x P(x) is true if there exists at least one x in the domain for which P(x) is true.
∃x P(x) is false if P(x) is false for all x in the domain.

24
Q

Negation of universal quantifier

A

if ∀x B(x) = “all cats are black”, the negation is ~∀x B(x) = “not all cats are black”.
“not all cats are black” is equivalent to “there is at least one cat who is not black” or ~∀x B(x) = Ǝx ~B(x)

25
Q

Negation of existential quantifier

A

if ∃x P(x) = “there exists a cat which is purple”, the negation is ~∃x P(x) = “there is no cat which is purple”.
“it is not the case that there is a cat who is purple” is equivalent to: “every cat is not purple” or ~Ǝx P(x) = ∀x ~P(x)

26
Q

De Morgan’s Laws for Quantifiers

A

~∀x P(x) ≡ Ǝx ~P(x)
~Ǝx P(x) ≡ ∀x ~P(x).

27
Q

Unrestricted quantifiers

A

all elements in the Universe of Discourse

28
Q

Restricted quantifiers

A

some elements in the Universe of Discourse (a subset)

29
Q

Universal instantiation

A

∀x M(x) ∴ M(c)
e.g., Every man is mortal therefore any specific man is mortal

30
Q

Universal generalization

A

M(a) for any arbitrary a ∴ ∀x M(x)
e.g., Any arbitrary man is mortal therefore every man is mortal

31
Q

Existential instantiation

A

Ǝx M(x) ∴ M(a) for some element a
e.g., There is someone who is mortal, let’s call them a therefore a is mortal

32
Q

Existential generalization

A

P(c) for some element c ∴ Ǝx P(x)
e.g., Aristotle is mortal therefore there is someone who is mortal

33
Q

Precedence

A

Quantifiers have the highest precedence over all binary connectives
Order:
∀, Ǝ
¬



34
Q

Nested quantifiers

A

May need more than 1 quantifier for a formula
Order only matters if quantifiers are of different types

35
Q

Assignment of variables

A

A variable will be substituted into a formula for each value in the universe of discourse and assign a truth value to each entity in the universe of discourse.