Mathematical logic

107 flashcardsby Una
Study these flashcardsFree · spaced repetition · iPhone, Android, Mac & web

All cards

1
What is a propositional variable?
A symbol that represents a proposition with a truth value true or false
2
What is a proposition?
A declarative statement that is either true or false but not both
3
What does it mean for a proposition to have a truth value?
It can be evaluated as either true or false
4
What are the standard logical connectives in propositional logic?
Negation, conjunction, disjunction, implication, equivalence ¬, ∧, ∨, →, ↔
5
What is the difference between syntax and semantics in propositional logic?
Syntax concerns the form of formulas, semantics concerns their meaning and truth values
6
What is a well-formed formula (WFF)?
A syntactically correct expression built according to the rules of propositional logic
7
How do you construct a truth table for a propositional formula?
By listing all possible truth value assignments for variables and evaluating the formula
8
How many rows does a truth table with n variables have?
2ⁿ rows
9
What is the truth table definition of ¬A?
It is true when A is false and false when A is true
10
What is the truth table definition of A ∧ B?
True only when both A and B are true
11
What is the truth table definition of A ∨ B?
True when at least one of A or B is true
12
What is the truth table definition of A → B?
False only when A is true and B is false
13
What is the truth table definition of A ↔ B?
True when A and B have the same truth value
14
In which cases is an implication false?
When the antecedent is true and the consequent is false
15
How is impication defined?
Implication is defined as ¬A ∨ B
16
What is a tautology?
A formula that is true under all truth assignments
17
What is a contradiction?
A formula that is false under all truth assignments
18
What is a satisfiable formula?
A formula that is true under at least one truth assignment
19
What is an unsatisfiable formula?
A formula that is false under all truth assignments
20
What does it mean for a formula to be valid?
It is true in all interpretations
21
Can a formula be both satisfiable and a tautology?
Yes, every tautology is satisfiable
22
Can a formula be satisfiable but not a tautology?
Yes, if it is true under some but not all assignments
23
What does it mean for two formulas to be logically equivalent?
They have the same truth value under all interpretations
24
How can logical equivalence be shown using truth tables?
By showing identical truth table columns for both formulas
25
What does the symbol ≡ represent?
Logical equivalence
26
Are logically equivalent formulas guaranteed to have the same truth table?
Yes
27
Is logical equivalence the same as syntactic equality?
No
28
What is the commutative law for ∧ and ∨?
A ∧ B ≡ B ∧ A and A ∨ B ≡ B ∨ A
29
What is the associative law for ∧ and ∨?
(A ∧ B) ∧ C ≡ A ∧ (B ∧ C) and similarly for ∨
30
What is the distributive law involving ∧ and ∨?
A ∧ (B ∨ C) ≡ (A ∧ B) ∨ (A ∧ C)
31
What is the identity law in propositional logic?
A ∧ true ≡ A and A ∨ false ≡ A
32
What is the domination law?
A ∨ true ≡ true and A ∧ false ≡ false
33
What is the idempotent law?
A ∧ A ≡ A and A ∨ A ≡ A
34
What is the double negation law?
¬¬A ≡ A
35
What are De Morgan’s laws?
¬(A ∧ B) ≡ ¬A ∨ ¬B and ¬(A ∨ B) ≡ ¬A ∧ ¬B
36
How do De Morgan’s laws apply to negated conjunctions?
They transform them into disjunctions of negations
37
How do De Morgan’s laws apply to negated disjunctions?
They transform them into conjunctions of negations
38
How can implication be rewritten using ¬ and ∨?
A → B ≡ ¬A ∨ B
39
How can equivalence be rewritten using implications?
A ↔ B ≡ (A → B) ∧ (B → A)
40
What is the contrapositive of an implication?
¬B → ¬A
41
Is an implication logically equivalent to its contrapositive?
Yes
42
What is the converse of an implication?
B → A
43
Is an implication logically equivalent to its converse?
No
44
What is the inverse of an implication?
¬A → ¬B
45
How do you simplify a propositional formula using logical laws?
By applying equivalences and identities step by step
46
What steps are typically used when simplifying complex formulas?
Remove implications, push negations inward, apply equivalence laws
47
How do you remove implications from a formula?
Replace A → B with ¬A ∨ B
48
How do you remove equivalences from a formula?
Replace A ↔ B with (A → B) ∧ (B → A)
49
How do you push negations inward?
By applying De Morgan’s laws and double negation
50
How do you identify redundant parts of a formula?
By checking logical equivalence
51
What does it mean for a formula B to be a logical consequence of formula A?
B is true in every interpretation where A is true
52
What does the notation A ⊨ B mean?
B is a logical consequence of A
53
How can logical consequence be checked using truth tables?
By verifying that there is no row where A is true and B is false
54
Can a formula have multiple logical consequences?
Yes
55
Can a contradiction have logical consequences?
Yes, it logically implies every formula
56
Can a tautology be a logical consequence of any formula?
Yes
57
Can A ∧ B logically imply A?
Yes
58
Can A logically imply A ∨ B?
Yes
59
Does A ∧ B imply B ∧ A?
Yes
60
Does A → B imply ¬B → ¬A?
Yes
61
Is A ∨ ¬A always true?
Yes
62
Is A ∧ ¬A always false?
Yes
63
What is a predicate?
A function that assigns truth values to objects
64
What is the difference between a propositional variable and a predicate?
A predicate depends on variables, a proposition does not
65
What does a unary predicate represent?
A property of a single object
66
What does a binary predicate represent?
A relation between two objects
67
What is the universal quantifier?
A quantifier stating that a property holds for all elements
68
What is the existential quantifier?
A quantifier stating that a property holds for at least one element
69
What symbols are used for ∀ and ∃?
Universal and existential quantifiers
70
What is a domain (universe of discourse)?
The set of objects over which variables range
71
Why is the domain important when interpreting predicates?
Because it determines which objects are quantified over
72
Can the same predicate formula have different truth values under different domains?
Yes
73
What is an interpretation of a predicate formula?
An assignment of meaning to predicates and variables
74
What is a bound variable?
A variable that is quantified by ∀ or ∃
75
What is a free variable?
A variable not bound by a quantifier
76
Is a formula with free variables a proposition?
No
77
When is a predicate formula considered closed?
When it has no free variables
78
Can a variable be both free and bound in the same formula?
Yes, in different occurrences
79
What does ∀x P(x) mean in words?
P holds for every element in the domain
80
What does ∃x P(x) mean in words?
There exists at least one element for which P holds
81
Does ∀x P(x) imply ∃x P(x)?
Yes, if the domain is non-empty
82
Does ∃x P(x) imply ∀x P(x)?
No
83
Can ∀x P(x) be true if the domain is empty?
Yes, by convention
84
Can ∃x P(x) be true if the domain is empty?
No
85
What is the negation of ∀x P(x)?
∃x ¬P(x)
86
What is the negation of ∃x P(x)?
∀x ¬P(x)
87
How does negation interact with quantifiers?
It switches ∀ and ∃ and negates the predicate
88
How do De Morgan’s laws apply to quantified formulas?
They move negation across quantifiers
89
How do you negate nested quantifiers?
By reversing each quantifier and negating the inner formula
90
What is the negation of ∀x ∃y P(x, y)?
∃x ∀y ¬P(x, y)
91
What is the negation of ∃x ∀y P(x, y)?
∀x ∃y ¬P(x, y)
92
What does it mean for a predicate formula to be a logical consequence of another?
It holds in every interpretation where the first formula holds
93
Does ∀x P(x) logically imply P(a) for a specific element a?
Yes
94
Does P(a) logically imply ∃x P(x)?
Yes
95
Does ¬∃x P(x) imply ∀x ¬P(x)?
Yes
96
Does ¬∀x P(x) imply ∃x ¬P(x)?
Yes
97
Which formulas follow from ∀x P(x)?
Any instance P(a)
98
Which formulas follow from ∃x P(x)?
No specific instance without additional information
99
Which formulas follow from ¬∃x P(x)?
∀x ¬P(x)
100
Which formulas follow from ¬∀x P(x)?
∃x ¬P(x)
101
Can both ∃x P(x) and ∀x ¬P(x) be true at the same time?
No
102
Can both ∀x P(x) and ∃x ¬P(x) be true at the same time?
No
103
Is ¬∃x P(x) the same as ∃x ¬P(x)?
No
104
Is ¬∀x P(x) the same as ∀x ¬P(x)?
No
105
Does switching the order of quantifiers change meaning?
Yes, in general
106
Is ∀x ∃y P(x, y) equivalent to ∃y ∀x P(x, y)?
No
107
Can a statement be true for all elements but false for some specific symbol?
No
Study all 107 cards for free