Mathematics for Computer Science
- 68Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What is a mathematical proof?
68 questions
- 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
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
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
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
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
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
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
Is the statement p is prime a proposition when p has not been specified? Explain.
Model answer
No. It is a predicate because its truth depends on the value assigned to the variable p.
Explanation
After a specific value is substituted, such as 7 or 12, the resulting statement becomes a proposition.
- 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, "p is prime" does not have a fixed truth value until p is specified.
- 10
Why is the statement "For every natural number n, n2+n+41 is prime" a proposition?
Model answer
The quantifier "for every" applies to the predicate about n, 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
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 0 and all nonnegative integers.
Explanation
For this course, 0 is explicitly included in the natural numbers.
- 12
Why do checking the values n=0 through n=39 fail to prove that n2+n+41 is prime for every natural number n?
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
How does n=41 disprove the proposition that n2+n+41 is prime for every natural number n?
Model answer
At n=41, the expression equals 41^2+41+41=41inom{43}{}, which is composite rather than prime. Thus, n=41 is a counterexample.
Explanation
A single natural number for which the required property fails is enough to disprove a universal proposition.
- 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
State Goldbach's Conjecture.
Model answer
Goldbach's Conjecture states that every even number greater than 2 is the sum of two prime numbers.
Explanation
For example, 12=7+5 and 20=17+3 express even numbers greater than 2 as sums of two primes.
- 16
Why does the representation 20=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+3, the conjecture is not disproved.
Explanation
A failed attempted representation is irrelevant if another valid prime representation exists.
- 17
What does the Boolean operator not A mean?
Model answer
Not A is true exactly when A is false, and it is false exactly when A is true.
Explanation
Negation reverses the truth value of a proposition.
- 18
What are two alternative notations for not A?
Model answer
Not A may be written with a bar over A or with a negation symbol placed before A.
Explanation
These notations represent the same logical operation: negation.
- 19
How many rows are needed in a truth table for two propositions A and B, and why?
Model answer
Four rows are needed because each proposition has two possible truth values, giving 22=4 combinations.
Explanation
The combinations are true-true, true-false, false-true, and false-false.
- 20
When is A and B true?
Model answer
A and B is true only when both A and B are true.
Explanation
The logical AND operator requires both component propositions to hold.
- 21
When is A or B false in mathematical logic?
Model answer
A or B is false only when both A and B are false.
Explanation
Mathematical OR is inclusive, so it is true when either proposition or both propositions are true.
- 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
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 A and B.
- 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
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
How is implication written, and how should A implies B be read aloud?
Model answer
Implication can be written as AightarrowB or AextimpliesB, and it can be read as "if A, then B."
Explanation
The arrow notation and the phrase "if A, then B" represent the same logical operator.
- 27
When is the implication AightarrowB false?
Model answer
AightarrowB is false only when A is true and B is false.
Explanation
An implication asserts that whenever A holds, B must also hold; the true-antecedent, false-consequent case violates that requirement.
- 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 A is false, the implication AightarrowB is true regardless of the truth value of B.
Explanation
The only failing case for implication is true premise and false conclusion.
- 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
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 A causes or precedes B, those meanings are not part of the mathematical operator.
- 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
Why does x<3 imply x<4?
Model answer
Every number less than 3 is also less than 4, so the truth of x<3 guarantees the truth of x<4.
Explanation
The second inequality is weaker because it permits more possible values of x.
- 33
Distinguish the converse, inverse, and contrapositive of AightarrowB.
Model answer
The converse is BightarrowA, the inverse is egAightarrowegB, and the contrapositive is egBightarrowegA.
Explanation
The converse swaps the propositions, the inverse negates both without swapping, and the contrapositive both swaps and negates them.
- 34
Which form is logically equivalent to AightarrowB: its converse, inverse, or contrapositive?
Model answer
AightarrowB is logically equivalent to its contrapositive, egBightarrowegA.
Explanation
Both statements are false in exactly the case where A is true and B is false.
- 35
What logical relationship holds between the converse and the inverse of an implication?
Model answer
The converse BightarrowA and the inverse egAightarrowegB 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
Express AightarrowB using only OR and NOT.
Model answer
AightarrowB is equivalent to egAextorB.
Explanation
The expression is false only when A is true and B is false, matching the implication truth table.
- 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
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
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,0 and 2,1,6,0 are equal, as are versions that write 0 twice.
- 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
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
What does xeA-membership notation, xextisanelementofA, mean?
Model answer
It means that x is one of the elements contained directly in A.
Explanation
An object can be located inside an element of A without itself being an element of A.
- 43
If B={2,3,4,varnothing}, why is 3 an element of B but not an element of the empty set contained in B?
Model answer
3 is listed directly as an element of B, while the empty set is a separate element of B 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
What does it mean for A to be a subset of B?
Model answer
It means every element of A is also an element of B, although B 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
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
What is the union A ilde{cup}B of two sets?
Model answer
The union contains every element that is in A, in B, or in both.
Explanation
Because set union uses inclusive OR, an element appearing in both sets is included only once.
- 47
What is the intersection A ilde{cap}B of two sets?
Model answer
The intersection contains exactly the elements that are in both A and B.
Explanation
Intersection corresponds to the logical requirement that membership in both sets must hold.
- 48
What is the set difference Aackslash B?
Model answer
Aackslash B is the set of elements that belong to A but do not belong to B.
Explanation
To form the difference, retain elements of A and remove those that are also elements of B.
- 49
Suppose A contains the set {3,4} as an element and B={2,{3,4},varnothing}. Does Aackslash B remove 3 and 4 from A?
Model answer
No. The elements 3 and 4 are not directly elements of B; the set {3,4} is an element of B, so 3 and 4 remain in Aackslash B if they are directly in A.
Explanation
Set difference tests direct membership and does not remove objects merely because they occur inside a nested element.
- 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
Interpret the set-builder expression “the set of all n ext{ in }mathbb{N} such that n 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 “n is prime” filters the natural numbers and retains only those satisfying the condition.
- 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
Why are the tuples (6,1,2,0) and (6,1,2,0,0) different?
Model answer
The first tuple has four elements, while the second has five because the second includes 0 twice.
Explanation
Tuples preserve repetitions, so adding a repeated entry changes the tuple.
- 54
Why are (6,1,2,0) and (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
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
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
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
State Euclid's parallel postulate.
Model answer
For every point p and line l not containing p, there exists a unique line l′ through p that is parallel to l.
Explanation
The postulate asserts both existence and uniqueness of a parallel through a point outside a given line.
- 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
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
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
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
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
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
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
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
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
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.

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