- Information
- AI Chat
This is a Premium Document. Some documents on Studocu are Premium. Upgrade to Premium to unlock it.
Was this document helpful?
This is a Premium Document. Some documents on Studocu are Premium. Upgrade to Premium to unlock it.
Propositional Logic Discrete Notes for Fall 2021
Course: Discrete Mathematics And Probability Theory (COMPSCI 70)
48 Documents
Students shared 48 documents in this course
University: University of California, Berkeley
Was this document helpful?
This is a preview
Do you want full access? Go Premium and unlock all 9 pages
Access to all documents
Get Unlimited Downloads
Improve your grades
Already Premium?
EECS 70 Discrete Mathematics and Probability Theory
Fall 2021 Note 2
1 Proofs
In science, evidence is accumulated through experiments to assert the validity of a statement. Mathematics,
in contrast, aims for a more absolute level of certainty. A mathematical proof provides a means for guar-
anteeing that a statement is true. Proofs are very powerful and are in some ways like computer programs.
Indeed, there is a deep historic link between these two concepts that we will touch upon in this course —
the invention of computers is intimately tied to the exploration of the idea of a mathematical proof about a
century ago.
So what types of “computer science-related” statements might we want to prove? Here are two examples:
(1) Does program Phalt on every input? (2) Does program Pcorrectly compute the function f(x), i.e. does
it output f(x)on input x, for every x? Note that each of these statements refers to the behavior of a program
on infinitely many inputs. For such a statement, we can try to provide evidence that it is true by testing that it
holds for many values of x. Unfortunately, this does not guarantee that the statement holds for the infinitely
many values of x that we did not test! To be certain that the statement is true, we must provide a rigorous
proof.
So what is a proof? A proof is a finite sequence of steps, called logical deductions, which establishes the
truth of a desired statement. In particular, the power of a proof lies in the fact that using finite means, we
can guarantee the truth of a statement with infinitely many cases.
More specifically, a proof is typically structured as follows. Recall that there are certain statements, called
axioms or postulates, that we accept without proof (we have to start somewhere). Starting from these axioms,
a proof consists of a sequence of logical deductions: Simple steps that apply the rules of logic. This results in
a sequence of statements where each successive statement is necessarily true if the previous statements were
true. This property is enforced by the rules of logic: Each statement follows from the previous statements.
These rules of logic are a formal distillation of laws that were thought to underlie human thinking. They
play a central role in the design of computers, starting with digital logic design or the fundamental principles
behind the design of digital circuits. At a more advanced level, these rules of logic play an indispensable
role in artificial intelligence, one of whose ultimate goals is to emulate human thought on a computer.
Organization of this note. We begin in Section 2 by setting notation and stating basic mathematical facts
used throughout this note. We next introduce four different proof techniques: Direct proof (Section 3), proof
by contraposition (Section 4), proof by contradiction (Section 5), and proof by cases (Section 6). We then
briefly discuss common pitfalls in and stylistic advice for proofs (Sections 7 and 8, respectively). We close
with exercises in Section 9.
2 Notation and basic facts
In this note, we use the following notation and basic mathematical facts. Let Zdenote the set of integers,
i.e. Z={...,−2,−1,0,1,2,...}, and Nthe set of natural numbers N={0,1,2,...}. Recall that the sum or
product of two integers is an integer, i.e. the set of integers is closed under addition and multiplication. The
EECS 70, Fall 2021, Note 2 1
Why is this page out of focus?
This is a Premium document. Become Premium to read the whole document.
Why is this page out of focus?
This is a Premium document. Become Premium to read the whole document.
Why is this page out of focus?
This is a Premium document. Become Premium to read the whole document.