Logic and Computation Flashcards
(40 cards)
What is a set?
An unordered collection of distinct elements or members.
What notation is used to define a set?
Curly braces { }, e.g., A = {1, 2, 3, 4, 5}.
What does the symbol ∈ mean in set notation?
“Element of,” meaning an item is a member of a set.
What is the cardinality of a set?
The number of elements in a set, denoted |A| or #A.
What is a subset (⊆) and a proper subset (⊂)?
A subset includes all elements of another set, while a proper subset includes some but not all.
What is the union (∪) of two sets?
A set containing all elements that are in either set or both.
What is the intersection (∩) of two sets?
A set containing only elements common to both sets.
What is the empty set?
A set with no elements, denoted ∅ or { }
Define the sets ℕ, ℤ, ℚ, ℝ, ℂ, ℙ, and ∅.
ℕ: Natural numbers, ℤ: Integers, ℚ: Rational numbers, ℝ: Real numbers, ℂ: Complex numbers, ℙ: Prime numbers, ∅: Empty set.
What is logic?
The science of valid reasoning, involving constructing valid arguments.
What is propositional logic?
Logic dealing with propositions and logical connectives.
Define Boolean Logic.
A type of algebra with only two values: true (1) or false (0).
What is predicate logic?
Logic with predicates, allowing more complex statements about objects and properties.
What is a simple proposition?
A statement expressing a single, complete thought that cannot be broken down.
Define a compound proposition.
A statement combining two or more simple propositions with logical connectives.
What does the AND (∧) connective mean?
It is true only when both propositions are true.
Define the OR (∨) connective.
It is true when at least one proposition is true.
What is NOT (¬) in logical terms?
A connective that negates the truth value of a proposition.
Explain XOR (⊕).
It is true when exactly one of the propositions is true.
What is the IMPLIES (→) operator?
It is false only when the first proposition is true and the second is false.
Define a tautology.
A compound proposition that is always true.
What is a contradiction?
A compound proposition that is always false.
What does antecedent mean in a conditional statement?
The “if” part of an “if-then” statement.
Define consequent in a conditional statement.
The “then” part of an “if-then” statement.