Lecture 4 Flashcards

1
Q

what is predicate logic?

A

predicate calculus (first-order-logic) - represents objects and relations between object

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

what are the set of legitimate symbols in predicate calculus

A

upper and lower case letters, integers, underscore

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

what are the 5 types of predicate symbols?

A

truth, constant, variable, function and predicate symbols

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

give example of predicate variable T and F

A

variable - starts with capital

t = true, f = false

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

what is a predicate?

A

predicates have arity (# of arguments), if 2 arguments have same name but different arity they are distinct, eg smelly(nemo) and likes(john x) - smelly and likes are predicates, arguments are terms (constant, variable or function), all predicates are true or false.

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

what are functions in predicate calculus?

A

they evaluate to a single object called the value NOT true or false, take terms (same as predicates), functions are terms so predicates can take them.

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

what is an atomic sentence?

A

predicate of arity n with n terms in parenthesis, seperated by commas are atomis sentences. true and false are atomic sentences
functions are NOT!!

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

predicate calculus sentences in terms of ^ (down arrow, not symbol, 3 equals, -> ∃, ∀)

A

S1 and S2 are entences, X is avariable, S1 ^ S2, ∃X S1, ∀X S1, put the rest of the symbols between 2 sentences. are all atomic sentences.

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

express as predicate calculus expressions

-some cars are red -all bikes are blue -not all scooters are silver

A

∃X(car(X) ^ red(X))
∀X(bicycle(X) -> blue(X))
scooter (not)∀X(scooter(X) -> silver(X)) or
∃X(scooter(X) -> (not)silver(X))

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

inferance rules in relation to ∃ and ∀

A

if a is from domain of X, and ∀X p(X) then p(a) is true
∃X p(X), is true if X is replaced by a new term that doesn’t appear in knowledge base (occurred earlier in proof) (∃ X p(X) ^ ∃X Q(X) (cant select same for Q and P))

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

what is the procedure of a proof?

A

combination of an inference rule and an algorythm for applying that rule. applied to logical expressions to generate new sentences.

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

How do we turn logic problem into search problem?

A

initial state = knowledge base (sentences), operators = applicable inference rules, goal test - sentence to test, REMEMBER, branching factor increases more knowledge base grows, ∀ can have enormous branching factor (BAD)

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