Terms First-Order Logic: Syntax - Formulas
Total Page:16
File Type:pdf, Size:1020Kb
Load more
Recommended publications
-
Chapter 6: Translations in Monadic Predicate Logic 223
TRANSLATIONS IN 6 MONADIC PREDICATE LOGIC 1. Introduction ....................................................................................................222 2. The Subject-Predicate Form of Atomic Statements......................................223 3. Predicates........................................................................................................224 4. Singular Terms ...............................................................................................226 5. Atomic Formulas ............................................................................................228 6. Variables And Pronouns.................................................................................230 7. Compound Formulas ......................................................................................232 8. Quantifiers ......................................................................................................232 9. Combining Quantifiers With Negation ..........................................................236 10. Symbolizing The Statement Forms Of Syllogistic Logic ..............................243 11. Summary of the Basic Quantifier Translation Patterns so far Examined ......248 12. Further Translations Involving Single Quantifiers ........................................251 13. Conjunctive Combinations of Predicates.......................................................255 14. Summary of Basic Translation Patterns from Sections 12 and 13.................262 15. ‘Only’..............................................................................................................263 -
Handout 5 – the Semantics of Predicate Logic LX 502 – Semantics I October 17, 2008
Handout 5 – The Semantics of Predicate Logic LX 502 – Semantics I October 17, 2008 1. The Interpretation Function This handout is a continuation of the previous handout and deals exclusively with the semantics of Predicate Logic. When you feel comfortable with the syntax of Predicate Logic, I urge you to read these notes carefully. The business of semantics, as I have stated in class, is to determine the truth-conditions of a proposition and, in so doing, describe the models in which a proposition is true (and those in which it is false). Although we’ve extended our logical language, our goal remains the same. By adopting a more sophisticated logical language with a lexicon that includes elements below the sentence-level, we now need a more sophisticated semantics, one that derives the meaning of the proposition from the meaning of its constituent individuals, predicates, and variables. But the essentials are still the same. Propositions correspond to states of affairs in the outside world (Correspondence Theory of Truth). For example, the proposition in (1) is true if and only if it correctly describes a state of affairs in the outside world in which the object corresponding to the name Aristotle has the property of being a man. (1) MAN(a) Aristotle is a man The semantics of Predicate Logic does two things. It assigns a meaning to the individuals, predicates, and variables in the syntax. It also systematically determines the meaning of a proposition from the meaning of its constituent parts and the order in which those parts combine (Principle of Compositionality). -
First-Order Logic Without Bound Variables: Compositional Semantics
First-order Logic without bound variables: Compositional Semantics W. W. Tait This paper was written in honor of Dag Prawitz for the occasion, now alas long past, of his 70th birthday. An attractive format for semantics is that in which composite expressions are built up from atomic ones by means of the operation of concatenation and the concatenation XY expresses the application of a function denoted by X to an argument denoted by Y . The use of relative pronouns presents an obstacle to this form of compositional semantics, since the reference of a relative pronoun in one component may occur in another. In the standard notation of first-order predicate logic this occurs in the form of variable- binding operations of quantification: in the sentence 8xφ(x), the reference of x in 8x is in φ(x) and neither component has an independent meaning. Frege, in the interests of compositional semantics, was led by this to declare that the open formula φ(x) is semantically significant: it simply denotes an `incomplete object'. We won't discuss here the many reasons for rejecting this very ugly idea, but reject it we will. So the demands of compositional semantics require that we formalize first-order predicate logic without using bound variables. Of course the use of bound variables is very natural and the means that we use to eliminate them can result in quite complex expressions. Our purpose, therefore, is not the practical one of finding the most readable notation: it is the theoretical one of obtaining a compositional semantics. On the other hand, we shouldn't be too humble: although the notation φ(v) with free variable v and instances φ(t) where t is a term is quite intuitive, the substi- tutions involved in actual cases, in substituting t for the possibly multiple occurrences of v in φ(v), can create long expressions. -
Logic Via Foundational Algorithms
Logic via Foundational Algorithms James Hook and Tim Sheard March 1, 2011 Contents 1 Overview; Introduction to Propositional Logic 3 1.1 Course Goals and Outline . 3 1.2 Propositional logic . 3 1.2.1 How to understand a logic? . 4 1.2.2 Syntax of Propositional Logic . 4 1.2.3 Natural Deduction Proofs for Propositional Logic . 5 1.3 Tim’s Prover and exercise . 9 2 Propositional logic: truth, validity, satisfiability, tautology, and soundness 10 2.1 Semantics . 10 2.1.1 Valuation . 10 2.1.2 Logical equivalence . 11 2.1.3 Tautology . 11 2.1.4 Satisfiable . 11 2.2 Soundness . 11 2.3 Exercise 2: Backward prover . 14 3 Tableau Proof 15 3.1 Signed Tableau prover . 15 3.1.1 A systematic example . 16 3.1.2 Soundness . 18 3.1.3 A Simple Implementation . 20 3.1.4 Completeness . 22 4 Prop logic: completeness, SAT solvers 22 4.1 Propositional Tableau Proofs, Continued . 23 4.1.1 Uniform notation . 23 4.1.2 Improving the Prover . 23 4.2 Gentzen L-style prover . 24 4.3 Normal Forms . 26 4.4 A Framework for Completeness . 28 1 4.4.1 Propositional Hintikka Sets and the Model Existence The- orem . 29 4.4.2 Application to Tableau completeness . 31 4.4.3 Application to other systems . 32 5 Applications of SAT solvers 32 6 Ideas in SAT Solving 32 6.1 Simple, Incomplete SAT solvers . 33 6.1.1 Conceptual Description . 33 6.1.2 Discussion of complexity . 40 6.1.3 An implementation in Haskell . -
First–Order Logic
(LMCS, p. 317) V.1 First{Order Logic This is the most powerful, most expressive logic that we will examine. Our version of ¯rst-order logic will use the following symbols: ² variables ² connectives (_; ^; !; $; : ) ² function symbols ² relation symbols ² constant symbols ² equality (¼) ² quanti¯ers (8; 9) (LMCS, p. 318) V.2 Formulas for a ¯rst-order language L are de¯ned inductively as follows: ² There are two kinds of atomic formulas: (s ¼ t) , where s and t are terms, and (rt1 ¢ ¢ ¢ tn) , where r is an n{ary relation symbol and t1; ¢ ¢ ¢ ; tn are terms. ² If F is a formula, then so is (: F) . ² If F and G are formulas, then so are (F _ G) , (F ^ G) , (F ! G) , (F $ G) . ² If F is a formula and x is a variable, then (8x F) and (9x F) are formulas. (LMCS, p. 318) V.3 Notational Conventions ² Drop outer parentheses ² Adopt the previous precedence conventions for the propositional connectives. ² Quanti¯ers bind more strongly than any of the connectives. Thus 8y (rxy) _ 9y (rxy) means (8y (rxy)) _ (9y (rxy)) . (LMCS, p. 318) V.4 The subformulas of a formula F : ² The only subformula of an atomic formula F is F itself. ² The subformulas of : F are : F itself and all the subformulas of F. ² The subformulas of F ¤ G are F ¤ G itself and all the subformulas of F and all the subformulas of G: ( ¤ is any of _, ^, !, r $). ² The subformulas of 8x F are 8x F itself and all the subformulas of F. ² The subformulas of 9x F are 9x F itself and all the subformulas of F. -
First Order Logic What Is New Compared to Propositional Logic? • We Have a Collection of Things
First order logic What is new compared to propositional logic? • We have a collection of things. • We call this the domain of discourse. • We have “predicates” that state properties about the items in the collection. • We can quantify statements in the logic – Universal quatification – for all x … – Existential qunatification- there exists x …. Examples • All natural numbers are either even or odd – What is the domain of discourse? • In the Family tree example (from the FiniteSet code), no one is a descendant of themselves. – What is the predicate? • Addition is commutative – What is the domain? – What is the preicate? Observation • Many logics have these distinctions – A domain of discourse – A set of predicates over the domain • Some logics add functions over the domain as well as predicates – A set of connectives (and, or, not, etc) – A set of quantifiers (forall, exists) • Some logics (e.g. temporal) add more quantifiers • How does propositional logic fit in this framework? First order logic • A domain of discourse • Terms over the domain – A minimum of variables – Sometimes constants – Some times functions • Formulas – Predicates P(term, …, term) – Connectives (and, or, not, implies) – Quantifers (for all, exists) Formulas and Terms • A First-order logic is a parameterized family of logics – Parameters • Constants ( c ) • Function symbols ( f ) • Predicate symbols ( p ) • L(c,f,p) is a logic for concrete c, f, and p • Quantifiers are bound in formula, but name individuals used in terms • Predicates are atomic elements of formulas but are applied to terms • Both functions and predicates are applied to a fixed number of arguments, called their arity. -
A Précis of First-Order Logic: Syntax
P1: GEM/SPH P2: GEM/SPH QC: GEM/UKS T1: GEM CY186-09 CB421-Boolos July 27, 2007 16:42 Char Count= 0 9 A Pr´ecis of First-Order Logic: Syntax This chapter and the next contain a summary of material, mainly definitions, needed for later chapters, of a kind that can be found expounded more fully and at a more relaxed pace in introductory-level logic textbooks. Section 9.1 gives an overview of the two groups of notions from logical theory that will be of most concern: notions pertaining to formulas and sentences, and notions pertaining to truth under an interpretation. The former group of notions, called syntactic, will be further studied in section 9.2, and the latter group, called semantic, in the next chapter. 9.1 First-Order Logic Logic has traditionally been concerned with relations among statements, and with properties of statements, that hold by virtue of ‘form’ alone, regardless of ‘content’. For instance, consider the following argument: (1) A mother or father of a person is an ancestor of that person. (2) An ancestor of an ancestor of a person is an ancestor of that person. (3) Sarah is the mother of Isaac, and Isaac is the father of Jacob. (4) Therefore, Sarah is an ancestor of Jacob. Logic teaches that the premisses (1)–(3) (logically) imply or have as a (logical) consequence the conclusion (4), because in any argument of the same form, if the premisses are true, then the conclusion is true. An example of another argument of the same form would be the following: (5) A square or cube of a number is a power of that number. -
Logic and Resolution
Appendix A Logic and Resolution One of the earliest formalisms for the representation of knowledge is logic. The formalism is characterized by a well-defined syntax and semantics, and provides a number of inference rules to manipulate logical formulas on the basis of their form in order to derive new knowledge. Logic has a very long and rich tradition, going back to the ancient Greeks: its roots can be traced to Aristotle. However, it took until the present century before the mathematical foundations of modern logic were laid, amongst others by T. Skolem, J. Herbrand, K. G¨odel, and G. Gentzen. The work of these great and influential mathematicians rendered logic firmly established before the area of computer science came into being. Already from the early 1950s, as soon as the first digital computers became available, research was initiated on using logic for problem solving by means of the computer. This research was undertaken from different points of view. Several researchers were primarily interested in the mechanization of mathematical proofs: the efficient automated generation of such proofs was their main objective. One of them was M. Davis who, already in 1954, developed a computer program which was capable of proving several theorems from number theory. The greatest triumph of the program was its proof that the sum of two even numbers is even. Other researchers, however, were more interested in the study of human problem solving, more in particular in heuristics. For these researchers, mathematical reasoning served as a point of departure for the study of heuristics, and logic seemed to capture the essence of mathematics; they used logic merely as a convenient language for the formal representation of human reasoning. -
A Concise Introduction to Mathematical Logic
Wolfgang Rautenberg A Concise Introduction to Mathematical Logic Textbook Third Edition Typeset and layout: The author Version from June 2009 corrections included Foreword by Lev Beklemishev, Moscow The field of mathematical logic—evolving around the notions of logical validity, provability, and computation—was created in the first half of the previous century by a cohort of brilliant mathematicians and philosophers such as Frege, Hilbert, Gödel, Turing, Tarski, Malcev, Gentzen, and some others. The development of this discipline is arguably among the highest achievements of science in the twentieth century: it expanded mathe- matics into a novel area of applications, subjected logical reasoning and computability to rigorous analysis, and eventually led to the creation of computers. The textbook by Professor Wolfgang Rautenberg is a well-written in- troduction to this beautiful and coherent subject. It contains classical material such as logical calculi, beginnings of model theory, and Gödel’s incompleteness theorems, as well as some topics motivated by applica- tions, such as a chapter on logic programming. The author has taken great care to make the exposition readable and concise; each section is accompanied by a good selection of exercises. A special word of praise is due for the author’s presentation of Gödel’s second incompleteness theorem, in which the author has succeeded in giving an accurate and simple proof of the derivability conditions and the provable Σ1-completeness, a technically difficult point that is usually omitted in textbooks of comparable level. This work can be recommended to all students who want to learn the foundations of mathematical logic. v Preface The third edition differs from the second mainly in that parts of the text have been elaborated upon in more detail. -
Quantification by Sidney Felder the Truth-Functional Connectives
Quantification by SidneyFelder The truth-functional connectivesconstitute the expressive and deductive “engine” of propositional logic. These combine and relate complete atomic sentences whose internal structures are givenno distinctively logical role whatsoever. From one formal point of view, quantificational logic,inall of its infinite varieties, is marked by its penetration to a sentence’ssub-atomic level, a levelfrom which sub-sentential elements that are common to multiplicities of sentences can be discerned and exploited. It has been found, specifically,that just by isolating those aspects of propositions that can be interpreted as making assertions about all or some individuals of one domain or another,a tremendously more powerful system of logic is created: In augmenting the propositional logic by the universal and existential quantifiers “for all x” (symbolized (x) or (∀x)) and “there exists an x” (symbolized (∃x)), and their associated apparatus, we both 1) enormously expand the sphere of abstract ideas and structures that can be givenprecise and distinctive expression in formal terms and 2) vastly increase the range of propositions that can be brought into non-trivial expressive and deduc- tive relationship with each other. We are nowgoing to define the vocabulary and concepts of what is variously called the FirstOrder Predicate Calculus, Predicate Logic,the Lower Predicate Calculus (LPC), and FirstOrder Logic (FOL). (Another (nowseldom used) older name is the FirstOrder Functional Calculus). First Order Logic is simultaneously the most elementary and the most standard of the quantificational log- ics. (There is, for example, Second Order Logic, Third Order Logic, Quantified Modal Logic, Epis- temic Logic, etc.). The First Order system whose axioms include only logical axioms (only axioms that are logically valid) singles out the class of logically valid formulae. -
Predicate Logic
Predicate Logic Yimei Xiang [email protected] 18 February 2014 1 Review 1.1 Set theory 1.2 Propositional Logic • Connectives • Syntax of propositional logic: { A recursive definition of well-formed formulas { Abbreviation rules • Semantics of propositional logic: { Truth tables { Logical equivalence { Tautologies, contradictions, contingencies { Indirect reasoning { Relations between propositions: equivalence, contradiction, entailment • Question: (i) Does (a) contradicts (b) (viz. two sentences are contradictory iff they cannot be simultaneously true)? (ii) If it does, can you show this contradiction by propositional logic? (1) a. Mary is wearing a blue skirt. b. Nobody is wearing a blue skirt. 1 Ling 97r: Mathematical Methods in Linguistics (Week 3) 2 The syntax of predicate logic 2.1 The vocabulary of predicate Logic • Vocabulary (2) a. Individual constants: j; m; ::: b. Individual variables: x; y; z; ::: The individual variables and constants are the terms. c. Predicates: P; Q; R; ::: Each predicate has a fixed and finite number of arguments called its arity. d. Connectives: :; _; ^; !; $ e. Quantifiers: 8 (the universal quantifier, `all, each, every'), 9 (the exis- tential quantifier, `some' in the sense of \at least one, possibly more") f. Constituency labels: parentheses, square brackets and commas. • Existential quantifier: 9 (3) a. A(j; x) John admires x. b. 9xA(j; x) John admires something. • Universal quantifier: 8 (4) a. Every teacher is friendly. b. T (p) ! F (p) If Peter is a teacher, then he is friendly. c. T (b) ! F (b) If Bill is a teacher, then he is friendly. d. 8x(T (x) ! F (x)) For every x, If x is a teacher, then x is friendly. -
First-Order Queries Chapter I First-Order Logic Outline
Overview of Part 1: First-order queries Knowledge Bases and Databases Part 1: First-Order Queries 1 First-order logic 1 Syntax of first-order logic Diego Calvanese 2 Semantics of first-order logic 3 First-order logic queries Faculty of Computer Science Master of Science in Computer Science 2 First-order query evaluation A.Y. 2007/2008 1 Query evaluation problem 2 Complexity of query evaluation 3 Conjunctive queries 1 Evaluation of conjunctive queries 2 Containment of conjunctive queries 3 Unions of conjunctive queries unibz.it D. Calvanese Part 1: First-Order Queries KBDB – 2007/2008 (2/66) Syntax of first-order logic Semantics of first-order logic First-order logic queries Syntax of first-order logic Semantics of first-order logic First-order logic queries Chap. 1: First-Order Logic Chap. 1: First-Order Logic Outline Chapter I 1 Syntax of first-order logic First-Order Logic 2 Semantics of first-order logic 3 First-order logic queries D. Calvanese Part 1: First-Order Queries KBDB – 2007/2008 (3/66) D. Calvanese Part 1: First-Order Queries KBDB – 2007/2008 (4/66) Syntax of first-order logic Semantics of first-order logic First-order logic queries Syntax of first-order logic Semantics of first-order logic First-order logic queries Chap. 1: First-Order Logic Chap. 1: First-Order Logic Outline First-order logic 1 Syntax of first-order logic First-order logic (FOL) is the logic to speak about objects, which are the domain of discourse or universe. 2 Semantics of first-order logic FOL is concerned about properties of these objects and relations over objects (resp., unary and n-ary predicates).