{"id":1089,"date":"2015-06-08T20:03:08","date_gmt":"2020-02-18T06:53:26","guid":{"rendered":"https:\/\/redfrontdoor.org\/blg2\/?p=1089"},"modified":"2020-02-19T16:19:01","modified_gmt":"2020-02-19T16:19:01","slug":"post-1083","status":"publish","type":"post","link":"https:\/\/redfrontdoor.org\/blog\/?p=1089","title":{"rendered":"Faint amusement from arrows"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">In logic, we talk about propositions, giving them names, say <em>p<\/em> or <em>q<\/em>. For example, <em>p<\/em> might be the proposition &#8216;it is raining&#8217;, and <em>q<\/em> the proposition &#8216;I will get wet&#8217;. Then to represent the proposition &#8216;<em>if<\/em> it is raining <em>then<\/em> I will get wet&#8217;, we can say &#8216;<em>p<\/em> IMPLIES <em>q<\/em>&#8216;, which is often written with a double-arrow:<\/p>\n\n\n\n<p class=\"has-text-align-center wp-block-paragraph\"><em>p<\/em> \u21d2 <em>q<\/em>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In ASCII, this can be approximated by &#8216;<span class=\"typewriter\">p&nbsp;=&gt;&nbsp;q<\/span>&#8216;.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In full, this operator has the following truth table:<\/p>\n\n\n\n<figure class=\"wp-block-table truth-table typewriter\"><table class=\"\"><tbody><tr><th>p<\/th><th>q<\/th><th>p&nbsp;=&gt;&nbsp;q<\/th><\/tr><tr><td>T<\/td><td>T<\/td><td>T<\/td><\/tr><tr><td>T<\/td><td>F<\/td><td>F<\/td><\/tr><tr><td>F<\/td><td>T<\/td><td>T<\/td><\/tr><tr><td>F<\/td><td>F<\/td><td>T<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">(This appears slightly strange, but the only way we can disprove the claim &#8216;<em>p<\/em> implies <em>q<\/em>&#8216; is if <em>p<\/em> happens but <em>q<\/em> doesn&#8217;t.)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In many programming languages, you can ask whether object <em>x<\/em> is &#8216;less than&#8217; object <em>y<\/em>, where this is natural for things like numbers, but can be extended to objects of other types. In particular, for Boolean objects, it&#8217;s very common for <em>False<\/em> to be &#8216;less than&#8217; <em>True<\/em>. If we look at the truth table for &#8216;<em>x<\/em> \u2264 <em>y<\/em>&#8216;, represented in many languages as &#8216;<span class=\"typewriter\">x&nbsp;&lt;=&nbsp;y<\/span>&#8216;, we find<\/p>\n\n\n\n<figure class=\"wp-block-table truth-table typewriter\"><table class=\"\"><tbody><tr><th>x<\/th><th>y<\/th><th>x&nbsp;&lt;=&nbsp;y<\/th><\/tr><tr><td>F<\/td><td>F<\/td><td>T<\/td><\/tr><tr><td>F<\/td><td>T<\/td><td>T<\/td><\/tr><tr><td>T<\/td><td>F<\/td><td>F<\/td><\/tr><tr><td>T<\/td><td>T<\/td><td>T<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The witty thing (and recall that this only provides <em>faint<\/em> amusement) is that we can compare these tables to conclude:<\/p>\n\n\n\n<p class=\"has-text-align-center wp-block-paragraph\"><span class=\"typewriter\">p&nbsp;&lt;=&nbsp;q<\/span>&nbsp;<span class=\"pad-lr\">means<\/span>&nbsp;<span class=\"typewriter\">p&nbsp;=&gt;&nbsp;q<\/span>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In logic, we talk about propositions, giving them names, say p or q. For example, p might be the proposition &#8216;it is raining&#8217;, and q the proposition &#8216;I will get wet&#8217;. Then to represent the proposition &#8216;if it is raining then I will get wet&#8217;, we can say &#8216;p IMPLIES q&#8216;, which is often written with a double-arrow: p \u21d2 q. In ASCII, this can be approximated by &#8216;p&nbsp;=&gt;&nbsp;q&#8216;. In full, this operator has the following truth table: p q p&nbsp;=&gt;&nbsp;q T T T T F F F T T F F T (This appears slightly strange, but the only way we can disprove the claim &#8216;p implies q&#8216; is if p happens but q doesn&#8217;t.) In many programming languages,<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1089","post","type-post","status-publish","format-standard","hentry","category-uncategorized","comments-off"],"_links":{"self":[{"href":"https:\/\/redfrontdoor.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1089","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/redfrontdoor.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/redfrontdoor.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/redfrontdoor.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/redfrontdoor.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1089"}],"version-history":[{"count":4,"href":"https:\/\/redfrontdoor.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1089\/revisions"}],"predecessor-version":[{"id":3770,"href":"https:\/\/redfrontdoor.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1089\/revisions\/3770"}],"wp:attachment":[{"href":"https:\/\/redfrontdoor.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1089"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/redfrontdoor.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1089"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/redfrontdoor.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1089"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}