{"id":496,"date":"2016-04-15T23:30:09","date_gmt":"2016-04-16T03:30:09","guid":{"rendered":"http:\/\/aristotle2digital.blogwyrm.com\/?p=496"},"modified":"2021-11-25T20:31:02","modified_gmt":"2021-11-26T01:31:02","slug":"propositional-calculus-part-1-introduction","status":"publish","type":"post","link":"https:\/\/aristotle2digital.blogwyrm.com\/?p=496","title":{"rendered":"Propositional Calculus \u2013 Part 1: Introduction"},"content":{"rendered":"<p>Propositional calculus is one of the oldest forms of logic.\u00a0 It lies at the heart of all syllogisms, deductions, inductive inferences, and the like.\u00a0 It is the system that allows us to deal with logic problems such as determining the truth of the following argument:<\/p>\n<div class=\"myQuoteDiv\">It is raining<br \/>\nIf it is raining then I am depressed<br \/>\nI am depressed<\/div>\n<p>or of this argument:<\/p>\n<div class=\"myQuoteDiv\">It is sunny<br \/>\nIf it is sunny then it is bright<br \/>\nIf it is bright then I should wear sunglasses<br \/>\nI should wear a raincoat.<\/div>\n<p>Note that is doesn\u2019t judge the truth or falsehood of the premises (It is raining or it is sunny) or of the conditionals (If it is\u2026), it only judges the truth content of the conclusion based on these assumptions (premises and conditionals).\u00a0 It won\u2019t know whether or not it is raining, but it will be able to tell me that I am depressed when it is raining (not true \u2013 I like the rain) or that I shouldn\u2019t wear a raincoat when it is sunny.\u00a0 Note also that the system is not equipped to handle syllogism using the quantifiers all, some, or none.\u00a0 Thus the true syllogism<\/p>\n<div class=\"myQuoteDiv\">All men are mortal<br \/>\nSocrates is a man<br \/>\nSocrates is mortal<\/div>\n<p>and the false syllogism<\/p>\n<div class=\"myQuoteDiv\">All cats have fur<br \/>\nAll cats are mammals<br \/>\nAll mammals have fur<\/div>\n<p>are outside of its ability to evaluate.<\/p>\n<p>Despite these limitations, the system is fairly powerful and can be used in successful applications of artificial intelligence to solve real-world, interesting problems.<\/p>\n<p>Amazingly propositional logic is able to pack a lot of power into a fairly brief amount of symbolism.\u00a0 The system as a whole consists of 2 objects, 5 expressions that define relations between the objects, 10 rules for manipulating the relations, and 3 helper symbols that act as traffic cops to impose order on the steps.<\/p>\n<p>The simplest object of the system is an atomic proposition, like the statement \u2018It is raining\u2019.\u00a0 This proposition, usually denoted by a single capital letter \u2013 \u2018R\u2019 for \u2018It is raining\u2019.\u00a0 More complex propositions are built out of the atomic propositions using the 5 logical expressions, subject to certain rules.\u00a0 Any primitive proposition and all valid compound propositions are collectively known as well-formed formulae (wffs \u2013 pronounce \u2018woofs\u2019, like the sounds dogs make).\u00a0 Often wffs are denoted by Greek symbols, like $\\phi$ or $\\psi$.<\/p>\n<p>The 5 logical expressions denote relations associated with the propositions.\u00a0 There is one prefix expression, where the expression symbol operators on only one proposition, and 4 infix expressions that link two propositions together.<\/p>\n<p>The prefix expression is the \u2018not\u2019 which translates the proposition \u2018It is raining\u2019 into the negative proposition \u2018It is not the case that it is raining\u2019.\u00a0 This somewhat more clunky way of expressing the negation (rather than \u2018It is not raining\u2019) seems to be preferred since it makes adding or removing a negation as simple as adding or removing the phrase \u2018It is not the case that\u2019 to the front of an existing proposition.<\/p>\n<p>The four infix expressions link two propositions together.\u00a0 These are:<\/p>\n<ul>\n<li>Conjunction \u2013 \u2018It is raining\u2019 and \u2018It is cold\u2019<\/li>\n<li>Disjunction \u2013 Either \u2018it is raining\u2019 or \u2018it is sunny\u2019<\/li>\n<li>Conditional \u2013 If \u2018it is raining\u2019 then \u2018the ground is wet\u2019<\/li>\n<li>Biconditional \u2013 \u2018It is raining\u2019 if and only if \u2018water droplets are falling from sky\u2019<\/li>\n<\/ul>\n<p>Since the conjunction, disjunction, and biconditional expressions are symmetric upon interchange of the two propositions (or wffs) there is no special name for the first or second slots.\u00a0 The conditional, however, requires a sense of cause-and-effect and, as result, the first slot is called the antecedent and the second slot the consequent.\u00a0 In the conditional \u2018If it is raining then I am depressed\u2019, \u2018it is raining\u2019 is the antecedent and \u2018I am depressed\u2019 is the consequent.<\/p>\n<p>The systems objects and expressions can be summarized as<\/p>\n<table>\n<tbody>\n<tr>\n<th width=\"165\">Expression<\/th>\n<th width=\"156\">Name<\/th>\n<th width=\"158\">Symbol<\/th>\n<th width=\"144\">Example<\/th>\n<\/tr>\n<tr>\n<td width=\"165\">It is not the case that<\/td>\n<td width=\"156\">Negation<\/td>\n<td width=\"158\">$\\neg$, ~, !<\/td>\n<td width=\"144\">$\\neg R$<\/td>\n<\/tr>\n<tr>\n<td width=\"165\">\u2026\u00a0 and \u2026<\/td>\n<td width=\"156\">Conjunction<\/td>\n<td width=\"158\">$\\land$, &amp;<\/td>\n<td width=\"144\">$R \\land S$<\/td>\n<\/tr>\n<tr>\n<td width=\"165\">Either \u2026 or \u2026<\/td>\n<td width=\"156\">Disjunction<\/td>\n<td width=\"158\">$\\lor$<\/td>\n<td width=\"144\">$R \\lor S$<\/td>\n<\/tr>\n<tr>\n<td width=\"165\">If \u2026 then \u2026<\/td>\n<td width=\"156\">Conditional<\/td>\n<td width=\"158\">$\\rightarrow$<\/td>\n<td width=\"144\">$R \\rightarrow S$<\/td>\n<\/tr>\n<tr>\n<td width=\"165\">\u2026 if and only if \u2026<\/td>\n<td width=\"156\">Biconditional<\/td>\n<td width=\"158\">$\\leftrightarrow$<\/td>\n<td width=\"144\">$R \\leftrightarrow S$<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>In addition to the expression symbols, there are a few additional helper symbols that keep things neat.\u00a0 The first is the \u2018implies\u2019 symbol $\\implies$. It is sometimes called \u2018infer that\u2019 and then is denoted by $\\vdash$. Either basically denotes the final conclusion (the output) of the argument.\u00a0 So the first proposition translates into<\/p>\n<div class=\"myQuoteDiv\">$R$<br \/>\n$R \\rightarrow D$<br \/>\n$\\implies D$<\/div>\n<p>where $R$ is the proposition \u2018It is raining\u2019 and $D$ is the proposition \u2018I am depressed\u2019.\u00a0 The second set of symbols are the parentheses \u2018(\u2018 and \u2018)\u2019 which are used to group terms together to avoid ambiguous expressions such as $A \\land B \\land C$, which could mean \u2018I did A and then I did B and C\u2019 or \u2018I did A and B and then I did C\u2019 or other meanings.<\/p>\n<p>The next piece is the rules of inference that allow proper manipulation of one set of wffs into another.\u00a0 These rules are:<\/p>\n<ol>\n<li>Modus ponens: a conditional implies the consequent if the antecedent is true<\/li>\n<li>Negation Elimination: $\\neg \\neg \\phi \\implies \\phi$<\/li>\n<li>Conjunction Introduction: $\\phi, \\psi \\implies \\phi \\land \\psi$<\/li>\n<li>Conjunction Elimination: $\\phi \\land \\psi \\implies \\phi, \\psi$<\/li>\n<li>Disjunction Introduction: $\\phi \\implies \\phi \\lor \\psi$ for any $\\psi$<\/li>\n<li>Disjunction Elimination: $\\phi \\lor \\psi, \\phi \\rightarrow \\chi, \\psi \\rightarrow \\chi \\implies \\chi$<\/li>\n<li>Biconditional Introduction: $(\\phi \\rightarrow \\psi), (\\psi \\rightarrow \\phi) \\implies \\phi \\leftrightarrow \\psi$<\/li>\n<li>Biconditional Elimination: $\\phi \\leftrightarrow \\psi \\implies \\phi \\rightarrow \\psi, \\psi \\rightarrow \\phi$<\/li>\n<li>Conditional Proof (CP): accepting a proposition $P$ that proves another $Q$ then $P \\rightarrow Q$<\/li>\n<li>Reductio ad Absurdum (RAA): A contradiction to $\\neg \\phi \\implies \\phi$<\/li>\n<\/ol>\n<p>Note that the truth value of the propositions are assumed to be known from the outset (with the exception of the conditional proof and reduction ad absurdum, where the assumption is made during the course of the argument).\u00a0 The purpose of the system is to determine the truth of the conclusion based on the truth values of assumptions.\u00a0 The formal inference rules act as a computer program that transforms input to output.<\/p>\n<p>Next week\u2019s column will apply the Propositional Calculus to prove some interesting outcomes and to show how unexpected inferences can result.\u00a0 All of that is a prelude to the final, fun application of preventing an AI explorer from dying due to misadventure before he can go \u2018there and back again\u2019.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Propositional calculus is one of the oldest forms of logic.\u00a0 It lies at the heart of all syllogisms, deductions, inductive inferences, and the like.\u00a0 It is the system that allows&#8230; <a class=\"read-more-button\" href=\"https:\/\/aristotle2digital.blogwyrm.com\/?p=496\">Read more &gt;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-496","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/aristotle2digital.blogwyrm.com\/index.php?rest_route=\/wp\/v2\/posts\/496","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aristotle2digital.blogwyrm.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aristotle2digital.blogwyrm.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aristotle2digital.blogwyrm.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/aristotle2digital.blogwyrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=496"}],"version-history":[{"count":0,"href":"https:\/\/aristotle2digital.blogwyrm.com\/index.php?rest_route=\/wp\/v2\/posts\/496\/revisions"}],"wp:attachment":[{"href":"https:\/\/aristotle2digital.blogwyrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=496"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aristotle2digital.blogwyrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=496"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aristotle2digital.blogwyrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=496"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}