Velocer打开应用

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 张卡片

University of Illinois Urbana-Champaign

学习这个卡组 嵌入

  1. What two components does a language need to encode ideas as strings of symbols?Syntax and semantics.
  2. What is syntax in a language?The physical and grammatical structure of a language—which arrangements of symbols are allowed.
  3. What is semantics in a language?What a string of symbols means; it links syntax to ideas.
  4. What is a theory in mathematics?A system built on top of a logic to describe particular mathematical objects.
  5. 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.
  6. What are the two truth values and their symbols?True, written ⊤, and false, written ⊥.
  7. 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.
  8. What is a predicate?A predicate acts like a function from objects in the universe of discourse to truth values.
  9. What does the quantifier ∀x mean?"For every x" — it asserts that a property holds for all objects in the universe of discourse.
  10. What symbol represents the truth value true?⊤ (top).
  11. What symbol represents the truth value false?⊥ (bottom).
  12. 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.
  13. What determines the truth value of a sentence containing a variable?The value substituted for the variable from the universe of discourse.
  14. 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.
  15. What does negation ¬p do?Negation flips the truth value of p.
  16. When is conjunction p ∧ q true?Conjunction is true exactly when both p and q are true ("and").
  17. When is disjunction p ∨ q true?Disjunction is true when at least one of p or q is true (inclusive "or").
  18. 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.
  19. 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.
  20. 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.
  21. What does syntactic equality mean for formulas?Two strings are syntactically equal only if they have identical characters in identical order.
  22. Is ¬¬⊤ syntactically equal to ⊤?No. They are logically equivalent, but the strings differ, so they are not syntactically equal.
  23. What is a proposition in first-order logic?A wff with no free variables—every variable is bound by a quantifier.
  24. When may parentheses be dropped from a formula?Only when the parse remains unambiguous; otherwise brackets are required.
  25. 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.
  26. 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.
  27. 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 ⊨.
  28. State the rule of implication introduction.If assuming p lets you prove q, then you can conclude p → q.
  29. What is modus ponens (implication elimination)?From p and p → q, infer q: p, p → q ⊢ q.
  30. How is a biconditional p ↔ q unpacked in natural deduction?It unpacks to the conjunction (p → q) ∧ (q → p).
  31. State conjunction introduction and conjunction elimination.Conjunction introduction: p, q ⊢ p ∧ q. Conjunction elimination: p ∧ q ⊢ p and p ∧ q ⊢ q.
  32. State the rule of disjunction introduction.From p, infer p ∨ q: p ⊢ p ∨ q.
  33. What is disjunction elimination (proof by cases)?From p ∨ q, p → r, and q → r, infer r: p ∨ q, p → r, q → r ⊢ r.
  34. State the rule of negation introduction.From p → q and p → ¬q, infer ¬p: p → q, p → ¬q ⊢ ¬p.
  35. State the rule of negation elimination.From ¬¬p, infer p: ¬¬p ⊢ p.
  36. What is truth introduction?The constant ⊤ can be derived with no assumptions: ⊢ ⊤.
  37. State the law of the excluded middle.For any proposition p, ⊢ ¬p ∨ p (with no assumptions).
  38. State the rule of false introduction.From ¬p ∧ p, infer ⊥: ¬p ∧ p ⊢ ⊥.
  39. What is false elimination (ex falso quodlibet / explosion)?From ⊥, infer any proposition p: ⊥ ⊢ p.
  40. State the rule of universal introduction.If φ(t) holds for an arbitrary term t, conclude ∀x φ(x).
  41. State the rule of universal elimination.From ∀x φ(x), infer φ(t) for any term t.
  42. State the rule of existential introduction.From φ(t) for some term t, infer ∃x φ(x).
  43. What is the conditional disintegration equivalence?p → q is logically equivalent to ¬p ∨ q (p → q ⊣⊢ ¬p ∨ q).
  44. State the contrapositive equivalence.p → q ⊣⊢ ¬q → ¬p.
  45. What is exportation in propositional logic?(p ∧ q) → r ⊣⊢ p → (q → r).
  46. How do ∧ and ∨ distribute over each other?p ∧ (q ∨ r) ⊣⊢ (p ∧ q) ∨ (p ∧ r), and dually p ∨ (q ∧ r) ⊣⊢ (p ∨ q) ∧ (p ∨ r).
  47. What is destructive dilemma?From p → r, q → s, and ¬r ∨ ¬s, infer ¬p ∨ ¬q.
  48. State De Morgan's laws for propositional logic.¬(p ∧ q) ⊣⊢ ¬p ∨ ¬q and ¬(p ∨ q) ⊣⊢ ¬p ∧ ¬q.
  49. Do same-type quantifiers commute?Yes: ∀x∀y φ ⊣⊢ ∀y∀x φ, and likewise ∃x∃y φ ⊣⊢ ∃y∃x φ.
  50. 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.
  51. How do you negate a universal quantifier?¬∀x φ(x) ⊣⊢ ∃x ¬φ(x).
  52. How do you negate an existential quantifier?¬∃x φ(x) ⊣⊢ ∀x ¬φ(x).
  53. 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.
  54. 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).
  55. 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).
  56. What are axioms in a first-order theory?Statements accepted without proof that define the theory.
  57. What does the identity of indiscernibles principle state?If x = y, then for every well-formed formula φ, φ(x) ↔ φ(y).
  58. Besides identity of indiscernibles, what are the other equality axioms?Reflexivity (x = x), symmetry, and transitivity of equality.
  59. What do the equality axioms justify?Substitution of equals—replacing a term with an equal term in a formula.
  60. 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.
  61. What is an axiom schema?A template generating infinitely many axioms, such as the induction schema needed for arithmetic in first-order logic.
  62. What are the basic symbols and objects in Peano arithmetic?Natural numbers, the constant 0, the unary successor function suc(x), and equality.
  63. What does Axiom 1 of Peano arithmetic state?∀x(suc(x) ≠ 0), meaning nothing precedes zero; no natural number has 0 as its successor.
  64. What does Axiom 3 of Peano arithmetic state?suc(x) = suc(y) ⇒ x = y; the successor function is injective.
  65. 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.
  66. How are numerals like 1 and 2 defined in Peano arithmetic?They are abbreviations: 1 := suc(0), 2 := suc(1), and so on.
  67. Give the recursive definition of addition in Peano arithmetic.n + 0 := n and n + suc(m) := suc(n + m).
  68. Give the recursive definition of multiplication in Peano arithmetic.n · 0 := 0 and n · suc(m) := n · m + n.
  69. How is the order relation ≤ defined in Peano arithmetic?n ≤ m :⇔ ∃p(n + p = m).
  70. How is strict order < defined in Peano arithmetic?n < m iff there exists p ≠ 0 such that n + p = m.
  71. What property does ≤ have in Peano arithmetic?It is a linear order: reflexive, antisymmetric, transitive, and total.
  72. 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.
  73. If 0 < n in Peano arithmetic, what can be said about n?Then n = m + 1 for some natural number m.
  74. What is the recursive definition of exponentiation given in the section?n^0 := 1 and n^{suc(m)} := n^m · n.
  75. Is exponentiation commutative? Give a counterexample.No. For example, 2^3 ≠ 3^2.
  76. How is a^{b^c} interpreted, and why?As a^{(b^c)}; exponentiation is right-associative.
  77. State the rule (x^y)^z = ?(x^y)^z = x^{y·z}.
  78. Does exponentiation distribute over products from the left, right, or both?It distributes from the right only: (x·y)^z = x^z · y^z.
  79. For base b ≥ 2, what monotonicity property does x ↦ b^x have?It is strictly increasing: x < y implies b^x < b^y.
  80. Define a monotonic increasing function.f is monotonic increasing if x < y implies f(x) ≤ f(y).
  81. Define a strictly increasing function.f is strictly increasing if x < y implies f(x) < f(y).
  82. State the additive cancellation law.x + z = y + z implies x = y.
  83. State the multiplicative cancellation law and its condition.x·z = y·z with z ≠ 0 implies x = y.
  84. How is the difference x − y defined when x ≥ y?If x ≥ y, there is k with x = y + k, and x − y := k.
  85. State the distributive rule for differences: x(y − z) = ? (when y ≥ z).x(y − z) = xy − xz.
  86. Define log_b x for b ≥ 2.For x = b^y, log_b x := y.
  87. What does a logarithm do to products?It turns products into sums.
  88. 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.
  89. 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.
  90. 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.
  91. State the strong induction principle as a logical equivalence.∀k(∀j(j<k ⇒ φ(j)) ⇒ φ(k)) ⇔ ∀n φ(n).
  92. 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.
  93. 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.
  94. What is the only new predicate in ZF set theory besides equality?Membership, denoted by ∈.
  95. State the Axiom of Extensionality.Two sets are equal if and only if they have exactly the same elements.
  96. What does the Pairing axiom guarantee?For any sets x and y, there exists a set whose elements are exactly x and y.
  97. What does the Union axiom state?For any set x, the elements of the elements of x form a set (the union of x).
  98. 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.
  99. What is the subset relation x ⊆ y?x ⊆ y iff every element of x is an element of y.
  100. What order-theoretic property does ⊆ have on sets?It is a partial order: reflexive, antisymmetric, and transitive.
  101. State the Separation schema.For any set x and well-formed formula φ, the collection {z ∈ x | φ(z)} is a set.
  102. Which set operations does the Separation schema guarantee exist?Intersection x ∩ y and difference x \ y.
  103. 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 ∅.
  104. What is the power set ℙ(x)?The set of all subsets of x.
  105. What does the Power axiom assert?For any set x, its power set ℙ(x) is a set.
  106. What is the basic containment fact relating intersection, a set, and union?x ∩ y ⊆ x ⊆ x ∪ y.
  107. What is the symmetric difference x △ y?The set of elements in exactly one of x and y (i.e., (x \ y) ∪ (y \ x)).
  108. What is ZFC?ZF together with the Axiom of Choice.
  109. What is roster notation for a finite set?Writing {x₁, …, xₙ} to list the elements explicitly.
  110. 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.
  111. 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.
  112. 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 的更多牌组