Docsity

MIT Course Notes: Proofs in Mathematics for Computer Science - Prof. Alexandra Boldyreva, Study notes of Computer Science

Toggle sidebar
bg1
Massachusetts Institute of Technology Course Notes 1
6.042J/18.062J, Fall ’02: Mathematics for Computer Science
Professor Albert Meyer and Dr. Radhika Nagpal
Proofs
1 What is a Proof?
A proof is a method of ascertaining truth. There are many ways to do this:
Jury Trial Truth is ascertained by twelve people selected at random.
Word of God Truth is ascertained by communication with God, perhaps via a third party.
Word of Boss Truth is ascertained from someone with whom it is unwise to disagree.
Experimental Science The truth is guessed and the hypothesis is confirmed or refuted by experi-
ments.
Sampling The truth is obtained by statistical analysis of many bits of evidence. For example,
public opinion is obtained by polling only a representative sample.
Inner Conviction/Mysticism ā€œMy program is perfect. I know this to be true.ā€
ā€œI don’t see why not...ā€ Claim something is true and then shift the burden of proof to anyone
who disagrees with you.
ā€œCogito ergo sumā€ Proof by reasoning about undefined terms.
This Latin quote translates as ā€œI think, therefore I am.ā€ It comes from the beginning of a
famous essay by the 17th century Mathematician/Philospher, Rene
Ā“ Descartes. It may be one
of the most famous quotes in the world: do a web search on the phrase and you will be
flooded with hits.
Deducing your existence from the fact that you’re thinking about your existence sounds like
a pretty cool starting axiom. But it ain’t Math. In fact, Descartes goes on shortly to conclude
that there is an infinitely beneficent God.
Mathematics also has a specific notion of ā€œproofā€ or way of ascertaining truth.
Definition. A formal proof of a proposition is a chain of logical deductions leading to the proposition
from a base set of axioms.
The three key ideas in this definition are highlighted: proposition, logical deduction, and axiom.
Each of these terms is discussed in a section below.
Copyright© 2002, Prof. Albert R. Meyer.
pf3
pf4
pf5

Partial preview of the text

Download MIT Course Notes: Proofs in Mathematics for Computer Science - Prof. Alexandra Boldyreva and more Study notes Computer Science in PDF only on Docsity!

Massachusetts Institute of Technology Course Notes 1 6.042J/18.062J, Fall ’02: Mathematics for Computer Science Professor Albert Meyer and Dr. Radhika Nagpal

Proofs

1 What is a Proof?

A proof is a method of ascertaining truth. There are many ways to do this:

Jury Trial Truth is ascertained by twelve people selected at random.

Word of God Truth is ascertained by communication with God, perhaps via a third party.

Word of Boss Truth is ascertained from someone with whom it is unwise to disagree.

Experimental Science The truth is guessed and the hypothesis is confirmed or refuted by experi ments.

Sampling The truth is obtained by statistical analysis of many bits of evidence. For example, public opinion is obtained by polling only a representative sample.

Inner Conviction/Mysticism ā€œMy program is perfect. I know this to be true.ā€

ā€œI don’t see why not...ā€ Claim something is true and then shift the burden of proof to anyone who disagrees with you.

ā€œCogito ergo sumā€ Proof by reasoning about undefined terms.

This Latin quote translates as ā€œI think, therefore I am.ā€ It comes from the beginning of a famous essay by the 17th century Mathematician/Philospher, ReneĀ“ Descartes. It may be one of the most famous quotes in the world: do a web search on the phrase and you will be flooded with hits. Deducing your existence from the fact that you’re thinking about your existence sounds like a pretty cool starting axiom. But it ain’t Math. In fact, Descartes goes on shortly to conclude that there is an infinitely beneficent God.

Mathematics also has a specific notion of ā€œproofā€ or way of ascertaining truth.

Definition. A formal proof of a proposition is a chain of logical deductions leading to the proposition from a base set of axioms.

The three key ideas in this definition are highlighted: proposition, logical deduction, and axiom. Each of these terms is discussed in a section below.

Copyright Ā© 2002, Prof. Albert R. Meyer.

2 Propositions

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

This definition sounds very general, but it does exclude sentences such as, ā€œWherefore art thou Romeo?ā€ and ā€œGive me an A!ā€.

Proposition 2.1. 2 + 3 = 5.

This proposition is true.

Proposition 2.2. Let p(n) ::= n^2 + n + 41.

āˆ€n ∈ N p(n) is a prime number.

The symbol āˆ€ is read ā€œfor allā€. The symbol N stands for the set of natural numbers, which are 0, 1, 2, 3,... ; (ask your TA for the complete list). A prime is a natural number greater than one that is not divisible by any other natural number other than 1 and itself, for example, 2, 3, 5, 7, 11,....

Let’s try some numerical experimentation to check this proposition: p(0) = 41 which is prime. p(1) = 43 which is prime. p(2) = 47 which is prime. p(3) = 53 which is prime.... p(20) = 461 which is prime. Hmmm, starts to look like a plausible claim. In fact we can keep checking through n = 39 and confirm that p(39) = 1601 is prime.

But if n = 40 , then p(n) = 402 + 40 + 41 = 41 Ā· 41 , which is not prime. Since the expression is not prime for all n, the proposition is false! In fact, it’s not hard to show that no nonconstant polynomial can map all natural numbers into prime numbers. The point is in general you can’t check a claim about an infinite set by checking a finite set of its elements, no matter how large the finite set. Here are two even more extreme examples:

