Final Exam Review

5.0(1)
studied byStudied by 53 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/41

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

42 Terms

1
New cards

Propositional Variable

Variable thats either True or False

2
New cards

Symbol for Negation in Propositional Logic

¬

3
New cards

Symbol for Conjunction in Propositional Logic

4
New cards

Symbol for Disjunction in Propositional Logic

V

5
New cards

Symbol for Implication in Propositional Logic

6
New cards

Symbol for Biconditional in Propositional Logic

←→

7
New cards

Symbol for Truth in Propositional Logic

T

8
New cards

Symbol for False in Propositional Logic

9
New cards

Predicates

Describe properties of objects, take objects as arguments and evaluate to T or F

10
New cards

Functions

Map objects to one another

11
New cards

Quantifiers

allow you to reason about multiple objects

12
New cards

Constant symbols

unlike propositional variables, these refer to OBJECTS, not propositions

13
New cards

First order logic uses ____

Predicates

14
New cards

What is equality, what is its symbol, and what does it apply to?

(=), shows whether 2 objects are equal, only applies to OBJECTS

15
New cards

What is the biconditional, what is its symbol, and what does it apply to?

(←→), shows whether 2 objects are equal, only applies to PROPOSITIONS

16
New cards

Functions

Take objects as input and produce objects as output.

17
New cards

Is this proposition real? Why/Why not?
Venus → TheSun

No, you cannot apply connectives (V, ←→, →) to objects.

18
New cards

Is this proposition real? Why/Why not?

StarOf(IsRed(Sun) ^ IsGreen(Mars))

No, you cannot apply functions (IsBlue, IsWearing, etc.) to propositions

19
New cards

Connectives operate on ___ and produce ___

propositions, propositions

20
New cards

Predicates operate on ___ and produce ___

objects, propositions

21
New cards

Functions operate on ___ and produce ___

objects, objects

22
New cards

What is an existential quantifier? What is its symbol? Is it true in empty worlds?

a logical operator that indicates “At least one”

Its symbol is "∃"

it is false in empty worlds.

23
New cards

What is a universal quantifier? What is its symbol? Is it true in empty worlds?

A logical operator that indicates "For all".

Its symbol is "∀"

it is true in empty worlds.

24
New cards

Quantifiers have precedence above/below ~

below

25
New cards

Translate All A’s are B’s to First Order Logic

∀x (A(x) → B(x))

26
New cards

Translate Some A’s are B’s to First Order Logic

∃x (A(x) ∧ B(x))

27
New cards

Translate No A’s are B’s to First Order Logic

∀x (A(x) → ¬B(x))

28
New cards

Translate Some A’s aren’t B’s to First Order Logic

∃x (A(x) ∧ ¬B(x))

29
New cards

∀x P(x) is equivalent to..?

∃x ¬P(x)

30
New cards

∃x P(x) is equivalent to..?

∀x ¬P(x)

31
New cards

What is the Uniqueness quantifier, what is its symbol?

a logical operator that indicates “At least one object with a property exists and no other objects have that property”

Its symbol is "∃!"

32
New cards

What is Axiom 1’s equation in the Hilbert System?

(A→(B→A))

33
New cards

What is Axiom 2’s equation in the Hilbert System?

⊢(A→(B→C))→((A→B)→(A→C))

34
New cards

What is Axiom 3’s equation in the Hilbert System?

⊢(~B→~A)→(A→B)

35
New cards

What is Axiom 4’s equation in the Hilbert System?

⊢∀xA(x)→A(a)

36
New cards

What is Axiom 5’s equation in the Hilbert System?

⊢∀x (A→B(x))→(A→∀xB(x)

37
New cards

What is the Modus Ponens Equation in the Hilbert System?

(⊢A→B⊢A)/(⊢B)

38
New cards

What is the Generalization Equation in the Hilbert System?

(⊢A(a))/(⊢∀xA(x))

39
New cards

How do you execute a query in SWI-Prolog?

you type the query into the prompt and end it with a period.

E.g. ? - likes(sam, X).

40
New cards

How do you stop a file in SWI-Prolog?

? - halt.

41
New cards

How do you write facts in SWI-Prolog?

State them in the form of a predicate, ending in a period

E.g.

food(pasta).

animal(dog).

42
New cards

What is the symbol used to write rules in a query?

:-