{"id":23748,"date":"2023-05-10T01:29:31","date_gmt":"2023-05-10T01:29:31","guid":{"rendered":"https:\/\/www.booksofall.com\/in\/?post_type=product&#038;p=23748"},"modified":"2023-05-10T01:29:31","modified_gmt":"2023-05-10T01:29:31","slug":"delftse-foundations-of-computation-2","status":"publish","type":"product","link":"https:\/\/www.booksofall.com\/in\/delftse-foundations-of-computation-2\/","title":{"rendered":"Delftse Foundations of Computation"},"content":{"rendered":"<h2><span dir=\"ltr\" role=\"presentation\">Chapter 2 &#8211; <\/span><span dir=\"ltr\" role=\"presentation\">Logic<\/span><\/h2>\n<p><span dir=\"ltr\" role=\"presentation\">In a scene, we know a lot more than we realise, because everything that <\/span><span dir=\"ltr\" role=\"presentation\">we know has consequences\u2014<\/span><span dir=\"ltr\" role=\"presentation\">logical<\/span> <span dir=\"ltr\" role=\"presentation\">consequences\u2014that follow automat<\/span><span dir=\"ltr\" role=\"presentation\">ically. If you know that all humans are mortal, and you know that Socrates is <\/span><span dir=\"ltr\" role=\"presentation\">human, then in a sense you know that <a href=\"https:\/\/en.wikipedia.org\/wiki\/Socrates\">Socrates<\/a> is mortal, whether or not you <\/span><span dir=\"ltr\" role=\"presentation\">have ever considered or wanted to consider that fact. This is an example of <\/span><span dir=\"ltr\" role=\"presentation\">logical deduction<\/span><span dir=\"ltr\" role=\"presentation\">: from the<\/span> <span dir=\"ltr\" role=\"presentation\">premises<\/span> <span dir=\"ltr\" role=\"presentation\">that \u201cAll humans are mortal\u201d and \u201cSo<\/span><span dir=\"ltr\" role=\"presentation\">crates is human\u201d, the<\/span> <span dir=\"ltr\" role=\"presentation\">conclusion<\/span> <span dir=\"ltr\" role=\"presentation\">that \u201cSocrates is mortal\u201d can be deduced <\/span><span dir=\"ltr\" role=\"presentation\">by logic.<\/span><\/p>\n<p><span dir=\"ltr\" role=\"presentation\">Logical deduction is a kind of computation. By applying rules of logic <\/span><span dir=\"ltr\" role=\"presentation\">to a given set of premises, conclusions that follow from those premises can <\/span><span dir=\"ltr\" role=\"presentation\">be generated automatically. This computational process could for instance <\/span><span dir=\"ltr\" role=\"presentation\">be carried out by a computer.<\/span> <span dir=\"ltr\" role=\"presentation\">Once you know the premises, or are will<\/span><span dir=\"ltr\" role=\"presentation\">ing to accept them for the sake of argument, you are forced<\/span> <span dir=\"ltr\" role=\"presentation\">by logic<\/span> <span dir=\"ltr\" role=\"presentation\">to ac<\/span><span dir=\"ltr\" role=\"presentation\">cept the conclusions. Still, to say that you \u2018know\u2019 those conclusions would <\/span><span dir=\"ltr\" role=\"presentation\">be misleading. The problem is that there are too many of them (infinitely <\/span><span dir=\"ltr\" role=\"presentation\">many), and, in general, most of them are not particularly interesting. Until <\/span><span dir=\"ltr\" role=\"presentation\">you have actually made the deduction, you don\u2019t<\/span> <span dir=\"ltr\" role=\"presentation\">really<\/span> <span dir=\"ltr\" role=\"presentation\">know the conclusion, <\/span><span dir=\"ltr\" role=\"presentation\">and knowing which of the possible chains of deduction to follow is not easy. <\/span><span dir=\"ltr\" role=\"presentation\">The<\/span> <span dir=\"ltr\" role=\"presentation\">art<\/span> <span dir=\"ltr\" role=\"presentation\">of logic is to find an interesting conclusion and a chain of logical de<\/span><span dir=\"ltr\" role=\"presentation\">ductions that leads from the premises to that conclusion. Checking that the <\/span><span dir=\"ltr\" role=\"presentation\">deductions are valid is the mechanical, computational side of logic.<\/span><\/p>\n<p><span dir=\"ltr\" role=\"presentation\">This chapter is mostly about the mechanics of logic. We will investig<\/span><span dir=\"ltr\" role=\"presentation\">ate logic as a branch of mathematics, with its own symbols, formulas and <\/span><span dir=\"ltr\" role=\"presentation\">rules of computation. Your objective is to learn the rules of logic, to under<\/span><span dir=\"ltr\" role=\"presentation\">stand why they are valid, and to develop skill in applying them. As with <\/span><span dir=\"ltr\" role=\"presentation\">any branch of mathematics, there is a certain beauty to the symbols and for<\/span><span dir=\"ltr\" role=\"presentation\">mulas themselves. But it is the applications that bring the subject to life for <\/span><span dir=\"ltr\" role=\"presentation\">most people. We will, of course, cover some applications as we go along. <\/span><span dir=\"ltr\" role=\"presentation\">In a sense, though, the real applications of logic include much of computer <\/span><span dir=\"ltr\" role=\"presentation\">science and of mathematics itself.<\/span><\/p>\n<p><span dir=\"ltr\" role=\"presentation\">Among the fundamental elements of thought, and therefore of logic, are <\/span><span dir=\"ltr\" role=\"presentation\">propositions. A<\/span> <span dir=\"ltr\" role=\"presentation\">proposition<\/span> <span dir=\"ltr\" role=\"presentation\">is a statement that has a truth value: it is either <\/span><span dir=\"ltr\" role=\"presentation\">true or false. \u201cDelft is a city\u201d and \u201c<\/span><span dir=\"ltr\" role=\"presentation\">2<\/span> <span dir=\"ltr\" role=\"presentation\">+<\/span> <span dir=\"ltr\" role=\"presentation\">2<\/span> <span dir=\"ltr\" role=\"presentation\">=<\/span> <span dir=\"ltr\" role=\"presentation\">42<\/span><span dir=\"ltr\" role=\"presentation\">\u201d are propositions. In the <\/span><span dir=\"ltr\" role=\"presentation\">first part of this chapter, we will study<\/span> <span dir=\"ltr\" role=\"presentation\">propositional logic<\/span><span dir=\"ltr\" role=\"presentation\">, which takes pro<\/span><span dir=\"ltr\" role=\"presentation\">positions and considers how they can be combined and manipulated. This <\/span><span dir=\"ltr\" role=\"presentation\">branch of logic has surprising application to the design of the electronic cir<\/span><span dir=\"ltr\" role=\"presentation\">cuits that make up computers. This ties closely to the digital and boolean <\/span><span dir=\"ltr\" role=\"presentation\">logic you will study in your course<\/span> <span dir=\"ltr\" role=\"presentation\">Computer Organisation<\/span><span dir=\"ltr\" role=\"presentation\">. <\/span><span dir=\"ltr\" role=\"presentation\">Logic gets more interesting when we consider the internal structure of <\/span><span dir=\"ltr\" role=\"presentation\">propositions. In English, a <a href=\"https:\/\/en.wikipedia.org\/wiki\/Proposition\">proposition<\/a> is expressed as a sentence, and, as<\/span><br role=\"presentation\" \/><span dir=\"ltr\" role=\"presentation\">you know from studying grammar, sentences have parts. A simple sentence <\/span><span dir=\"ltr\" role=\"presentation\">like \u201c<a href=\"https:\/\/en.wikipedia.org\/wiki\/Delft\">Delft<\/a> is a city\u201d has a<\/span> <span dir=\"ltr\" role=\"presentation\">subject<\/span> <span dir=\"ltr\" role=\"presentation\">and a<\/span> <span dir=\"ltr\" role=\"presentation\">predicate<\/span><span dir=\"ltr\" role=\"presentation\">. The sentence says something about its subject. The subject of \u201cDelft is a city\u201d is Delft. The sentence says something about Delft. The something that the sentence says about its subject is the predicate. In the example, the predicate is the phrase \u2018is a city\u2019. Once we start working with predicates, we can create propositions using quantifiers like \u2018all\u2019, \u2018some\u2019 and \u2018no\u2019. For example, working with the predicate \u2018has a university\u2019 we can move from simple propositions like \u201cDelft has a university\u201d to \u201cAll cities have a university\u201d or to \u201cNo city has a university\u201d or to the rather more realistic \u201cSome cities have a university\u201d.<\/span><\/p>\n<p><span dir=\"ltr\" role=\"presentation\">Logical deduction usually deals with quantified statements, as shown by the basic example of <a href=\"https:\/\/www.mortality.org\/\">human mortality<\/a> with which we began this chapter. Logical deduction will be a major topic of this chapter; and under the name of proof , it will be the topic of the next chapter and a major tool for the rest of this book and indeed your computer science degree programme.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p><iframe style=\"width: 100%; height: 750px; border: none;\" src=\"https:\/\/online.visual-paradigm.com\/share\/book\/delftse-foundations-of-computation-1clkjqhjen?p=1\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n","protected":false},"featured_media":23752,"template":"","meta":{"_yoast_wpseo_title":"","_yoast_wpseo_metadesc":"Logic in computing and calculation involves the use of formal logic to reason about programs, algorithms, and data structures. Learn more here!"},"product_brand":[],"product_cat":[385],"product_tag":[],"class_list":{"0":"post-23748","1":"product","2":"type-product","3":"status-publish","4":"has-post-thumbnail","6":"product_cat-theoretical-computer-science","8":"first","9":"instock","10":"shipping-taxable","11":"product-type-simple"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Delftse Foundations of Computation - BooksOffAll Indian<\/title>\n<meta name=\"description\" content=\"Logic in computing and calculation involves the use of formal logic to reason about programs, algorithms, and data structures. Learn more here!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.booksofall.com\/in\/delftse-foundations-of-computation-2\/\" \/>\n<meta property=\"og:locale\" content=\"hi_IN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Delftse Foundations of Computation - BooksOffAll Indian\" \/>\n<meta property=\"og:description\" content=\"Logic in computing and calculation involves the use of formal logic to reason about programs, algorithms, and data structures. Learn more here!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.booksofall.com\/in\/delftse-foundations-of-computation-2\/\" \/>\n<meta property=\"og:site_name\" content=\"BooksOffAll Indian\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.booksofall.com\/in\/wp-content\/uploads\/sites\/13\/2023\/05\/Delftse-Foundations-of-Computation.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/www.booksofall.com\/in\/wp-content\/uploads\/sites\/13\/2023\/05\/Delftse-Foundations-of-Computation.jpg\" \/>\n<meta name=\"twitter:label1\" content=\"\u0905\u0928\u0941\u092e\u093e\u0928\u093f\u0924 \u092a\u0922\u093c\u0928\u0947 \u0915\u093e \u0938\u092e\u092f\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 \u092e\u093f\u0928\u091f\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.booksofall.com\/in\/delftse-foundations-of-computation-2\/\",\"url\":\"https:\/\/www.booksofall.com\/in\/delftse-foundations-of-computation-2\/\",\"name\":\"Delftse Foundations of Computation - BooksOffAll Indian\",\"isPartOf\":{\"@id\":\"https:\/\/www.booksofall.com\/in\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.booksofall.com\/in\/delftse-foundations-of-computation-2\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.booksofall.com\/in\/delftse-foundations-of-computation-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.booksofall.com\/in\/wp-content\/uploads\/sites\/13\/2023\/05\/Delftse-Foundations-of-Computation.jpg\",\"datePublished\":\"2023-05-10T01:29:31+00:00\",\"description\":\"Logic in computing and calculation involves the use of formal logic to reason about programs, algorithms, and data structures. Learn more here!\",\"breadcrumb\":{\"@id\":\"https:\/\/www.booksofall.com\/in\/delftse-foundations-of-computation-2\/#breadcrumb\"},\"inLanguage\":\"hi-IN\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.booksofall.com\/in\/delftse-foundations-of-computation-2\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"hi-IN\",\"@id\":\"https:\/\/www.booksofall.com\/in\/delftse-foundations-of-computation-2\/#primaryimage\",\"url\":\"https:\/\/www.booksofall.com\/in\/wp-content\/uploads\/sites\/13\/2023\/05\/Delftse-Foundations-of-Computation.jpg\",\"contentUrl\":\"https:\/\/www.booksofall.com\/in\/wp-content\/uploads\/sites\/13\/2023\/05\/Delftse-Foundations-of-Computation.jpg\",\"width\":\"827\",\"height\":\"1169\",\"caption\":\"Delftse Foundations of Computation\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.booksofall.com\/in\/delftse-foundations-of-computation-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.booksofall.com\/in\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Categories\",\"item\":\"https:\/\/www.booksofall.com\/in\/categories\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Delftse Foundations of Computation\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.booksofall.com\/in\/#website\",\"url\":\"https:\/\/www.booksofall.com\/in\/\",\"name\":\"BooksOffAll Indian\",\"description\":\"Biggest IT eBooks library and learning resources - Free eBooks for programming, computing, artificial intelligence and more.\",\"publisher\":{\"@id\":\"https:\/\/www.booksofall.com\/in\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.booksofall.com\/in\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"hi-IN\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.booksofall.com\/in\/#organization\",\"name\":\"BooksOffAll Indian\",\"url\":\"https:\/\/www.booksofall.com\/in\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"hi-IN\",\"@id\":\"https:\/\/www.booksofall.com\/in\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.booksofall.com\/in\/wp-content\/uploads\/sites\/13\/2022\/06\/booksofall-logo-2.png\",\"contentUrl\":\"https:\/\/www.booksofall.com\/in\/wp-content\/uploads\/sites\/13\/2022\/06\/booksofall-logo-2.png\",\"width\":166,\"height\":30,\"caption\":\"BooksOffAll Indian\"},\"image\":{\"@id\":\"https:\/\/www.booksofall.com\/in\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Delftse Foundations of Computation - BooksOffAll Indian","description":"Logic in computing and calculation involves the use of formal logic to reason about programs, algorithms, and data structures. Learn more here!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.booksofall.com\/in\/delftse-foundations-of-computation-2\/","og_locale":"hi_IN","og_type":"article","og_title":"Delftse Foundations of Computation - BooksOffAll Indian","og_description":"Logic in computing and calculation involves the use of formal logic to reason about programs, algorithms, and data structures. Learn more here!","og_url":"https:\/\/www.booksofall.com\/in\/delftse-foundations-of-computation-2\/","og_site_name":"BooksOffAll Indian","og_image":[{"url":"https:\/\/www.booksofall.com\/in\/wp-content\/uploads\/sites\/13\/2023\/05\/Delftse-Foundations-of-Computation.jpg","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_image":"https:\/\/www.booksofall.com\/in\/wp-content\/uploads\/sites\/13\/2023\/05\/Delftse-Foundations-of-Computation.jpg","twitter_misc":{"\u0905\u0928\u0941\u092e\u093e\u0928\u093f\u0924 \u092a\u0922\u093c\u0928\u0947 \u0915\u093e \u0938\u092e\u092f":"3 \u092e\u093f\u0928\u091f"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.booksofall.com\/in\/delftse-foundations-of-computation-2\/","url":"https:\/\/www.booksofall.com\/in\/delftse-foundations-of-computation-2\/","name":"Delftse Foundations of Computation - BooksOffAll Indian","isPartOf":{"@id":"https:\/\/www.booksofall.com\/in\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.booksofall.com\/in\/delftse-foundations-of-computation-2\/#primaryimage"},"image":{"@id":"https:\/\/www.booksofall.com\/in\/delftse-foundations-of-computation-2\/#primaryimage"},"thumbnailUrl":"https:\/\/www.booksofall.com\/in\/wp-content\/uploads\/sites\/13\/2023\/05\/Delftse-Foundations-of-Computation.jpg","datePublished":"2023-05-10T01:29:31+00:00","description":"Logic in computing and calculation involves the use of formal logic to reason about programs, algorithms, and data structures. Learn more here!","breadcrumb":{"@id":"https:\/\/www.booksofall.com\/in\/delftse-foundations-of-computation-2\/#breadcrumb"},"inLanguage":"hi-IN","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.booksofall.com\/in\/delftse-foundations-of-computation-2\/"]}]},{"@type":"ImageObject","inLanguage":"hi-IN","@id":"https:\/\/www.booksofall.com\/in\/delftse-foundations-of-computation-2\/#primaryimage","url":"https:\/\/www.booksofall.com\/in\/wp-content\/uploads\/sites\/13\/2023\/05\/Delftse-Foundations-of-Computation.jpg","contentUrl":"https:\/\/www.booksofall.com\/in\/wp-content\/uploads\/sites\/13\/2023\/05\/Delftse-Foundations-of-Computation.jpg","width":"827","height":"1169","caption":"Delftse Foundations of Computation"},{"@type":"BreadcrumbList","@id":"https:\/\/www.booksofall.com\/in\/delftse-foundations-of-computation-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.booksofall.com\/in\/"},{"@type":"ListItem","position":2,"name":"Categories","item":"https:\/\/www.booksofall.com\/in\/categories\/"},{"@type":"ListItem","position":3,"name":"Delftse Foundations of Computation"}]},{"@type":"WebSite","@id":"https:\/\/www.booksofall.com\/in\/#website","url":"https:\/\/www.booksofall.com\/in\/","name":"BooksOffAll Indian","description":"Biggest IT eBooks library and learning resources - Free eBooks for programming, computing, artificial intelligence and more.","publisher":{"@id":"https:\/\/www.booksofall.com\/in\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.booksofall.com\/in\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"hi-IN"},{"@type":"Organization","@id":"https:\/\/www.booksofall.com\/in\/#organization","name":"BooksOffAll Indian","url":"https:\/\/www.booksofall.com\/in\/","logo":{"@type":"ImageObject","inLanguage":"hi-IN","@id":"https:\/\/www.booksofall.com\/in\/#\/schema\/logo\/image\/","url":"https:\/\/www.booksofall.com\/in\/wp-content\/uploads\/sites\/13\/2022\/06\/booksofall-logo-2.png","contentUrl":"https:\/\/www.booksofall.com\/in\/wp-content\/uploads\/sites\/13\/2022\/06\/booksofall-logo-2.png","width":166,"height":30,"caption":"BooksOffAll Indian"},"image":{"@id":"https:\/\/www.booksofall.com\/in\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.booksofall.com\/in\/wp-json\/wp\/v2\/product\/23748","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.booksofall.com\/in\/wp-json\/wp\/v2\/product"}],"about":[{"href":"https:\/\/www.booksofall.com\/in\/wp-json\/wp\/v2\/types\/product"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.booksofall.com\/in\/wp-json\/wp\/v2\/media\/23752"}],"wp:attachment":[{"href":"https:\/\/www.booksofall.com\/in\/wp-json\/wp\/v2\/media?parent=23748"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/www.booksofall.com\/in\/wp-json\/wp\/v2\/product_brand?post=23748"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/www.booksofall.com\/in\/wp-json\/wp\/v2\/product_cat?post=23748"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/www.booksofall.com\/in\/wp-json\/wp\/v2\/product_tag?post=23748"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}