Proposition 2.3. a^4 + b^4 + c^4 = d^4 has no solution when a, b, c, d are positive integers. In logical notation, letting Z+^ denote the positive integers, we have

āˆ€a ∈ Z+āˆ€b ∈ Z+āˆ€c ∈ Z+āˆ€d ∈ Z+^ a^4 + b^4 + c^4 ļæ½= d^4.

Strings of āˆ€ā€™s like this are usually abbreviated for easier reading:

āˆ€a, b, c, d ∈ Z+^ a^4 + b^4 + c^4 ļæ½= d^4.

Euler (pronounced ā€œoilerā€) conjectured this 1769. But the proposition was proven false 218 years later by Noam Elkies at the liberal arts school up Mass Ave. He found the solution a = 95800 , b = 217519 , c = 414560 , d = 422481.

Proposition 2.4. 313(x^3 + y^3 ) = z^3 has no solution when x, y, z ∈ N.

This proposition is also false, but the smallest counterexample has more than 1000 digits!

Proposition 2.5. Every map can be colored with 4 colors so that adjacent^1 regions have different colors. (^1) Two regions are adjacent only when they share a boundary segment of positive length. They are not considered to be adjacent if their boundaries meet only at a few points.

This is an absolute must. One would not want to spend years proving a proposition true only to have it proven false the next day! Proofs would become meaningless if axioms were inconsistent.

Definition. A set of axioms is complete if it can be used to prove or disprove every proposition.

Completeness is an attractive property; we would like to believe that any proposition could be proven or disproven with sufficient work and insight.

Surprisingly, making a complete, consistent set of axioms is not easy. Bertrand Russell and Alfred Whitehead tried during their entire careers to find such axioms for basic arithmetic and failed. Then Kurt G ĀØodel proved that no set of axioms can be both consistent and complete! This means that any set of consistent axioms (an absolute must) can not be complete; there will be true state ments that can not be proven. For example, it might be that Goldbach’s conjecture is true, but there is no proof!

In 6.042 we will not worry about the precise set of axioms underpinning our proofs. The require ments are only that you be upfront about what you are assuming, that the background knowledge of Math that you assume is self-consistent, and that you do not try to avoid homework and exam problems by declaring everything an axiom!

4 Logical Deductions

Logical deductions or inference rules are used to combine axioms and true propositions to construct more true propositions.

A fundamental inference rule is modus ponens. This rule says that if p is true and p āˆ’ā†’ q is true, then q is true. The expression p āˆ’ā†’ q is read ā€œp implies qā€ or ā€œif p, then q.ā€ A truth table for āˆ’ā†’ is shown below:

p q p → q T T T T F F F T T F F T

Inference rules are sometimes written in a funny notation. For example, modus ponens is written:

Rule.

p, p āˆ’ā†’ q q

When the statements above the line, called the antecedents, are true, then we can infer that the statement below the line, called the conclusion or the consequent, is also true. There are many other natural inference rules, for example:

Rule.

p āˆ’ā†’ q, q āˆ’ā†’ r p āˆ’ā†’ r

Rule.

p āˆ’ā†’ q, ¬q ¬p

Rosen describes additional standardized inference rules useful in proofs. As with axioms, we will not be too formal about the set of legal inference rules. Each step in a proof should be clear and ā€œlogicalā€; in particular, you should state what previously proved facts are used to derive each new conclusion.

5 Good Proofs and Bad Proofs

An estimated 1/3 of all mathematical papers contain errors. Even some of the world’s most fa mous mathematicians have botched proofs. Here are some famous examples.

  • Andrew Wiles recently announced a proof of Fermat’s Last Theorem. It was several hundred pages long. It took mathematicians months of hard work to discover it had a fatal flaw (so Wiles produced another proof of several hundred pages; this one seems to have convinced people).
  • Gauss’s 1799 Ph.D. thesis is usually referred to as being the first rigorous proof of the Funda mental Theorem of Algebra (every polynomial has a zero over the complex numbers). But it contains quotes like

ā€If a branch of an algebraic curve enters a bounded region, it must necessarily leave it again. ... Nobody, to my knowledge, has ever doubted [this fact]. But if anybody desires it, then on another occasion I intend to give a demonstration which will leave no doubt.ā€

Fields Medalist Steve Smale writes about this, calling it an ā€immense gapā€ in the proof that was not filled in until 1920, more than a hundred years later.

  • In 1900 Poincare carelessly claimed a certain very simple topological characterization of the 3-dimensional sphere. Later realizing it was not so obvious, he demoted the claim to the status of a ā€conjectureā€ in 1904. The Poincare Conjecture is now one of the biggest open questions in mathematics (two Fields Medals have been given out for partial progress on it).

Here are some of the characteristics of a good proof:

  • It is clear and correct!
  • It has a nice structure, like a good program. It is broken up into separate parts that define and prove key intermediate properties. This makes it easy to understand the reason the whole thing works. It also makes it more likely that pieces can be reused.
  • The pieces are general and abstract. This avoids the clutter of unnecessary hypotheses, use- less restrictions, etc. Again, the analogy to programming holds; a subroutine should be as generally applicable as possible.