Velocer › Карточки › University of Illinois Urbana-Champaign › CS 173: Discrete Structures · UIUC
CS 173: Discrete Structures · UIUC
Made these while studying for CS 173. covers most of what we went over in lecture. · автор: quad_day_notes · 112 карточек
- What two components does a language need to encode ideas as strings of symbols?Syntax and semantics.
- What is syntax in a language?The physical and grammatical structure of a language—which arrangements of symbols are allowed.
- What is semantics in a language?What a string of symbols means; it links syntax to ideas.
- What is a theory in mathematics?A system built on top of a logic to describe particular mathematical objects.
- What is a declarative sentence?A sentence that claims a property of an object and, once its terms are pinned down, has exactly one truth value.
- What are the two truth values and their symbols?True, written ⊤, and false, written ⊥.
- Why does a sentence like "x plus one equals two" lack a fixed truth value?Because it contains an unspecified variable; its truth depends on the value substituted for x.
- What is a predicate?A predicate acts like a function from objects in the universe of discourse to truth values.
- What does the quantifier ∀x mean?"For every x" — it asserts that a property holds for all objects in the universe of discourse.
- What symbol represents the truth value true?⊤ (top).
- What symbol represents the truth value false?⊥ (bottom).
- How does a predicate differ from a declarative sentence?A predicate maps objects to truth values, while a declarative sentence, once its terms are fixed, has exactly one truth value.
- What determines the truth value of a sentence containing a variable?The value substituted for the variable from the universe of discourse.
- What is a logical connective?A logical connective maps truth values to a truth value. An n-ary connective is fixed by giving an output for every combination of n inputs.
- What does negation ¬p do?Negation flips the truth value of p.
- When is conjunction p ∧ q true?Conjunction is true exactly when both p and q are true ("and").
- When is disjunction p ∨ q true?Disjunction is true when at least one of p or q is true (inclusive "or").
- What are the conditional and biconditional connectives?The conditional is p → q and the biconditional is p ↔ q; they complete the standard set of connectives.
- What is a well-formed formula (wff) in first-order logic?A formula built recursively: base cases give explicit formulas (like ⊤, ⊥, or a predicate applied to terms), and recursive cases build new wffs from existing ones using connectives and quantifiers.
- What are the base cases in the recursive definition of a wff?⊤, ⊥, and a predicate applied to terms π(t₁,…,tₙ), where each tᵢ is a constant or a variable.
- What does syntactic equality mean for formulas?Two strings are syntactically equal only if they have identical characters in identical order.
- Is ¬¬⊤ syntactically equal to ⊤?No. They are logically equivalent, but the strings differ, so they are not syntactically equal.
- What is a proposition in first-order logic?A wff with no free variables—every variable is bound by a quantifier.
- When may parentheses be dropped from a formula?Only when the parse remains unambiguous; otherwise brackets are required.
- Why is x<y ∧ y<z → x<z not well-formed without brackets?Because the two possible groupings mean different things, so the parse is ambiguous without brackets.
- Why can a chain of conjunctions be written without inner parentheses?Because ∧ is associative, so the grouping of a conjunction chain does not affect meaning.
- What does the turnstile symbol Σ ⊢ q mean?From the assumptions in Σ, plus axioms and already-proved theorems, q can be derived. It denotes syntactic entailment (provability), as opposed to semantic entailment ⊨.
- State the rule of implication introduction.If assuming p lets you prove q, then you can conclude p → q.
- What is modus ponens (implication elimination)?From p and p → q, infer q: p, p → q ⊢ q.
- How is a biconditional p ↔ q unpacked in natural deduction?It unpacks to the conjunction (p → q) ∧ (q → p).
- State conjunction introduction and conjunction elimination.Conjunction introduction: p, q ⊢ p ∧ q. Conjunction elimination: p ∧ q ⊢ p and p ∧ q ⊢ q.
- State the rule of disjunction introduction.From p, infer p ∨ q: p ⊢ p ∨ q.
- What is disjunction elimination (proof by cases)?From p ∨ q, p → r, and q → r, infer r: p ∨ q, p → r, q → r ⊢ r.
- State the rule of negation introduction.From p → q and p → ¬q, infer ¬p: p → q, p → ¬q ⊢ ¬p.
- State the rule of negation elimination.From ¬¬p, infer p: ¬¬p ⊢ p.
- What is truth introduction?The constant ⊤ can be derived with no assumptions: ⊢ ⊤.
- State the law of the excluded middle.For any proposition p, ⊢ ¬p ∨ p (with no assumptions).
- State the rule of false introduction.From ¬p ∧ p, infer ⊥: ¬p ∧ p ⊢ ⊥.
- What is false elimination (ex falso quodlibet / explosion)?From ⊥, infer any proposition p: ⊥ ⊢ p.
- State the rule of universal introduction.If φ(t) holds for an arbitrary term t, conclude ∀x φ(x).
- State the rule of universal elimination.From ∀x φ(x), infer φ(t) for any term t.
- State the rule of existential introduction.From φ(t) for some term t, infer ∃x φ(x).
- What is the conditional disintegration equivalence?p → q is logically equivalent to ¬p ∨ q (p → q ⊣⊢ ¬p ∨ q).
- State the contrapositive equivalence.p → q ⊣⊢ ¬q → ¬p.
- What is exportation in propositional logic?(p ∧ q) → r ⊣⊢ p → (q → r).
- How do ∧ and ∨ distribute over each other?p ∧ (q ∨ r) ⊣⊢ (p ∧ q) ∨ (p ∧ r), and dually p ∨ (q ∧ r) ⊣⊢ (p ∨ q) ∧ (p ∨ r).
- What is destructive dilemma?From p → r, q → s, and ¬r ∨ ¬s, infer ¬p ∨ ¬q.
- State De Morgan's laws for propositional logic.¬(p ∧ q) ⊣⊢ ¬p ∨ ¬q and ¬(p ∨ q) ⊣⊢ ¬p ∧ ¬q.
- Do same-type quantifiers commute?Yes: ∀x∀y φ ⊣⊢ ∀y∀x φ, and likewise ∃x∃y φ ⊣⊢ ∃y∃x φ.
- Which quantifier-shift direction is valid: ∃x∀y φ or ∀y∃x φ?∃x∀y φ ⊢ ∀y∃x φ is valid, but the reverse (∀y∃x φ ⊢ ∃x∀y φ) is not valid in general.
- How do you negate a universal quantifier?¬∀x φ(x) ⊣⊢ ∃x ¬φ(x).
- How do you negate an existential quantifier?¬∃x φ(x) ⊣⊢ ∀x ¬φ(x).
- When can a quantifier over x be moved past a formula p?When p does not mention x; this works in conjunctions, disjunctions, and in the consequent of a conditional.
- What happens when moving a quantifier past a quantified antecedent in a conditional?It requires more care: the quantifier type changes (e.g., ∀ in the antecedent becomes ∃ when moved).
- What components must you choose to specify a first-order theory?A universe of discourse, variable symbols, constant symbols, predicate (relational) symbols, functional symbols, and axioms (statements accepted without proof).
- What are axioms in a first-order theory?Statements accepted without proof that define the theory.
- What does the identity of indiscernibles principle state?If x = y, then for every well-formed formula φ, φ(x) ↔ φ(y).
- Besides identity of indiscernibles, what are the other equality axioms?Reflexivity (x = x), symmetry, and transitivity of equality.
- What do the equality axioms justify?Substitution of equals—replacing a term with an equal term in a formula.
- Why can't first-order logic state induction as a single sentence?Induction requires an infinite axiom schema, which cannot be captured by one first-order sentence; this is why arithmetic needs infinitely many axioms.
- What is an axiom schema?A template generating infinitely many axioms, such as the induction schema needed for arithmetic in first-order logic.
- What are the basic symbols and objects in Peano arithmetic?Natural numbers, the constant 0, the unary successor function suc(x), and equality.
- What does Axiom 1 of Peano arithmetic state?∀x(suc(x) ≠ 0), meaning nothing precedes zero; no natural number has 0 as its successor.
- What does Axiom 3 of Peano arithmetic state?suc(x) = suc(y) ⇒ x = y; the successor function is injective.
- What is the weak induction schema in Peano arithmetic?(φ(0) ∧ ∀k(φ(k) ⇒ φ(suc(k)))) ⇒ ∀x φ(x). If a property holds for 0 and is preserved by successors, it holds for all natural numbers.
- How are numerals like 1 and 2 defined in Peano arithmetic?They are abbreviations: 1 := suc(0), 2 := suc(1), and so on.
- Give the recursive definition of addition in Peano arithmetic.n + 0 := n and n + suc(m) := suc(n + m).
- Give the recursive definition of multiplication in Peano arithmetic.n · 0 := 0 and n · suc(m) := n · m + n.
- How is the order relation ≤ defined in Peano arithmetic?n ≤ m :⇔ ∃p(n + p = m).
- How is strict order < defined in Peano arithmetic?n < m iff there exists p ≠ 0 such that n + p = m.
- What property does ≤ have in Peano arithmetic?It is a linear order: reflexive, antisymmetric, transitive, and total.
- Does adding the same number to both sides preserve ≤ in Peano arithmetic?Yes, ≤ is monotonic with respect to addition: if n ≤ m, then n + p ≤ m + p.
- If 0 < n in Peano arithmetic, what can be said about n?Then n = m + 1 for some natural number m.
- What is the recursive definition of exponentiation given in the section?n^0 := 1 and n^{suc(m)} := n^m · n.
- Is exponentiation commutative? Give a counterexample.No. For example, 2^3 ≠ 3^2.
- How is a^{b^c} interpreted, and why?As a^{(b^c)}; exponentiation is right-associative.
- State the rule (x^y)^z = ?(x^y)^z = x^{y·z}.
- Does exponentiation distribute over products from the left, right, or both?It distributes from the right only: (x·y)^z = x^z · y^z.
- For base b ≥ 2, what monotonicity property does x ↦ b^x have?It is strictly increasing: x < y implies b^x < b^y.
- Define a monotonic increasing function.f is monotonic increasing if x < y implies f(x) ≤ f(y).
- Define a strictly increasing function.f is strictly increasing if x < y implies f(x) < f(y).
- State the additive cancellation law.x + z = y + z implies x = y.
- State the multiplicative cancellation law and its condition.x·z = y·z with z ≠ 0 implies x = y.
- How is the difference x − y defined when x ≥ y?If x ≥ y, there is k with x = y + k, and x − y := k.
- State the distributive rule for differences: x(y − z) = ? (when y ≥ z).x(y − z) = xy − xz.
- Define log_b x for b ≥ 2.For x = b^y, log_b x := y.
- What does a logarithm do to products?It turns products into sums.
- What is the key feature of strong induction compared to weak induction?In strong induction, the inductive step may assume every smaller case (all j < k), not just the immediate predecessor.
- Are weak, weak-strong, strict-strong, and strong induction logically equivalent?Yes—all these induction variants are logically equivalent, so you can choose whichever fits the proof.
- Give the recurrence for binary search and its closed form for n a power of 2.T(1)=1 and T(2x)=T(x)+1; for n a power of 2, T(n)=log₂ n + 1.
- State the strong induction principle as a logical equivalence.∀k(∀j(j<k ⇒ φ(j)) ⇒ φ(k)) ⇔ ∀n φ(n).
- In strong induction, what may the inductive step assume about smaller cases?It may assume φ(j) for every j < k, i.e., all smaller cases.
- What does it mean to 'conjecture' in the recurrence-solving method?After unrolling and spotting a pattern, you state a candidate closed-form formula before proving it.
- What is the only new predicate in ZF set theory besides equality?Membership, denoted by ∈.
- State the Axiom of Extensionality.Two sets are equal if and only if they have exactly the same elements.
- What does the Pairing axiom guarantee?For any sets x and y, there exists a set whose elements are exactly x and y.
- What does the Union axiom state?For any set x, the elements of the elements of x form a set (the union of x).
- How is the union x ∪ y obtained from the Union axiom and Pairing?Apply Union to the pair {x, y}; its elements are exactly the elements of x and of y.
- What is the subset relation x ⊆ y?x ⊆ y iff every element of x is an element of y.
- What order-theoretic property does ⊆ have on sets?It is a partial order: reflexive, antisymmetric, and transitive.
- State the Separation schema.For any set x and well-formed formula φ, the collection {z ∈ x | φ(z)} is a set.
- Which set operations does the Separation schema guarantee exist?Intersection x ∩ y and difference x \ y.
- How is the empty set defined, and what are its key properties?∅ := {z | z ≠ z}; it exists, is unique, is a subset of every set, and only ∅ is a subset of ∅.
- What is the power set ℙ(x)?The set of all subsets of x.
- What does the Power axiom assert?For any set x, its power set ℙ(x) is a set.
- What is the basic containment fact relating intersection, a set, and union?x ∩ y ⊆ x ⊆ x ∪ y.
- What is the symmetric difference x △ y?The set of elements in exactly one of x and y (i.e., (x \ y) ∪ (y \ x)).
- What is ZFC?ZF together with the Axiom of Choice.
- What is roster notation for a finite set?Writing {x₁, …, xₙ} to list the elements explicitly.
- What is comprehension notation {z | φ(z)}?Notation describing the collection of all z satisfying the formula φ; in ZF it is restricted via Separation to z ∈ x.
- What does it mean that sets are 'whatever the axioms prove exist'?The theory does not presuppose a universe of sets; the axioms determine which sets exist.
- Is union commutative and associative?Yes, ∪ is both commutative and associative.
Velocer бесплатен: интервальное повторение и ваши собственные карточки из любого документа.
PDF to flashcards · Lecture to flashcards · Practice exam · Syllabus study plan · Anki import
Другие колоды University of Illinois Urbana-Champaign
- CS 580: Algorithmic Game Theory · UIUC
- CS 445: Computational Photography · UIUC
- CS 444: Deep Learning for Computer Vision · UIUC
- CS 441: Applied Machine Learning · UIUC
- CS 440: Artificial Intelligence · UIUC
- CS 425: Distributed Systems · UIUC
- CS 421: Programming Languages and Compilers · UIUC
- CS 374: Intro to Algorithms and Models of Computation · UIUC
- CS 357: Numerical Methods I · UIUC
- CS 341: System Programming · UIUC
- CS 225: Data Structures · UIUC