content/methods/proofs/proofs.tex
1% Part: methods2% Chapter: proofs34\documentclass[../../../include/open-logic-section]{subfiles}56\begin{document}78\olchapter{mth}{prf}{Proofs}910\olimport{introduction}1112\olimport{starting-proofs}1314\olimport{using-definitions}1516\olimport{inference-patterns}1718\olimport{example-1}1920\olimport{example-2}2122\olimport{proof-by-contradiction}2324\olimport{reading-proofs}2526\olimport{cant-do-it}2728\olimport{resources}2930\OLEndChapterHook3132\end{document}
content/methods/proofs/introduction.tex
1% Part: methods2% Chapter: proofs3% Section: introduction45\documentclass[../../../include/open-logic-section]{subfiles}67\begin{document}89\olfileid{mth}{prf}{int}1011\olsection{Introduction}1213Based on your experiences in introductory logic, you might be14comfortable with !!a{derivation} system---probably a natural deduction or15Fitch style !!{derivation} system, or perhaps a proof-tree system. You probably16remember doing proofs in these systems, either proving !!a{formula}17or show that a given argument is valid. In order to do this, you18applied the rules of the system until you got the desired end19result. In reasoning \emph{about} logic, we also prove things, but in20most cases we are not using !!a{derivation} system. In fact, most of the21proofs we consider are done in English (perhaps, with some symbolic22language thrown in) rather than entirely in the language of23first-order logic. When constructing such proofs, you might at first24be at a loss---how do I prove something without !!a{derivation} system? How25do I start? How do I know if my proof is correct?2627Before attempting a proof, it's important to know what a proof is and28how to construct one. As implied by the name, a \emph{proof} is meant29to show that something is true. You might think of this in terms of a30dialogue---someone asks you if something is true, say, if every prime31other than two is an odd number. To answer ``yes'' is not enough; they32might want to know \emph{why}. In this case, you'd give them a proof.3334In everyday discourse, it might be enough to gesture at an answer, or35give an incomplete answer. In logic and mathematics, however, we want36rigorous proof---we want to show that something is true beyond \emph{any}37doubt. This means that every step in our proof must be justified, and38the justification must be cogent (i.e., the assumption you're using is39actually assumed in the statement of the theorem you're proving, the40definitions you apply must be correctly applied, the justifications41appealed to must be correct inferences, etc.).4243Usually, we're proving some statement. We call the statements we're44proving by various names: propositions, theorems, lemmas, or45corollaries. A proposition is a basic proof-worthy statement:46important enough to record, but perhaps not particularly deep nor47applied often. A theorem is a significant, important proposition. Its48proof often is broken into several steps, and sometimes it is named49after the person who first proved it (e.g., Cantor's Theorem, the50L\"owenheim--Skolem theorem) or after the fact it concerns (e.g., the51completeness theorem). A lemma is a proposition or theorem that is52used in the proof of a more important result. Confusingly,53sometimes lemmas are important results in themselves, and also named54after the person who introduced them (e.g., Zorn's Lemma). A corollary55is a result that easily follows from another one.5657A statement to be proved often contains assumptions that clarify58which kinds of things we're proving something about. It might begin59with ``Let $!A$ be !!a{formula} of the form $!B \lif !C$'' or60``Suppose $\Gamma \Proves !A$'' or something of the sort. These are61\emph{hypotheses} of the proposition, theorem, or lemma, and you may62assume these to be true in your proof. They restrict what we're63proving, and also introduce some names for the objects we're64talking about. For instance, if your proposition begins with ``Let65$!A$ be !!a{formula} of the form $!B \lif !C$,'' you're proving66something about all formulas of a certain sort only (namely,67conditionals), and it's understood that $!B \lif !C$ is an arbitrary68conditional that your proof will talk about.6970\end{document}
content/methods/proofs/starting-proofs.tex
1% Part: methods2% Chapter: proofs3% Section: starting-proofs45\documentclass[../../../include/open-logic-section]{subfiles}67\begin{document}89\olfileid{mth}{prf}{str}1011\olsection{Starting a Proof}1213But where do you even start?1415You've been given something to prove, so this should be the last thing that16is mentioned in the proof (you can, obviously, \emph{announce} that you're17going to prove it at the beginning, but you don't want to use it as an18assumption). Write what you are trying to prove at the bottom of a fresh19sheet of paper---this way you don't lose sight of your goal.2021Next, you may have some assumptions that you are able to use (this22will be made clearer when we talk about the \emph{type} of proof you23are doing in the next section). Write these at the top of the page and24make sure to flag that they are assumptions (i.e., if you are assuming25$p$, write ``assume that $p$,'' or ``suppose that $p$''). Finally,26there might be some definitions in the question that you need to know.27You might be told to use a specific definition, or there might be28various definitions in the assumptions or conclusion that you are29working towards. \emph{Write these down and ensure that you understand30what they mean.}3132How you set up your proof will also be dependent upon the form of the33question. The next section provides details on how to set up your proof34based on the type of sentence.3536\end{document}
content/methods/proofs/using-definitions.tex
1% Part: methods2% Chapter: proofs3% Section: using-definitions45\documentclass[../../../include/open-logic-section]{subfiles}67\begin{document}89\olfileid{mod}{prf}{def}1011\olsection{Using Definitions}1213We mentioned that you must be familiar with all definitions that may14be used in the proof, and that you can properly apply them. This is a15really important point, and it is worth looking at in a bit more16detail. Definitions are used to abbreviate properties and relations so17we can talk about them more succinctly. The introduced abbreviation is18called the \emph{definiendum}, and what it abbreviates is the19\emph{definiens}. In proofs, we often have to go back to how the20definiendum was introduced, because we have to exploit the logical21structure of the definiens (the long version of which the defined term22is the abbreviation) to get through our proof. By unpacking23definitions, you're ensuring that you're getting to the heart of where24the logical action is.2526We'll start with an example. Suppose you want to prove the following:2728\begin{prop}29For any sets $A$ and $B$, $A \cup B = B \cup A$.30\end{prop}3132In order to even start the proof, we need to know what it means for33two sets to be identical; i.e., we need to know what the ``$=$'' in34that equation means for sets. Sets are defined to be identical35whenever they have the same !!{element}s. So the definition we have36to unpack is:3738\begin{defn}39Sets $A$ and $B$ are \emph{identical}, $A = B$, iff every !!{element}40of~$A$ is !!a{element} of~$B$, and vice versa.41\end{defn}4243This definition uses $A$ and~$B$ as placeholders for arbitrary44sets. What it defines---the \emph{definiendum}---is the expression45``$A = B$'' by giving the condition under which $A = B$ is true. This46condition---``every !!{element} of~$A$ is !!a{element} of~$B$, and47vice versa''---is the \emph{definiens}.\footnote{In this particular48 case---and very confusingly!---when $A = B$, the sets $A$ and $B$49 are just one and the same set, even though we use different letters50 for it on the left and the right side. But the ways in which that51 set is picked out may be different, and that makes the definition52 non-trivial.} The definition specifies that $A = B$ is true if, and53only if (we abbreviate this to ``iff'') the condition holds.5455When you apply the definition, you have to match the $A$ and $B$ in56the definition to the case you're dealing with. In our case, it means57that in order for $A \cup B = B \cup A$ to be true, each $z \in A \cup58B$ must also be in $B \cup A$, and vice versa. The expression $A \cup59B$ in the proposition plays the role of~$A$ in the definition, and $B60\cup A$ that of~$B$. Since $A$ and $B$ are used both in the definition61and in the statement of the proposition we're proving, but in62different uses, you have to be careful to make sure you don't mix up63the two. For instance, it would be a mistake to think that you could64prove the proposition by showing that every !!{element} of~$A$ is65!!a{element} of~$B$, and vice versa---that would show that $A = B$,66not that $A \cup B = B \cup A$. (Also, since $A$ and $B$ may be any67two sets, you won't get very far, because if nothing is assumed about68$A$ and~$B$ they may well be different sets.)6970Within the proof we are dealing with set-theoretic notions such as71union, and so we must also know the meanings of the symbol $\cup$ in72order to understand how the proof should proceed. And sometimes,73unpacking the definition gives rise to further definitions to74unpack. For instance, $A \cup B$ is defined as $\Setabs{z}{z \in A75 \text{ or } z \in B}$. So if you want to prove that $x \in A \cup76B$, unpacking the definition of $\cup$ tells you that you have to77prove $x \in \Setabs{z}{z \in A \text{ or } z \in B}$. Now you also78have to remember that $x \in \Setabs{z}{\dots z\dots}$ iff $\dots79x\dots$. So, further unpacking the definition of the80$\Setabs{z}{\dots z \dots}$ notation, what you have to show is: $x \in81A$ or $x \in B$. So, ``every !!{element} of $A \cup B$ is also82!!a{element} of $B \cup A$'' really means: ``for every $x$, if $x \in83A$ or $x \in B$, then $x \in B$ or $x \in A$.'' If we fully84unpack the definitions in the proposition, we see that what we have to85show is this:8687\begin{prop}88For any sets $A$ and $B$: (a) for every $x$, if $x \in A$ or $x \in89B$, then $x \in B$ or $x \in A$, and (b) for every $x$, if $x \in B$90or $x \in A$, then $x \in A$ or $x \in B$.91\end{prop}9293What's important is that unpacking definitions is a necessary part of94constructing a proof. Properly doing it is sometimes difficult: you95must be careful to distinguish and match the variables in the96definition and the terms in the claim you're proving. In order to be97successful, you must know what the question is asking and what all the98terms used in the question mean---you will often need to unpack more99than one definition. In simple proofs such as the ones below, the100solution follows almost immediately from the definitions101themselves. Of course, it won't always be this simple.102103\begin{prob}104Suppose you are asked to prove that $A \cap B \neq \emptyset$. Unpack105all the definitions occurring here, i.e., restate this in a way that106does not mention ``$\cap$'', ``='', or ``$\emptyset$''.107\end{prob}108109\end{document}
content/methods/proofs/inference-patterns.tex
1% Part: methods2% Chapter: proofs3% Section: inference-patterns45\documentclass[../../../include/open-logic-section]{subfiles}67\begin{document}89\olfileid{mth}{prf}{pat}1011\olsection{Inference Patterns}1213Proofs are composed of individual inferences. When we make an14inference, we typically indicate that by using a word like ``so,''15``thus,'' or ``therefore.'' The inference often relies on one or two16facts we already have available in our proof---it may be something we17have assumed, or something that we've concluded by an inference18already. To be clear, we may label these things, and in the inference19we indicate what other statements we're using in the inference. An20inference will often also contain an explanation of \emph{why} our new21conclusion follows from the things that come before it. There are22some common patterns of inference that are used very often in proofs;23we'll go through some below. Some patterns of inference, like proofs24by induction, are more involved (and will be discussed later).2526We've already discussed one pattern of inference: unpacking, or27applying, a definition. When we unpack a definition, we just restate28something that involves the definiendum by using the definiens. For29instance, suppose that we have already established in the course of a30proof that $D = E$ (a). Then we may apply the definition of $=$ for sets31and infer: ``Thus, by definition from (a), every !!{element}32of~$D$ is !!a{element} of~$E$ and vice versa.''3334Somewhat confusingly, we often do not write the justification of an35inference when we actually make it, but before. Suppose we haven't36already proved that $D = E$, but we want to. If $D = E$ is the37conclusion we aim for, then we can restate this aim also by applying38the definition: to prove $D = E$ we have to prove that every39!!{element} of~$D$ is !!a{element} of~$E$ and vice versa. So our40proof will have the form: (a) prove that every !!{element} of~$D$ is41!!a{element} of~$E$; (b) every !!{element} of~$E$ is !!a{element}42of~$D$; (c) therefore, from (a) and (b) by definition of $=$, $D = E$.43But we would usually not write it this way. Instead we might write44something like,45\begin{quote}46We want to show $D = E$. By definition of~$=$, this amounts to showing47that every !!{element} of~$D$ is !!a{element} of~$E$ and vice48versa.4950(a) \dots (a proof that every !!{element} of~$D$ is !!a{element}51of~$E$) \dots5253(b) \dots (a proof that every !!{element}54of~$E$ is !!a{element} of~$D$) \dots55\end{quote}5657\subsection{Using a Conjunction}5859Perhaps the simplest inference pattern is that of drawing as60conclusion one of the conjuncts of a conjunction. In other words: if61we have assumed or already proved that $p$ and~$q$, then we're62entitled to infer that~$p$ (and also that~$q$). This is such a basic63inference that it is often not mentioned. For instance, once we've64unpacked the definition of $D = E$ we've established that every65!!{element} of~$D$ is !!a{element} of~$E$ and vice versa. From this66we can conclude that every !!{element} of~$E$ is !!a{element} of~$D$67(that's the ``vice versa'' part). 6869\subsection{Proving a Conjunction}7071Sometimes what you'll be asked to prove will have the form of a72conjunction; you will be asked to ``prove $p$ and $q$.'' In this case,73you simply have to do two things: prove $p$, and then prove $q$. You74could divide your proof into two sections, and for clarity, label75them. When you're making your first notes, you might write ``(1) Prove76$p$'' at the top of the page, and ``(2) Prove $q$'' in the middle of77the page. (Of course, you might not be explicitly asked to prove a78conjunction but find that your proof requires that you prove a79conjunction. For instance, if you're asked to prove that $D = E$ you80will find that, after unpacking the definition of~$=$, you have to81prove: every !!{element} of~$D$ is !!a{element} of~$E$82\emph{and} every !!{element} of~$E$ is !!a{element} of~$D$).8384\subsection{Proving a Disjunction}8586When what you are proving takes the form of a disjunction (i.e., it is87an statement of the form ``$p$ or $q$''), it is enough to show that88one of the disjuncts is true. However, it basically never happens89that either disjunct just follows from the assumptions of your90theorem. More often, the assumptions of your theorem are themselves91disjunctive, or you're showing that all things of a certain kind have92one of two properties, but some of the things have the one and others93have the other property. This is where proof by cases is94useful (see below).9596\subsection{Conditional Proof}9798Many theorems you will encounter are in conditional form (i.e., show99that if $p$ holds, then $q$ is also true). These cases are nice and100easy to set up---simply assume the antecedent of the conditional (in101this case, $p$) and prove the conclusion~$q$ from it. So if your102theorem reads, ``If $p$ then $q$,'' you start your proof with ``assume103$p$'' and at the end you should have proved~$q$.104105Conditionals may be stated in different ways. So instead of ``If $p$106then $q$,'' a theorem may state that ``$p$ only if $q$,'' ``$q$ if107$p$,'' or ``$q$, provided $p$.'' These all mean the same and require108assuming $p$ and proving~$q$ from that assumption. Recall that a109biconditional (``$p$ if and only if (iff) $q$'') is really two110conditionals put together: if $p$ then $q$, and if $q$ then~$p$. All111you have to do, then, is two instances of conditional proof: one for112the first conditional and another one for the second. Sometimes,113however, it is possible to prove an ``iff'' statement by chaining114together a bunch of other ``iff'' statements so that you start with115``$p$'' an end with ``$q$''---but in that case you have to make sure116that each step really is an ``iff.''117118\subsection{Universal Claims}119120Using a universal claim is simple: if something is true for anything,121it's true for each particular thing. So if, say, the hypothesis of122your proof is $A \subseteq B$, that means (unpacking the definition123of~$\subseteq$), that, for every $x \in A$, $x \in B$. Thus, if you124already know that $z \in A$, you can conclude $z \in B$.125126Proving a universal claim may seem a little bit tricky. Usually these127statements take the following form: ``If $x$ has~$P$, then it128has~$Q$'' or ``All $P$s are $Q$s.'' Of course, it might not fit this129form perfectly, and it takes a bit of practice to figure out what130you're asked to prove exactly. But: we often have to prove that all objects131with some property have a certain other property.132133The way to prove a universal claim is to introduce names or variables,134for the things that have the one property and then show that they also135have the other property. We might put this by saying that to prove136something for \emph{all}~$P$s you have to prove it for an137\emph{arbitrary}~$P$. And the name introduced is a name for an138arbitrary~$P$. We typically use single letters as these names for139arbitrary things, and the letters usually follow conventions: e.g., we140use $n$ for natural numbers, $!A$ for !!{formula}s, $A$ for sets, $f$141for functions, etc.142143The trick is to maintain generality throughout the proof. You start by144assuming that an arbitrary object (``$x$'') has the property~$P$, and145show (based only on definitions or what you are allowed to assume)146that $x$ has the property~$Q$. Because you have not stipulated what147$x$ is specifically, other that it has the property $P$, then you can148assert that everything with $P$ has the property~$Q$. In short, $x$ is a149stand-in for \emph{all} things with property~$P$.150151\begin{prop}152 For all sets $A$ and $B$, $A \subseteq A \cup B$.153\end{prop}154155\begin{proof}156 Let $A$ and $B$ be arbitrary sets. We want to show that $A157 \subseteq A \cup B$. By definition of $\subseteq$, this amounts to:158 for every $x$, if $x \in A$ then $x \in A \cup B$. So let $x \in A$159 be an arbitrary !!{element} of~$A$. We have to show that $x \in A160 \cup B$. Since $x \in A$, $x \in A$ or $x \in B$. Thus, $x \in161 \Setabs{x}{x \in A \lor x \in B}$. But that, by definition of $\cup162 $, means $x \in A \cup B$.163\end{proof}164165166\subsection{Proof by Cases}167168Suppose you have a disjunction as an assumption or as an already169established conclusion---you have assumed or proved that $p$ or $q$ is170true. You want to prove $r$. You do this in two steps: first you171assume that $p$ is true, and prove~$r$, then you assume that $q$ is172true and prove~$r$ again. This works because we assume or know that173one of the two alternatives holds. The two steps establish that either174one is sufficient for the truth of~$r$. (If both are true, we have175not one but two reasons for why $r$~is true. It is not necessary to176separately prove that $r$~is true assuming both $p$ and~$q$.) To177indicate what we're doing, we announce that we ``distinguish cases.''178For instance, suppose we know that $x \in B \cup C$. $B \cup C$ is179defined as $\Setabs{x}{x \in B \text{ or } x \in C}$. In other words,180by definition, $x \in B$ or $x \in C$. We would prove that $x \in A$181from this by first assuming that $x \in B$, and proving $x \in A$ from182this assumption, and then assume $x \in C$, and again prove $x \in A$183from this. You would write ``We distinguish cases'' under the184assumption, then ``Case (1): $x \in B$'' underneath, and ``Case (2):185$x \in C$ halfway down the page. Then you'd proceed to fill in the top186half and the bottom half of the page.187188Proof by cases is especially useful if what you're proving is itself189disjunctive. Here's a simple example:190191\begin{prop}192Suppose $B \subseteq D$ and $C \subseteq E$. Then $B \cup C \subseteq193D \cup E$.194\end{prop}195196\begin{proof}197 Assume (a) that $B \subseteq D$ and (b) $C \subseteq E$. By198 definition, any $x \in B$ is also $\in D$ (c) and any $x \in C$ is199 also $\in E$ (d). To show that $B \cup C \subseteq D \cup E$, we200 have to show that if $x \in B \cup C$ then $x \in D \cup E$ (by201 definition of $\subseteq$). $x \in B \cup C$ iff $x \in B$ or $x \in202 C$ (by definition of~$\cup$). Similarly, $x \in D \cup E$ iff $x \in203 D$ or $x \in E$. So, we have to show: for any $x$, if $x \in B$ or204 $x \in C$, then $x \in D$ or $x \in E$.205206 \begin{quote}207 So far we've only unpacked definitions!{} We've reformulated our208 proposition without $\subseteq$ and $\cup$ and are left with trying209 to prove a universal conditional claim. By what we've discussed210 above, this is done by assuming that $x$ is something about which we211 assume the ``if'' part is true, and we'll go on to show that the212 ``then'' part is true as well. In other words, we'll assume that $x213 \in B$ or $x \in C$ and show that $x \in D$ or $x \in214 E$.\footnote{This paragraph just explains what we're doing---it's215 not part of the proof, and you don't have to go into all this216 detail when you write down your own proofs.}217 \end{quote}218219 Suppose that $x \in B$ or $x \in C$. We have to show that $x \in D$220 or $x \in E$. We distinguish cases.221222 Case 1: $x \in B$. By (c), $x \in D$. Thus, $x \in D$ or $x \in223 E$. (Here we've made the inference discussed in the preceding224 subsection!)225 226 Case 2: $x \in C$. By (d), $x \in E$. Thus, $x \in D$ or $x \in E$.227 \end{proof}228229230\subsection{Proving an Existence Claim}231232When asked to prove an existence claim, the question will usually be233of the form ``prove that there is an~$x$ such that $\dots x \dots$'',234i.e., that some object that has the property described by ``$\dots x235\dots$''. In this case you'll have to identify a suitable object and show236that it has the required property. This sounds straightforward, but a237proof of this kind can be tricky. Typically it involves238\emph{constructing} or \emph{defining} an object and proving that the239object so defined has the required property. Finding the right object240may be hard, proving that it has the required property may be hard,241and sometimes it's even tricky to show that you've succeeded in242defining an object at all!{}243244Generally, you'd write this out by specifying the object, e.g., ``let245$x$ be \dots'' (where \dots{} specifies which object you have in246mind), possibly proving that $\dots$ in fact describes an object that247exists, and then go on to show that $x$ has the property~$Q$. Here's a248simple example.249250\begin{prop}251 Suppose that $x \in B$. Then there is an~$A$ such that $A \subseteq252 B$ and $A \neq \emptyset$.253\end{prop}254255\begin{proof}256 Assume $x \in B$. Let $A = \{x\}$.257 \begin{quote}258 Here we've defined the set~$A$ by enumerating its259 !!{element}s. Since we assume that $x$ is an object, and we can260 always form a set by enumerating its !!{element}s, we don't have261 to show that we've succeeded in defining a set~$A$ here. However,262 we still have to show that $A$ has the properties required by the263 proposition. The proof isn't complete without that!{}264 \end{quote}265 Since $x \in A$, $A \neq \emptyset$.266 \begin{quote}267 This relies on the definition of $A$ as $\{x\}$ and the obvious268 facts that $x \in \{x\}$ and $x \notin \emptyset$.269 \end{quote}270 Since $x$ is the only !!{element} of~$\{x\}$, and $x \in B$, every271 !!{element} of~$A$ is also !!a{element} of~$B$. By definition272 of~$\subseteq$, $A \subseteq B$.273\end{proof}274275\subsection{Using Existence Claims}276277Suppose you know that some existence claim is true (you've proved it,278or it's a hypothesis you can use), say, ``for some~$x$, $x \in A$'' or279``there is an $x \in A$.'' If you want to use it in your proof, you280can just pretend that you have a name for one of the things which your281hypothesis says exist. Since $A$ contains at least one thing, there282are things to which that name might refer. You might of course not be283able to pick one out or describe it further (other than that it is284$\in A$). But for the purpose of the proof, you can pretend that you285have picked it out and give a name to it. It's important to pick a286name that you haven't already used (or that appears in your287hypotheses), otherwise things can go wrong. In your proof, you288indicate this by going from ``for some $x$, $x \in A$'' to ``Let $a289\in A$.'' Now you can reason about~$a$, use some other hypotheses, etc.,290until you come to a conclusion, $p$. If $p$ no longer mentions~$a$, $p$ is291independent of the asusmption that $a \in A$, and you've shown that it292follows just from the assumption ``for some $x$, $x \in A$.''293294\begin{prop}295If $A \neq \emptyset$, then $A \cup B \neq \emptyset$.296\end{prop}297298\begin{proof}299 Suppose $A \neq \emptyset$. So for some $x$, $x \in A$. 300 \begin{quote}301 Here we first just restated the hypothesis of the302 proposition. This hypothesis, i.e., $A \neq \emptyset$, hides an303 existential claim, which you get to only by unpacking a few304 definitions. The definition of $=$ tells us that $A = \emptyset$305 iff every $x \in A$ is also $\in \emptyset$ and every $x \in306 \emptyset$ is also $\in A$. Negating both sides, we get: $A \neq307 \emptyset$ iff either some $x \in A$ is $\notin \emptyset$ or some308 $x \in \emptyset$ is $\notin A$. Since nothing is $\in \emptyset$,309 the second disjunct can never be true, and ``$x \in A$ and $x310 \notin \emptyset$'' reduces to just $x \in A$. So $x \neq311 \emptyset$ iff for some $x$, $x \in A$. That's an existence312 claim. Now we use that existence claim by introducing a name for313 one of the !!{element}s of~$A$:314 \end{quote}315 Let $a \in A$.316 \begin{quote}317 Now we've introduced a name for one of the things~$\in A$. We'll318 continue to argue about~$a$, but we'll be careful to only assume319 that $a \in A$ and nothing else:320 \end{quote}321 Since $a \in A$, $a \in A \cup B$, by definition of~$\cup$. So for322 some $x$, $x \in A \cup B$, i.e., $A \cup B \neq \emptyset$.323 \begin{quote}324 In that last step, we went from ``$a \in A \cup B$'' to ``for some325 $x$, $x \in A \cup B$.'' That doesn't mention $a$ anymore, so we326 know that ``for some $x$, $x \in A \cup B$'' follows from ``for327 some $x$, $x \in A$ alone.'' But that means that $A \cup B \neq328 \emptyset$.329 \end{quote}330\end{proof}331332It's maybe good practice to keep bound variables like ``$x$'' separate333from hypothetical names like $a$, like we did. In practice, however, we334often don't and just use $x$, like so:335\begin{quote}336Suppose $A \neq \emptyset$, i.e., there is an $x \in A$. By definition337of $\cup$, $x \in A \cup B$. So $A \cup B \neq \emptyset$.338\end{quote}339However, when you do this, you have to be extra careful that you use340different $x$'s and $y$'s for different existential claims. For341instance, the following is \emph{not} a correct proof of ``If $A \neq342\emptyset$ and $B \neq \emptyset$ then $A \cap B \neq \emptyset$''343(which is not true).344\begin{quote}345Suppose $A \neq \emptyset$ and $B \neq \emptyset$. So for some $x$, $x346\in A$ and also for some $x$, $x \in B$. Since $x \in A$ and $x \in347B$, $x \in A \cap B$, by definition of~$\cap$. So $A \cap B \neq348\emptyset$.349\end{quote}350Can you spot where the incorrect step occurs and explain why the351result does not hold?352353\end{document}
content/methods/proofs/example-1.tex
1% Part: methods2% Chapter: proofs3% Section: example-145\documentclass[../../../include/open-logic-section]{subfiles}67\begin{document}89\olfileid{mth}{prf}{ex1}1011\olsection{An Example} 1213Our first example is the following simple fact about unions and14intersections of sets. It will illustrate unpacking definitions,15proofs of conjunctions, of universal claims, and proof by cases.1617\begin{prop}18For any sets $A$, $B$, and $C$, $A \cup (B \cap C) = (A \cup B)19\cap (A \cup C)$20\end{prop}2122Let's prove it!{}2324\begin{proof}25We want to show that for any sets $A$, $B$, and $C$, $A \cup (B \cap26C) = (A \cup B) \cap (A \cup C)$27\begin{quote}28First we unpack the definition of ``$=$'' in the statement of the29proposition. Recall that proving sets identical means showing that the30sets have the same !!{element}s. That is, all !!{element}s of $A \cup31(B \cap C)$ are also !!{element}s of $(A \cup B) \cap (A \cup C)$, and32vice versa. The ``vice versa'' means that also every !!{element} of $(A33\cup B) \cap (A \cup C)$ must be !!a{element} of $A \cup (B \cap34C)$. So in unpacking the definition, we see that we have to prove a35conjunction. Let's record this:36\end{quote}37By definition, $A \cup (B \cap C) = (A \cup B) \cap (A \cup C)$ iff38every !!{element} of $A \cup (B \cap C)$ is also !!a{element} of $(A39\cup B) \cap (A \cup C)$, and every !!{element} of $(A \cup B) \cap (A40\cup C)$ is !!a{element} of $A \cup (B \cap C)$.41\begin{quote}42Since this is a conjunction, we must prove each conjunct43separately. Lets start with the first: let's prove that every44!!{element} of $A \cup (B \cap C)$ is also !!a{element} of $(A45\cup B) \cap (A \cup C)$.4647This is a universal claim, and so we consider an arbitrary !!{element}48of $A \cup (B \cap C)$ and show that it must also be !!a{element} of49$(A \cup B) \cap (A \cup C)$. We'll pick a variable to call this50arbitrary !!{element} by, say,~$z$. Our proof continues:51\end{quote}52First, we prove that every !!{element} of $A \cup (B \cap C)$ is also53!!a{element} of $(A \cup B) \cap (A \cup C)$. Let $z \in A \cup (B54\cap C)$. We have to show that $z \in (A \cup B) \cap (A \cup C)$.55\begin{quote} 56Now it is time to unpack the definition of $\cup$ and~$\cap$. For57instance, the definition of $\cup$ is: $A \cup B = \Setabs{z}{z \in A58 \text{ or } z \in B}$. When we apply the definition to ``$A \cup (B59\cap C)$,'' the role of the ``$B$'' in the definition is now played by60``$B \cap C$,'' so $A \cup (B \cap C) = \Setabs{z}{z \in A \text{ or }61 z \in B \cap C}$. So our assumption that $z \in A \cup (B \cap C)$62amounts to: $z \in \Setabs{z}{z \in A \text{ or } z \in B \cap63 C}$. And $z \in \Setabs{z}{\dots z\dots}$ iff \dots $z$ \dots, i.e.,64in this case, $z \in A$ or $z \in B \cap C$.65\end{quote}66By the definition of $\cup$, either $z \in A$ or $z \in B \cap C$.67\begin{quote}68Since this is a disjunction, it will be useful to apply proof by69cases. We take the two cases, and show that in each one, the70conclusion we're aiming for (namely, ``$z \in (A \cup B) \cap (A \cup71C)$'') obtains.72\end{quote}73Case 1: Suppose that $z \in A$.74\begin{quote}75There's not much more to work from based on our assumptions. So let's76look at what we have to work with in the conclusion. We want to show77that $z \in (A \cup B) \cap (A \cup C)$. Based on the definition of78$\cap$, if we want to show that $z \in (A \cup B) \cap (A \cup C)$, we79have to show that it's in both $(A \cup B)$ and $(A \cup C)$. But $z80\in A \cup B$ iff $z \in A$ or $z \in B$, and we already have (as the81assumption of case~1) that $z \in A$. By the same82reasoning---switching $C$ for $B$---$z \in A \cup C$. This argument83went in the reverse direction, so let's record our reasoning in the84direction needed in our proof.85\end{quote}86Since $z \in A$, $z \in A$ or $z \in B$, and hence, by definition87of~$\cup$, $z \in A \cup B$. Similarly, $z \in A \cup C$. But this88means that $z \in (A \cup B) \cap (A \cup C)$, by definition89of~$\cap$.90\begin{quote}91This completes the first case of the proof by cases. Now we want to92derive the conclusion in the second case, where $z \in B \cap C$.93\end{quote}94Case 2: Suppose that $z \in B \cap C$.95\begin{quote}96Again, we are working with the intersection of two sets. Let's apply97the definition of~$\cap$:98\end{quote}99Since $z \in B \cap C$, $z$ must be !!a{element} of both $B$ and $C$, by100definition of~$\cap$.101\begin{quote}102It's time to look at our conclusion again. We have to show that $z$ is103in both $(A \cup B)$ and $(A \cup C)$. And again, the solution is104immediate.105\end{quote}106Since $z \in B$, $z \in (A \cup B)$. Since $z \in C$, also $z \in (A107\cup C)$. So, $z \in (A \cup B) \cap (A \cup C)$.108\begin{quote}109Here we applied the definitions of $\cup$ and $\cap$ again, but since110we've already recalled those definitions, and already showed that if111$z$ is in one of two sets it is in their union, we don't have to be as112explicit in what we've done.113114We've completed the second case of the proof by cases, so now we can115assert our first conclusion.116\end{quote}117So, if $z \in A \cup (B \cap C)$ then $z \in (A \cup B) \cap (A \cup C)$.118\begin{quote}119Now we just want to show the other direction, that every !!{element}120of $(A \cup B) \cap (A \cup C)$ is !!a{element} of $A \cup (B \cap121C)$. As before, we prove this universal claim by assuming we have an122arbitrary !!{element} of the first set and show it must be in the123second set. Let's state what we're about to do.124\end{quote}125Now, assume that $z \in (A \cup B) \cap (A \cup C)$. We want to show126that $z \in A \cup (B \cap C)$.127\begin{quote}128We are now working from the hypothesis that $z \in (A \cup B) \cap (A129\cup C)$. It hopefully isn't too confusing that we're using the130same~$z$ here as in the first part of the proof. When we finished131that part, all the assumptions we've made there are no longer in132effect, so now we can make new assumptions about what $z$ is. If that133is confusing to you, just replace $z$ with a different variable in134what follows.135136We know that $z$ is in both $A \cup B$ and $A \cup C$, by definition137of~$\cap$. And by the definition of $\cup$, we can further unpack this138to: either $z \in A$ or $z \in B$, and also either $z \in A$ or $z \in139C$. This looks like a proof by cases again---except the ``and'' makes140it confusing. You might think that this amounts to there being three141possibilities: $z$ is either in $A$, $B$ or $C$. But that would be a142mistake. We have to be careful, so let's consider each disjunction in143turn.144\end{quote}145By definition of $\cap$, $z \in A \cup B$ and $z \in A \cup C$. By146definition of $\cup$, $z \in A$ or $z \in B$. We distinguish cases.147\begin{quote}148Since we're focusing on the first disjunction, we haven't gotten our149second disjunction (from unpacking $A \cup C$) yet. In fact, we don't150need it yet. The first case is $z \in A$, and !!a{element} of a set is151also !!a{element} of the union of that set with any other. So case~1152is easy:153\end{quote}154Case 1: Suppose that $z \in A$. It follows that $z \in A \cup (B \cap155C)$.156\begin{quote}157Now for the second case, $z \in B$. Here we'll unpack the second158$\cup$ and do another proof-by-cases:159\end{quote}160Case 2: Suppose that $z \in B$. Since $z \in A \cup C$, either $z \in161A$ or $z \in C$. We distinguish cases further:162163Case 2a: $z \in A$. Then, again, $z \in A \cup (B \cap C)$.164\begin{quote}165Ok, this was a bit weird. We didn't actually need the assumption166that~$z \in B$ for this case, but that's ok.167\end{quote}168Case 2b: $z \in C$. Then $z \in B$ and $z \in C$, so $z \in B \cap C$,169and consequently, $z \in A \cup (B \cap C)$.170\begin{quote}171This concludes both proofs-by-cases and so we're done with the second172half.173\end{quote}174So, if $z \in (A \cup B) \cap (A \cup C)$ then $z \in A \cup (B \cap C)$.175\end{proof}176177\end{document}
content/methods/proofs/example-2.tex
1% Part: methods2% Chapter: proofs3% Section: example-245\documentclass[../../../include/open-logic-section]{subfiles}67\begin{document}89\olfileid{mth}{prf}{ex2}1011\olsection{Another Example} 1213\begin{prop}14If $A \subseteq C$, then $A \cup (C \setminus A) = C$.15\end{prop} 1617\begin{proof}18 Suppose that $A \subseteq C$. We want to show that $A \cup (C19 \setminus A) = C$.20 \begin{quote}21 We begin by observing that this is a conditional statement. It is22 tacitly universally quantified: the proposition holds for all sets23 $A$ and $C$. So $A$ and $C$ are variables for arbitrary sets. To24 prove such a statement, we assume the antecedent and prove the25 consequent.2627 We continue by using the assumption that $A \subseteq C$. Let's28 unpack the definition of~$\subseteq$: the assumption means that29 all !!{element}s of~$A$ are also !!{element}s of~$C$. Let's write30 this down---it's an important fact that we'll use throughout the31 proof.32 \end{quote}33 By the definition of~$\subseteq$, since $A \subseteq C$, for all34 $z$, if $z \in A$, then $z \in C$.35 \begin{quote}36 We've unpacked all the definitions that are given to us in the37 assumption. Now we can move onto the conclusion. We want to show38 that $A \cup (C \setminus A) = C$, and so we set up a proof39 similarly to the last example: we show that every !!{element} of40 $A \cup (C \setminus A)$ is also !!a{element} of~$C$ and,41 conversely, every !!{element} of $C$ is !!a{element} of $A \cup (C42 \setminus A)$. We can shorten this to: $A \cup (C \setminus A)43 \subseteq C$ and $C \subseteq A \cup (C \setminus A)$. (Here we're44 doing the opposite of unpacking a definition, but it makes the45 proof a bit easier to read.) Since this is a conjunction, we have46 to prove both parts. To show the first part, i.e., that every47 !!{element} of $A \cup (C \setminus A)$ is also !!a{element}48 of~$C$, we assume that $z \in A \cup (C \setminus A)$ for an49 arbitrary~$z$ and show that $z \in C$. By the definition of50 $\cup$, we can conclude that $z \in A$ or $z \in C \setminus A$51 from $z \in A \cup (C \setminus A)$. You should now be getting the52 hang of this.53 \end{quote}54 $A \cup (C \setminus A) = C$ iff $A \cup (C \setminus A) \subseteq55 C$ and $C \subseteq (A \cup (C \setminus A)$. First we prove that56 $A \cup (C \setminus A) \subseteq C$. Let $z \in A \cup (C57 \setminus A)$. So, either $z \in A$ or $z \in (C \setminus A)$.58 \begin{quote}59 We've arrived at a disjunction, and from it we want to prove that60 $z \in C$. We do this using proof by cases.61 \end{quote}62 Case 1: $z \in A$. Since for all $z$, if $z \in A$, $z \in C$, we63 have that $z \in C$.64 \begin{quote}65 Here we've used the fact recorded earlier which followed from the66 hypothesis of the proposition that $A \subseteq C$. The first67 case is complete, and we turn to the second case, $z \in (C68 \setminus A)$. Recall that $C \setminus A$ denotes the69 \emph{difference} of the two sets, i.e., the set of all70 !!{element}s of~$C$ which are not !!{element}s of~$A$. But any71 !!{element} of $C$ not in~$A$ is in particular !!a{element} of~$C$.72 \end{quote}73 Case 2: $z \in (C \setminus A)$. This means that $z \in C$ and $z74 \notin A$. So, in particular, $z \in C$.75 \begin{quote}76 Great, we've proved the first direction. Now for the second77 direction. Here we prove that $C \subseteq A \cup (C \setminus78 A)$. So we assume that $z \in C$ and prove that $z \in A \cup (C79 \setminus A)$.80 \end{quote}81 Now let $z \in C$. We want to show that $z \in A$ or $z \in C82 \setminus A$.83 \begin{quote}84 Since all !!{element}s of $A$ are also !!{element}s of $C$, and $C85 \setminus A$ is the set of all things that are !!{element}s of $C$86 but not $A$, it follows that $z$ is either in $A$ or in $C87 \setminus A$. This may be a bit unclear if you don't already know88 why the result is true. It would be better to prove it89 step-by-step. It will help to use a simple fact which we can90 state without proof: $z \in A$ or $z \notin A$. This is called the91 ``principle of excluded middle:'' for any statement~$p$, either92 $p$ is true or its negation is true. (Here, $p$ is the statement93 that $z \in A$.) Since this is a disjunction, we can again use94 proof-by-cases.95 \end{quote}96 Either $z \in A$ or $z \notin A$. In the former case, $z \in A \cup97 (C \setminus A)$. In the latter case, $z \in C$ and $z \notin A$, so98 $z \in C \setminus A$. But then $z \in A \cup (C \setminus A)$.99 \begin{quote}100 Our proof is complete: we have shown that $A \cup (C \setminus A) = C$.101 \end{quote}102\end{proof}103104\end{document}
content/methods/proofs/proof-by-contradiction.tex
1% Part: methods2% Chapter: proofs3% Section: proof-by-contradiction45\documentclass[../../../include/open-logic-section]{subfiles}67\begin{document}89\olfileid{mth}{prf}{con}1011\olsection{Proof by Contradiction} 1213In the first instance, proof by contradiction is an inference pattern14that is used to prove negative claims. Suppose you want to show that15some claim~$p$ is \emph{false}, i.e., you want to show~$\lnot p$. The16most promising strategy is to (a) suppose that $p$~is true, and (b)17show that this assumption leads to something you know to be false.18``Something known to be false'' may be a result that conflicts19with---contradicts---$p$ itself, or some other hypothesis of the20overall claim you are considering. For instance, a proof of ``if $q$21then $\lnot p$'' involves assuming that $q$~is true and proving~$\lnot22p$ from it. If you prove $\lnot p$ by contradiction, that means23assuming $p$ in addition to~$q$. If you can prove $\lnot q$ from $p$,24you have shown that the assumption~$p$ leads to something that25contradicts your other assumption~$q$, since $q$~and $\lnot q$ cannot26both be true. Of course, you have to use other inference patterns in27your proof of the contradiction, as well as unpacking definitions.28Let's consider an example.2930\begin{prop}31 If $A \subseteq B$ and $B = \emptyset$, then $A$ has no !!{element}s.32\end{prop}3334\begin{proof}35 Suppose $A \subseteq B$ and $B = \emptyset$. We want to show that36 $A$ has no !!{element}s.37 \begin{quote}38 Since this is a conditional claim, we assume the antecedent and39 want to prove the consequent. The consequent is: $A$ has no40 !!{element}s. We can make that a bit more explicit: it's not the41 case that there is an~$x \in A$.42 \end{quote}43 $A$ has no !!{element}s iff it's not the case that there is an~$x$44 such that $x \in A$.45 \begin{quote}46 So we've determined that what we want to prove is really a47 negative claim~$\lnot p$, namely: it's not the case that there is48 an $x \in A$. To use proof by contradiction, we have to assume the49 corresponding positive claim~$p$, i.e., there is an $x \in A$, and50 prove a contradiction from it. We indicate that we're doing a51 proof by contradiction by writing ``by way52 of contradiction, assume'' or even just ``suppose not,'' and then state53 the assumption~$p$.54 \end{quote}55 Suppose not: there is an $x \in A$.56 \begin{quote}57 This is now the new assumption we'll use to obtain a58 contradiction. We have two more assumptions: that $A \subseteq B$59 and that $B = \emptyset$. The first gives us that $x \in B$:60 \end{quote}61 Since $A \subseteq B$, $x \in B$.62 \begin{quote}63 But since $B = \emptyset$, every !!{element} of $B$ (e.g., $x$)64 must also be !!a{element} of~$\emptyset$.65 \end{quote}66 Since $B = \emptyset$, $x \in \emptyset$. This is a contradiction,67 since by definition $\emptyset$ has no !!{element}s.68 \begin{quote}69 This already completes the proof: we've arrived at what we need (a70 contradiction) from the assumptions we've set up, and this means71 that the assumptions can't all be true. Since the first two72 assumptions ($A \subseteq B$ and $B = \emptyset$) are not73 contested, it must be the last assumption introduced (there is an74 $x \in A$) that must be false. But if we want to be thorough, we75 can spell this out.76 \end{quote}77 Thus, our assumption that there is an $x \in A$ must be false, hence,78 $A$ has no !!{element}s by proof by contradiction.79\end{proof}8081Every positive claim is trivially equivalent to a negative claim: $p$82iff $\lnot\lnot p$. So proofs by contradiction can also be used to83establish positive claims ``indirectly,'' as follows: To prove~$p$,84read it as the negative claim $\lnot\lnot p$. If we can prove a85contradiction from $\lnot p$, we've established $\lnot\lnot p$ by86proof by contradiction, and hence~$p$.8788In the last example, we aimed to prove a negative claim, namely that89$A$ has no !!{element}s, and so the assumption we made for the purpose90of proof by contradiction (i.e., that there is an $x \in A$) was a91positive claim. It gave us something to work with, namely the92hypothetical $x \in A$ about which we continued to reason until we got93to $x \in \emptyset$.9495When proving a positive claim indirectly, the assumption you'd make96for the purpose of proof by contradiction would be negative. But very97often you can easily reformulate a positive claim as a negative claim,98and a negative claim as a positive claim. Our previous proof would99have been essentially the same had we proved ``$A = \emptyset$''100instead of the negative consequent ``$A$ has no !!{element}s.'' (By101definition of $=$, ``$A = \emptyset$'' is a general claim, since it102unpacks to ``every !!{element} of~$A$ is an !!{element} of~$\emptyset$103and vice versa''.) But it is easily seen to be equivalent to the104negative claim ``not: there is an $x \in A$.''105106So it is sometimes easier to work with $\lnot p$ as an assumption than107it is to prove~$p$ directly. Even when a direct proof is just as108simple or even simpler (as in the next examples), some people prefer to109proceed indirectly. If the double negation confuses you, think of a110proof by contradiction of some claim as a proof of a contradiction111from the \emph{opposite} claim. So, a proof by contradiction of $\lnot112p$ is a proof of a contradiction from the assumption~$p$; and proof by113contradiction of~$p$ is a proof of a contradiction from~$\lnot p$.114115\begin{prop}116$A \subseteq A \cup B$.117\end{prop}118119\begin{proof}120 We want to show that $A \subseteq A \cup B$.121 \begin{quote}122 On the face of it, this is a positive claim: every $x \in A$ is123 also in $A \cup B$. The negation of that is: some $x \in A$ is124 $\notin A \cup B$. So we can prove the claim indirectly by125 assuming this negated claim, and showing that it leads to a126 contradiction.127 \end{quote}128 Suppose not, i.e., $A \nsubseteq A \cup B$.129 \begin{quote}130 We have a definition of $A \subseteq A \cup B$: every $x \in A$ is131 also $\in A \cup B$. To understand what $A \nsubseteq A \cup B$132 means, we have to use some elementary logical manipulation on the133 unpacked definition: it's false that every $x \in A$ is also $\in134 A \cup B$ iff there is \emph{some}~$x \in A$ that is $\notin C$.135 (This is a place where you want to be very careful: many students'136 attempted proofs by contradiction fail because they analyze the137 negation of a claim like ``all $A$s are $B$s'' incorrectly.) In138 other words, $A \nsubseteq A \cup B$ iff there is an $x$ such that139 $x \in A$ and $x \notin A \cup B$. From then on, it's easy.140 \end{quote}141 So, there is an $x \in A$ such that $x \notin A \cup B$. By142 definition of $\cup$, $x \in A \cup B$ iff $x \in A$ or $x \in143 B$. Since $x \in A$, we have $x \in A \cup B$. This contradicts the144 assumption that $x \notin A \cup B$. 145\end{proof}146147\begin{prob}148Prove \emph{indirectly} that $A \cap B \subseteq A$.149\end{prob}150151\begin{prop}152If $A \subseteq B$ and $B \subseteq C$ then $A \subseteq C$.153\end{prop}154155\begin{proof}156 Suppose $A \subseteq B$ and $B \subseteq C$. We want to show $A157 \subseteq C$.158 \begin{quote}159 Let's proceed indirectly: we assume the negation of what we want160 to etablish.161 \end{quote}162 Suppose not, i.e., $A \nsubseteq C$.163 \begin{quote}164 As before, we reason that $A \nsubseteq C$ iff not every $x \in A$165 is also $\in C$, i.e., some $x \in A$ is $\notin C$. Don't worry,166 with practice you won't have to think hard anymore to unpack167 negations like this.168 \end{quote}169 In other words, there is an~$x$ such that $x \in A$ and $x \notin C$.170 \begin{quote}171 Now we can use this to get to our contradiction. Of course, we'll172 have to use the other two assumptions to do it.173 \end{quote}174 Since $A \subseteq B$, $x \in B$. Since $B \subseteq C$, $x \in175 C$. But this contradicts $x \notin C$.176\end{proof}177178\begin{prop}179If $A \cup B = A \cap B$ then $A = B$.180\end{prop}181182\begin{proof}183 Suppose $A \cup B = A \cap B$. We want to show that $A = B$.184 \begin{quote}185 The beginning is now routine:186 \end{quote}187 Assume, by way of contradiction, that $A \neq B$.188 \begin{quote}189 Our assumption for the proof by contradiction is that $A \neq190 B$. Since $A = B$ iff $A \subseteq B$ an $B \subseteq A$, we get191 that $A \neq B$ iff $A \nsubseteq B$ \emph{or} $B \nsubseteq192 A$. (Note how important it is to be careful when manipulating193 negations!{}) To prove a contradiction from this disjunction, we194 use a proof by cases and show that in each case, a contradiction195 follows.196 \end{quote}197 $A \neq B$ iff $A \nsubseteq B$ or $B \nsubseteq A$. We distinguish198 cases.199 \begin{quote}200 In the first case, we assume $A \nsubseteq B$, i.e., for some $x$,201 $x \in A$ but $\notin B$. $A \cap B$ is defined as those202 !!{element}s that $A$ and $B$ have in common, so if something203 isn't in one of them, it's not in the intersection. $A \cup B$ is204 $A$ together with $B$, so anything in either is also in the205 union. This tells us that $x \in A \cup B$ but $x \notin A \cap206 B$, and hence that $A \cap B \neq A \cup B$.207 \end{quote}208 209 Case 1: $A \nsubseteq B$. Then for some $x$, $x \in A$ but $x \notin210 B$. Since $x \notin B$, then $x \notin A \cap B$. Since $x \in A$,211 $x \in A \cup B$. So, $A \cap B \neq A \cup B$, contradicting the212 assumption that $A \cap B = A \cup B$.213214 Case 2: $B \nsubseteq A$. Then for some $y$, $y \in B$ but $y \notin215 A$. As before, we have $y \in A \cup B$ but $y \notin A \cap B$, and216 so $A \cap B \neq A \cup B$, again contradicting $A \cap B = A \cup217 B$. 218\end{proof}219220\end{document}
content/methods/proofs/reading-proofs.tex
1% Part: methods2% Chapter: proofs3% Section: reading-proofs45\documentclass[../../../include/open-logic-section]{subfiles}67\begin{document}89\olfileid{mth}{prf}{rea}10\olsection{Reading Proofs}1112Proofs you find in textbooks and articles very seldom give all the13details we have so far included in our examples. Authors often do not14draw attention to when they distinguish cases, when they give an15indirect proof, or don't mention that they use a definition. So when16you read a proof in a textbook, you will often have to fill in those17details for yourself in order to understand the proof. Doing this is18also good practice to get the hang of the various moves you have to19make in a proof. Let's look at an example.2021\begin{prop}[Absorption]22For all sets $A$, $B$,23\[24A \cap (A \cup B) = A25\]26\end{prop}2728\begin{proof}29If $z \in A \cap (A \cup B)$, then $z \in A$, so $A \cap (A \cup B)30\subseteq A$. Now suppose $z \in A$. Then also $z \in A \cup B$, and31therefore also $z \in A \cap (A \cup B)$.32\end{proof}3334The preceding proof of the absorption law is very condensed. There is35no mention of any definitions used, no ``we have to prove that''36before we prove it, etc. Let's unpack it. The proposition proved is a37general claim about any sets $A$ and $B$, and when the proof mentions38$A$ or $B$, these are variables for arbitrary sets. The general39claims the proof establishes is what's required to prove identity of40sets, i.e., that every !!{element} of the left side of the identity is41!!a{element} of the right and vice versa. 4243\begin{quote}44``If $z \in A \cap (A \cup B)$, then $z \in A$, so $A \cap (A \cup B)45 \subseteq A$.''46\end{quote}4748This is the first half of the proof of the identity: it establishes49that if an arbitrary~$z$ is !!a{element} of the left side, it is also50!!a{element} of the right, i.e., $A \cap (A \cup B) \subseteq A$.51Assume that $z \in A \cap (A \cup B)$. Since $z$ is an !!{element} of52the intersection of two sets iff it is an !!{element} of both sets, we53can conclude that $z \in A$ and also $z \in A \cup B$. In particular,54$z \in A$, which is what we wanted to show. Since that's all that has55to be done for the first half, we know that the rest of the proof must56be a proof of the second half, i.e., a proof that $A \subseteq A \cap57(A \cup B)$.5859\begin{quote}60``Now suppose $z \in A$. Then also $z \in A \cup B$, and61therefore also $z \in A \cap (A \cup B)$.''62\end{quote}6364We start by assuming that $z \in A$, since we are showing that, for65any~$z$, if $z \in A$ then $z \in A \cap (A \cup B)$. To show that $z66\in A \cap (A \cup B)$, we have to show (by definition of ``$\cap$'')67that (i) $z \in A$ and also (ii) $z \in A \cup B$. Here (i) is just68our assumption, so there is nothing further to prove, and that's why69the proof does not mention it again. For (ii), recall that $z$ is70!!a{element} of a union of sets iff it is an !!{element} of at least71one of those sets. Since $z \in A$, and $A \cup B$ is the union of $A$72and $B$, this is the case here. So $z \in A \cup B$. We've shown both73(i) $z \in A$ and (ii) $z \in A \cup B$, hence, by definition of74``$\cap$,'' $z \in A \cap (A \cup B)$. The proof doesn't mention75those definitions; it's assumed the reader has already internalized76them. If you haven't, you'll have to go back and remind yourself what77they are. Then you'll also have to recognize why it follows from $z78\in A$ that $z \in A \cup B$, and from $z \in A$ and $z \in A \cup B$79that $z \in A \cap (A \cup B)$.8081Here's another version of the proof above, with everything made82explicit:83\begin{proof}{}84[By definition of $=$ for sets, $A \cap (A \cup B) = A$ we have to85 show (a) $A \cap (A \cup B) \subseteq A$ and (b) $A \cap (A \cup B)86 \subseteq A$. (a): By definition of $\subseteq$, we have to show87 that if $z \in A \cap (A \cup B)$, then $z \in A$.] If $z \in A88\cap (A \cup B)$, then $z \in A$ [since by definition of $\cap$, $z89 \in A \cap (A \cup B)$ iff $z \in A$ and $z \in A \cup B$], so $A90\cap (A \cup B) \subseteq A$. [(b): By definition of $\subseteq$, we91 have to show that if $z \in A$, then $z \in A \cap (A \cup B)$.] Now92suppose [(1)] $z \in A$. Then also [(2)] $z \in A \cup B$ [since by93 (1) $z \in A$ or $z \in B$, which by definition of $\cup$ means $z94 \in A \cup B$], and therefore also $z \in A \cap (A \cup B)$ [since95 the definition of $\cap$ requires that $z \in A$, i.e., (1), and $z96 \in A \cup B)$, i.e., (2)].97\end{proof}9899\begin{prob}100Expand the following proof of $A \cup (A \cap B) = A$, where you101mention all the inference patterns used, why each step follows from102assumptions or claims established before it, and where we have to103appeal to which definitions.104\begin{proof}105 If $z \in A \cup (A \cap B)$ then $z \in A$ or $z \in A \cap B$. If106 $z \in A \cap B$, $z \in A$. Any $z \in A$ is also $\in A \cup (A107 \cap B)$.108\end{proof}109\end{prob}110111\end{document}
content/methods/proofs/cant-do-it.tex
1% Part: methods2% Chapter: proofs3% Section: cant-do-it45\documentclass[../../../include/open-logic-section]{subfiles}67\begin{document}89\olfileid{mth}{prf}{cnt}1011\olsection{I Can't Do It!{}}1213We all get to a point where we feel like giving up. But you \emph{can}14do it. Your instructor and teaching assistant, as well as your fellow15students, can help. Ask them for help!{} Here are a few tips to help16you avoid a crisis, and what to do if you feel like giving up.1718To make sure you can solve problems successfully, do the19following:20\begin{enumerate}21\item \emph{Start as far in advance as possible.} We get busy22 throughout the semester and many of us struggle with23 procrastination, one of the best things you can do is to start your24 homework assignments early. That way, if you're stuck, you have time25 to look for a solution (that isn't crying).26\item \emph{Talk to your classmates}. You are not alone. Others in27 the class may also struggle---but they may struggle with different28 things. Talking it out with your peers can give you a different29 perspective on the problem that might lead to a breakthrough. Of30 course, don't just copy their solution: ask them for a hint, or31 explain where you get stuck and ask them for the next step. And when32 you do get it, reciprocate. Helping someone else along, and33 explaining things will help you understand better, too.34\item \emph{Ask for help.} You have many resources available to35 you---your instructor and teaching assistant are there for you and36 \emph{want} you to succeed. They should be able to help you work out37 a problem and identify where in the process you're struggling.38\item \emph{Take a break.} If you're stuck, it \emph{might} be because39 you've been staring at the problem for too long. Take a short break,40 have a cup of tea, or work on a different problem for a while, then41 return to the problem with a fresh mind. Sleep on it.42\end{enumerate}4344Notice how these strategies require that you've started to work on the45proof well in advance? If you've started the proof at 2am the day46before it's due, these might not be so helpful.4748This might sound like doom and gloom, but solving a proof is a49challenge that pays off in the end. Some people do this as a50career---so there must be something to enjoy about it. Like basically51everything, solving problems and doing proofs is something that52requires practice. You might see classmates who find this easy:53they've probably just had lots of practice already. Try not to give54in too easily.5556If you do run out of time (or patience) on a particular problem:57that's ok. It doesn't mean you're stupid or that you will never get58it. Find out (from your instructor or another student) how it is done,59and identify where you went wrong or got stuck, so you can avoid doing60that the next time you encounter a similar issue. Then try to do it61without looking at the solution. And next time, start (and ask for62help) earlier.6364\end{document}
content/methods/proofs/resources.tex
1% Part: methods2% Chapter: proofs3% Section: resources45\documentclass[../../../include/open-logic-section]{subfiles}67\begin{document}89\olfileid{mth}{prf}{res}1011\section{Other Resources}1213There are many books on how to do proofs in mathematics which may be14useful. Check out \emph{How to Read and do Proofs: An Introduction to15Mathematical Thought Processes} \citep{Solow2013} and \emph{How to16Prove It: A Structured Approach} \citep{Velleman2019} in particular.17The18\href{http://www.people.vcu.edu/~rhammack/BookOfProof/BookOfProof.pdf}{\emph{Book19of Proof}} \citep{Hammack2013} and20\href{https://scholarworks.gvsu.edu/books/7/}{\emph{Mathematical21Reasoning}} \citep{Sandstrum2019} are books on proof that are freely22available online. Philosophers might find23\emph{More24Precisely: The Math you need to do Philosophy} \citep{Steinhart2018} to25be a good primer on mathematical reasoning. 2627There are also various shorter guides to proofs available on the28internet; e.g.,29\href{https://math.berkeley.edu/~hutching/teach/proofs.pdf}{``Introduction30 to Mathematical Arguments''} \citep{Hutchings2003} and31\href{https://eugeniacheng.com/wp-content/uploads/2017/02/cheng-proofguide.pdf}{``How to32 write proofs''} \citep{Cheng2004}.3334\subsection{Motivational Videos}3536Feel like you have no motivation to do your homework? Feeling down? These37videos might help!3839\begin{itemize}40\item \url{https://www.youtube.com/watch?v=ZXsQAXx_ao0}41\item \url{https://www.youtube.com/watch?v=BQ4yd2W50No}42\item \url{https://www.youtube.com/watch?v=StTqXEQ2l-Y}43\end{itemize}4445\end{document}