GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing wo0fle.github.io — discrete math and proofs discrete math and proofsgo home
prerequisites:
table of contents:
this page marks the beginning of a new era of learning math for you.
a lot of the math you've learned up to this point is basically just messing around with shapes and numbers.
there's nothing wrong with that, of course, but it is now time that you move beyond the basics.
this page will introduce you to a logical system that mathematicians use to justify statements in math! formal logicfirst, we need to define the rules of the logical system we will be working under; we will refer to these unbreakable rules as the laws of traditional logic, and they are:
these laws may be a bit unclear at the moment, so let's clear these up a bit. to clarify the law of identity: in math, an object can be defined as any concept that could be thought of, so long as it is:
so, the law of identity means that any object (for example, the number \(12\)) is equal to itself (i.e., \(12=12\)). this may seem obvious, but it's a foundational rule to clarify what is allowed to be called an "object"; we'll see a few examples of non-objects later. we will define what a contradiction actually is later to clarify the law of non-contradiction, but now let's talk about the law of excluded middle. a proposition is a truth-apt declarative sentence.
so basically, propositions are sentences which proclaim something and are objectively true or false.
as a shorthand, we can denote propositions with letters. for example: $$ P=\text{Philadelphia is located in the USA}\\ Q=\text{Mexico City is located in China} $$ we can combine propositions using connectives to form more complex propositions:
we can summarize all possible output truth values for different input truth values using truth tables: $$ \begin{array}{c|c}P & Q & P\wedge Q \\ \hline T & T & T \\ T & F & F \\ F & T & F \\ F & F & F \end{array} \qquad \begin{array} {c|c}P & Q & P\vee Q \\ \hline T & T & T \\ T & F & T \\ F & T & T \\ F & F & F \end{array} $$ we can check if two propositions are logically equivalent (denoted by the triple bar symbol \(\equiv\)) by using a truth table to check if their outputs are the same for all possible inputs. for example: $$ \begin{array} {c|c} P & Q & \neg(P\wedge Q) \\ \hline T & T & F \\ T & F & T \\ F & T & T \\ F & F & T \end{array} \quad\text{matches}\quad \begin{array} {c|c} P & Q & \neg P\vee\neg Q \\ \hline T & T & F \\ T & F & T \\ F & T & T \\ F & F & T \end{array} $$ so we know that \(\neg(P\wedge Q)\equiv\neg P\vee\neg Q\)! some more formal language:
to present the conclusion at the end of an argument, we can use the word "therefore" (denoted by the this symbol \(\therefore\), called the ergo symbol (meaning "therefore" in Latin!)). consider this symbolic example: $$ \begin{array}{l} P\vee Q \\ \neg Q \\ \hline \therefore P \end{array} $$ here, \(P\) and \(Q\) are both propositions, and \(P\vee Q\) and \(\neg Q\) are premises. we first assume that our premises are true: $$ \begin{array}{l} P\vee Q\text{ is true}\equiv(P\text{ is true})\vee(Q\text{ is true})\qquad\text{by the definition of disjunction}\\ \neg Q\text{ is true}\equiv Q\text{ is false}\qquad\text{by the definition of negation} \end{array} $$ the argument:
so that's our conclusion, and we write "\(\therefore P\)." in case it isn't already clear, we don't have to write "is true" or "is false" after every proposition:
the same way that numbers and operations have laws that tell you how you are allowed to manipulate expressions, so do propositions and connectives!
a proposition which is always true is called a tautology (denoted by the top symbol \(\top\)): $$P\vee\neg P\equiv\top$$ and a proposition which is always false is called a contradiction (denoted by the bot symbol \(\bot\)): $$P\wedge\neg P\equiv\bot$$ since tautologies and contradictions are just propositions with an unchanging truth value, connecting them to other propositions \(P\) reduces it to a single proposition:
now, to finally clarify the law of non-contradiction: contradictions should not be allowed to exist in any argument, so if we do stumble upon one, that usually means that one of our initial premises (which we assumed to be true) is actually false. there's a couple more connectives we should discuss. the conditional connective (denoted with a double-bar arrow \(\Rightarrow\)) connects propositions via an "if ..., then ..." statement: $$P\Rightarrow Q$$ there are a few different ways to say \(P\Rightarrow Q\) in words:
the arrow can also face the other way: \(Q\Leftarrow P\equiv P\Rightarrow Q\). here is its truth table: $$ \begin{array} {c|c} P & Q & P\Rightarrow Q \\ \hline T & T & T\\ T & F & F \\ F & T & T \\ F & F & T \end{array} $$ the first two rows of this truth table should align with the intuitive idea of an "if ..., then ..." statement:
but what's going on with the last two rows?
it may seem strange, but yes, both these statements are true; in fact, they are called vacuously true! think about it this way: false premises can imply anything, since nothing can go against them. as an informal example, consider this proposition: $$\text{if Beethoven was alive today, then he would enjoy heavy metal music.}$$ since Beethoven is not alive today, you cannot definitively say that he wouldn't enjoy metal music, so this statement is a vacuous truth. here is something to interesting to note, called the conditional law: $$ \begin{array} {c|c} P & Q & \neg P\vee Q \\ \hline T & T & T\\ T & F & F \\ F & T & T \\ F & F & T \end{array}\quad\text{matches}\quad \begin{array} {c|c} P & Q & P\Rightarrow Q \\ \hline T & T & T\\ T & F & F \\ F & T & T \\ F & F & T \end{array}\\\\ \therefore P\Rightarrow Q\equiv\neg P\vee Q\ $$ using this law, we can show another extremely important result called the contrapositive law: $$ \begin{array}{l} P\Rightarrow Q \\ \equiv\neg P\vee Q\qquad\text{by conditional law}\\ \equiv\neg P\vee \neg(\neg Q)\qquad\text{by double negation law}\\ \equiv\neg(\neg Q)\vee \neg P\qquad\text{by commutative law}\\ \equiv \neg Q\Rightarrow\neg P\qquad\text{by conditional law}\\ \end{array}\\\\ \therefore P\Rightarrow Q\equiv\neg Q\Rightarrow\neg P $$ \(\neg Q\Rightarrow\neg P\) is called the contrapositive of \(P\Rightarrow Q\). keep in mind that \(P\Rightarrow Q\not\equiv Q\Rightarrow P\):
also, \(P\Rightarrow Q\not\equiv \neg P\Rightarrow \neg Q\):
if you combine a conditional statement with its converse, you get a biconditional statement (denoted by the single bar left-right arrow \(\Leftrightarrow\): $$P\Leftrightarrow Q\equiv(P\Rightarrow Q)\wedge(Q\Rightarrow P)$$ in words:
here is its truth table: $$ \begin{array} {c|c} P & Q & P\Leftrightarrow Q \\ \hline T & T & T\\ T & F & F \\ F & T & F \\ F & F & T \end{array} $$ notice how \(P\Leftrightarrow Q\) is only true when \(P\) and \(Q\) have the same truth value! lastly, $$ \begin{array}{l} P\Leftrightarrow Q \\ \equiv(P\Rightarrow Q)\wedge(Q\Rightarrow P)\qquad\text{by definition of a biconditional statement}\\ \equiv(\neg P\vee Q)\wedge(\neg Q\vee P)\qquad\text{by conditional law}\\ \equiv((\neg P\vee Q)\wedge\neg Q)\vee((\neg P\vee Q)\wedge P)\qquad\text{by distributive law}\\ \equiv(\neg Q\wedge(\neg P\vee Q))\vee(P\wedge(\neg P\vee Q))\qquad\text{by commutative law}\\ \equiv((\neg Q\wedge\neg P)\vee(\neg Q\wedge Q))\vee((P\wedge\neg P)\vee(P\wedge Q))\qquad\text{by distributive law}\\ \equiv((\neg Q\wedge\neg P)\vee\bot)\vee(\bot\vee(P\wedge Q))\qquad\text{by definition of contradiction}\\ \equiv(\neg Q\wedge\neg P)\vee(P\wedge Q)\\ \equiv(P\wedge Q)\vee(\neg Q\wedge\neg P)\qquad\text{by commutative law}\\ \end{array}\\\\ \therefore P\Leftrightarrow Q\equiv(P\wedge Q)\vee(\neg P\wedge\neg Q) $$ if you think this whole section has felt like a bunch of abstract philosophy, that's because it is! a lot of important math is directly based on this logical system we have described, so it is important that we clearly define it; we'll see later how this system is used to prove conclusions in math. setsa foundational type of object which we will be exploring and utilizing a lot is called a set, defined as an unordered collection of distinct objects, where each object in the set is called an element (or member) of it.sets are denoted by putting braces around a list of its elements, like this set \(S\) of the objects \(1\), \(2\), and \(3\): $$S=\{1,2,3\}$$ this is called set roster notation. since sets are unordered, \(\{1,2,3\}=\{3,1,2\}\), and since each element of a set must be distinct, no set can contain 2 of the same element. to say that an object is in a set, we use the symbol \(\in\). $$1\in\{1,2,3\}$$ to say that an object is not in a set, just put a slash through the in symbol: \(\notin\). $$a\notin\{1,2,3\}$$ important side note: we'll be defining and using multiple other symbols to represent relationships between mathematical objects, so just know that putting slash through a symbol \(S\) generally means \(\neg S\). if we don't want to list all the elements of the set to denote it, we can instead denote it with set builder notation: $$S=\{\textcolor{red}{x}:\textcolor{#0049ff}{M(x)}\}$$
altogether, \(\{\textcolor{red}{x}:\textcolor{#0049ff}{M(x)}\}\) is said as "the set of all \(\textcolor{red}{x}\) such that \(\textcolor{#0049ff}{M(x)}\)." for example, \(\{\textcolor{red}{x^2+y^2}:\textcolor{#0049ff}{0\leq x^2+y^2\leq 1}\}\) is "the set of all \(\textcolor{red}{x^2+y^2}\) such that \(\textcolor{#0049ff}{0\leq x^2+y^2\leq 1}\)", which, if you think of \(x\) and \(y\) as coordinates of the plane, is the unit disk! here is some very important notation for commonly used sets of numbers in mathematics:
\(\emptyset\) denotes a set known as the empty set or null set, which is the set containing no elements: $$\emptyset=\{\}$$ keep in mind that sets can contain any object, including other sets, so: $$ \emptyset\neq\{\emptyset\}\\ \{\}\neq\{\{\}\}\\ \text{the set containing no objects}\neq\text{the set containing }\emptyset $$ similar to numbers, we can do operations on sets (say \(A\) and \(B\)):
for example, with \(A=\{a,b,c,d\}\) and \(B=\{c,d,e,f\}\): $$ A\cap B=\{c,d\}\qquad A\cup B=\{a,b,c,d,e,f\}\qquad A\backslash B=\{a,b\} $$ we can also form other operations by combining these! for example, the symmetric difference (denoted by the capital Greek letter Delta \(\Delta\)): $$A\Delta B=(A\cup B)\backslash(A\cap B)$$ it can be helpful to visualize these operations using Venn diagrams, where each set is represented by a shape (often a circle).
$$\textcolor{red}{A}\cap\textcolor{#0049ff}{B}$$
$$\textcolor{red}{A}\cup\textcolor{#0049ff}{B}$$
$$\textcolor{red}{A}\backslash\textcolor{#0049ff}{B}$$
$$\textcolor{red}{A}\Delta\textcolor{#0049ff}{B}$$
suppose that all the elements of \(A\) are also elements of \(B\); then,
$$
\begin{array}{c}
A=\{a,b\} \\
B=\{a,b,c,d\} \\
\hline
\therefore A\subseteq B,B\supseteq A
\end{array}
$$
$$\textcolor{red}{A}\subseteq\textcolor{#0049ff}{B}\\ \textcolor{#0049ff}{B}\supseteq\textcolor{red}{A}$$
note that if two sets are exactly the same, then they are both subsets/supersets of each other, since they still satisfy the definitions above; a subset/superset is called strict if some BUT NOT ALL of the elements of the subset are included in the superset, denoted \(\subset\) and \(\supset\) respectively.
\(A\) is disjoint from \(B\) if \(A\cap B=\emptyset\) (i.e. they do not share any elements).
$$\textcolor{red}{A}\cap\textcolor{#0049ff}{B}=\emptyset$$
quantifierslet's say that we want to talk about some proposition about a variable \(x\) (call it \(P(x)\)).for some values, \(P(x)\) may be true, or it may be false, but we don't know the truth value of \(P(x)\) until we know what \(x\) is; we call \(x\) a free variable. generally, we want to avoid free variables when deducing the truth value of propositions, since the nature of a free variable is that we don't know anything about it, so we can't know what will happen when we plug it in to \(P\). so how can we talk more generally about \(P(x)\)? for this, we can use two new symbols called quantifiers:
you can think of quantifiers as a way to change what the question about a proposition's truth value is asking:
this basically creates a new proposition by modifying the proposition \(P(x)\); \(\forall x,P(x)\) is not the same proposition as \(P(x)\), for example. as you probably noticed, each quantifier is attached to some variable, making the variable a bound variable, and is tacked on to the front of the proposition. since quantifiers simply create new propositions, we can use them with all the other connectives and symbols we learned before... just make sure you know what proposition each quantifier is attached to; i often use parentheses to be extremely clear. important note: the common convention is that quantifiers will only attach to the most basic proposition directly to their right. for example, consider this statement: $$\forall x,P(x)\Rightarrow Q$$ the convention states that it should be read aloud as "if for all \(x\), \(P(x)\), then \(Q\)." if you instead wanted to say "for all \(x\), \(P(x)\) implies \(Q\)," you would write $$\forall x,(P(x)\Rightarrow Q)$$ you can also attach \(\neg\) to propositions with quantifiers. for example,
both of these mean the same thing: we have a proposition \(P(x)\) which is false for any \(x\). similarly,
the facts above are called the quantifier negation laws! $$ \neg(\exists x,P(x))\equiv\forall x,\neg P(x)\\ \neg(\forall x,P(x))\equiv\exists x,\neg P(x) $$ you can also limit the range of a quantifier, which is useful for when you are making statements about objects of a certain type or in a certain set.
these are called bounded quantifiers; the only thing different about statements with bounded quantifiers is that they only talk about objects within the set they are bounded on. for statements with multiple variables, we can use multiple quantifiers! you just have to tack them on at the start of a proposition they are quantifying over. $$\forall x:\forall y,P(x,y)$$ side note: i personally like this notation where you place colons between each quantifier. all this notation for propositional logic is sort of a combination from what i've seen on ProofWiki and also the notation i've seen my own professors use, but so many people use different notations that when you read other textbooks about this subject you'll kind of have to figure out what each author means based on context and vibes; for this site, i'll stay consistent and use colons between quantifiers, a comma after them all, and then the proposition. for propositions with multiple of the same quantifier next to each other, you can combine all the bound variables into a shorthand notation like this:
these can also be reordered without changing the meaning of the statement. if these were bounded quantifiers instead, you'd have to be more careful that you only combine bound variables of the same type: $$\forall x\in X:\forall y\in X:\forall z\in Z,P(x,y,z)\equiv\forall(x,y)\in X:\forall z\in Z,P(x,y,z)$$ propositions with multiple different quantifiers next to each other cannot have their quantifiers rewritten or reordered:
the difference here is subtle, but can be made more clear if you say "for each" instead of "for all."
finally, one last little notational thing about existential quantifiers: if a proposition \(P(x)\) is true for only a single unique \(x\), we can use the unique existential quantifier (denoted \(\exists!\)) instead of the standard existential quantifier \(\exists\). $$\exists!x,P(x)\text{: "there exists a single }x\text{ such that }P(x)\text{."}$$ countingyou remember counting? (i hope so)power sets, pigeonhole principle, inclusion-exclusion principle factorials, permutations/combinations, binomial thm, proofsbe extremely clear about proof methods and techniquesmathematical inductionbe clear on strong vs weak inductionrelations and functionsrelations () and functions/mappingsdefining common setsdefining \(\mathbb{Z}\), \(\mathbb{Q}\), and \(\mathbb{R}\)infinitydefine finite and infinite sets (countable/uncountable)choice and orderaxiom of choice and the well-ordering thm |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |