EA2

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/48

flashcard set

Earn XP

Description and Tags

claude

49 Terms

1
New cards

Proposition vs. predicate

A proposition has no variables and is true or false. A predicate contains variables and becomes a proposition once the variables are given values or quantified.

2
New cards

Predicate

A statement with variables, like P(x): "User x has administrator privileges." It has no truth value until x is specified.

3
New cards

Universal quantifier (∀)

"For all / every." ∀x P(x) means P holds for every x in the domain.

4
New cards

Existential quantifier (∃)

"There exists / at least one / some." ∃x P(x) means P holds for at least one x.

5
New cards

Negation of ∀x P(x)

∃x ¬P(x)

6
New cards

Negation of ∃x P(x)

∀x ¬P(x)

7
New cards

Negation of "All users have passwords"

∃x(User(x) ∧ ¬HasPassword(x)), meaning there is a user without a password.

8
New cards

Negation of "There exists a bug in the system"

∀x ¬Bug(x), meaning no x is a bug.

9
New cards

Negation of ∀x(P(x) → Q(x))

∃x(P(x) ∧ ¬Q(x))

10
New cards

Negation of a conditional P → Q

P ∧ ¬Q

11
New cards

Translating "All/Every A is B"

∀x(A(x) → B(x)). Use → with ∀, never ∧.

12
New cards

Translating "Some A is B"

∃x(A(x) ∧ B(x)). Use ∧ with ∃, never →.

13
New cards

Symbolize: "There exists a server that is always online"

∃x(Server(x) ∧ AlwaysOnline(x))

14
New cards

Symbolize: "Every algorithm terminates"

∀x(Algorithm(x) → Terminates(x))

15
New cards

Symbolize: "Every database table has a primary key"

∀x(Table(x) → HasPrimaryKey(x)). Choices with ∃, a reversed arrow, or ∀ with ∧ are wrong, so the answer was E (none of the above).

16
New cards

Let P(x): "User x has admin privileges." "All users have admin privileges" is

∀x P(x)

17
New cards

Let T(x): "Packet x is dropped." "At least one packet is dropped" is

∃x T(x)

18
New cards

Let R(x,y): "Process x communicates with server y." "Every process communicates with some server" is

∀x∃y R(x,y)

19
New cards

∀x∃y R(x,y) vs ∃y∀x R(x,y)

∀x∃y: each x has its own y (possibly different). ∃y∀x: one single y works for every x. Quantifier order matters.

20
New cards

Predicate logic is useful in IT for

Database queries (also specifications, verification, and AI rules). Not graphics rendering, arithmetic only, or file compression.

21
New cards

Categorical syllogism

Reasoning with "All/Some/No" statements. Example: All programmers use an IDE; Alice is a programmer; so Alice uses an IDE.

22
New cards

Hypothetical syllogism (HS)

P → Q, Q → R, therefore P → R. It chains conditionals.

23
New cards

Example of HS

If user logs in, session starts. If session starts, resources are accessible. Therefore, if user logs in, resources are accessible.

24
New cards

Disjunctive syllogism (DS)

P ∨ Q, ¬P, therefore Q.

25
New cards

Example of DS

Either the server is online or the backup runs. The server is not online. Therefore the backup runs.

26
New cards

Modus ponens (MP)

P → Q, P, therefore Q. It affirms the antecedent.

27
New cards

Example of MP

If code is correct, program runs. Code is correct. Therefore program runs.

28
New cards

Modus tollens (MT)

P → Q, ¬Q, therefore ¬P. It denies the consequent.

29
New cards

Example of MT

If network is stable, connection holds. Connection fails. Therefore network is not stable.

30
New cards

Simplification

P ∧ Q, therefore P. Example: System is secure AND reliable, so the system is secure.

31
New cards

Conjunction

P, Q, therefore P ∧ Q. Example: System is secure; system is reliable; so secure AND reliable.

32
New cards

Addition

P, therefore P ∨ Q. Example: System is secure, therefore secure OR vulnerable.

33
New cards

Resolution

P ∨ Q, ¬P ∨ R, therefore Q ∨ R.

34
New cards

Fallacy: denying the antecedent

P → Q, ¬P, therefore ¬Q. INVALID.

35
New cards

Fallacy: affirming the consequent

P → Q, Q, therefore P. INVALID.

36
New cards

Why is "If correct password then access granted; user did not enter correct password; therefore access denied" invalid?

It denies the antecedent (¬P, therefore ¬Q). Access could be granted another way.

37
New cards

Why is "All programs terminate; Program X crashed; therefore X terminated successfully" invalid?

The conclusion contradicts the second premise and does not follow from the argument form. Answer: Invalid.

38
New cards

Valid: "All secure websites use HTTPS; portal.dlsud.edu.ph is a secure website; therefore it uses HTTPS"

Valid. It is a universal instantiation plus modus ponens.

39
New cards

Universal Instantiation (UI)

∀x P(x), therefore P(c) for any specific element c. Example: All applications require memory; Photoshop is an application; so Photoshop requires memory.

40
New cards

Universal Generalization (UG)

P(c) for an arbitrary c, therefore ∀x P(x). Example: For an arbitrary server, if it is a server it has an IP address; so all servers have an IP address.

41
New cards

Existential Instantiation (EI)

∃x P(x), therefore P(c) for some new, unnamed element c. Example: Some website is vulnerable; so example.com is vulnerable.

42
New cards

Existential Generalization (EG)

P(c) for a specific c, therefore ∃x P(x). Example: Database Oracle is scalable; so there exists a database that is scalable.

43
New cards

UI vs EI

UI picks ANY element from a ∀ statement. EI picks a SPECIFIC but unknown element from a ∃ statement.

44
New cards

UG vs EG

UG goes from an arbitrary element to ∀. EG goes from a specific element to ∃.

45
New cards

Rules for: All students in IT101 can access the lab; Katrina is in IT101; so Katrina can access the lab

Universal Instantiation + Modus Ponens

46
New cards

Rules for: All operating systems manage processes; Linux is an OS; so Linux manages processes

Universal Instantiation (then modus ponens)

47
New cards

Quick ID: "P ∧ Q so P" vs "P, Q so P ∧ Q" vs "P so P ∨ Q"

Simplification vs. Conjunction vs. Addition

48
New cards

Quick ID: "P → Q, ¬Q so ¬P" vs "P → Q, P so Q"

Modus Tollens vs. Modus Ponens

49
New cards

Quick ID: "P ∨ Q, ¬P so Q" vs "P → Q, Q → R so P → R"

Disjunctive Syllogism vs. Hypothetical Syllogism