1. Home
  2. Explore
  3. Mathematics
  4. Mathematics for Computer Science

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Mathematics for Computer Science

  • 68Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Proof Foundations

What is a mathematical proof?

68 questions

  1. 1

    What is a mathematical proof?

    Model answer

    A mathematical proof is a verification of a proposition by a chain of logical deductions from a base set of axioms.

    Explanation

    Proofs establish that propositions are true by connecting them to accepted starting assumptions through logical reasoning.

  2. 2

    Why is constructing a proof different from understanding someone else's proof?

    Model answer

    Reading and understanding a proof is easier than constructing one independently. Writing a proof requires translating one's reasoning into a precise, concise, and correct argument that others can follow.

    Explanation

    Recognizing why another proof works does not guarantee that one could have developed the argument independently.

  3. 3

    What proof-writing practice is summarized by the phrase "solve together, write alone"?

    Model answer

    Students may solve problems collaboratively, but each student should write the final proof independently in their own words to demonstrate personal understanding.

    Explanation

    Collaboration can help with problem solving, while independent writing develops the ability to communicate mathematical reasoning.

  4. 4

    What are the three main skills involving proofs that the course aims to develop?

    Model answer

    The course aims to develop the ability to write proofs, read proofs, and evaluate proofs.

    Explanation

    These skills involve constructing mathematical arguments, understanding existing arguments, and judging whether arguments are correct.

  5. 5

    What is the purpose of identifying the reason for each step in a proof?

    Model answer

    Identifying the reason shows why each step is true, whether because it follows logically from earlier steps or because it uses an accepted axiom or theorem.

    Explanation

    A proof should make its logical basis clear at every stage.

  6. 6

    What is a proposition?

    Model answer

    A proposition is a statement that is either true or false.

    Explanation

    Both true statements and false statements can be propositions, as long as they have a definite truth value.

  7. 7

    Why are both "Today is Tuesday" and "Today is Thursday" propositions?

    Model answer

    Each is a complete statement that can be evaluated as true or false, even though only one may be true on a particular day.

    Explanation

    A proposition does not have to be true; it only needs to have a determinate truth value.

  8. 8

    Is the statement ppp is prime a proposition when ppp has not been specified? Explain.

    Model answer

    No. It is a predicate because its truth depends on the value assigned to the variable ppp.

    Explanation

    After a specific value is substituted, such as 7 or 12, the resulting statement becomes a proposition.

  9. 9

    What is a predicate?

    Model answer

    A predicate is a parametrized statement whose truth depends on one or more variables. It becomes a proposition when values are assigned to those variables.

    Explanation

    For example, "ppp is prime" does not have a fixed truth value until ppp is specified.

  10. 10

    Why is the statement "For every natural number nnn, n2+n+41n^2+n+41n2+n+41 is prime" a proposition?

    Model answer

    The quantifier "for every" applies to the predicate about nnn, producing a complete statement that is either true or false.

    Explanation

    Quantifying over all allowed values converts the variable-dependent predicate into a proposition.

  11. 11

    What set is represented by the natural numbers mathbb{N} in this course?

    Model answer

    The natural numbers are mathbb{N}={0,1,2,3,dots}, so they include 000 and all nonnegative integers.

    Explanation

    For this course, 000 is explicitly included in the natural numbers.

  12. 12

    Why do checking the values n=0n=0n=0 through n=39n=39n=39 fail to prove that n2+n+41n^2+n+41n2+n+41 is prime for every natural number nnn?

    Model answer

    Checking finitely many examples cannot establish a statement quantified over all natural numbers.

    Explanation

    A universal claim requires reasoning that covers every allowed value, not merely an initial collection of examples.

  13. 13

    How does n=41n=41n=41 disprove the proposition that n2+n+41n^2+n+41n2+n+41 is prime for every natural number nnn?

    Model answer

    At n=41n=41n=41, the expression equals 41^2+41+41=41inom{43}{}, which is composite rather than prime. Thus, n=41n=41n=41 is a counterexample.

    Explanation

    A single natural number for which the required property fails is enough to disprove a universal proposition.

  14. 14

    What is a counterexample, and how is it used to disprove a universal statement?

    Model answer

    A counterexample is one instance that fails to satisfy a universal claim. Finding one counterexample disproves the claim because the claim requires the property to hold in every case.

    Explanation

    Universal statements have the logical form that all allowed instances must work, so one failure is sufficient for disproof.

  15. 15

    State Goldbach's Conjecture.

    Model answer

    Goldbach's Conjecture states that every even number greater than 222 is the sum of two prime numbers.

    Explanation

    For example, 12=7+512=7+512=7+5 and 20=17+320=17+320=17+3 express even numbers greater than 222 as sums of two primes.

  16. 16

    Why does the representation 20=9+1120=9+1120=9+11 not disprove Goldbach's Conjecture?

    Model answer

    The conjecture requires only that an even number have at least one representation as a sum of two primes. Since 20=17+320=17+320=17+3, the conjecture is not disproved.

    Explanation

    A failed attempted representation is irrelevant if another valid prime representation exists.

  17. 17

    What does the Boolean operator not AAA mean?

    Model answer

    Not AAA is true exactly when AAA is false, and it is false exactly when AAA is true.

    Explanation

    Negation reverses the truth value of a proposition.

  18. 18

    What are two alternative notations for not AAA?

    Model answer

    Not AAA may be written with a bar over AAA or with a negation symbol placed before AAA.

    Explanation

    These notations represent the same logical operation: negation.

  19. 19

    How many rows are needed in a truth table for two propositions AAA and BBB, and why?

    Model answer

    Four rows are needed because each proposition has two possible truth values, giving 22=42^2=422=4 combinations.

    Explanation

    The combinations are true-true, true-false, false-true, and false-false.

  20. 20

    When is AAA and BBB true?

    Model answer

    AAA and BBB is true only when both AAA and BBB are true.

    Explanation

    The logical AND operator requires both component propositions to hold.

  21. 21

    When is AAA or BBB false in mathematical logic?

    Model answer

    AAA or BBB is false only when both AAA and BBB are false.

    Explanation

    Mathematical OR is inclusive, so it is true when either proposition or both propositions are true.

  22. 22

    What is the difference between inclusive OR and exclusive OR?

    Model answer

    Inclusive OR is true when at least one proposition is true, including when both are true. Exclusive OR is true only when exactly one proposition is true.

    Explanation

    Exclusive OR excludes the both-true case, whereas mathematical OR includes it.

  23. 23

    What does NAND mean logically?

    Model answer

    NAND means not-AND: it is false only when both component propositions are true, and true in every other case.

    Explanation

    NAND is the negation of the conjunction AAA and BBB.

  24. 24

    Why can the word "or" in ordinary English be ambiguous when compared with mathematical OR?

    Model answer

    Ordinary English uses context to determine whether "or" permits both choices, neither choice, or exactly one choice, whereas mathematical OR has a precise inclusive meaning.

    Explanation

    Mathematical formulas define OR by its truth table, while spoken language may use OR as inclusive, exclusive, or in another context-dependent way.

  25. 25

    What should you do if the wording of a mathematical statement seems ambiguous?

    Model answer

    Ask for clarification rather than assuming an informal meaning.

    Explanation

    Mathematical language is intended to be precise, so clarification ensures that everyone uses the same interpretation.

  26. 26

    How is implication written, and how should AAA implies BBB be read aloud?

    Model answer

    Implication can be written as AightarrowBA ightarrow BAightarrowB or AextimpliesBA ext{ implies }BAextimpliesB, and it can be read as "if AAA, then BBB."

    Explanation

    The arrow notation and the phrase "if AAA, then BBB" represent the same logical operator.

  27. 27

    When is the implication AightarrowBA ightarrow BAightarrowB false?

    Model answer

    AightarrowBA ightarrow BAightarrowB is false only when AAA is true and BBB is false.

    Explanation

    An implication asserts that whenever AAA holds, BBB must also hold; the true-antecedent, false-consequent case violates that requirement.

  28. 28

    Why is a false proposition used as the premise of an implication considered to imply either a true or false proposition?

    Model answer

    When the premise AAA is false, the implication AightarrowBA ightarrow BAightarrowB is true regardless of the truth value of BBB.

    Explanation

    The only failing case for implication is true premise and false conclusion.

  29. 29

    Apply the rule "On Wednesdays, we wear pink" to explain why a person wearing pink on Tuesday does not violate the rule.

    Model answer

    The rule has the form Wednesday implies pink. On Tuesday, the premise is false, so the implication is true whether or not the person wears pink.

    Explanation

    The rule imposes a requirement only when it is Wednesday; it places no restriction on other days.

  30. 30

    What does mathematical implication not necessarily express about its two propositions?

    Model answer

    Mathematical implication does not express causality or a time sequence. It is determined only by the implication truth table.

    Explanation

    Although ordinary language may suggest that AAA causes or precedes BBB, those meanings are not part of the mathematical operator.

  31. 31

    Why can an implication be formed even when the truth values of its component propositions are not currently known?

    Model answer

    Each component is still a proposition with a definite truth value, even if that value is unknown to us. Their implication is therefore also a proposition.

    Explanation

    For example, an unresolved conjecture can be used as a proposition in a larger logical statement.

  32. 32

    Why does x<3x<3x<3 imply x<4x<4x<4?

    Model answer

    Every number less than 333 is also less than 444, so the truth of x<3x<3x<3 guarantees the truth of x<4x<4x<4.

    Explanation

    The second inequality is weaker because it permits more possible values of xxx.

  33. 33

    Distinguish the converse, inverse, and contrapositive of AightarrowBA ightarrow BAightarrowB.

    Model answer

    The converse is BightarrowAB ightarrow ABightarrowA, the inverse is egAightarrowegB eg A ightarrow eg BegAightarrowegB, and the contrapositive is egBightarrowegA eg B ightarrow eg AegBightarrowegA.

    Explanation

    The converse swaps the propositions, the inverse negates both without swapping, and the contrapositive both swaps and negates them.

  34. 34

    Which form is logically equivalent to AightarrowBA ightarrow BAightarrowB: its converse, inverse, or contrapositive?

    Model answer

    AightarrowBA ightarrow BAightarrowB is logically equivalent to its contrapositive, egBightarrowegA eg B ightarrow eg AegBightarrowegA.

    Explanation

    Both statements are false in exactly the case where AAA is true and BBB is false.

  35. 35

    What logical relationship holds between the converse and the inverse of an implication?

    Model answer

    The converse BightarrowAB ightarrow ABightarrowA and the inverse egAightarrowegB eg A ightarrow eg BegAightarrowegB are logically equivalent because they are contrapositives of one another.

    Explanation

    Although neither is generally equivalent to the original implication, the converse and inverse always share a truth table.

  36. 36

    Express AightarrowBA ightarrow BAightarrowB using only OR and NOT.

    Model answer

    AightarrowBA ightarrow BAightarrowB is equivalent to egAextorB eg A ext{ or }BegAextorB.

    Explanation

    The expression is false only when AAA is true and BBB is false, matching the implication truth table.

  37. 37

    Why is the statement "not thinking implies not existing" not equivalent to "thinking implies existing"?

    Model answer

    The first statement is the inverse of the second, while an implication is equivalent to its contrapositive, not generally to its inverse.

    Explanation

    The contrapositive of "thinking implies existing" is "not existing implies not thinking," not "not thinking implies not existing."

  38. 38

    What is a set?

    Model answer

    A set is a collection of objects called elements.

    Explanation

    Sets are used to specify which objects belong to a collection.

  39. 39

    How do sets differ from lists with respect to order and repetition?

    Model answer

    The order of elements in a set does not matter, and repeating an element does not create a new element.

    Explanation

    Thus, the sets containing 6,1,2,06,1,2,06,1,2,0 and 2,1,6,02,1,6,02,1,6,0 are equal, as are versions that write 000 twice.

  40. 40

    What are the sets mathbb{Z}, mathbb{Q}, mathbb{R}, and mathbb{C}?

    Model answer

    mathbb{Z} is the set of integers, mathbb{Q} is the set of rational numbers, mathbb{R} is the set of real numbers, and mathbb{C} is the set of complex numbers.

    Explanation

    The integers include positive, negative, and zero whole numbers; rationals are quotients of integers with nonzero denominators.

  41. 41

    What is the empty set?

    Model answer

    The empty set is a set containing no elements. It is commonly written as varnothing or as {}.

    Explanation

    Although it has zero elements, the empty set is still a legitimate mathematical object.

  42. 42

    What does xeAx e AxeA-membership notation, xextisanelementofAx ext{ is an element of }AxextisanelementofA, mean?

    Model answer

    It means that xxx is one of the elements contained directly in AAA.

    Explanation

    An object can be located inside an element of AAA without itself being an element of AAA.

  43. 43

    If B={2,3,4,varnothing}, why is 333 an element of BBB but not an element of the empty set contained in BBB?

    Model answer

    333 is listed directly as an element of BBB, while the empty set is a separate element of BBB that contains no elements.

    Explanation

    Membership is not inherited through nesting: being inside an element does not make an object an element of the outer set.

  44. 44

    What does it mean for AAA to be a subset of BBB?

    Model answer

    It means every element of AAA is also an element of BBB, although BBB may contain additional elements.

    Explanation

    Subset inclusion concerns all elements of the first set and does not require the two sets to have the same size.

  45. 45

    Why is the empty set a subset of every set?

    Model answer

    The empty set has no elements that could fail to belong to the other set, so the requirement that every element of it be included is automatically satisfied.

    Explanation

    There is no counterexample to the subset condition because there is no element in the empty set.

  46. 46

    What is the union A ilde{cup}B of two sets?

    Model answer

    The union contains every element that is in AAA, in BBB, or in both.

    Explanation

    Because set union uses inclusive OR, an element appearing in both sets is included only once.

  47. 47

    What is the intersection A ilde{cap}B of two sets?

    Model answer

    The intersection contains exactly the elements that are in both AAA and BBB.

    Explanation

    Intersection corresponds to the logical requirement that membership in both sets must hold.

  48. 48

    What is the set difference Aackslash B?

    Model answer

    Aackslash B is the set of elements that belong to AAA but do not belong to BBB.

    Explanation

    To form the difference, retain elements of AAA and remove those that are also elements of BBB.

  49. 49

    Suppose AAA contains the set {3,4} as an element and B={2,{3,4},varnothing}. Does Aackslash B remove 333 and 444 from AAA?

    Model answer

    No. The elements 333 and 444 are not directly elements of BBB; the set {3,4} is an element of BBB, so 333 and 444 remain in Aackslash B if they are directly in AAA.

    Explanation

    Set difference tests direct membership and does not remove objects merely because they occur inside a nested element.

  50. 50

    What is set-builder notation?

    Model answer

    Set-builder notation describes a set by specifying elements from a larger set that satisfy a given predicate.

    Explanation

    It has the general form “the set of elements from a domain such that a condition holds.”

  51. 51

    Interpret the set-builder expression “the set of all n ext{ in }mathbb{N} such that nnn is prime.”

    Model answer

    It denotes the subset of the natural numbers consisting only of prime numbers, such as 2,3,5,7,11,dots.

    Explanation

    The predicate “nnn is prime” filters the natural numbers and retains only those satisfying the condition.

  52. 52

    What is a tuple?

    Model answer

    A tuple is an ordered list of elements written with parentheses, and repeated elements are allowed.

    Explanation

    Unlike sets, tuples retain both the order and the number of occurrences of their elements.

  53. 53

    Why are the tuples (6,1,2,0)(6,1,2,0)(6,1,2,0) and (6,1,2,0,0)(6,1,2,0,0)(6,1,2,0,0) different?

    Model answer

    The first tuple has four elements, while the second has five because the second includes 000 twice.

    Explanation

    Tuples preserve repetitions, so adding a repeated entry changes the tuple.

  54. 54

    Why are (6,1,2,0)(6,1,2,0)(6,1,2,0) and (2,1,6,0)(2,1,6,0)(2,1,6,0) different tuples even though they contain the same elements?

    Model answer

    They have different orders, and order matters in a tuple.

    Explanation

    The same collection of entries can form different tuples when arranged in different sequences.

  55. 55

    What is an axiom?

    Model answer

    An axiom is a proposition that is assumed to be true within a particular mathematical system.

    Explanation

    Axioms provide the starting assumptions from which further propositions are logically deduced.

  56. 56

    Why must a mathematical system begin with axioms?

    Model answer

    A proof needs foundational propositions from which logical deductions can begin; these starting propositions are the axioms.

    Explanation

    Not every statement is proved from an earlier statement, so some assumptions must be declared in advance.

  57. 57

    What is another term for an axiom, especially in older mathematical writing?

    Model answer

    A postulate is another term for an axiom.

    Explanation

    Euclid, for example, described the assumptions of his geometry as postulates.

  58. 58

    State Euclid's parallel postulate.

    Model answer

    For every point ppp and line lll not containing ppp, there exists a unique line l′l'l′ through ppp that is parallel to lll.

    Explanation

    The postulate asserts both existence and uniqueness of a parallel through a point outside a given line.

  59. 59

    Why is Euclid's parallel postulate not a theorem derived from the other four Euclidean axioms?

    Model answer

    It cannot be derived from the other four because replacing it with different parallel-line assumptions produces consistent, meaningful geometries.

    Explanation

    Spherical and hyperbolic geometries demonstrate that alternative versions of the parallel postulate lead to different mathematical systems.

  60. 60

    What geometry results when the parallel postulate is replaced by the assumption that no parallel lines exist?

    Model answer

    Spherical geometry results, where the surface is a sphere, lines are great circles, and every pair of great circles intersects.

    Explanation

    Because all great circles meet, no line through a point can remain parallel to a given line.

  61. 61

    In the spherical geometry described, what are a line and a point?

    Model answer

    A line is a great circle, and a point is treated together with its antipode, the point directly opposite it on the sphere.

    Explanation

    These definitions support a geometry on a spherical surface rather than on a flat plane.

  62. 62

    What geometry results when infinitely many lines through a point are allowed to be parallel to a given line?

    Model answer

    Hyperbolic geometry results.

    Explanation

    In the described model, a line is represented by part of a circle perpendicular to the boundary, and multiple lines through the point do not intersect the given line.

  63. 63

    What does it mean for a set of axioms to be consistent?

    Model answer

    A set of axioms is consistent if it cannot prove that a false proposition is true, or equivalently, if no proposition can be both proved and disproved.

    Explanation

    Consistency preserves a meaningful distinction between truth and falsity.

  64. 64

    What is the principle of explosion?

    Model answer

    The principle of explosion is the logical principle that false implies any proposition.

    Explanation

    If a system could prove that false is true, then every proposition would become provable, making the system uninformative.

  65. 65

    What does it mean for a set of axioms to be complete?

    Model answer

    A set of axioms is complete if every true proposition can be proved from those axioms.

    Explanation

    Completeness means that the axioms are sufficient to prove all truths within the intended mathematical system.

  66. 66

    What does Gödel's Incompleteness Theorem say about systems capable of arithmetic?

    Model answer

    Any sufficiently powerful and consistent system capable of expressing addition and multiplication is incomplete; it cannot be both consistent and complete.

    Explanation

    Such a system contains true propositions that cannot be proved using its axioms.

  67. 67

    What consequence does Gödel's Incompleteness Theorem have for true mathematical statements?

    Model answer

    Some true mathematical statements may be unprovable from a given consistent set of axioms. Proving them may require adding new axioms, which creates a larger system with its own potentially unprovable truths.

    Explanation

    Incompleteness means that truth and provability cannot always coincide within one sufficiently powerful consistent system.

  68. 68

    What kinds of facts may be assumed as axioms or established results in this course?

    Model answer

    Students may generally assume facts that are familiar, simple, and broad enough to appear in standard high-school mathematics, but they should identify those facts when using them.

    Explanation

    Stating the assumed theorem or fact makes the logical basis of each proof step explicit.

1 of 68
Question 1 of 68

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent