{"id":14308,"date":"2016-02-12T19:00:04","date_gmt":"2016-02-12T19:00:04","guid":{"rendered":"http:\/\/www.oracletutoring.ca\/blog\/?p=14308"},"modified":"2016-02-16T18:07:07","modified_gmt":"2016-02-16T18:07:07","slug":"math-logic-beginnings","status":"publish","type":"post","link":"https:\/\/www.oracletutoring.ca\/blog\/math-logic-beginnings\/","title":{"rendered":"Math:  Symbolic Logic:  beginnings"},"content":{"rendered":"<h1>The tutor lays a foundation for posts about symbolic logic.<\/h1>\n<p>In logic, shorthand such as p\u2192q is used; it means &#8220;p implies q.&#8221; p\u00a0\u2228 q means &#8220;p or q.&#8221; p\u00a0\u2227 q means &#8220;p and q&#8221;. \u00acp means &#8220;not p&#8221;. p, q would each stand for a statement such as &#8220;It&#8217;s raining&#8221; or &#8220;The date is Feb 12&#8221;.<\/p>\n<p>p\u2192q can be true or false depending on the values of p and q. If they are both false, for instance, p\u2192q is true, since q is in the same state as p. <strong>If p is false but q is true, p\u2192q is true.<\/strong> Perhaps surprising, the reasoning for this case is that q is true regardless of p; whatever p is, it implies q. If p is true but q is false, p\u2192q is false, because p&#8217;s being true fails to make q also true. Lastly, and intuitively, if both are true then p\u2192q is true. Often, 0 is used for false, 1 for true.<\/p>\n<p>A compound statement is two or more statements linked by one or more &#8220;ands&#8221; or &#8220;ors&#8221;. Therefore, p\u00a0\u2228 q is a compound statement. To return to the possible values for p, q, proposed in the first paragraph, we have<\/p>\n<p style=\"text-align: center;\">p\u00a0\u2228 q means &#8220;It&#8217;s raining or the date is Feb 12.&#8221;<\/p>\n<p>Regardless of the meanings of p, q, in a given case, p\u00a0\u2228 q is true when one or both are true; p\u00a0\u2227 q is true only when both p, q, are true.<\/p>\n<p>&#8891; means &#8220;exclusive or&#8221;.  p &#8891; q is true when exactly one of p, q, is true (not both).<\/p>\n<p>I&#8217;ll be talking more about logic in future posts:)<\/p>\n<p>Source:<\/p>\n<p>Grimaldi, Ralph P.  <u>Discrete and Combinatorial Mathematics<\/u>.  Don Mills:  Addison-<br \/>&nbsp;&nbsp;Wesley, 1994.<\/p>\n<p>Jack of <a href=\"https:\/\/www.oracletutoring.ca\">Oracle Tutoring by Jack and Diane,<\/a> Campbell River, BC.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The tutor lays a foundation for posts about symbolic logic. In logic, shorthand such as p\u2192q is used; it means &#8220;p implies q.&#8221; p\u00a0\u2228 q means &#8220;p or q.&#8221; p\u00a0\u2227 q means &#8220;p and q&#8221;. \u00acp means &#8220;not p&#8221;. p, &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/www.oracletutoring.ca\/blog\/math-logic-beginnings\/\"> <span class=\"screen-reader-text\">Math:  Symbolic Logic:  beginnings<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[105,3],"tags":[1428,1425,1427,1426,1430,1429],"class_list":["post-14308","post","type-post","status-publish","format-standard","hentry","category-computer-science","category-math","tag-exclusive-or","tag-logic","tag-logic-foundations","tag-logic-symbols","tag-symbolic-logic","tag-xor"],"_links":{"self":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/14308","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/comments?post=14308"}],"version-history":[{"count":24,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/14308\/revisions"}],"predecessor-version":[{"id":14393,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/14308\/revisions\/14393"}],"wp:attachment":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/media?parent=14308"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/categories?post=14308"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/tags?post=14308"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}