Introduction to Theoretical Computer Science, Lesson 2: Formalization in a logical language
|
|
- Juniper Miller
- 7 years ago
- Views:
Transcription
1 Introduction to Theoretical Computer Science, Lesson 2: Formalization in a logical language Marie Duží marie.duzi@vsb.cz Introduction to Logic
2 Two basic logical systems:. Propositional logic (PL) 2. First-order predicate logic (FOL) Ad (): PL makes it possible to combine atomic propositions into molecular propositions by means of logical connectives: Conjunction: (p q); p and q Disjunction: (p q); p or q Implication: (p q); if p then q Equivalence: (p q); p if and only if q Introduction to Logic 2
3 Two fundamental logical systems: Tom is singing (p) and he went to cinema (q) (p q) Tom is singing (p) or he went to cinema (q) (p q) If Tom is singing (p) then he went to cinema (q) (p q) An atomic proposition is a statement that can be evaluated as true or false. The two-values principle (tercium non datur) (This is not the only possibility; there are many-valued logics, logics of partial functions with truth-value gaps, fuzzy logics, etc.) Is the definition of atomic proposition trivial? Try to evaluate: The King of France is bald. Did you stop beating your wife? (answer yes/no in case you have never been married or have never beaten your wife) Introduction to Logic 3
4 Two fundamental logical systems Ad (2): In addition, First-order predicate logic (FOL) makes it possible to analyze a structure of atomic propositions up to the level of properties of individuals and relations between them All monkeys like bananas. Judy is a monkey. Judy likes bananas. From the viewpoint of Propositional Logic (PL) the above are simple (atomic) sentences: p, q, r, and {p, q} does not entail r. r PL does not make it possible to prove the validity of this simple e argument. All students are clever Charles is not clever Charles is not a student What are the valid schemata of these arguments? What are the valid schemata of these arguments? We need to analyze the structure of atomic propositions; thus FOL is needed to prove the validity of such arguments. Introduction to Logic 4
5 Propositional logic: There are two kinds of Sentences: Atomic (Elementary) no proper part of the sentence is a sentence as well Molecular (Composed) the sentence has its own part(s) that is (are) a sentence(s) as well The Compositionality Principle: meaning of a composed sentence is a function (depends only on) the meanings of its components. The meaning of sentences in propositional logic is reduces to: True (), False (). A Booleon algebra of truth values. Introduction to Logic 5
6 Examples of composed sentences It is raining in Prague and it is a sunshine in Brno. S connective S2 It is not true that it is raining in Prague. connective S Introduction to Logic 6
7 Definition: language of PL A formal language is defined by an alphabet (a set of symbols) and a grammar (a set of rules that define the way of forming Well Formed Formulas - WFF) Language of Propositional Logic (PL). alphabet: a) Symbols for propositions: p, q, r,... b) Symbols for logical connectives:,,,, c) Auxiliary symbols: (, ), [, ], {, } Symbols ad a) stand for elementary sentences Symbols ad b), i.e.,,,,, are called, respectively: negation (), disjunction (), conjunction (), implication (), equivalence (). Introduction to Logic 7
8 Definition: language of PL 2. Grammar (Inductive definition of an infinite set of WFF). Symbols p, q, r,... are (well-formed) formulas (the definition base). 2. If A, B are formulas, then expressions A, A B, A B, A B, A B are (well-formed) formulas (inductive definition step). 3. Only expressions due to. and 2. are WFFs. (the definition closure). The language of PL is the set of well-formed formulas. Note: Formulas ad () are atomic formulas Formulas ad (2) are composed formulas Introduction to Logic 8
9 Well-formed formulas of PL (notes) Symbols A, B are metasymbols. We can substitute for them any WFF created according to the definition. The outermost parentheses can be omitted. Some other symbols are often used in the notation of logical connectives: Symbol variant notation ,, & ~ Example: (p q) p is a WFF (the outermost parentheses omitted) (p ) q is not a WFF Introduction to Logic 9
10 Definition: semantics (meaning) of formulas The truth-value valuation of propositional symbols is a mapping v that to each propositional symbol p assigns a truth value, i.e., a value from the set {,}, which encodes the set {True, False}; v: {p i } {,} The truth-value function of a PL formula is a function w, which for each valuation v of propositional symbols p i associates the formula with its truth value in the following way: The truth value of an elementary formula p: wp v = vp for any propositional variable p. If the truth values of formulas A, B are given, then the truth value of the formulas A, A B, A B, A B, A B are defined by the following Introduction Table: to Logic
11 Introduction to Logic The truth value functions A B A B A B A B A B A
12 Transforming natural language to the PL language Atomic sentences: p, q, r,... Logical connectives: Negation: it is not true that (unary connective) Conjunction: and, but, : (binary, commutative connection) Prague is a capital and 2+2=4: p q Note: not every and denotes a logical connective! Example: Peter came home and opened the window. Disjunction: or (binary, commutative connection) Prague or Brno is a great city. p q non-exclusive or In a natural language we often use or as an exclusive either, or : I ll go to the cinema or I ll stay at home Exclusive either, or is a non-equivalence Introduction to Logic 2
13 Implication if A then B : A B; A is the antecedent, B is the consequent. (binary, non-commutative connective) Material implication (middle ages: suppositio materialis ) does not take into account any semantic relation between antecedent and consequent Hence implication does not render a causal or chronological relation: If +=2, then iron is a metal (a true proposition): p q If UFO (flying saucers) exist, then I am a pope : p r (What does a speaker want to say? Since obviously I am not a pope, UFO do not exist) Connectives because, therefore, since do not correspond to implication! Since the team lost the match, players left the world championship earlier. Because I am sick, I stay at home. sick home? But then it would have to be true even if I am not sick (see the definition of implication) We might analyze it by means of the modus ponens: [p (p q)] q 3
14 The equivalence connective if and only if (iff) The Greek army used to win if and only if the result of the battle depended on their physical strength : p q It is often used in mathematical definitions; in a natural language its use is not so frequent Example: a) I ll slap you if you cheat on me cheat slap b) I ll slap you if and only if you cheat on me cheat slap Situation: You did not cheat. When can you be slapped? Ad (a) You may be slapped; Ad (b) You might not be slapped. Introduction to Logic 4
15 Satisfiable formulas, tautology, contradiction, model A model of a formula A: valuation v such that A is true in v: w(a) v =. A formula is satisfiable iff it has at least one model A formula is a contradiction iff it has no model A formula is a tautology iff any valuation v is its model. A set of formulas {A,,A n } is satisfiable iff there is a valuation v such that v is a model of every formula A i, i =,...,n. The valuation v is then a model of the set {A,,A n }. Introduction to Logic 5
16 Satisfiable formulas, tautology, contradiction, model (example) A: (p q) (p q) Formula A is a tautology, A is a contradiction, (p q), (p q) are satisfiable. p q p q p q (p q) (p q) (p q) A Introduction to Logic 6
17 Formal language of FOL Alphabet Logical symbols individual variables: x, y, z,... Symbols for truth-connectives:,,,, Symbols for quantifiers:, Special symbols Predicates: P n, Q n,... n arity = number of arguments Functional: f n, g n, h n, Auxiliary symbols: (, ), [, ], {, },... Introduction to Logic 7
18 Formal language of FOL Grammar terms: i. each variable symbol x, y,... is a term ii. iii. if t,,t n (n ) are terms and if f is an n-ary functional symbol, then the expression f(t,,t n ) is a term; If n =, then we talk about individual constant (denoted a, b, c, ) only expressions due to i. and ii. are terms Introduction to Logic 8
19 Formal language of FOL Grammar atomic formulas: If P is an n-ary predicate symbol and if t,,t n are terms, then P(t,,t n ) is an atomic formula (molecular) formulas: each atomic formula is a formula if A is a formula, then A is a formula if A and B are formulas, then (A B), (A B), (A B), (A B) are formulas if x is a variable and A a formula, then x A and x A are formulas Introduction to Logic 9
20 Formal language of FOL st order We can quantify only over individual variables We cannot quantify over properties or functions Example: Leibniz s definition of identity: If two individuals have all the properties identical, then it is one and the same individual P [P(x) = P(y)] (x = y) here we need a 2 nd -order language, because we quantify over properties Introduction to Logic 2
21 Example: language of arithmetic We need special functional symbols: (the constant zero) constant is a -ary functional symbol unary symbol: s (the successor function) binary symbols: + and (adding and multiplying) Examples of terms (using infix notation for + and ):, s(x), s(s(x)), (x + y) s(s()), etc. Formulas (= is here a special predicate symbol): s() = ( x) + s(), x (y = x z), x [(x = y) y (x = s(y))] Introduction to Logic 2
22 Transforming natural language into the language of FOL all, every, none, nobody, any,... somebody, something, some, there is,... A sentence often needs to be equivalently reformulated No student is retired It holds for every individual x that if x is a student then x is not retired : x [S(x) R(x)] But: Not all students are retired It is not true that any student is retired : x [S(x) R(x)] x [S(x) R(x)] Introduction to Logic 22
23 Transforming natural language into the language of FOL An auxiliary rule: +, + (almost always) x [P(x) Q(x)] x [P(x) Q(x)] It is not true that all P s are Q s Some P s are not Q s x [P(x) Q(x)] x [P(x) Q(x)] It is not true that some P s are Q s No P is a Q de Morgan laws in FOL Introduction to Logic 23
24 Transforming natural language into the language of FOL The lift is used only by employees: x [L(x) E(x)] All employees use the lift: Mary likes only winners: x [E(x) L(x)] Hence, for all individuals x it holds that if Mary likes x then x must be a winner: x [L(m, x) W(x)] to like is a binary relation, not a property!!! Introduction to Logic 24
25 Transforming natural language into the language of FOL Everybody loves somebody sometimes x y t L(x, y, t) Everybody loves somebody sometimes but Hitler doesn t like anybody x y t L(x, y, t) zl (h, z) Everybody loves nobody ambiguous Nobody loves anybody ambiguous; Everybody dislikes anybody: x y L (x, y) x yl (x, y) Introduction to Logic 25
26 Free, bound variables x yp(x, y, t) xq(y, x) bound, free free, bound Formula in a clear form: each variable has only free occurrences, or only bound occurrences; each quantifier quantifies its own variables. For instance, the above formula is not in the clear form: x in the second conjunct is another variable than the x in the first conjunct, similarly for y. Clear formula: x yp(x, y, t) zq(u, z) Introduction to Logic 26
27 Substitution of terms for variables Ax/t arises from A by a correct (i.e., collisionless) substitution of a term t for the variable x. There are two rules for a correct substitution: We can substitute a term t only for free occurrences of a variable x in a formula A, and we have to substitute for all the free occurrences. No individual variable that occurrs in the term t can become bound in A (in such a case the term t is not substitutable for x in the formula A). Introduction to Logic 27
28 Substitution, example A(x): P(x) yq(x, y), term t = f(y) After executing the substitution A(x/f(y)), we obtain: P(f(y)) yq(f(y), y). The term f(y) is not substitutable for x in A We d change the sense of the formula Introduction to Logic 28
29 Semantics of FOL!!! P(x) yq(x, y) is this formula true? A non-reasonable question; For, we do not know what the symbols P, Q mean, what they stand for. They are only symbols which can stand for any predicate (property). P(x) P(x) is this formula true? YES, it is; and it is always so, in all the circumstances. It is a tautology, i.e. a logically valid formula. Introduction to Logic 29
30 Semantics of FOL!!! x P(x, f(x)) First, we have to specify x P(x, f(x)) how to understand these formulas: ) What do they talk about; we have to choose the universe of discourse: any non-empty set U 2) What does the predicate symbol P denote; it is a binary symbol, with two arguments; thus it has to denote a binary relation R U U 3) What does the symbol functional f denote; it is an unary, one-argument symbol; thus it has to denote a function F U U, denoted F: U U Introduction to Logic 3
31 Semantics of FOL (example) A: x P(x, f(x)) we have to specify B: x P(x, f(x)) how to understand these formulas: ) Let U = N (the set of natural numbers) 2) Let P denote the relation < (i.e., the set of pairs, where the first element is strictly less than the second one: {,,,2,,,2, }) 3) Let f denote the function second power x 2, i.e., the set of pairs where the second element is the power of the first one: {,,,, 2,4,,5,25, } Now we can evaluate the truth values of the formulas A, B Introduction to Logic 3
32 Semantics of FOL (example) A: x P(x, f(x)) B: x P(x, f(x)) We evaluate from the inside : First evaluate the term f(x). Each term denotes an element of the universe. Which one? It depends on the valuation e of the variable x. Let e(x) =, then f(x) = x 2 =. Let e(x) =, then f(x) = x 2 =, Let e(x) = 2, then f(x) = x 2 = 4, etc. Now by evaluating P(x, f(x)) we have to obtain a truth value: e(x) =, is not < False e(x) =, is not < False, e(x) = 2, 2 is < 4 True. Introduction to Logic 32
33 Semantics of FOL (example) A: x P(x, f(x)) B: x P(x, f(x)) The formula P(x, f(x)) is in the given interpretation True for some valuations of the variable x, and False for other valuations. The meaning of x (x): the formula is true for all (some) valuations of x Formula A: False in our interpretation I: I A Formula B: True in the interpretation I: = I B Introduction to Logic 33
34 Model of a formula, interpretation A: x P(x, f(x)) B: x P(x, f(x)) We have found an interpretation I in which the formula B is true. The Interpretation structure N, <, x 2 satisfies the formula B; it is a model of the formula B. How to adjust the interpretation in order it were a model of the formula A? There are infinitely many possibilities, infinitely many models. For instance: N, <, x+, {N/{,}, <, x 2, N,, x 2, All the models of the formula A are also models of the formula B ( what holds for all, holds also for some ) Introduction to Logic 34
35 Model of a formula, interpretation C: x P(x, f(y)) what are the models of this formula (with a free variable y)? Let us interpret again. Choose a Universe U = N 2. Assign a relation to the symbol P: 3. Assign a function to the symbol f: x 2 Is the structure IS = N,, power a model of the formula C? In order to be so, the formula C must be true in IS for all the valuations of the variable y. Hence the formula P(x, f(y)) must be true for all valuations of x and y. But it is not so, for instance, if e(x) = 5, e(y) = 2, then 5 is not 2 2 Introduction to Logic 35
36 Model of a formula, interpretation C: x P(x, f(y)) what are the models of this formula (with a free variable y)? The structure N,, x 2 is not a model of formula C. A (trivial) model is, e.g., N, N N, x 2. The whole Cartesian product N N, i.e. the set of all the pairs of natural numbers, is also a relation over N. Or, the structure N,, F, where F is the function, mapping N N, such that F associates all the natural numbers with the number. Introduction to Logic 36
37 Equivalent formulation, negation, de Morgan laws It is raining It is not true that it is not raining p p It is raining or snowing It is not true that it is neither raining nor snowing (p q) (p q) It is raining and snowing It is not true that it is not raining or not snowing (p q) (p q) It is not true that It is raining and snowing It is not raining or not snowing (p q) (p q) It is not true that It is raining or snowing It is not raining and not snowing (p q) (p q) It is not true that if it is raining then it is snowing It is raining and not snowing (p q) (p q) If it is raining then it is snowing It is not raining or it is snowing (p q) (p q) Be careful of implication! 37
38 De Morgan laws It is not true that all A are B Some A are not B x [A(x) B(x)] x [A(x) B(x)] x [A(x) B(x)] It is not true that some A is B No A is B x [A(x) B(x)] x [A(x) B(x)] x [A(x) B(x)] x [A(x) B(x)] It is not true that no A is B Some A are B x [A(x) B(x)] x [A(x) B(x)] x [A(x) B(x)] It is not true that some A are not B All A are B x [A(x) B(x)] x [A(x) B(x)] x [A(x) B(x)] In general: x A(x) x A(x); x A(x) x A(x) (A B) (A B); (A B) (A B); (A B) (A B); Introduction to Logic 38
2. The Language of First-order Logic
2. The Language of First-order Logic KR & R Brachman & Levesque 2005 17 Declarative language Before building system before there can be learning, reasoning, planning, explanation... need to be able to
More informationIntroduction to Logic: Argumentation and Interpretation. Vysoká škola mezinárodních a veřejných vztahů PhDr. Peter Jan Kosmály, Ph.D. 9. 3.
Introduction to Logic: Argumentation and Interpretation Vysoká škola mezinárodních a veřejných vztahů PhDr. Peter Jan Kosmály, Ph.D. 9. 3. 2016 tests. Introduction to Logic: Argumentation and Interpretation
More informationLikewise, we have contradictions: formulas that can only be false, e.g. (p p).
CHAPTER 4. STATEMENT LOGIC 59 The rightmost column of this truth table contains instances of T and instances of F. Notice that there are no degrees of contingency. If both values are possible, the formula
More informationHandout #1: Mathematical Reasoning
Math 101 Rumbos Spring 2010 1 Handout #1: Mathematical Reasoning 1 Propositional Logic A proposition is a mathematical statement that it is either true or false; that is, a statement whose certainty or
More informationPropositional Logic. A proposition is a declarative sentence (a sentence that declares a fact) that is either true or false, but not both.
irst Order Logic Propositional Logic A proposition is a declarative sentence (a sentence that declares a fact) that is either true or false, but not both. Are the following sentences propositions? oronto
More informationMathematical Induction
Mathematical Induction In logic, we often want to prove that every member of an infinite set has some feature. E.g., we would like to show: N 1 : is a number 1 : has the feature Φ ( x)(n 1 x! 1 x) How
More informationPredicate Logic. Example: All men are mortal. Socrates is a man. Socrates is mortal.
Predicate Logic Example: All men are mortal. Socrates is a man. Socrates is mortal. Note: We need logic laws that work for statements involving quantities like some and all. In English, the predicate is
More information3. Mathematical Induction
3. MATHEMATICAL INDUCTION 83 3. Mathematical Induction 3.1. First Principle of Mathematical Induction. Let P (n) be a predicate with domain of discourse (over) the natural numbers N = {0, 1,,...}. If (1)
More informationCHAPTER 7 GENERAL PROOF SYSTEMS
CHAPTER 7 GENERAL PROOF SYSTEMS 1 Introduction Proof systems are built to prove statements. They can be thought as an inference machine with special statements, called provable statements, or sometimes
More informationLecture 8: Resolution theorem-proving
Comp24412 Symbolic AI Lecture 8: Resolution theorem-proving Ian Pratt-Hartmann Room KB2.38: email: ipratt@cs.man.ac.uk 2014 15 In the previous Lecture, we met SATCHMO, a first-order theorem-prover implemented
More informationMath 3000 Section 003 Intro to Abstract Math Homework 2
Math 3000 Section 003 Intro to Abstract Math Homework 2 Department of Mathematical and Statistical Sciences University of Colorado Denver, Spring 2012 Solutions (February 13, 2012) Please note that these
More informationCHAPTER 3. Methods of Proofs. 1. Logical Arguments and Formal Proofs
CHAPTER 3 Methods of Proofs 1. Logical Arguments and Formal Proofs 1.1. Basic Terminology. An axiom is a statement that is given to be true. A rule of inference is a logical rule that is used to deduce
More informationDegrees of Truth: the formal logic of classical and quantum probabilities as well as fuzzy sets.
Degrees of Truth: the formal logic of classical and quantum probabilities as well as fuzzy sets. Logic is the study of reasoning. A language of propositions is fundamental to this study as well as true
More informationCHAPTER 2. Logic. 1. Logic Definitions. Notation: Variables are used to represent propositions. The most common variables used are p, q, and r.
CHAPTER 2 Logic 1. Logic Definitions 1.1. Propositions. Definition 1.1.1. A proposition is a declarative sentence that is either true (denoted either T or 1) or false (denoted either F or 0). Notation:
More information(LMCS, p. 317) V.1. First Order Logic. This is the most powerful, most expressive logic that we will examine.
(LMCS, p. 317) V.1 First Order Logic This is the most powerful, most expressive logic that we will examine. Our version of first-order logic will use the following symbols: variables connectives (,,,,
More informationINTRODUCTORY SET THEORY
M.Sc. program in mathematics INTRODUCTORY SET THEORY Katalin Károlyi Department of Applied Analysis, Eötvös Loránd University H-1088 Budapest, Múzeum krt. 6-8. CONTENTS 1. SETS Set, equal sets, subset,
More informationWHAT ARE MATHEMATICAL PROOFS AND WHY THEY ARE IMPORTANT?
WHAT ARE MATHEMATICAL PROOFS AND WHY THEY ARE IMPORTANT? introduction Many students seem to have trouble with the notion of a mathematical proof. People that come to a course like Math 216, who certainly
More informationLecture 16 : Relations and Functions DRAFT
CS/Math 240: Introduction to Discrete Mathematics 3/29/2011 Lecture 16 : Relations and Functions Instructor: Dieter van Melkebeek Scribe: Dalibor Zelený DRAFT In Lecture 3, we described a correspondence
More informationMathematics for Computer Science/Software Engineering. Notes for the course MSM1F3 Dr. R. A. Wilson
Mathematics for Computer Science/Software Engineering Notes for the course MSM1F3 Dr. R. A. Wilson October 1996 Chapter 1 Logic Lecture no. 1. We introduce the concept of a proposition, which is a statement
More informationCorrespondence analysis for strong three-valued logic
Correspondence analysis for strong three-valued logic A. Tamminga abstract. I apply Kooi and Tamminga s (2012) idea of correspondence analysis for many-valued logics to strong three-valued logic (K 3 ).
More informationPredicate Logic. For example, consider the following argument:
Predicate Logic The analysis of compound statements covers key aspects of human reasoning but does not capture many important, and common, instances of reasoning that are also logically valid. For example,
More informationBeyond Propositional Logic Lukasiewicz s System
Beyond Propositional Logic Lukasiewicz s System Consider the following set of truth tables: 1 0 0 1 # # 1 0 # 1 1 0 # 0 0 0 0 # # 0 # 1 0 # 1 1 1 1 0 1 0 # # 1 # # 1 0 # 1 1 0 # 0 1 1 1 # 1 # 1 Brandon
More informationThis asserts two sets are equal iff they have the same elements, that is, a set is determined by its elements.
3. Axioms of Set theory Before presenting the axioms of set theory, we first make a few basic comments about the relevant first order logic. We will give a somewhat more detailed discussion later, but
More informationChapter 3. Cartesian Products and Relations. 3.1 Cartesian Products
Chapter 3 Cartesian Products and Relations The material in this chapter is the first real encounter with abstraction. Relations are very general thing they are a special type of subset. After introducing
More information! " # The Logic of Descriptions. Logics for Data and Knowledge Representation. Terminology. Overview. Three Basic Features. Some History on DLs
,!0((,.+#$),%$(-&.& *,2(-$)%&2.'3&%!&, Logics for Data and Knowledge Representation Alessandro Agostini agostini@dit.unitn.it University of Trento Fausto Giunchiglia fausto@dit.unitn.it The Logic of Descriptions!$%&'()*$#)
More informationDiscrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 2
CS 70 Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 2 Proofs Intuitively, the concept of proof should already be familiar We all like to assert things, and few of us
More informationMath 223 Abstract Algebra Lecture Notes
Math 223 Abstract Algebra Lecture Notes Steven Tschantz Spring 2001 (Apr. 23 version) Preamble These notes are intended to supplement the lectures and make up for the lack of a textbook for the course
More informationIf an English sentence is ambiguous, it may allow for more than one adequate transcription.
Transcription from English to Predicate Logic General Principles of Transcription In transcribing an English sentence into Predicate Logic, some general principles apply. A transcription guide must be
More informationA Little Set Theory (Never Hurt Anybody)
A Little Set Theory (Never Hurt Anybody) Matthew Saltzman Department of Mathematical Sciences Clemson University Draft: August 21, 2013 1 Introduction The fundamental ideas of set theory and the algebra
More informationChapter 4, Arithmetic in F [x] Polynomial arithmetic and the division algorithm.
Chapter 4, Arithmetic in F [x] Polynomial arithmetic and the division algorithm. We begin by defining the ring of polynomials with coefficients in a ring R. After some preliminary results, we specialize
More informationCartesian Products and Relations
Cartesian Products and Relations Definition (Cartesian product) If A and B are sets, the Cartesian product of A and B is the set A B = {(a, b) :(a A) and (b B)}. The following points are worth special
More informationPredicate Logic Review
Predicate Logic Review UC Berkeley, Philosophy 142, Spring 2016 John MacFarlane 1 Grammar A term is an individual constant or a variable. An individual constant is a lowercase letter from the beginning
More informationSo let us begin our quest to find the holy grail of real analysis.
1 Section 5.2 The Complete Ordered Field: Purpose of Section We present an axiomatic description of the real numbers as a complete ordered field. The axioms which describe the arithmetic of the real numbers
More informationNo Solution Equations Let s look at the following equation: 2 +3=2 +7
5.4 Solving Equations with Infinite or No Solutions So far we have looked at equations where there is exactly one solution. It is possible to have more than solution in other types of equations that are
More informationThe Halting Problem is Undecidable
185 Corollary G = { M, w w L(M) } is not Turing-recognizable. Proof. = ERR, where ERR is the easy to decide language: ERR = { x { 0, 1 }* x does not have a prefix that is a valid code for a Turing machine
More informationCertamen 1 de Representación del Conocimiento
Certamen 1 de Representación del Conocimiento Segundo Semestre 2012 Question: 1 2 3 4 5 6 7 8 9 Total Points: 2 2 1 1 / 2 1 / 2 3 1 1 / 2 1 1 / 2 12 Here we show one way to solve each question, but there
More informationComputability Theory
CSC 438F/2404F Notes (S. Cook and T. Pitassi) Fall, 2014 Computability Theory This section is partly inspired by the material in A Course in Mathematical Logic by Bell and Machover, Chap 6, sections 1-10.
More informationON FUNCTIONAL SYMBOL-FREE LOGIC PROGRAMS
PROCEEDINGS OF THE YEREVAN STATE UNIVERSITY Physical and Mathematical Sciences 2012 1 p. 43 48 ON FUNCTIONAL SYMBOL-FREE LOGIC PROGRAMS I nf or m at i cs L. A. HAYKAZYAN * Chair of Programming and Information
More informationUniversity of Ostrava. Reasoning in Description Logic with Semantic Tableau Binary Trees
University of Ostrava Institute for Research and Applications of Fuzzy Modeling Reasoning in Description Logic with Semantic Tableau Binary Trees Alena Lukasová Research report No. 63 2005 Submitted/to
More informationCS510 Software Engineering
CS510 Software Engineering Propositional Logic Asst. Prof. Mathias Payer Department of Computer Science Purdue University TA: Scott A. Carr Slides inspired by Xiangyu Zhang http://nebelwelt.net/teaching/15-cs510-se
More informationdef: An axiom is a statement that is assumed to be true, or in the case of a mathematical system, is used to specify the system.
Section 1.5 Methods of Proof 1.5.1 1.5 METHODS OF PROOF Some forms of argument ( valid ) never lead from correct statements to an incorrect. Some other forms of argument ( fallacies ) can lead from true
More informationEQUATIONAL LOGIC AND ABSTRACT ALGEBRA * ABSTRACT
EQUATIONAL LOGIC AND ABSTRACT ALGEBRA * Taje I. Ramsamujh Florida International University Mathematics Department ABSTRACT Equational logic is a formalization of the deductive methods encountered in studying
More information8 Divisibility and prime numbers
8 Divisibility and prime numbers 8.1 Divisibility In this short section we extend the concept of a multiple from the natural numbers to the integers. We also summarize several other terms that express
More informationRegular Languages and Finite State Machines
Regular Languages and Finite State Machines Plan for the Day: Mathematical preliminaries - some review One application formal definition of finite automata Examples 1 Sets A set is an unordered collection
More informationPredicate logic. Logic in computer science. Logic in Computer Science (lecture) PART II. first order logic
PART II. Predicate logic first order logic Logic in computer science Seminar: INGK401-K5; INHK401; INJK401-K4 University of Debrecen, Faculty of Informatics kadek.tamas@inf.unideb.hu 1 / 19 Alphabets Logical
More informationComputational Logic and Cognitive Science: An Overview
Computational Logic and Cognitive Science: An Overview Session 1: Logical Foundations Technical University of Dresden 25th of August, 2008 University of Osnabrück Who we are Helmar Gust Interests: Analogical
More informationCSL105: Discrete Mathematical Structures. Ragesh Jaiswal, CSE, IIT Delhi
Propositional Logic: logical operators Negation ( ) Conjunction ( ) Disjunction ( ). Exclusive or ( ) Conditional statement ( ) Bi-conditional statement ( ): Let p and q be propositions. The biconditional
More informationInvalidity in Predicate Logic
Invalidity in Predicate Logic So far we ve got a method for establishing that a predicate logic argument is valid: do a derivation. But we ve got no method for establishing invalidity. In propositional
More informationLogic in general. Inference rules and theorem proving
Logical Agents Knowledge-based agents Logic in general Propositional logic Inference rules and theorem proving First order logic Knowledge-based agents Inference engine Knowledge base Domain-independent
More informationA Beginner s Guide to Modern Set Theory
A Beginner s Guide to Modern Set Theory Martin Dowd Product of Hyperon Software PO Box 4161 Costa Mesa, CA 92628 www.hyperonsoft.com Copyright c 2010 by Martin Dowd 1. Introduction..... 1 2. Formal logic......
More information10.4 Traditional Subject Predicate Propositions
M10_COPI1396_13_SE_C10.QXD 10/22/07 8:42 AM Page 445 10.4 Traditional Subject Predicate Propositions 445 Continuing to assume the existence of at least one individual, we can say, referring to this square,
More information6.080/6.089 GITCS Feb 12, 2008. Lecture 3
6.8/6.89 GITCS Feb 2, 28 Lecturer: Scott Aaronson Lecture 3 Scribe: Adam Rogal Administrivia. Scribe notes The purpose of scribe notes is to transcribe our lectures. Although I have formal notes of my
More informationDEFINABLE TYPES IN PRESBURGER ARITHMETIC
DEFINABLE TYPES IN PRESBURGER ARITHMETIC GABRIEL CONANT Abstract. We consider the first order theory of (Z, +,
More informationLogic in Computer Science: Logic Gates
Logic in Computer Science: Logic Gates Lila Kari The University of Western Ontario Logic in Computer Science: Logic Gates CS2209, Applied Logic for Computer Science 1 / 49 Logic and bit operations Computers
More informationChapter 1. Use the following to answer questions 1-5: In the questions below determine whether the proposition is TRUE or FALSE
Use the following to answer questions 1-5: Chapter 1 In the questions below determine whether the proposition is TRUE or FALSE 1. 1 + 1 = 3 if and only if 2 + 2 = 3. 2. If it is raining, then it is raining.
More informationWRITING PROOFS. Christopher Heil Georgia Institute of Technology
WRITING PROOFS Christopher Heil Georgia Institute of Technology A theorem is just a statement of fact A proof of the theorem is a logical explanation of why the theorem is true Many theorems have this
More informationTesting LTL Formula Translation into Büchi Automata
Testing LTL Formula Translation into Büchi Automata Heikki Tauriainen and Keijo Heljanko Helsinki University of Technology, Laboratory for Theoretical Computer Science, P. O. Box 5400, FIN-02015 HUT, Finland
More informationLecture Notes in Discrete Mathematics. Marcel B. Finan Arkansas Tech University c All Rights Reserved
Lecture Notes in Discrete Mathematics Marcel B. Finan Arkansas Tech University c All Rights Reserved 2 Preface This book is designed for a one semester course in discrete mathematics for sophomore or junior
More informationAutomata and Formal Languages
Automata and Formal Languages Winter 2009-2010 Yacov Hel-Or 1 What this course is all about This course is about mathematical models of computation We ll study different machine models (finite automata,
More informationReal Roots of Univariate Polynomials with Real Coefficients
Real Roots of Univariate Polynomials with Real Coefficients mostly written by Christina Hewitt March 22, 2012 1 Introduction Polynomial equations are used throughout mathematics. When solving polynomials
More information1 if 1 x 0 1 if 0 x 1
Chapter 3 Continuity In this chapter we begin by defining the fundamental notion of continuity for real valued functions of a single real variable. When trying to decide whether a given function is or
More informationJaakko Hintikka Boston University. and. Ilpo Halonen University of Helsinki INTERPOLATION AS EXPLANATION
Jaakko Hintikka Boston University and Ilpo Halonen University of Helsinki INTERPOLATION AS EXPLANATION INTERPOLATION AS EXPLANATION In the study of explanation, one can distinguish two main trends. On
More informationThe Syntax of Predicate Logic
The Syntax of Predicate Logic LX 502 Semantics I October 11, 2008 1. Below the Sentence-Level In Propositional Logic, atomic propositions correspond to simple sentences in the object language. Since atomic
More informationBasic Set Theory. 1. Motivation. Fido Sue. Fred Aristotle Bob. LX 502 - Semantics I September 11, 2008
Basic Set Theory LX 502 - Semantics I September 11, 2008 1. Motivation When you start reading these notes, the first thing you should be asking yourselves is What is Set Theory and why is it relevant?
More informationSolutions Q1, Q3, Q4.(a), Q5, Q6 to INTLOGS16 Test 1
Solutions Q1, Q3, Q4.(a), Q5, Q6 to INTLOGS16 Test 1 Prof S Bringsjord 0317161200NY Contents I Problems 1 II Solutions 3 Solution to Q1 3 Solutions to Q3 4 Solutions to Q4.(a) (i) 4 Solution to Q4.(a)........................................
More informationThe Division Algorithm for Polynomials Handout Monday March 5, 2012
The Division Algorithm for Polynomials Handout Monday March 5, 0 Let F be a field (such as R, Q, C, or F p for some prime p. This will allow us to divide by any nonzero scalar. (For some of the following,
More informationFixed-Point Logics and Computation
1 Fixed-Point Logics and Computation Symposium on the Unusual Effectiveness of Logic in Computer Science University of Cambridge 2 Mathematical Logic Mathematical logic seeks to formalise the process of
More informationThe Mathematics of GIS. Wolfgang Kainz
The Mathematics of GIS Wolfgang Kainz Wolfgang Kainz Department of Geography and Regional Research University of Vienna Universitätsstraße 7, A-00 Vienna, Austria E-Mail: wolfgang.kainz@univie.ac.at Version.
More informationC H A P T E R Regular Expressions regular expression
7 CHAPTER Regular Expressions Most programmers and other power-users of computer systems have used tools that match text patterns. You may have used a Web search engine with a pattern like travel cancun
More informationPredicate logic Proofs Artificial intelligence. Predicate logic. SET07106 Mathematics for Software Engineering
Predicate logic SET07106 Mathematics for Software Engineering School of Computing Edinburgh Napier University Module Leader: Uta Priss 2010 Copyright Edinburgh Napier University Predicate logic Slide 1/24
More informationFormalization of the CRM: Initial Thoughts
Formalization of the CRM: Initial Thoughts Carlo Meghini Istituto di Scienza e Tecnologie della Informazione Consiglio Nazionale delle Ricerche Pisa CRM SIG Meeting Iraklio, October 1st, 2014 Outline Overture:
More informationRules of Inference Friday, January 18, 2013 Chittu Tripathy Lecture 05
Rules of Inference Today s Menu Rules of Inference Quantifiers: Universal and Existential Nesting of Quantifiers Applications Old Example Re-Revisited Our Old Example: Suppose we have: All human beings
More informationBoolean Design of Patterns
123 Boolean Design of Patterns Basic weave structures interlacement patterns can be described in many ways, but they all come down to representing the crossings of warp and weft threads. One or the other
More information(IALC, Chapters 8 and 9) Introduction to Turing s life, Turing machines, universal machines, unsolvable problems.
3130CIT: Theory of Computation Turing machines and undecidability (IALC, Chapters 8 and 9) Introduction to Turing s life, Turing machines, universal machines, unsolvable problems. An undecidable problem
More informationLinear Programming Notes V Problem Transformations
Linear Programming Notes V Problem Transformations 1 Introduction Any linear programming problem can be rewritten in either of two standard forms. In the first form, the objective is to maximize, the material
More informationReading 13 : Finite State Automata and Regular Expressions
CS/Math 24: Introduction to Discrete Mathematics Fall 25 Reading 3 : Finite State Automata and Regular Expressions Instructors: Beck Hasti, Gautam Prakriya In this reading we study a mathematical model
More informationAnswer Key for California State Standards: Algebra I
Algebra I: Symbolic reasoning and calculations with symbols are central in algebra. Through the study of algebra, a student develops an understanding of the symbolic language of mathematics and the sciences.
More informationFormal Languages and Automata Theory - Regular Expressions and Finite Automata -
Formal Languages and Automata Theory - Regular Expressions and Finite Automata - Samarjit Chakraborty Computer Engineering and Networks Laboratory Swiss Federal Institute of Technology (ETH) Zürich March
More informationIntegrals of Rational Functions
Integrals of Rational Functions Scott R. Fulton Overview A rational function has the form where p and q are polynomials. For example, r(x) = p(x) q(x) f(x) = x2 3 x 4 + 3, g(t) = t6 + 4t 2 3, 7t 5 + 3t
More information1.7. Partial Fractions. 1.7.1. Rational Functions and Partial Fractions. A rational function is a quotient of two polynomials: R(x) = P (x) Q(x).
.7. PRTIL FRCTIONS 3.7. Partial Fractions.7.. Rational Functions and Partial Fractions. rational function is a quotient of two polynomials: R(x) = P (x) Q(x). Here we discuss how to integrate rational
More informationHow To Understand The Theory Of Computer Science
Theory of Computation Lecture Notes Abhijat Vichare August 2005 Contents 1 Introduction 2 What is Computation? 3 The λ Calculus 3.1 Conversions: 3.2 The calculus in use 3.3 Few Important Theorems 3.4 Worked
More information4. CLASSES OF RINGS 4.1. Classes of Rings class operator A-closed Example 1: product Example 2:
4. CLASSES OF RINGS 4.1. Classes of Rings Normally we associate, with any property, a set of objects that satisfy that property. But problems can arise when we allow sets to be elements of larger sets
More informationEquality and dependent type theory. Oberwolfach, March 2 (with some later corrections)
Oberwolfach, March 2 (with some later corrections) The Axiom of Univalence, a type-theoretic view point In type theory, we reduce proof-checking to type-checking Hence we want type-checking to be decidable
More informationLecture 9 Maher on Inductive Probability
Lecture 9 Maher on Inductive Probability Patrick Maher Scientific Thought II Spring 2010 Two concepts of probability Example You know that a coin is either two-headed or two-tailed but you have no information
More informationfacultad de informática universidad politécnica de madrid
facultad de informática universidad politécnica de madrid On the Confluence of CHR Analytical Semantics Rémy Haemmerlé Universidad olitécnica de Madrid & IMDEA Software Institute, Spain TR Number CLI2/2014.0
More informationChapter 4: The Logic of Boolean Connectives
Chapter 4: The Logic of Boolean Connectives 4.1 Tautologies and logical truth Logical truth We already have the notion of logical consequence. A sentence is a logical consequence of a set of sentences
More informationThe last three chapters introduced three major proof techniques: direct,
CHAPTER 7 Proving Non-Conditional Statements The last three chapters introduced three major proof techniques: direct, contrapositive and contradiction. These three techniques are used to prove statements
More informationit is easy to see that α = a
21. Polynomial rings Let us now turn out attention to determining the prime elements of a polynomial ring, where the coefficient ring is a field. We already know that such a polynomial ring is a UF. Therefore
More informationCS 3719 (Theory of Computation and Algorithms) Lecture 4
CS 3719 (Theory of Computation and Algorithms) Lecture 4 Antonina Kolokolova January 18, 2012 1 Undecidable languages 1.1 Church-Turing thesis Let s recap how it all started. In 1990, Hilbert stated a
More informationPractice with Proofs
Practice with Proofs October 6, 2014 Recall the following Definition 0.1. A function f is increasing if for every x, y in the domain of f, x < y = f(x) < f(y) 1. Prove that h(x) = x 3 is increasing, using
More informationColored Hats and Logic Puzzles
Colored Hats and Logic Puzzles Alex Zorn January 21, 2013 1 Introduction In this talk we ll discuss a collection of logic puzzles/games in which a number of people are given colored hats, and they try
More informationLecture 17 : Equivalence and Order Relations DRAFT
CS/Math 240: Introduction to Discrete Mathematics 3/31/2011 Lecture 17 : Equivalence and Order Relations Instructor: Dieter van Melkebeek Scribe: Dalibor Zelený DRAFT Last lecture we introduced the notion
More informationThe Refutation of Relativism
The Refutation of Relativism There are many different versions of relativism: ethical relativism conceptual relativism, and epistemic relativism are three. In this paper, I will be concerned with only
More informationElementary Number Theory and Methods of Proof. CSE 215, Foundations of Computer Science Stony Brook University http://www.cs.stonybrook.
Elementary Number Theory and Methods of Proof CSE 215, Foundations of Computer Science Stony Brook University http://www.cs.stonybrook.edu/~cse215 1 Number theory Properties: 2 Properties of integers (whole
More informationLecture 1. Basic Concepts of Set Theory, Functions and Relations
September 7, 2005 p. 1 Lecture 1. Basic Concepts of Set Theory, Functions and Relations 0. Preliminaries...1 1. Basic Concepts of Set Theory...1 1.1. Sets and elements...1 1.2. Specification of sets...2
More informationDIVISIBILITY AND GREATEST COMMON DIVISORS
DIVISIBILITY AND GREATEST COMMON DIVISORS KEITH CONRAD 1 Introduction We will begin with a review of divisibility among integers, mostly to set some notation and to indicate its properties Then we will
More informationA Few Basics of Probability
A Few Basics of Probability Philosophy 57 Spring, 2004 1 Introduction This handout distinguishes between inductive and deductive logic, and then introduces probability, a concept essential to the study
More informationMathematics Review for MS Finance Students
Mathematics Review for MS Finance Students Anthony M. Marino Department of Finance and Business Economics Marshall School of Business Lecture 1: Introductory Material Sets The Real Number System Functions,
More information8 Primes and Modular Arithmetic
8 Primes and Modular Arithmetic 8.1 Primes and Factors Over two millennia ago already, people all over the world were considering the properties of numbers. One of the simplest concepts is prime numbers.
More informationA first step towards modeling semistructured data in hybrid multimodal logic
A first step towards modeling semistructured data in hybrid multimodal logic Nicole Bidoit * Serenella Cerrito ** Virginie Thion * * LRI UMR CNRS 8623, Université Paris 11, Centre d Orsay. ** LaMI UMR
More information