{"id":208,"date":"2023-06-05T15:30:15","date_gmt":"2023-06-05T15:30:15","guid":{"rendered":"https:\/\/courses.lumenlearning.com\/tulsacc-math1473\/chapter\/putting-it-together-set-theory\/"},"modified":"2023-06-22T15:34:02","modified_gmt":"2023-06-22T15:34:02","slug":"putting-it-together-set-theory","status":"publish","type":"chapter","link":"https:\/\/courses.lumenlearning.com\/tulsacc-math1473\/chapter\/putting-it-together-set-theory\/","title":{"raw":"Putting It Together: Set Theory and Logic","rendered":"Putting It Together: Set Theory and Logic"},"content":{"raw":"[caption id=\"attachment_2379\" align=\"alignright\" width=\"285\"]<a href=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/1141\/2017\/03\/29171613\/Boole.jpg\"><img class=\"wp-image-2379\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/1141\/2017\/03\/29171613\/Boole-224x300.jpg\" alt=\"A colored sketch of George Boole wearing a black bowtie.\" width=\"285\" height=\"382\" \/><\/a> George Boole[\/caption]\r\n\r\nIn this module we\u2019ve seen how logic and valid arguments can be formalized using mathematical notation and a few basic rules. \u00a0In fact when George Boole (1815-1864) first developed <strong>symbolic logic<\/strong> (or <strong>Boolean logic<\/strong>), he had the idea that his system could be used by lawyers, philosophers, and mathematicians alike to help put convoluted arguments on a firmer footing. \u00a0Little did he realize that his system of \u201c<em>and<\/em>,\u201d \u201c<em>or<\/em>,\u201d and \u201c<em>not<\/em>\u201d operations would one day transform the world by ushering in the Digital Revolution and modern day computing.\r\n\r\n&nbsp;\r\n\r\nWhat is the connection between logic and computers? \u00a0Instead of truth values <strong>T<\/strong> and <strong>F<\/strong>, digital computers rely on two <strong>states<\/strong>, either <em>on<\/em>(1) or <em>off<\/em>(0). \u00a0This is because a computer consists of many <strong>circuits<\/strong>, which are electrical pathways that can either be closed to allow the current to flow, or open to break the connection. \u00a0A \u201c1\u201d would signify a closed circuit while a \u201c0\u201d represents an open circuit.\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\nCertain components called <strong>gates<\/strong> allow the computer to open or close circuits based on input. \u00a0For example, an AND gate has two input wires (A, B) and one output (C). \u00a0Electricity will flow at C if and only if both A and B have current. \u00a0Traditionally, the AND operation is written like multiplication; that is, A AND B = AB.\r\n\r\n<a href=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/1141\/2017\/03\/29172129\/andgate.png\"><img class=\"size-medium wp-image-2381 aligncenter\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/1141\/2017\/03\/29172129\/andgate-300x86.png\" alt=\"AND Gate\" width=\"300\" height=\"86\" \/><\/a>\r\n\r\n&nbsp;\r\n\r\nMultiplication seems to be a natural interpretation of AND when applied to the values 0 and 1. \u00a0Just think about the truth table for the operation [latex]\\wedge[\/latex], replacing <strong>T<\/strong> by 1 and <strong>F<\/strong> by 0.\r\n<div>\r\n<table style=\"width: 50%;\">\r\n<tbody>\r\n<tr>\r\n<td>A<\/td>\r\n<td>B<\/td>\r\n<td>AB (A AND B)<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>1<\/td>\r\n<td>1<\/td>\r\n<td>1<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>1<\/td>\r\n<td>0<\/td>\r\n<td>0<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>0<\/td>\r\n<td>1<\/td>\r\n<td>0<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>0<\/td>\r\n<td>0<\/td>\r\n<td>0<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/div>\r\n&nbsp;\r\n\r\nThere is also an OR gate. \u00a0Again, two inputs A and B determine the output C, however this time C = 1 if and only if either A or B (or both) is equal to 1. \u00a0This operation, which corresponds to the logical expression [latex]A \\vee B[\/latex], is often interpreted as a kind of addition (A OR B = A + B), however it\u2019s not a perfect analogy because [latex]1+1=1[\/latex] in Boolean logic.\r\n\r\n<a href=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/1141\/2017\/03\/29172439\/orgate.png\"><img class=\"size-medium wp-image-2383 aligncenter\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/1141\/2017\/03\/29172439\/orgate-300x99.png\" alt=\"OR Gate\" width=\"300\" height=\"99\" \/><\/a>\r\n\r\n&nbsp;\r\n<div>\r\n<table style=\"width: 50%;\">\r\n<tbody>\r\n<tr>\r\n<td>A<\/td>\r\n<td>B<\/td>\r\n<td>A + B (A OR B)<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>1<\/td>\r\n<td>1<\/td>\r\n<td>1<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>1<\/td>\r\n<td>0<\/td>\r\n<td>1<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>0<\/td>\r\n<td>1<\/td>\r\n<td>1<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>0<\/td>\r\n<td>0<\/td>\r\n<td>0<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/div>\r\n&nbsp;\r\n\r\nFinally, there is a gate whose output is the opposite state as its input. \u00a0So if the input (A) is 1, then the output (C) will be 0, and vice versa. \u00a0This is called the NOT gate. \u00a0You have encountered \u201cnot\u201d as the logical expression [latex]\\sim\\!\\textrm{A}[\/latex], but \u00a0the usual notation in computer science for NOT A is [latex]\\overline{\\textrm{A}}[\/latex]. \u00a0The gate along with its truth table shown below.\r\n\r\n<a href=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/1141\/2017\/03\/29172636\/notgate.png\"><img class=\"size-medium wp-image-2384 aligncenter\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/1141\/2017\/03\/29172636\/notgate-300x98.png\" alt=\"NOT Gate\" width=\"300\" height=\"98\" \/><\/a>\r\n\r\n&nbsp;\r\n<div>\r\n<table style=\"width: 50%;\">\r\n<tbody>\r\n<tr>\r\n<td>A<\/td>\r\n<td>[latex]\\overline{\\textrm{A}}[\/latex] (NOT A)<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>1<\/td>\r\n<td>0<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>0<\/td>\r\n<td>1<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/div>\r\n&nbsp;\r\n\r\nMoreover, numerical values can be represented by a string of 1\u2019s and 0\u2019s in what we call <strong>binary notation<\/strong>. \u00a0Then the basic operations of addition, subtraction, multiplication, and division of binary number can actually be accomplished using the right combination of gates, in other words by Boolean logical operations.\r\n\r\n&nbsp;","rendered":"<div id=\"attachment_2379\" style=\"width: 295px\" class=\"wp-caption alignright\"><a href=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/1141\/2017\/03\/29171613\/Boole.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-2379\" class=\"wp-image-2379\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/1141\/2017\/03\/29171613\/Boole-224x300.jpg\" alt=\"A colored sketch of George Boole wearing a black bowtie.\" width=\"285\" height=\"382\" \/><\/a><\/p>\n<p id=\"caption-attachment-2379\" class=\"wp-caption-text\">George Boole<\/p>\n<\/div>\n<p>In this module we\u2019ve seen how logic and valid arguments can be formalized using mathematical notation and a few basic rules. \u00a0In fact when George Boole (1815-1864) first developed <strong>symbolic logic<\/strong> (or <strong>Boolean logic<\/strong>), he had the idea that his system could be used by lawyers, philosophers, and mathematicians alike to help put convoluted arguments on a firmer footing. \u00a0Little did he realize that his system of \u201c<em>and<\/em>,\u201d \u201c<em>or<\/em>,\u201d and \u201c<em>not<\/em>\u201d operations would one day transform the world by ushering in the Digital Revolution and modern day computing.<\/p>\n<p>&nbsp;<\/p>\n<p>What is the connection between logic and computers? \u00a0Instead of truth values <strong>T<\/strong> and <strong>F<\/strong>, digital computers rely on two <strong>states<\/strong>, either <em>on<\/em>(1) or <em>off<\/em>(0). \u00a0This is because a computer consists of many <strong>circuits<\/strong>, which are electrical pathways that can either be closed to allow the current to flow, or open to break the connection. \u00a0A \u201c1\u201d would signify a closed circuit while a \u201c0\u201d represents an open circuit.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Certain components called <strong>gates<\/strong> allow the computer to open or close circuits based on input. \u00a0For example, an AND gate has two input wires (A, B) and one output (C). \u00a0Electricity will flow at C if and only if both A and B have current. \u00a0Traditionally, the AND operation is written like multiplication; that is, A AND B = AB.<\/p>\n<p><a href=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/1141\/2017\/03\/29172129\/andgate.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-2381 aligncenter\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/1141\/2017\/03\/29172129\/andgate-300x86.png\" alt=\"AND Gate\" width=\"300\" height=\"86\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Multiplication seems to be a natural interpretation of AND when applied to the values 0 and 1. \u00a0Just think about the truth table for the operation [latex]\\wedge[\/latex], replacing <strong>T<\/strong> by 1 and <strong>F<\/strong> by 0.<\/p>\n<div>\n<table style=\"width: 50%;\">\n<tbody>\n<tr>\n<td>A<\/td>\n<td>B<\/td>\n<td>AB (A AND B)<\/td>\n<\/tr>\n<tr>\n<td>1<\/td>\n<td>1<\/td>\n<td>1<\/td>\n<\/tr>\n<tr>\n<td>1<\/td>\n<td>0<\/td>\n<td>0<\/td>\n<\/tr>\n<tr>\n<td>0<\/td>\n<td>1<\/td>\n<td>0<\/td>\n<\/tr>\n<tr>\n<td>0<\/td>\n<td>0<\/td>\n<td>0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>&nbsp;<\/p>\n<p>There is also an OR gate. \u00a0Again, two inputs A and B determine the output C, however this time C = 1 if and only if either A or B (or both) is equal to 1. \u00a0This operation, which corresponds to the logical expression [latex]A \\vee B[\/latex], is often interpreted as a kind of addition (A OR B = A + B), however it\u2019s not a perfect analogy because [latex]1+1=1[\/latex] in Boolean logic.<\/p>\n<p><a href=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/1141\/2017\/03\/29172439\/orgate.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-2383 aligncenter\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/1141\/2017\/03\/29172439\/orgate-300x99.png\" alt=\"OR Gate\" width=\"300\" height=\"99\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<div>\n<table style=\"width: 50%;\">\n<tbody>\n<tr>\n<td>A<\/td>\n<td>B<\/td>\n<td>A + B (A OR B)<\/td>\n<\/tr>\n<tr>\n<td>1<\/td>\n<td>1<\/td>\n<td>1<\/td>\n<\/tr>\n<tr>\n<td>1<\/td>\n<td>0<\/td>\n<td>1<\/td>\n<\/tr>\n<tr>\n<td>0<\/td>\n<td>1<\/td>\n<td>1<\/td>\n<\/tr>\n<tr>\n<td>0<\/td>\n<td>0<\/td>\n<td>0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>&nbsp;<\/p>\n<p>Finally, there is a gate whose output is the opposite state as its input. \u00a0So if the input (A) is 1, then the output (C) will be 0, and vice versa. \u00a0This is called the NOT gate. \u00a0You have encountered \u201cnot\u201d as the logical expression [latex]\\sim\\!\\textrm{A}[\/latex], but \u00a0the usual notation in computer science for NOT A is [latex]\\overline{\\textrm{A}}[\/latex]. \u00a0The gate along with its truth table shown below.<\/p>\n<p><a href=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/1141\/2017\/03\/29172636\/notgate.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-2384 aligncenter\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/1141\/2017\/03\/29172636\/notgate-300x98.png\" alt=\"NOT Gate\" width=\"300\" height=\"98\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<div>\n<table style=\"width: 50%;\">\n<tbody>\n<tr>\n<td>A<\/td>\n<td>[latex]\\overline{\\textrm{A}}[\/latex] (NOT A)<\/td>\n<\/tr>\n<tr>\n<td>1<\/td>\n<td>0<\/td>\n<\/tr>\n<tr>\n<td>0<\/td>\n<td>1<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>&nbsp;<\/p>\n<p>Moreover, numerical values can be represented by a string of 1\u2019s and 0\u2019s in what we call <strong>binary notation<\/strong>. \u00a0Then the basic operations of addition, subtraction, multiplication, and division of binary number can actually be accomplished using the right combination of gates, in other words by Boolean logical operations.<\/p>\n<p>&nbsp;<\/p>\n\n\t\t\t <section class=\"citations-section\" role=\"contentinfo\">\n\t\t\t <h3>Candela Citations<\/h3>\n\t\t\t\t\t <div>\n\t\t\t\t\t\t <div id=\"citation-list-208\">\n\t\t\t\t\t\t\t <div class=\"licensing\"><div class=\"license-attribution-dropdown-subheading\">CC licensed content, Original<\/div><ul class=\"citation-list\"><li>Putting It Together: Set Theory. <strong>Authored by<\/strong>: Lumen Learning. <strong>License<\/strong>: <em><a target=\"_blank\" rel=\"license\" href=\"https:\/\/creativecommons.org\/licenses\/by\/4.0\/\">CC BY: Attribution<\/a><\/em><\/li><li>AND Gate. <strong>Authored by<\/strong>: Shaun Ault for Lumen Learning. <strong>License<\/strong>: <em><a target=\"_blank\" rel=\"license\" href=\"https:\/\/creativecommons.org\/licenses\/by\/4.0\/\">CC BY: Attribution<\/a><\/em><\/li><li>OR Gate. <strong>Authored by<\/strong>: Shaun Ault for Lumen Learning. <strong>License<\/strong>: <em><a target=\"_blank\" rel=\"license\" href=\"https:\/\/creativecommons.org\/licenses\/by\/4.0\/\">CC BY: Attribution<\/a><\/em><\/li><li>NOT Gate. <strong>Authored by<\/strong>: Shaun Ault for Lumen Learning. <strong>License<\/strong>: <em><a target=\"_blank\" rel=\"license\" href=\"https:\/\/creativecommons.org\/licenses\/by\/4.0\/\">CC BY: Attribution<\/a><\/em><\/li><li>(NOT A) AND (NOT B). <strong>Authored by<\/strong>: Shaun Ault for Lumen Learning. <strong>License<\/strong>: <em><a target=\"_blank\" rel=\"license\" href=\"https:\/\/creativecommons.org\/licenses\/by\/4.0\/\">CC BY: Attribution<\/a><\/em><\/li><li>NOT (A OR B). <strong>Authored by<\/strong>: Shaun Ault for Lumen Learning. <strong>License<\/strong>: <em><a target=\"_blank\" rel=\"license\" href=\"https:\/\/creativecommons.org\/licenses\/by\/4.0\/\">CC BY: Attribution<\/a><\/em><\/li><\/ul><div class=\"license-attribution-dropdown-subheading\">CC licensed content, Shared previously<\/div><ul class=\"citation-list\"><li>George Boole. <strong>Located at<\/strong>: <a target=\"_blank\" href=\"https:\/\/commons.wikimedia.org\/wiki\/File:George_Boole_color.jpg\">https:\/\/commons.wikimedia.org\/wiki\/File:George_Boole_color.jpg<\/a>. <strong>License<\/strong>: <em><a target=\"_blank\" rel=\"license\" href=\"https:\/\/creativecommons.org\/about\/pdm\">Public Domain: No Known Copyright<\/a><\/em><\/li><\/ul><\/div>\n\t\t\t\t\t\t <\/div>\n\t\t\t\t\t <\/div>\n\t\t\t <\/section>","protected":false},"author":503070,"menu_order":14,"template":"","meta":{"_candela_citation":"[{\"type\":\"original\",\"description\":\"Putting It Together: Set Theory\",\"author\":\"Lumen Learning\",\"organization\":\"\",\"url\":\"\",\"project\":\"\",\"license\":\"cc-by\",\"license_terms\":\"\"},{\"type\":\"cc\",\"description\":\"George Boole\",\"author\":\"\",\"organization\":\"\",\"url\":\"https:\/\/commons.wikimedia.org\/wiki\/File:George_Boole_color.jpg\",\"project\":\"\",\"license\":\"pd\",\"license_terms\":\"\"},{\"type\":\"original\",\"description\":\"AND Gate\",\"author\":\"Shaun Ault for Lumen Learning\",\"organization\":\"\",\"url\":\"\",\"project\":\"\",\"license\":\"cc-by\",\"license_terms\":\"\"},{\"type\":\"original\",\"description\":\"OR Gate\",\"author\":\"Shaun Ault for Lumen Learning\",\"organization\":\"\",\"url\":\"\",\"project\":\"\",\"license\":\"cc-by\",\"license_terms\":\"\"},{\"type\":\"original\",\"description\":\"NOT Gate\",\"author\":\"Shaun Ault for Lumen Learning\",\"organization\":\"\",\"url\":\"\",\"project\":\"\",\"license\":\"cc-by\",\"license_terms\":\"\"},{\"type\":\"original\",\"description\":\"(NOT A) AND (NOT B)\",\"author\":\"Shaun Ault for Lumen Learning\",\"organization\":\"\",\"url\":\"\",\"project\":\"\",\"license\":\"cc-by\",\"license_terms\":\"\"},{\"type\":\"original\",\"description\":\"NOT (A OR B)\",\"author\":\"Shaun Ault for Lumen Learning\",\"organization\":\"\",\"url\":\"\",\"project\":\"\",\"license\":\"cc-by\",\"license_terms\":\"\"}]","CANDELA_OUTCOMES_GUID":"97cd96e9-21b2-4edf-a1ab-88cc0c3d6326","pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-208","chapter","type-chapter","status-publish","hentry"],"part":184,"_links":{"self":[{"href":"https:\/\/courses.lumenlearning.com\/tulsacc-math1473\/wp-json\/pressbooks\/v2\/chapters\/208","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/courses.lumenlearning.com\/tulsacc-math1473\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/courses.lumenlearning.com\/tulsacc-math1473\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/tulsacc-math1473\/wp-json\/wp\/v2\/users\/503070"}],"version-history":[{"count":2,"href":"https:\/\/courses.lumenlearning.com\/tulsacc-math1473\/wp-json\/pressbooks\/v2\/chapters\/208\/revisions"}],"predecessor-version":[{"id":795,"href":"https:\/\/courses.lumenlearning.com\/tulsacc-math1473\/wp-json\/pressbooks\/v2\/chapters\/208\/revisions\/795"}],"part":[{"href":"https:\/\/courses.lumenlearning.com\/tulsacc-math1473\/wp-json\/pressbooks\/v2\/parts\/184"}],"metadata":[{"href":"https:\/\/courses.lumenlearning.com\/tulsacc-math1473\/wp-json\/pressbooks\/v2\/chapters\/208\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/courses.lumenlearning.com\/tulsacc-math1473\/wp-json\/wp\/v2\/media?parent=208"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/tulsacc-math1473\/wp-json\/pressbooks\/v2\/chapter-type?post=208"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/tulsacc-math1473\/wp-json\/wp\/v2\/contributor?post=208"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/tulsacc-math1473\/wp-json\/wp\/v2\/license?post=208"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}