Logic and Computation Flashcards
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.