personal-site/public/posts/eidma/index.html

506 lines
22 KiB
HTML
Raw Normal View History

2019-11-04 10:28:34 +01:00
<!DOCTYPE html>
<html lang="en">
<head>
2019-11-04 11:59:09 +01:00
<title>Introduction to Discrete Mathematics :: abdulocracy&#39;s personal site</title>
2019-11-04 10:28:34 +01:00
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
2019-11-04 11:59:09 +01:00
<meta name="description" content="Mathematics without infinitely small, continuous mathematical objects. The mathematics of finite sets. Propositional calculus Comes from the linguistic concept that things can be either true or false. We should avoid variables when forming statements, as they may change the logical value.
\(2=7\) statement \(x=5\) not a statement In logic we do not use the equals sign, we use the equivalence sign \(\equiv\).
Logical values (booleans) are denoted by either 0 or 1 (or t, f, etc."/>
2019-11-04 10:28:34 +01:00
<meta name="keywords" content=""/>
<meta name="robots" content="noodp"/>
<link rel="canonical" href="https://abdulocra.cy/posts/eidma/" />
2019-11-04 10:28:34 +01:00
<link rel="stylesheet" href="https://abdulocra.cy/assets/style.css">
2019-11-04 10:28:34 +01:00
<link rel="stylesheet" href="https://abdulocra.cy/assets/pink.css">
2019-11-04 11:59:09 +01:00
2019-11-04 10:28:34 +01:00
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="https://abdulocra.cy/img/apple-touch-icon-144-precomposed.png">
2019-11-04 10:28:34 +01:00
<link rel="shortcut icon" href="https://abdulocra.cy/img/favicon/favicon.png">
2019-11-04 10:28:34 +01:00
<meta name="twitter:card" content="summary" />
2019-11-04 11:59:09 +01:00
<meta name="twitter:title" content="Introduction to Discrete Mathematics :: abdulocracy&#39;s personal site — " />
<meta name="twitter:description" content="Mathematics without infinitely small, continuous mathematical objects. The mathematics of finite sets. Propositional calculus Comes from the linguistic concept that things can be either true or false. We should avoid variables when forming statements, as they may change the logical value.
\(2=7\) statement \(x=5\) not a statement In logic we do not use the equals sign, we use the equivalence sign \(\equiv\).
Logical values (booleans) are denoted by either 0 or 1 (or t, f, etc." />
<meta name="twitter:site" content="https://abdulocra.cy/" />
<meta name="twitter:creator" content="" />
2019-11-04 10:28:34 +01:00
<meta name="twitter:image" content="">
<meta property="og:locale" content="en" />
<meta property="og:type" content="article" />
2019-11-04 11:59:09 +01:00
<meta property="og:title" content="Introduction to Discrete Mathematics :: abdulocracy&#39;s personal site — ">
<meta property="og:description" content="Mathematics without infinitely small, continuous mathematical objects. The mathematics of finite sets. Propositional calculus Comes from the linguistic concept that things can be either true or false. We should avoid variables when forming statements, as they may change the logical value.
\(2=7\) statement \(x=5\) not a statement In logic we do not use the equals sign, we use the equivalence sign \(\equiv\).
Logical values (booleans) are denoted by either 0 or 1 (or t, f, etc." />
<meta property="og:url" content="https://abdulocra.cy/posts/eidma/" />
2019-11-04 10:28:34 +01:00
<meta property="og:site_name" content="Introduction to Discrete Mathematics" />
<meta property="og:image" content="">
<meta property="og:image:width" content="2048">
<meta property="og:image:height" content="1024">
<meta property="article:published_time" content="2019-11-20 00:00:00 &#43;0000 UTC" />
2019-11-04 10:28:34 +01:00
</head>
<body class="">
2019-11-04 11:59:09 +01:00
<div class="container center">
2019-11-04 10:28:34 +01:00
<header class="header">
<div class="header__inner">
<div class="header__logo">
<a href="/">
<div class="logo">
2019-11-04 11:59:09 +01:00
abdulocracy
2019-11-04 10:28:34 +01:00
</div>
</a>
</div>
<div class="menu-trigger">menu</div>
</div>
<nav class="menu">
<ul class="menu__inner menu__inner--desktop">
2019-11-04 11:59:09 +01:00
<ul class="menu__sub-inner">
<li class="menu__sub-inner-more-trigger">menu ▾</li>
2019-11-04 11:59:09 +01:00
<ul class="menu__sub-inner-more hidden">
<li><a href="/about">about</a></li>
<li><a href="/tags/university-notes">university notes</a></li>
</ul>
</ul>
2019-11-04 10:28:34 +01:00
</ul>
<ul class="menu__inner menu__inner--mobile">
2019-11-04 11:59:09 +01:00
<li><a href="/about">about</a></li>
2019-11-04 10:28:34 +01:00
2019-11-04 11:59:09 +01:00
<li><a href="/tags/university-notes">university notes</a></li>
2019-11-04 10:28:34 +01:00
</ul>
</nav>
</header>
<div class="content">
<div class="post">
<h1 class="post-title">
<a href="https://abdulocra.cy/posts/eidma/">Introduction to Discrete Mathematics</a></h1>
2019-11-04 10:28:34 +01:00
<div class="post-meta">
<span class="post-date">
2019-11-20
2019-11-04 10:28:34 +01:00
</span>
</div>
<span class="post-tags">
#<a href="https://abdulocra.cy/tags/university-notes/">university-notes</a>&nbsp;
2019-11-04 10:28:34 +01:00
</span>
<div class="post-content">
2019-11-04 11:59:09 +01:00
<ul>
2019-11-04 10:28:34 +01:00
<li>Mathematics without infinitely small, continuous mathematical objects. The mathematics of finite sets.</li>
</ul>
<h2 id="propositional-calculus">Propositional calculus</h2>
<ul>
<li>Comes from the linguistic concept that things can be either true or false.</li>
2019-11-04 11:59:09 +01:00
<li><p>We should avoid variables when forming statements, as they may change the logical value.</p>
2019-11-04 10:28:34 +01:00
<ul>
<li><span class="math">\(2=7\)</span> statement</li>
<li><span class="math">\(x=5\)</span> not a statement</li>
</ul></li>
2019-11-04 11:59:09 +01:00
<li><p>In logic we do not use the equals sign, we use the equivalence sign <span class="math">\(\equiv\)</span>.</p></li>
<li><p>Logical values (booleans) are denoted by either 0 or 1 (or t, f, etc.).</p></li>
<li><p>When doing logic, we use propositional variables (e.g. p, q, r).</p>
2019-11-04 10:28:34 +01:00
<ul>
<li>Can be either <strong>true</strong> or <strong>false</strong>.</li>
</ul></li>
2019-11-04 11:59:09 +01:00
<li><p>The operations done on propositional variables are called propositional connectives.</p>
<ul>
2019-11-04 10:28:34 +01:00
<li>Conjunction: <span class="math">\(p \land q\)</span> is only true if both p and q are true <span class="math">\((0001)\)</span></li>
<li>Disjunction: <span class="math">\(p \lor q\)</span> is only false if both p and q are false <span class="math">\((0111)\)</span></li>
<li>Implication (material conditional): <span class="math">\(p \implies q\)</span> is false only if p is true and q is false (truth table <span class="math">\((1011)\)</span>)
<ul>
<li><span class="math">\(\equiv \neg p \lor q\)</span></li>
</ul></li>
2019-11-04 11:59:09 +01:00
</ul></li>
2019-11-04 10:28:34 +01:00
2019-11-04 11:59:09 +01:00
<li><p>Not necessarily connectives but unary operations:</p>
<ul>
2019-11-04 10:28:34 +01:00
<li>Negation: Denoted by ~, <span class="math">\(\neg\)</span> or NOT, negates the one input <span class="math">\((10)\)</span>.</li>
2019-11-04 11:59:09 +01:00
</ul></li>
<li><p>A (propositional) formula is a &quot;properly constructed&quot; logical expression.</p>
2019-11-04 10:28:34 +01:00
<ul>
<li>e.g. <span class="math">\(\neg[(p \lor q)] \land r\)</span></li>
<li><span class="math">\((p \land)\)</span> is not a formula, as <span class="math">\(\land\)</span> requires 2 variables.</li>
<li>Logical equivalence: <span class="math">\(\phi(p, q, k) \equiv \psi(p, q, k)\)</span>, logical value of <span class="math">\(\phi\)</span> is equal to logical value of <span class="math">\(\psi\)</span>.</li>
<li>Commutativity: <span class="math">\(p \land q \equiv q \land p\)</span></li>
<li>Associativity: <span class="math">\((p \land q) \land r \equiv p \land (q \land r)\)</span></li>
<li>Distributivity: <span class="math">\(p \land (q \lor r) \equiv (p \land q) \lor (p \land r)\)</span></li>
<li>Conjunctive normal form: every formula can be written as a conjunction of one or more disjunctions.
<ul>
<li><span class="math">\(\neg(B \lor C)\)</span> can be written as <span class="math">\(\neg B \land \neg C\)</span></li>
</ul></li>
</ul></li>
2019-11-04 11:59:09 +01:00
<li><p>Double negation law: <span class="math">\(\neg(\neg p) \equiv p\)</span></p></li>
2019-11-04 10:28:34 +01:00
<li><p>De Morgan's laws: <span class="math">\(\neg(p \land q) \equiv \neg p \lor \neg q\)</span> and <span class="math">\(\neg(p \lor q) \equiv \neg p \land \neg q\)</span>.</p></li>
<li><p>If and only if (<em>iff</em>): <span class="math">\(p \iff p \equiv (p \implies q) \land (q \implies p)\)</span></p></li>
<li><p>Contraposition law:</p>
<ul>
2019-11-04 16:41:08 +01:00
<li><span class="math">\((p \implies q) \equiv (\neg q \implies \neg p)\)</span> prove by contraposition
2019-11-04 10:28:34 +01:00
<ul>
<li><span class="math">\((p \implies q) \equiv (\neg p \lor q)\)</span></li>
<li><span class="math">\((\neg q \implies \neg p) \equiv (\neg (\neg q) \lor (\neg p) \equiv (q \lor \neg p) \equiv (\neg p \lor q)\)</span></li>
</ul></li>
2019-11-04 16:41:08 +01:00
</ul></li>
2019-11-04 11:59:09 +01:00
<li><p>Contradiction law:</p>
2019-11-04 10:28:34 +01:00
<ul>
<li><span class="math">\(p \lor \neg p \equiv 1\)</span> and <span class="math">\(p \land \neg p \equiv 0\)</span></li>
</ul></li>
<li><p>Tautology: <span class="math">\(\phi (p, q, ... r)\)</span> is a tautology <em>iff</em> <span class="math">\(\phi \equiv 1\)</span></p></li>
</ul>
<h2 id="sets">Sets</h2>
<ul>
2019-11-04 11:59:09 +01:00
<li><p>We will consider subsets of universal set <span class="math">\(\mathbb X\)</span></p>
2019-11-04 10:28:34 +01:00
<ul>
<li><span class="math">\(2^\mathbb X = \{ A : A \subseteq \mathbb X\}\)</span></li>
<li><span class="math">\(2^\mathbb X = P(\mathbb X)\)</span></li>
<li>All 2 object subsets of <span class="math">\(\mathbb X\)</span>: <span class="math">\(P_2(\mathbb X)\)</span></li>
</ul></li>
2019-11-04 11:59:09 +01:00
<li><p><span class="math">\(A \subset B \equiv\)</span> every element of A is an element of B <span class="math">\(\equiv \{x \in \mathbb X : x \in A \implies x \in B\}\)</span></p></li>
<li><p>Operations on sets:</p>
2019-11-04 10:28:34 +01:00
<ul>
<li>Union - <span class="math">\(\cup\)</span> - <span class="math">\(A \cup B = \{ x \in \mathbb X : x \in A \lor x \in B \}\)</span></li>
<li>Intersection - <span class="math">\(\cap\)</span> - <span class="math">\(A \cap B = \{ x \in \mathbb X : x \in A \land x \in B \}\)</span></li>
<li>Complement - <span class="math">\(A'\)</span> - <span class="math">\(A' = \{ x \in \mathbb X : \neg (x \in A) \}\)</span>
<ul>
<li>If <span class="math">\(x = \{ 1 \}\)</span> then <span class="math">\(x' = \emptyset\)</span></li>
</ul></li>
</ul></li>
2019-11-04 11:59:09 +01:00
<li><p>Equality of sets: <span class="math">\(A = B\)</span> iff <span class="math">\(x \in \mathbb X : (x \in A \iff x \in B)\)</span></p></li>
<li><p>Difference of sets:</p>
2019-11-04 10:28:34 +01:00
<ul>
<li><span class="math">\(A \setminus B = \{ x \in \mathbb X : x \in A \land x \notin B \} = A \cap B'\)</span></li>
<li>Symmetric difference: <span class="math">\(A \div B = (A \setminus B) \cup (B \setminus A)\)</span></li>
</ul></li>
2019-11-04 11:59:09 +01:00
<li><p>Laws of set algebra:</p>
<ul>
2019-11-04 10:28:34 +01:00
<li><span class="math">\(A \cup B = B \cup A , A \cap B = B \cap A\)</span></li>
<li><span class="math">\((A \cup B) \cup C = A \cup (B \cup C), (A \cap B) \cap C = A \cap (B \cap C)\)</span></li>
<li><span class="math">\((A \cap (B \cup C) = (A \cap B) \cup (A \cap C)\)</span> vice versa</li>
<li><span class="math">\(A \cap \emptyset, A \cap \mathbb X = A, A \cup \emptyset = A, A \cup \mathbb X = \mathbb X\)</span></li>
<li><span class="math">\((A \cup B)' = A' \cap B'\)</span> vice versa</li>
<li><span class="math">\(A \cup A' = \mathbb X, A \cap A' = \emptyset\)</span></li>
2019-11-04 11:59:09 +01:00
</ul></li>
<li><p>Note: <span class="math">\(\{ \emptyset \} \neq \emptyset\)</span>, one is a set with one element, one is the empty set, no elements (<span class="math">\(\{ \}\)</span>)</p></li>
<li><p>Quip: <span class="math">\(\{ x \in \mathbb R : x^2 = -1\} = \emptyset\)</span></p></li>
2019-11-04 10:28:34 +01:00
</ul>
<h2 id="quantifiers">Quantifiers</h2>
<ul>
<li><span class="math">\(\phi\)</span> - prepositional function: yields only true or false value</li>
<li><span class="math">\(\forall\)</span> means &quot;for all&quot; and <span class="math">\(\exists\)</span> means &quot;there exists&quot;</li>
2019-11-04 11:59:09 +01:00
2019-11-04 16:41:08 +01:00
<li><p><span class="math">\(\forall\)</span>:</p>
2019-11-04 10:28:34 +01:00
<ul>
2019-11-04 16:41:08 +01:00
<li>Shorthand for <span class="math">\(\land\)</span> e.g. <span class="math">\((\forall x \in \{ 1, 2, ... 10 \}) x > 0 \equiv 1 > 0 \land 2 > 0 \land ... 10 > 0\)</span></li>
2019-11-04 10:28:34 +01:00
</ul></li>
2019-11-04 11:59:09 +01:00
2019-11-04 16:41:08 +01:00
<li><p><span class="math">\(\exists\)</span>:</p>
2019-11-04 10:28:34 +01:00
<ul>
2019-11-04 16:41:08 +01:00
<li>Shorthand for <span class="math">\(\lor\)</span> e.g. <span class="math">\((\exists x \in \{ 1, 2, ... 10 \}) x > 5 \equiv 1 > 5 \lor 2 > 5 \lor ... 10 > 5\)</span></li>
2019-11-04 10:28:34 +01:00
</ul></li>
2019-11-04 11:59:09 +01:00
<li><p><span class="math">\(\neg \forall \equiv \exists\)</span>, vice versa</p></li>
<li><p>With quantifiers we can write logical statements e.g.</p>
2019-11-04 10:28:34 +01:00
<ul>
<li><span class="math">\((\forall x \in \mathbb{R}) (\forall y \in \mathbb{R}) x > y\)</span> is a statement and is false</li>
<li><span class="math">\((\forall x) (\exists y) x > y\)</span> is true</li>
<li>shortcut: <span class="math">\((\exists x, y) \equiv (\exists x) (\exists y)\)</span></li>
</ul></li>
2019-11-04 11:59:09 +01:00
<li><p>Quantifiers can be expressed in set language, sort of a definition in terms of sets:</p>
2019-11-04 10:28:34 +01:00
<ul>
<li><span class="math">\((\forall x \in \mathbb{X}) (\phi(x)) \equiv \{ p \in \mathbb{X} : \phi(p) \} = \mathbb{X}\)</span></li>
<li><span class="math">\((\exists x \in \mathbb{X}) (\phi(x)) \equiv \{ q \in \mathbb{X} : \phi(q) \} \neq \emptyset\)</span></li>
<li><span class="math">\((\exists x \in \mathbb{X}) (\neg \phi(x)) \equiv \neg ( \{ p \in \mathbb{X} : \phi(p) \} = \mathbb{X} )\)</span></li>
</ul></li>
2019-11-04 11:59:09 +01:00
<li><p>Order of quantifiers matters.</p></li>
2019-11-04 10:28:34 +01:00
</ul>
<h2 id="relations">Relations</h2>
<ul>
2019-11-04 11:59:09 +01:00
<li><p>Cartesian product:</p>
2019-11-04 10:28:34 +01:00
<ul>
<li><span class="math">\(A \times B = \{ (p, q) : p \in A \land q \in B \}\)</span></li>
</ul></li>
2019-11-04 11:59:09 +01:00
<li><p>Def: A relation <span class="math">\(R\)</span> on a set <span class="math">\(\mathbb X\)</span> is a subset of <span class="math">\(\mathbb X \times \mathbb X\)</span> (<span class="math">\(R \subseteq \mathbb X \times \mathbb X\)</span>)</p></li>
<li><p>Graph of a function <span class="math">\(f()\)</span>: <span class="math">\(\{ (x, f(x) : x \in Dom(f) \}\)</span></p></li>
<li><p>Properties of:</p>
2019-11-04 10:28:34 +01:00
2019-11-04 16:53:52 +01:00
<ul>
2019-11-04 10:28:34 +01:00
<li>Reflexivity: <span class="math">\((\forall x \in \mathbb X ) (x, x) \in R \equiv (\forall x \in \mathbb X) x R x\)</span></li>
<li>Symmetricity: <span class="math">\([ (\forall x, y \in \mathbb X) (x, y) \in R \implies (y, x) \in R) ] \equiv [ (\forall x, y \in \mathbb X) ( x R y \implies y R x) ]\)</span></li>
<li>Transitivity: <span class="math">\((\forall x, y, z \in \mathbb X) (x R y \land y R z \implies x R z)\)</span></li>
<li>Antisymmetricity: <span class="math">\((\forall x, y \in \mathbb X) (x R y \land y R x \implies x = y)\)</span></li>
2019-11-04 16:53:52 +01:00
</ul></li>
2019-11-04 11:59:09 +01:00
<li><p>Equivalence relations:</p>
2019-11-04 10:28:34 +01:00
<ul>
<li>Def: <span class="math">\(R \subseteq \mathbb X \times \mathbb X\)</span> is said to be an equivalence relation <em>iff</em> <span class="math">\(R\)</span> is reflexive, symmetric and transitive.</li>
<li>Congruence modulo n: <span class="math">\(p R q \equiv n | p - q\)</span></li>
<li>Def R - and equivalence relation of <span class="math">\(\mathbb X\)</span>: The <em>equivalence class</em> of an element <span class="math">\(x \in \mathbb X\)</span> is the set <span class="math">\([x]_R = \{ y \in \mathbb X : x R y \}\)</span>
<ul>
<li>Every <span class="math">\(x \in \mathbb X\)</span> belongs to the equivalence class of some element <span class="math">\(a\)</span>.</li>
<li><span class="math">\((\forall x, y \in \mathbb X) ([x] \cap [y] \neq \emptyset \iff [x] = [y])\)</span></li>
</ul></li>
</ul></li>
2019-11-04 11:59:09 +01:00
<li><p>Partitions</p>
2019-11-04 10:28:34 +01:00
<ul>
2019-11-04 11:59:09 +01:00
<li><p>A partition is a set containing subsets of some set <span class="math">\(\mathbb X\)</span> such that their collective symmetric difference equals <span class="math">\(\mathbb X\)</span>. A partition of is a set <span class="math">\(\{ A_i: i \in \mathbb I \land A_i \subseteq \mathbb X \}\)</span> such that:</p>
2019-11-04 10:28:34 +01:00
<ul>
<li><span class="math">\((\forall x \in \mathbb X) (\exists j \in \mathbb I) (x \in A_j)\)</span></li>
<li><span class="math">\((\forall i, j \in \mathbb I) (i \neq j \implies A_i \cap A_j = \emptyset)\)</span></li>
</ul></li>
2019-11-04 11:59:09 +01:00
<li><p><span class="math">\(\{ A_i \}_{i \in \mathbb I}\)</span> is a partition <em>iff</em> there exists an equivalence relation <span class="math">\(R\)</span> on <span class="math">\(\mathbb X\)</span> such that:</p>
2019-11-04 10:28:34 +01:00
<ul>
<li><span class="math">\((\forall i \in \mathbb I) (\exists x \in \mathbb X) A_i = [x]_R\)</span></li>
<li><span class="math">\((\forall x \in \mathbb X) (\exists j \in \mathbb I) [x] = A_j\)</span></li>
</ul></li>
2019-11-04 11:59:09 +01:00
<li><p>The quotient set: <span class="math">\(\mathbb X / R = \{ [a] : a \in \mathbb X \}\)</span></p></li>
2019-11-04 10:28:34 +01:00
</ul></li>
</ul>
<h2 id="posets">Posets</h2>
<ul>
<li><p>Partial orders</p>
<ul>
<li><span class="math">\(\mathbb X\)</span> is a set, <span class="math">\(R \subseteq \mathbb X \times \mathbb X\)</span></li>
<li><p>Def: <span class="math">\(R\)</span> is a partial order on <span class="math">\(\mathbb X\)</span> iff <span class="math">\(R\)</span> is:</p>
<ul>
<li>Reflexive</li>
<li>Antisymmetric</li>
<li>Transitive</li>
</ul></li>
<li><p>Def: <span class="math">\(m \in \mathbb X\)</span> is said to be:</p>
<ul>
<li>maximal element in <span class="math">\((\mathbb X, \preccurlyeq)\)</span> iff <span class="math">\((\forall a \in \mathbb X) m \preccurlyeq a \implies m = a\)</span></li>
<li>largest iff <span class="math">\((\forall a \in \mathbb X) (a \preccurlyeq m)\)</span></li>
<li>minimal iff <span class="math">\((\forall a \in \mathbb X) (a \preccurlyeq m \implies a = m)\)</span></li>
<li>smallest iff <span class="math">\((\forall a \in \mathbb X) (m \preccurlyeq a)\)</span></li>
</ul></li>
<li><p>Def: A partial order <span class="math">\(R\)</span> on <span class="math">\(\mathbb X\)</span> is said to be <em>&quot;total&quot;</em> iff <span class="math">\((\forall x, y \in \mathbb X) (x R y \lor y R x)\)</span></p></li>
<li><p>Def: A subset <span class="math">\(B\)</span> of <span class="math">\(\mathbb X\)</span> is called a chain <em>&quot;chain&quot;</em> iff <span class="math">\(B\)</span> is totally ordered by <span class="math">\(R\)</span></p>
<ul>
<li><span class="math">\(C(\mathbb X)\)</span> - the set of all chains in <span class="math">\((\mathbb X, R)\)</span></li>
<li>A chain <span class="math">\(D\)</span> in <span class="math">\((\mathbb X, R)\)</span> is called a maximal chain iff <span class="math">\(D\)</span> is a maximal element in <span class="math">\((C(\mathbb X), R)\)</span></li>
<li><span class="math">\(K \subseteq \mathbb X\)</span> is called an antichain in <span class="math">\((\mathbb X, R)\)</span> iff <span class="math">\((\forall p, q \in K) (p R q \lor q R p \implies p = q)\)</span></li>
<li>Def: <span class="math">\(R\)</span> is a partial order on <span class="math">\(\mathbb X\)</span>, <span class="math">\(R\)</span> is called a <em>well</em> order iff <span class="math">\(R\)</span> is a total order on <span class="math">\(X\)</span> and every nonempty subset <span class="math">\(A\)</span> of <span class="math">\(\mathbb X\)</span> has the smallest element</li>
</ul></li>
</ul></li>
</ul>
<h2 id="induction">Induction</h2>
<ul>
<li>If <span class="math">\(\phi\)</span> is a propositional function defined on <span class="math">\(\mathbb N\)</span>, if:
<ul>
<li><span class="math">\(\phi(1)\)</span></li>
<li><span class="math">\((\forall n \geq 1) \phi(n) \implies \phi(n+1)\)</span></li>
<li><span class="math">\((\forall k \geq 1) \phi(k)\)</span></li>
</ul></li>
</ul>
<h2 id="functions">Functions</h2>
<ul>
<li><span class="math">\(f: \mathbb X \to \mathbb Y\)</span></li>
<li><p>Def: <span class="math">\(f \subseteq \mathbb X \times \mathbb Y\)</span> is said to be a function if:</p>
<ul>
<li><span class="math">\((\forall x \in \mathbb X)(\exists y \in \mathbb Y) (x, y) \in f(y = f(x))\)</span></li>
<li><span class="math">\((\forall a \in \mathbb X)(\forall p, q \in \mathbb Y)((a, p) \in f \land (a, q) \in f \implies p = q)\)</span></li>
</ul></li>
<li><p>Types of functions <span class="math">\(f: \mathbb X \to \mathbb Y\)</span>:</p>
<ul>
<li><span class="math">\(f\)</span> is said to be an injection ( 1 to 1 function) iff <span class="math">\((\forall x_1, x_2 \in \mathbb X) x_1 \neq x_2 \implies f(x_1) \neq f(x_2)\)</span></li>
<li><span class="math">\(f\)</span> is said to be a surjection (onto function) iff <span class="math">\((\forall y \in \mathbb Y)(\exists x \in \mathbb X) f(x) = y\)</span></li>
<li>If <span class="math">\(f^{-1}\)</span> is a function from <span class="math">\(\mathbb Y \to \mathbb X\)</span> then <span class="math">\(f^{-1}\)</span> is called the inverse function for <span class="math">\(f\)</span>
<ul>
<li>Fact: <span class="math">\(f^{-1}\)</span> is a function iff <span class="math">\(f\)</span> is a <em>bijection</em> (1 to 1 and onto)</li>
</ul></li>
</ul></li>
<li><p>For some set <span class="math">\(\mathbb A\)</span> the image of <span class="math">\(\mathbb A\)</span> by <span class="math">\(f\)</span> is <span class="math">\(f(\mathbb A) = \{ f(x) : x \in \mathbb A \}\)</span>. We can also define the inverse of an image even when the function itself isn't invertible: <span class="math">\(f^{-1}(\mathbb A)\)</span></p></li>
2019-11-04 10:28:34 +01:00
</ul>
</div>
</div>
</div>
<footer class="footer">
<div class="footer__inner">
2019-11-04 16:41:08 +01:00
<div class="copyright copyright--user">
<span>© Abdulkadir Furkan Şanlı 2019 :: <a href="https://creativecommons.org/licenses/by-nd/4.0/">CC
BY-ND</a></span>
<span>:: theme by <a href="https://twitter.com/panr">panr</a></span>
2019-11-04 10:28:34 +01:00
</div>
2019-11-04 16:41:08 +01:00
</div>
2019-11-04 10:28:34 +01:00
</footer>
<script src="https://abdulocra.cy/assets/main.js"></script>
<script src="https://abdulocra.cy/assets/prism.js"></script>
2019-11-04 10:28:34 +01:00
2019-11-04 11:59:09 +01:00
2019-11-04 16:41:08 +01:00
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.css"
integrity="sha384-zB1R0rpPzHqg7Kpt0Aljp8JPLqbXI3bhnPWROx27a9N0Ll6ZP/+DiW/UqRcLbRjq" crossorigin="anonymous">
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.js"
integrity="sha384-y23I5Q6l+B6vatafAwxRu/0oK/79VlbSz7Q9aiSZUvyWYIYsd+qj+o24G5ZU2zJz"
crossorigin="anonymous"></script>
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/contrib/auto-render.min.js"
integrity="sha384-kWPLUVMOks5AQFrykwIup5lo0m3iMkkHrD0uJ4H5cjeGihAutqP0yW0J6dpFiVkI" crossorigin="anonymous"
2019-11-04 10:28:34 +01:00
onload="renderMathInElement(document.body);"></script>
</div>
</body>
</html>