






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







A computer language (Perl) with commands that compute logical expressions. Another language (logic) with statements that describe preconditions and postconditions of commands in the computer language. How can we reason faster? What can we reason about? So far, our concept of proof is laborious: enumerate possibilities. So far, we have Proving yourself Docsity.com
Mathematicians are often thought of as sitting in quiet rooms working alone on proofs no one else will read. In fact, proof is really a social transaction. Proof is a really efficient way to communicate the correctness of a claim to someone else. In this class, you will prove things to convince me that they're true. In research, one proves things in order to convince other researchers of a basic fact. Proof as a social activity Docsity.com
Suppositions: what we assume to be true. Consequences: what is true as a result of what we suppose. A theorem, lemma, or corollary always has a specific format: Preconditions: what we assume is true before a statement. Postconditions: what is true afterward, if the preconditions are true. Note the similarity to programs with Stating a theorem Docsity.com
equivalence "always" holds. So far, our concept of truth has been invariant. If preconditions hold, then postconditions hold. Today, our concept of truth becomes conditional This is the definition of program correctness. Changing gears Docsity.com
Proof technique #1 (enumeration): If all possibilities for truth values of propositions in a statement lead to a true result, then the statement is true. E.g., for all truth values of p and q, so we conclude that Enumeration Docsity.com
Some important equivalences Docsity.com
In the preceding, note that I applied DeMorgan's law to to get and treated an expression of propositions as a proposition Subtleties of substitution Subtleties of substitution Docsity.com