{"id":2993,"date":"2025-06-06T14:29:26","date_gmt":"2025-06-06T14:29:26","guid":{"rendered":"https:\/\/diznr.com\/?p=2993"},"modified":"2025-06-06T14:29:26","modified_gmt":"2025-06-06T14:29:26","slug":"day-05part-01-discrete-mathematics-first-order-predicate-logic-or-predicate-calculus-example-with","status":"publish","type":"post","link":"https:\/\/www.reilsolar.com\/pdf\/day-05part-01-discrete-mathematics-first-order-predicate-logic-or-predicate-calculus-example-with\/","title":{"rendered":"Day 05Part 01-Discrete mathematics-First order Predicate logic or predicate calculus with example"},"content":{"rendered":"<p>Day 05Part 01-Discrete mathematics-First order Predicate logic or predicate calculus with example<\/p>\n<p>[fvplayer id=&#8221;206&#8243;]<\/p>\n<h3 data-start=\"0\" data-end=\"96\"><strong data-start=\"4\" data-end=\"96\">Discrete Mathematics &#8211; First Order Predicate Logic (Predicate Calculus) | Day 05 Part 01<\/strong><\/h3>\n<h3 data-start=\"103\" data-end=\"138\"><strong data-start=\"110\" data-end=\"138\">What is Predicate Logic?<\/strong><\/h3>\n<p data-start=\"139\" data-end=\"361\"><strong data-start=\"139\" data-end=\"158\">Predicate Logic<\/strong> (also known as <strong data-start=\"174\" data-end=\"195\">First-Order Logic<\/strong> or <strong data-start=\"199\" data-end=\"221\">Predicate Calculus<\/strong>) is an extension of <strong data-start=\"242\" data-end=\"265\">propositional logic<\/strong>. It allows expressions with <strong data-start=\"294\" data-end=\"309\">quantifiers<\/strong> and <strong data-start=\"314\" data-end=\"327\">variables<\/strong>, providing more expressive power.<\/p>\n<h3 data-start=\"368\" data-end=\"409\"><strong data-start=\"375\" data-end=\"409\">Components of Predicate Logic:<\/strong><\/h3>\n<ol data-start=\"410\" data-end=\"1033\">\n<li data-start=\"410\" data-end=\"535\"><strong data-start=\"413\" data-end=\"428\">Predicates:<\/strong> Functions that return <strong data-start=\"451\" data-end=\"459\">True<\/strong> or <strong data-start=\"463\" data-end=\"472\">False<\/strong> based on inputs.\n<ul data-start=\"495\" data-end=\"535\">\n<li data-start=\"495\" data-end=\"535\">Example: <span class=\"katex\"><span class=\"katex-mathml\">P(x)P(x)<\/span><span class=\"katex-html\" aria-hidden=\"true\"><span class=\"base\"><span class=\"mord mathnormal\">P<\/span><span class=\"mopen\">(<\/span><span class=\"mord mathnormal\">x<\/span><span class=\"mclose\">)<\/span><\/span><\/span><\/span>: &#8220;x is a student.&#8221;<\/li>\n<\/ul>\n<\/li>\n<li data-start=\"536\" data-end=\"617\"><strong data-start=\"539\" data-end=\"553\">Variables:<\/strong> Represent entities in the domain.\n<ul data-start=\"593\" data-end=\"617\">\n<li data-start=\"593\" data-end=\"617\">Example: <span class=\"katex\"><span class=\"katex-mathml\">x,y,zx, y, z<\/span><span class=\"katex-html\" aria-hidden=\"true\"><span class=\"base\"><span class=\"mord mathnormal\">x<\/span><span class=\"mpunct\">,<\/span><span class=\"mord mathnormal\">y<\/span><span class=\"mpunct\">,<\/span><span class=\"mord mathnormal\">z<\/span><\/span><\/span><\/span><\/li>\n<\/ul>\n<\/li>\n<li data-start=\"618\" data-end=\"918\"><strong data-start=\"621\" data-end=\"637\">Quantifiers:<\/strong> Indicate the scope of variables.\n<ul data-start=\"676\" data-end=\"918\">\n<li data-start=\"676\" data-end=\"783\"><strong data-start=\"678\" data-end=\"709\">Universal Quantifier ( \u2200 ):<\/strong> Means &#8220;for all.&#8221;\n<ul data-start=\"734\" data-end=\"783\">\n<li data-start=\"734\" data-end=\"783\">Example: \u2200x P(x) \u2014 &#8220;For all x, P(x) is true.&#8221;<\/li>\n<\/ul>\n<\/li>\n<li data-start=\"787\" data-end=\"918\"><strong data-start=\"789\" data-end=\"822\">Existential Quantifier ( \u2203 ):<\/strong> Means &#8220;there exists.&#8221;\n<ul data-start=\"852\" data-end=\"918\">\n<li data-start=\"852\" data-end=\"918\">Example: \u2203x P(x) \u2014 &#8220;There exists an x such that P(x) is true.&#8221;<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li data-start=\"919\" data-end=\"1033\"><strong data-start=\"922\" data-end=\"946\">Logical Connectives:<\/strong>\n<ul data-start=\"952\" data-end=\"1033\">\n<li data-start=\"952\" data-end=\"1033\"><strong data-start=\"954\" data-end=\"959\">\u2227<\/strong> (AND), <strong data-start=\"967\" data-end=\"972\">\u2228<\/strong> (OR), <strong data-start=\"979\" data-end=\"984\">\u00ac<\/strong> (NOT), <strong data-start=\"992\" data-end=\"997\">\u2192<\/strong> (IMPLIES), <strong data-start=\"1009\" data-end=\"1014\">\u2194<\/strong> (IF AND ONLY IF)<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3 data-start=\"1040\" data-end=\"1078\"><strong data-start=\"1047\" data-end=\"1078\">Example of Predicate Logic:<\/strong><\/h3>\n<ul data-start=\"1079\" data-end=\"1338\">\n<li data-start=\"1079\" data-end=\"1122\"><strong data-start=\"1081\" data-end=\"1095\">Statement:<\/strong> &#8220;All humans are mortal.&#8221;<\/li>\n<li data-start=\"1123\" data-end=\"1268\"><strong data-start=\"1125\" data-end=\"1154\">Predicate Representation:<\/strong>\n<ul data-start=\"1159\" data-end=\"1268\">\n<li data-start=\"1159\" data-end=\"1192\">Let <span class=\"katex\"><span class=\"katex-mathml\">H(x)H(x)<\/span><span class=\"katex-html\" aria-hidden=\"true\"><span class=\"base\"><span class=\"mord mathnormal\">H<\/span><span class=\"mopen\">(<\/span><span class=\"mord mathnormal\">x<\/span><span class=\"mclose\">)<\/span><\/span><\/span><\/span>: &#8220;x is a human.&#8221;<\/li>\n<li data-start=\"1195\" data-end=\"1227\">Let <span class=\"katex\"><span class=\"katex-mathml\">M(x)M(x)<\/span><span class=\"katex-html\" aria-hidden=\"true\"><span class=\"base\"><span class=\"mord mathnormal\">M<\/span><span class=\"mopen\">(<\/span><span class=\"mord mathnormal\">x<\/span><span class=\"mclose\">)<\/span><\/span><\/span><\/span>: &#8220;x is mortal.&#8221;<\/li>\n<li data-start=\"1230\" data-end=\"1268\"><strong data-start=\"1232\" data-end=\"1249\">Logical Form:<\/strong> \u2200x (H(x) \u2192 M(x))<\/li>\n<\/ul>\n<\/li>\n<li data-start=\"1269\" data-end=\"1338\"><strong data-start=\"1271\" data-end=\"1290\">Interpretation:<\/strong> For every x, if x is a human, then x is mortal.<\/li>\n<\/ul>\n<h3 data-start=\"1345\" data-end=\"1390\"><strong data-start=\"1352\" data-end=\"1390\">Example of Existential Quantifier:<\/strong><\/h3>\n<ul data-start=\"1391\" data-end=\"1686\">\n<li data-start=\"1391\" data-end=\"1454\"><strong data-start=\"1393\" data-end=\"1407\">Statement:<\/strong> &#8220;There exists a student who is intelligent.&#8221;<\/li>\n<li data-start=\"1455\" data-end=\"1599\"><strong data-start=\"1457\" data-end=\"1486\">Predicate Representation:<\/strong>\n<ul data-start=\"1491\" data-end=\"1599\">\n<li data-start=\"1491\" data-end=\"1522\"><span class=\"katex\"><span class=\"katex-mathml\">S(x)S(x)<\/span><span class=\"katex-html\" aria-hidden=\"true\"><span class=\"base\"><span class=\"mord mathnormal\">S<\/span><span class=\"mopen\">(<\/span><span class=\"mord mathnormal\">x<\/span><span class=\"mclose\">)<\/span><\/span><\/span><\/span>: &#8220;x is a student.&#8221;<\/li>\n<li data-start=\"1525\" data-end=\"1558\"><span class=\"katex\"><span class=\"katex-mathml\">I(x)I(x)<\/span><span class=\"katex-html\" aria-hidden=\"true\"><span class=\"base\"><span class=\"mord mathnormal\">I<\/span><span class=\"mopen\">(<\/span><span class=\"mord mathnormal\">x<\/span><span class=\"mclose\">)<\/span><\/span><\/span><\/span>: &#8220;x is intelligent.&#8221;<\/li>\n<li data-start=\"1561\" data-end=\"1599\"><strong data-start=\"1563\" data-end=\"1580\">Logical Form:<\/strong> \u2203x (S(x) \u2227 I(x))<\/li>\n<\/ul>\n<\/li>\n<li data-start=\"1600\" data-end=\"1686\"><strong data-start=\"1602\" data-end=\"1621\">Interpretation:<\/strong> There exists an x such that x is a student and x is intelligent.<\/li>\n<\/ul>\n<h3 data-start=\"1693\" data-end=\"1734\"><strong data-start=\"1700\" data-end=\"1732\">Negation in Predicate Logic:<\/strong><\/h3>\n<ul data-start=\"1735\" data-end=\"1870\">\n<li data-start=\"1735\" data-end=\"1801\"><strong data-start=\"1737\" data-end=\"1771\">Negating Universal Quantifier:<\/strong>\n<ul data-start=\"1776\" data-end=\"1801\">\n<li data-start=\"1776\" data-end=\"1801\">\u00ac(\u2200x P(x)) \u2194 \u2203x \u00acP(x)<\/li>\n<\/ul>\n<\/li>\n<li data-start=\"1802\" data-end=\"1870\"><strong data-start=\"1804\" data-end=\"1840\">Negating Existential Quantifier:<\/strong>\n<ul data-start=\"1845\" data-end=\"1870\">\n<li data-start=\"1845\" data-end=\"1870\">\u00ac(\u2203x P(x)) \u2194 \u2200x \u00acP(x)<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p data-start=\"1872\" data-end=\"1886\"><strong data-start=\"1872\" data-end=\"1884\">Example:<\/strong><\/p>\n<ul data-start=\"1887\" data-end=\"2094\">\n<li data-start=\"1887\" data-end=\"2094\">&#8220;Not all birds can fly.&#8221;\n<ul data-start=\"1918\" data-end=\"2094\">\n<li data-start=\"1918\" data-end=\"1946\"><span class=\"katex\"><span class=\"katex-mathml\">B(x)B(x)<\/span><span class=\"katex-html\" aria-hidden=\"true\"><span class=\"base\"><span class=\"mord mathnormal\">B<\/span><span class=\"mopen\">(<\/span><span class=\"mord mathnormal\">x<\/span><span class=\"mclose\">)<\/span><\/span><\/span><\/span>: &#8220;x is a bird.&#8221;<\/li>\n<li data-start=\"1949\" data-end=\"1975\"><span class=\"katex\"><span class=\"katex-mathml\">F(x)F(x)<\/span><span class=\"katex-html\" aria-hidden=\"true\"><span class=\"base\"><span class=\"mord mathnormal\">F<\/span><span class=\"mopen\">(<\/span><span class=\"mord mathnormal\">x<\/span><span class=\"mclose\">)<\/span><\/span><\/span><\/span>: &#8220;x can fly.&#8221;<\/li>\n<li data-start=\"1978\" data-end=\"2017\"><strong data-start=\"1980\" data-end=\"1997\">Logical Form:<\/strong> \u00ac\u2200x (B(x) \u2192 F(x))<\/li>\n<li data-start=\"1978\" data-end=\"2017\">Equivalent: \u2203x (B(x) \u2227 \u00acF(x)) \u2014 &#8220;There exists a bird that cannot fly.&#8221;<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3 data-start=\"2101\" data-end=\"2146\"><strong data-start=\"2108\" data-end=\"2144\">Applications of Predicate Logic:<\/strong><\/h3>\n<ul data-start=\"2147\" data-end=\"2289\">\n<li data-start=\"2147\" data-end=\"2194\">Computer Science: Database querying and AI.<\/li>\n<li data-start=\"2195\" data-end=\"2241\">Mathematics: Formal proofs and set theory.<\/li>\n<li data-start=\"2242\" data-end=\"2289\">Linguistics: Analyzing sentence structures.<\/li>\n<\/ul>\n<h3 data-start=\"2296\" data-end=\"2327\"><strong data-start=\"2303\" data-end=\"2325\">Practice Problems:<\/strong><\/h3>\n<ol data-start=\"2328\" data-end=\"2544\">\n<li data-start=\"2328\" data-end=\"2480\">Express the following statements in predicate logic:\n<ul data-start=\"2389\" data-end=\"2480\">\n<li data-start=\"2389\" data-end=\"2424\">(a) &#8220;Every person loves pizza.&#8221;<\/li>\n<li data-start=\"2428\" data-end=\"2480\">(b) &#8220;There is a number that is greater than 10.&#8221;<\/li>\n<\/ul>\n<\/li>\n<li data-start=\"2481\" data-end=\"2544\">Write the negation of the statement: &#8220;All dogs are loyal.&#8221;<\/li>\n<\/ol>\n<p data-start=\"2551\" data-end=\"2648\" data-is-last-node=\"\" data-is-only-node=\"\">If you need help solving the problems or understanding the concepts further, feel free to ask!<\/p>\n<h3 data-start=\"2551\" data-end=\"2648\"><a href=\"https:\/\/www3.cs.stonybrook.edu\/~pramod.ganapathi\/doc\/discrete-mathematics\/PredicateLogic.pdf\" target=\"_blank\" rel=\"noopener\">Day 05Part 01-Discrete mathematics-First order Predicate logic or predicate calculus with example<\/a><\/h3>\n<h3 class=\"LC20lb MBeuO DKV0Md\"><a href=\"https:\/\/people.umass.edu\/partee\/NZ_2006\/More%20Answers%20for%20Practice%20in%20Logic%20and%20HW%201.pdf\" target=\"_blank\" rel=\"noopener\">I. Practice in 1st-order predicate logic \u2013 with answers.<\/a><\/h3>\n<h3 class=\"LC20lb MBeuO DKV0Md\"><a href=\"https:\/\/www.cs.utexas.edu\/~isil\/cs311h\/lecture3-6up.pdf\" target=\"_blank\" rel=\"noopener\">Discrete Mathematics Introduction to First-Order Logic<\/a><\/h3>\n<article class=\"text-token-text-primary w-full\" dir=\"auto\" data-testid=\"conversation-turn-10\" data-scroll-anchor=\"true\">\n<div class=\"text-base my-auto mx-auto py-5 [--thread-content-margin:--spacing(4)] @[37rem]:[--thread-content-margin:--spacing(6)] @[72rem]:[--thread-content-margin:--spacing(16)] px-(--thread-content-margin)\">\n<div class=\"[--thread-content-max-width:32rem] @[34rem]:[--thread-content-max-width:40rem] @[64rem]:[--thread-content-max-width:48rem] mx-auto flex max-w-(--thread-content-max-width) flex-1 text-base gap-4 md:gap-5 lg:gap-6 group\/turn-messages focus-visible:outline-hidden\">\n<div class=\"group\/conversation-turn relative flex w-full min-w-0 flex-col agent-turn\">\n<div class=\"relative flex-col gap-1 md:gap-3\">\n<div class=\"flex max-w-full flex-col grow\">\n<div class=\"min-h-8 text-message relative flex w-full flex-col items-end gap-2 text-start break-words whitespace-normal [.text-message+&amp;]:mt-5\" dir=\"auto\" data-message-author-role=\"assistant\" data-message-id=\"e0b58846-8749-4830-bd44-876c5bf8fcee\" data-message-model-slug=\"gpt-4o\">\n<div class=\"flex w-full flex-col gap-1 empty:hidden first:pt-[3px]\">\n<div class=\"markdown prose dark:prose-invert w-full break-words light\">\n<p data-start=\"0\" data-end=\"207\">Sure! Let&#8217;s explore <strong data-start=\"20\" data-end=\"58\">First Order Predicate Logic (FOPL)<\/strong>, also known as <strong data-start=\"74\" data-end=\"96\">Predicate Calculus<\/strong>, with clear explanations and examples \u2014 as typically introduced on <strong data-start=\"164\" data-end=\"206\">Day 5 of a Discrete Mathematics course<\/strong>.<\/p>\n<hr data-start=\"209\" data-end=\"212\" \/>\n<h2 data-start=\"214\" data-end=\"275\">\ud83d\udcd8 <strong data-start=\"220\" data-end=\"275\">Day 05 Part 01 \u2013 First Order Predicate Logic (FOPL)<\/strong><\/h2>\n<h3 data-start=\"277\" data-end=\"308\">\ud83d\udd39 What is Predicate Logic?<\/h3>\n<p data-start=\"310\" data-end=\"553\">Predicate Logic is an extension of <strong data-start=\"345\" data-end=\"368\">Propositional Logic<\/strong>.<br data-start=\"369\" data-end=\"372\" \/>Unlike propositional logic, which deals with simple, atomic statements (e.g., \u201cIt is raining\u201d), <strong data-start=\"468\" data-end=\"487\">predicate logic<\/strong> deals with <strong data-start=\"499\" data-end=\"552\">statements that include variables and quantifiers<\/strong>.<\/p>\n<hr data-start=\"555\" data-end=\"558\" \/>\n<h3 data-start=\"560\" data-end=\"582\">\u2705 <strong data-start=\"566\" data-end=\"582\">Basic Terms:<\/strong><\/h3>\n<div class=\"_tableContainer_16hzy_1\">\n<div class=\"_tableWrapper_16hzy_14 group flex w-fit flex-col-reverse\">\n<table class=\"w-fit min-w-(--thread-content-width)\" data-start=\"584\" data-end=\"1161\">\n<thead data-start=\"584\" data-end=\"679\">\n<tr data-start=\"584\" data-end=\"679\">\n<th data-start=\"584\" data-end=\"604\" data-col-size=\"sm\">Term<\/th>\n<th data-start=\"604\" data-end=\"679\" data-col-size=\"md\">Meaning<\/th>\n<\/tr>\n<\/thead>\n<tbody data-start=\"776\" data-end=\"1161\">\n<tr data-start=\"776\" data-end=\"874\">\n<td data-start=\"776\" data-end=\"796\" data-col-size=\"sm\"><strong data-start=\"778\" data-end=\"791\">Predicate<\/strong><\/td>\n<td data-col-size=\"md\" data-start=\"796\" data-end=\"874\">A property or relation expressed about a subject (e.g., P(x): &#8220;x is tall&#8221;)<\/td>\n<\/tr>\n<tr data-start=\"875\" data-end=\"970\">\n<td data-start=\"875\" data-end=\"895\" data-col-size=\"sm\"><strong data-start=\"877\" data-end=\"889\">Variable<\/strong><\/td>\n<td data-col-size=\"md\" data-start=\"895\" data-end=\"970\">A symbol like x, y, z representing an element from a domain<\/td>\n<\/tr>\n<tr data-start=\"971\" data-end=\"1066\">\n<td data-start=\"971\" data-end=\"991\" data-col-size=\"sm\"><strong data-start=\"973\" data-end=\"987\">Quantifier<\/strong><\/td>\n<td data-col-size=\"md\" data-start=\"991\" data-end=\"1066\">Symbol indicating &#8220;for all&#8221; (\u2200) or &#8220;there exists&#8221; (\u2203)<\/td>\n<\/tr>\n<tr data-start=\"1067\" data-end=\"1161\">\n<td data-start=\"1067\" data-end=\"1087\" data-col-size=\"sm\"><strong data-start=\"1069\" data-end=\"1079\">Domain<\/strong><\/td>\n<td data-col-size=\"md\" data-start=\"1087\" data-end=\"1161\">The set of all possible values a variable can take<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div class=\"sticky end-(--thread-content-margin) h-0 self-end select-none\">\n<div class=\"absolute end-0 flex items-end\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<hr data-start=\"1163\" data-end=\"1166\" \/>\n<h3 data-start=\"1168\" data-end=\"1213\">\ud83d\udd39 <strong data-start=\"1175\" data-end=\"1213\">Two Quantifiers in Predicate Logic<\/strong><\/h3>\n<ol data-start=\"1215\" data-end=\"1491\">\n<li data-start=\"1215\" data-end=\"1347\">\n<p data-start=\"1218\" data-end=\"1347\"><strong data-start=\"1218\" data-end=\"1247\">Universal Quantifier (\u2200):<\/strong><br data-start=\"1247\" data-end=\"1250\" \/>Means <strong data-start=\"1259\" data-end=\"1272\">&#8220;for all&#8221;<\/strong> or <strong data-start=\"1276\" data-end=\"1287\">&#8220;every&#8221;<\/strong><br data-start=\"1287\" data-end=\"1290\" \/>Symbol: <code data-start=\"1301\" data-end=\"1310\">\u2200x P(x)<\/code> \u2192 <em data-start=\"1313\" data-end=\"1347\">P(x) is true for all values of x<\/em><\/p>\n<\/li>\n<li data-start=\"1349\" data-end=\"1491\">\n<p data-start=\"1352\" data-end=\"1491\"><strong data-start=\"1352\" data-end=\"1383\">Existential Quantifier (\u2203):<\/strong><br data-start=\"1383\" data-end=\"1386\" \/>Means <strong data-start=\"1395\" data-end=\"1413\">&#8220;there exists&#8221;<\/strong><br data-start=\"1413\" data-end=\"1416\" \/>Symbol: <code data-start=\"1427\" data-end=\"1436\">\u2203x P(x)<\/code> \u2192 <em data-start=\"1439\" data-end=\"1491\">There exists at least one x for which P(x) is true<\/em><\/p>\n<\/li>\n<\/ol>\n<hr data-start=\"1493\" data-end=\"1496\" \/>\n<h3 data-start=\"1498\" data-end=\"1537\">\ud83d\udd0e <strong data-start=\"1505\" data-end=\"1537\">Example 1 \u2013 Simple Predicate<\/strong><\/h3>\n<p data-start=\"1539\" data-end=\"1545\">Let:<\/p>\n<ul data-start=\"1546\" data-end=\"1680\">\n<li data-start=\"1546\" data-end=\"1568\">\n<p data-start=\"1548\" data-end=\"1568\">Domain: All humans<\/p>\n<\/li>\n<li data-start=\"1569\" data-end=\"1611\">\n<p data-start=\"1571\" data-end=\"1611\">Predicate: <code data-start=\"1582\" data-end=\"1603\">M(x): \"x is mortal\"<\/code><br data-start=\"1603\" data-end=\"1606\" \/>Then:<\/p>\n<\/li>\n<li data-start=\"1613\" data-end=\"1680\">\n<p data-start=\"1615\" data-end=\"1680\">Statement: &#8220;All humans are mortal&#8221;<br data-start=\"1649\" data-end=\"1652\" \/>\u2192 Symbolic form: <code data-start=\"1671\" data-end=\"1680\">\u2200x M(x)<\/code><\/p>\n<\/li>\n<\/ul>\n<hr data-start=\"1682\" data-end=\"1685\" \/>\n<h3 data-start=\"1687\" data-end=\"1723\">\ud83d\udd0e <strong data-start=\"1694\" data-end=\"1723\">Example 2 \u2013 Using \u2203 and \u2200<\/strong><\/h3>\n<p data-start=\"1725\" data-end=\"1731\">Let:<\/p>\n<ul data-start=\"1732\" data-end=\"1961\">\n<li data-start=\"1732\" data-end=\"1756\">\n<p data-start=\"1734\" data-end=\"1756\">Domain: All integers<\/p>\n<\/li>\n<li data-start=\"1757\" data-end=\"1797\">\n<p data-start=\"1759\" data-end=\"1797\">Predicate: <code data-start=\"1770\" data-end=\"1789\">E(x): \"x is even\"<\/code><br data-start=\"1789\" data-end=\"1792\" \/>Then:<\/p>\n<\/li>\n<li data-start=\"1799\" data-end=\"1872\">\n<p data-start=\"1801\" data-end=\"1872\">Statement: &#8220;There exists an even number&#8221;<br data-start=\"1841\" data-end=\"1844\" \/>\u2192 Symbolic form: <code data-start=\"1863\" data-end=\"1872\">\u2203x E(x)<\/code><\/p>\n<\/li>\n<li data-start=\"1874\" data-end=\"1961\">\n<p data-start=\"1876\" data-end=\"1961\">Statement: &#8220;All numbers are even&#8221;<br data-start=\"1909\" data-end=\"1912\" \/>\u2192 Symbolic form: <code data-start=\"1931\" data-end=\"1940\">\u2200x E(x)<\/code> (This is <strong data-start=\"1950\" data-end=\"1959\">false<\/strong>!)<\/p>\n<\/li>\n<\/ul>\n<hr data-start=\"1963\" data-end=\"1966\" \/>\n<h3 data-start=\"1968\" data-end=\"2009\">\ud83d\udd0e <strong data-start=\"1975\" data-end=\"2009\">Example 3 \u2013 With Two Variables<\/strong><\/h3>\n<p data-start=\"2011\" data-end=\"2017\">Let:<\/p>\n<ul data-start=\"2018\" data-end=\"2076\">\n<li data-start=\"2018\" data-end=\"2040\">\n<p data-start=\"2020\" data-end=\"2040\">Domain: All people<\/p>\n<\/li>\n<li data-start=\"2041\" data-end=\"2076\">\n<p data-start=\"2043\" data-end=\"2076\">Predicate: <code data-start=\"2054\" data-end=\"2076\">L(x, y): \"x loves y\"<\/code><\/p>\n<\/li>\n<\/ul>\n<p data-start=\"2078\" data-end=\"2083\">Then:<\/p>\n<ul data-start=\"2084\" data-end=\"2218\">\n<li data-start=\"2084\" data-end=\"2143\">\n<p data-start=\"2086\" data-end=\"2143\">Statement: &#8220;Everyone loves someone&#8221;<br data-start=\"2121\" data-end=\"2124\" \/>\u2192 <code data-start=\"2128\" data-end=\"2143\">\u2200x \u2203y L(x, y)<\/code><\/p>\n<\/li>\n<li data-start=\"2145\" data-end=\"2218\">\n<p data-start=\"2147\" data-end=\"2218\">Statement: &#8220;There is someone whom everyone loves&#8221;<br data-start=\"2196\" data-end=\"2199\" \/>\u2192 <code data-start=\"2203\" data-end=\"2218\">\u2203y \u2200x L(x, y)<\/code><\/p>\n<\/li>\n<\/ul>\n<blockquote data-start=\"2220\" data-end=\"2306\">\n<p data-start=\"2222\" data-end=\"2306\">\ud83e\udde0 <strong data-start=\"2225\" data-end=\"2234\">Note:<\/strong> These two statements <strong data-start=\"2256\" data-end=\"2306\">look similar but are logically very different.<\/strong><\/p>\n<\/blockquote>\n<hr data-start=\"2308\" data-end=\"2311\" \/>\n<h3 data-start=\"2313\" data-end=\"2347\">\ud83d\udd01 <strong data-start=\"2320\" data-end=\"2347\">Negation of Quantifiers<\/strong><\/h3>\n<div class=\"_tableContainer_16hzy_1\">\n<div class=\"_tableWrapper_16hzy_14 group flex w-fit flex-col-reverse\">\n<table class=\"w-fit min-w-(--thread-content-width)\" data-start=\"2349\" data-end=\"2610\">\n<thead data-start=\"2349\" data-end=\"2414\">\n<tr data-start=\"2349\" data-end=\"2414\">\n<th data-start=\"2349\" data-end=\"2378\" data-col-size=\"sm\">Statement<\/th>\n<th data-start=\"2378\" data-end=\"2414\" data-col-size=\"sm\">Negation<\/th>\n<\/tr>\n<\/thead>\n<tbody data-start=\"2481\" data-end=\"2610\">\n<tr data-start=\"2481\" data-end=\"2545\">\n<td data-start=\"2481\" data-end=\"2509\" data-col-size=\"sm\"><code data-start=\"2483\" data-end=\"2492\">\u2200x P(x)<\/code><\/td>\n<td data-col-size=\"sm\" data-start=\"2509\" data-end=\"2545\"><code data-start=\"2511\" data-end=\"2521\">\u2203x \u00acP(x)<\/code><\/td>\n<\/tr>\n<tr data-start=\"2546\" data-end=\"2610\">\n<td data-start=\"2546\" data-end=\"2574\" data-col-size=\"sm\"><code data-start=\"2548\" data-end=\"2557\">\u2203x P(x)<\/code><\/td>\n<td data-col-size=\"sm\" data-start=\"2574\" data-end=\"2610\"><code data-start=\"2576\" data-end=\"2586\">\u2200x \u00acP(x)<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div class=\"sticky end-(--thread-content-margin) h-0 self-end select-none\">\n<div class=\"absolute end-0 flex items-end\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<p data-start=\"2612\" data-end=\"2624\"><strong data-start=\"2612\" data-end=\"2624\">Example:<\/strong><\/p>\n<ul data-start=\"2625\" data-end=\"2736\">\n<li data-start=\"2625\" data-end=\"2677\">\n<p data-start=\"2627\" data-end=\"2677\">Original: All students are hardworking \u2192 <code data-start=\"2668\" data-end=\"2677\">\u2200x H(x)<\/code><\/p>\n<\/li>\n<li data-start=\"2678\" data-end=\"2736\">\n<p data-start=\"2680\" data-end=\"2736\">Negation: Some students are not hardworking \u2192 <code data-start=\"2726\" data-end=\"2736\">\u2203x \u00acH(x)<\/code><\/p>\n<\/li>\n<\/ul>\n<hr data-start=\"2738\" data-end=\"2741\" \/>\n<h3 data-start=\"2743\" data-end=\"2792\">\ud83e\udde0 <strong data-start=\"2750\" data-end=\"2792\">Predicate Logic in Real-Life Reasoning<\/strong><\/h3>\n<ul data-start=\"2794\" data-end=\"2959\">\n<li data-start=\"2794\" data-end=\"2959\">\n<p data-start=\"2796\" data-end=\"2959\">&#8220;If a number is prime, then it is odd&#8221;<br data-start=\"2834\" data-end=\"2837\" \/>\u2192 Let <code data-start=\"2845\" data-end=\"2863\">P(x): x is prime<\/code>, <code data-start=\"2865\" data-end=\"2881\">O(x): x is odd<\/code><br data-start=\"2881\" data-end=\"2884\" \/>\u2192 <code data-start=\"2888\" data-end=\"2906\">\u2200x (P(x) \u2192 O(x))<\/code> (\u26a0\ufe0f Note: This is false because 2 is prime and even)<\/p>\n<\/li>\n<\/ul>\n<hr data-start=\"2961\" data-end=\"2964\" \/>\n<h3 data-start=\"2966\" data-end=\"2986\">\ud83d\udccc Summary Table<\/h3>\n<div class=\"_tableContainer_16hzy_1\">\n<div class=\"_tableWrapper_16hzy_14 group flex w-fit flex-col-reverse\">\n<table class=\"w-fit min-w-(--thread-content-width)\" data-start=\"2988\" data-end=\"3292\">\n<thead data-start=\"2988\" data-end=\"3019\">\n<tr data-start=\"2988\" data-end=\"3019\">\n<th data-start=\"2988\" data-end=\"2997\" data-col-size=\"sm\">Symbol<\/th>\n<th data-start=\"2997\" data-end=\"3019\" data-col-size=\"sm\">Meaning<\/th>\n<\/tr>\n<\/thead>\n<tbody data-start=\"3053\" data-end=\"3292\">\n<tr data-start=\"3053\" data-end=\"3086\">\n<td data-start=\"3053\" data-end=\"3062\" data-col-size=\"sm\"><code data-start=\"3055\" data-end=\"3061\">P(x)<\/code><\/td>\n<td data-col-size=\"sm\" data-start=\"3062\" data-end=\"3086\">Predicate<\/td>\n<\/tr>\n<tr data-start=\"3087\" data-end=\"3120\">\n<td data-start=\"3087\" data-end=\"3096\" data-col-size=\"sm\"><code data-start=\"3089\" data-end=\"3092\">\u2200<\/code><\/td>\n<td data-start=\"3096\" data-end=\"3120\" data-col-size=\"sm\">Universal Quantifier<\/td>\n<\/tr>\n<tr data-start=\"3121\" data-end=\"3156\">\n<td data-start=\"3121\" data-end=\"3130\" data-col-size=\"sm\"><code data-start=\"3123\" data-end=\"3126\">\u2203<\/code><\/td>\n<td data-col-size=\"sm\" data-start=\"3130\" data-end=\"3156\">Existential Quantifier<\/td>\n<\/tr>\n<tr data-start=\"3157\" data-end=\"3190\">\n<td data-start=\"3157\" data-end=\"3166\" data-col-size=\"sm\"><code data-start=\"3159\" data-end=\"3162\">\u00ac<\/code><\/td>\n<td data-col-size=\"sm\" data-start=\"3166\" data-end=\"3190\">NOT<\/td>\n<\/tr>\n<tr data-start=\"3191\" data-end=\"3224\">\n<td data-start=\"3191\" data-end=\"3200\" data-col-size=\"sm\"><code data-start=\"3193\" data-end=\"3196\">\u2227<\/code><\/td>\n<td data-start=\"3200\" data-end=\"3224\" data-col-size=\"sm\">AND<\/td>\n<\/tr>\n<tr data-start=\"3225\" data-end=\"3258\">\n<td data-start=\"3225\" data-end=\"3234\" data-col-size=\"sm\"><code data-start=\"3227\" data-end=\"3230\">\u2228<\/code><\/td>\n<td data-col-size=\"sm\" data-start=\"3234\" data-end=\"3258\">OR<\/td>\n<\/tr>\n<tr data-start=\"3259\" data-end=\"3292\">\n<td data-start=\"3259\" data-end=\"3268\" data-col-size=\"sm\"><code data-start=\"3261\" data-end=\"3264\">\u2192<\/code><\/td>\n<td data-col-size=\"sm\" data-start=\"3268\" data-end=\"3292\">IMPLIES<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div class=\"sticky end-(--thread-content-margin) h-0 self-end select-none\">\n<div class=\"absolute end-0 flex items-end\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<hr data-start=\"3294\" data-end=\"3297\" \/>\n<p data-start=\"3299\" data-end=\"3314\">Would you like:<\/p>\n<ul data-start=\"3315\" data-end=\"3420\">\n<li data-start=\"3315\" data-end=\"3338\">\n<p data-start=\"3317\" data-end=\"3338\">\ud83d\udcdd Practice problems?<\/p>\n<\/li>\n<li data-start=\"3339\" data-end=\"3392\">\n<p data-start=\"3341\" data-end=\"3392\">\ud83c\udfa5 A recommended video lecture in Hindi or English?<\/p>\n<\/li>\n<li data-start=\"3393\" data-end=\"3420\">\n<p data-start=\"3395\" data-end=\"3420\">\ud83d\udcc4 A PDF summary of this?<\/p>\n<\/li>\n<\/ul>\n<p data-start=\"3422\" data-end=\"3455\" data-is-last-node=\"\" data-is-only-node=\"\">Let me know and I can provide it!<\/p>\n<h3 data-start=\"3422\" data-end=\"3455\"><a href=\"https:\/\/web.iitd.ac.in\/~bspanda\/Lecture3MTL180.pdf\" target=\"_blank\" rel=\"noopener\">Day 05Part 01-Discrete mathematics-First order Predicate logic or predicate calculus with example<\/a><\/h3>\n<h3 class=\"LC20lb MBeuO DKV0Md\"><a href=\"https:\/\/www.cs.utexas.edu\/~mooney\/cs343\/slides\/fopc.pdf\" target=\"_blank\" rel=\"noopener\">First-Order Logic (First-Order Predicate Calculus)<\/a><\/h3>\n<h3 class=\"LC20lb MBeuO DKV0Md\"><a href=\"http:\/\/users.pja.edu.pl\/~msyd\/mad-lectures\/predicates.pdf\" target=\"_blank\" rel=\"noopener\">Discrete Mathematics &#8211; Predicates<\/a><\/h3>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/article>\n","protected":false},"excerpt":{"rendered":"<p>Day 05Part 01-Discrete mathematics-First order Predicate logic or predicate calculus with example [fvplayer id=&#8221;206&#8243;] Discrete Mathematics &#8211; First Order Predicate Logic (Predicate Calculus) | Day 05 Part 01 What is Predicate Logic? Predicate Logic (also known as First-Order Logic or Predicate Calculus) is an extension of propositional logic. It allows expressions with quantifiers and variables, [&hellip;]<\/p>\n","protected":false},"author":71,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[76],"tags":[],"class_list":["post-2993","post","type-post","status-publish","format-standard","hentry","category-discrete-mathematics"],"_links":{"self":[{"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/posts\/2993","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/users\/71"}],"replies":[{"embeddable":true,"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/comments?post=2993"}],"version-history":[{"count":0,"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/posts\/2993\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/media?parent=2993"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/categories?post=2993"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/tags?post=2993"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}