EXTENSIONS OF FIRST ORDER LOGIC

Similar documents
LOGIC AND DISCRETE MATHEMATICS

Dynamic Logic David Harel, The Weizmann Institute Dexter Kozen, Cornell University Jerzy Tiuryn, University of Warsaw The MIT Press, Cambridge, Massac

The Formal Semantics of Programming Languages An Introduction. Glynn Winskel. The MIT Press Cambridge, Massachusetts London, England

Foundations of AI. 9. Predicate Logic. Syntax and Semantics, Normal Forms, Herbrand Expansion, Resolution

Boolean Reasoning. The Logic of Boolean Equations. Frank Markham Brown Air Force Institute of Technology

Introductory logic and sets for Computer scientists

3.4 Deduction and Evaluation: Tools Conditional-Equational Logic

Contents. Chapter 1 SPECIFYING SYNTAX 1

MATHEMATICAL STRUCTURES FOR COMPUTER SCIENCE

COMPUTATIONAL SEMANTICS WITH FUNCTIONAL PROGRAMMING JAN VAN EIJCK AND CHRISTINA UNGER. lg Cambridge UNIVERSITY PRESS

A First-Order Logic with First-Class Types

Fundamentals of Discrete Mathematical Structures

Typed Lambda Calculus for Syntacticians

Proofs-Programs correspondance and Security

Logic and its Applications

Module 6. Knowledge Representation and Logic (First Order Logic) Version 2 CSE IIT, Kharagpur

Typed Lambda Calculus

Towards a Logical Reconstruction of Relational Database Theory

Overview. CS389L: Automated Logical Reasoning. Lecture 6: First Order Logic Syntax and Semantics. Constants in First-Order Logic.

CIS 1.5 Course Objectives. a. Understand the concept of a program (i.e., a computer following a series of instructions)

A NEW PROOF-ASSISTANT THAT REVISITS HOMOTOPY TYPE THEORY THE THEORETICAL FOUNDATIONS OF COQ USING NICOLAS TABAREAU

1.3. Conditional expressions To express case distinctions like

CSCI.6962/4962 Software Verification Fundamental Proof Methods in Computer Science (Arkoudas and Musser) Chapter p. 1/27

Inductive Definitions, continued

AN INTRODUCTION TO FUZZY SETS Analysis and Design. Witold Pedrycz and Fernando Gomide

Chapter 3: Propositional Languages

Calculus of Inductive Constructions

Substitution in Structural Operational Semantics and value-passing process calculi

STABILITY AND PARADOX IN ALGORITHMIC LOGIC

1. true / false By a compiler we mean a program that translates to code that will run natively on some machine.

Non-Standard Models of Arithmetic

This is already grossly inconvenient in present formalisms. Why do we want to make this convenient? GENERAL GOALS

Reflection in the Chomsky Hierarchy

Computation Engineering Applied Automata Theory and Logic. Ganesh Gopalakrishnan University of Utah. ^J Springer

Term Algebras with Length Function and Bounded Quantifier Elimination

Warm-Up Problem. Let L be the language consisting of as constant symbols, as a function symbol and as a predicate symbol. Give an interpretation where

About the Author. Dependency Chart. Chapter 1: Logic and Sets 1. Chapter 2: Relations and Functions, Boolean Algebra, and Circuit Design

Comp 411 Principles of Programming Languages Lecture 7 Meta-interpreters. Corky Cartwright January 26, 2018

Negations in Refinement Type Systems

What if current foundations of mathematics are inconsistent? Vladimir Voevodsky September 25, 2010

HANDBOOK OF LOGIC IN ARTIFICIAL INTELLIGENCE AND LOGIC PROGRAMMING

Last class. CS Principles of Programming Languages. Introduction. Outline

An Evolution of Mathematical Tools

From Types to Sets in Isabelle/HOL

Universes. Universes for Data. Peter Morris. University of Nottingham. November 12, 2009

DATABASE THEORY. Lecture 11: Introduction to Datalog. TU Dresden, 12th June Markus Krötzsch Knowledge-Based Systems

Lecture 1: Conjunctive Queries

Specification, Verification, and Interactive Proof

A Simplified Abstract Syntax for the Dataflow Algebra. A. J. Cowling

Modal Logic ALEXANDER CHAGROV. Tver State University. and MICHAEL ZAKHARYASCHEV

Syllabi of the Comprehensive Examination in Computer Science

DISCRETE MATHEMATICS

CSC 501 Semantics of Programming Languages

Schema Mappings and Data Exchange

Propositional Logic. Part I

T. Background material: Topology

Introduction to Automata Theory. BİL405 - Automata Theory and Formal Languages 1

Name: CSCI E-220: Artificial Intelligence Midterm Exam, Fall Term 2001

15-819M: Data, Code, Decisions

Software Engineering Lecture Notes

(All chapters begin with an Introduction end with a Summary, Exercises, and Reference and Bibliography) Preliminaries An Overview of Database

Knowledge Representation and Reasoning Logics for Artificial Intelligence

Part I Logic programming paradigm

Implementação de Linguagens 2016/2017

LOGIC SYNTHESIS AND VERIFICATION ALGORITHMS. Gary D. Hachtel University of Colorado. Fabio Somenzi University of Colorado.

Database Theory VU , SS Codd s Theorem. Reinhard Pichler

Theorem proving. PVS theorem prover. Hoare style verification PVS. More on embeddings. What if. Abhik Roychoudhury CS 6214

Pooya Saadatpanah, Michalis Famelis, Jan Gorzny, Nathan Robinson, Marsha Chechik, Rick Salay. September 30th, University of Toronto.

Finite Model Theory and Its Applications

The discussion of Chapter 1 will be split into two sessions; the first will cover 1.1 and 1.2; the second will cover 1.3, 1.4, and 1.5.

CS 242. Fundamentals. Reading: See last slide

type classes & locales

We ve studied the main models and concepts of the theory of computation:

Multiple View Geometry in Computer Vision Second Edition

Goals: Define the syntax of a simple imperative language Define a semantics using natural deduction 1

Compiler Construction Using

The three faces of homotopy type theory. Type theory and category theory. Minicourse plan. Typing judgments. Michael Shulman.

LTCS Report. Concept Descriptions with Set Constraints and Cardinality Constraints. Franz Baader. LTCS-Report 17-02

The Inverse of a Schema Mapping

Some Interdefinability Results for Syntactic Constraint Classes

A NEW PROOF-ASSISTANT THAT REVISITS HOMOTOPY TYPE THEORY THE THEORETICAL FOUNDATIONS OF COQ USING NICOLAS TABAREAU

Thomas Jech. Set Theory. The Third Millennium Edition, revised and expanded. 4y Springer

Propositional Theories are Strongly Equivalent to Logic Programs

Higher-Order Logic. Specification and Verification with Higher-Order Logic

Semantic Subtyping. Alain Frisch (ENS Paris) Giuseppe Castagna (ENS Paris) Véronique Benzaken (LRI U Paris Sud)

Post and Jablonsky Algebras of Compositions (Superpositions)

Knowledge Representation and Reasoning Logics for Artificial Intelligence

the application rule M : x:a: B N : A M N : (x:a: B) N and the reduction rule (x: A: B) N! Bfx := Ng. Their algorithm is not fully satisfactory in the

Safe Stratified Datalog With Integer Order Does not Have Syntax

System Description: Twelf A Meta-Logical Framework for Deductive Systems

Handbook of Weighted Automata

How to Prove Higher Order Theorems in First Order Logic

Graph Query Verification using Monadic 2 nd -Order Logic

CMSC 330: Organization of Programming Languages. Operational Semantics

Applied Combinatorics

Lost in translation. Leonardo de Moura Microsoft Research. how easy problems become hard due to bad encodings. Vampire Workshop 2015

PRESENTATION SLIDES FOR PUN-LOSP William Bricken July Interface as Overview

Chapter 21: Metatheory of Recursive Types. Induction and Coinduction Finite and Infinite Types/Subtyping Membership Checking

Going beyond propositional logic

Meta-programming with Names and Necessity p.1

Transcription:

EXTENSIONS OF FIRST ORDER LOGIC Maria Manzano University of Barcelona CAMBRIDGE UNIVERSITY PRESS

Table of contents PREFACE xv CHAPTER I: STANDARD SECOND ORDER LOGIC. 1 1.- Introduction. 1 1.1. General idea. 1 1.2. Expressive power. 2 1.3. Model-theoretic counterparts of expressiveness. 4 1.4. Incompleteness. 5 2.- Second order grammar. 6 2.1. Definition (signature and alphabet). 9 2.2. Expressions: terms, predicates and formulas. 11 2.3. Remarks on notation. 13 2.4. Induction. 14 2.5. Free and bound variables. > 17 2.6. Substitution. 18 3.- Standard structures. 22 3.1. Definition of standard structures. 22 3.2. Relations between standard structures established without the formal language. 23 4.- Standard semantics. 30 4.1. Assignment. 30 4.2. Interpretation. 31 4.3. Consequence and validity. 33

Vlll 6.- Induction models and primitive recursion in induction models. 140 6.1. Addition and multiplication in induction models. 140 6.2. Exponential operation on induction models. 143 6.4. Universal operations. 144 CHAPTER IV: FRAMES AND GENERAL STRUCTURES. 148 1.- Introduction. 148 1.1. Frames and general structures. 148 1.2. Standard/nonstandard view. 149 1.3. The concept of subset. 150 1.4. Summary. 152 2.- Second order frames. 154 2.1. Definition of frames. 154 2.2. Semantics on frames. 155 2.3. Soundness and completeness in frames. 157 2.4. Undefinability of identity in frames. 159 2.5. Frames and lambdas. 160 2.6. Definable sets and relations in a given frame. 161 3.- General structures. 164 3.1. Definition of general structures. 165 3.2. Semantics based on general structures. 167 3.3. General structures and lambdas. 167 3.4. Soundness and completeness in general structures. 168 4.- Algebraic definition of general structures. 171 4.1. Fundamental relations of a structure. 171 4.2. Algebraic definition of general structures. 172 5.- Logics obtained by weakening the schema of comprehension. 173 6.- Weak second order logic. 6.1. General idea. 174

IX 6.2. Metaproperties of weak second order logic. 175 CHAPTER V: TYPE THEORY. 180 1.- Introduction. 180 1.1. General idea. 180 1.2. Paradoxes and their solution in type theory. 182 1.3. Three presentations of type theory. 186 2.- A relational theory of finite types. 187 2.1. Definition (signature and alphabet). 187 2.2. Expressions. 188 2.3. Equality. 189 2.4. Free variables and substitution. 189 2.5. Deductive calculus. 190 2.6. The relational standard structure and the relational standard hierarchy of types. 190 2.7. RTT with lambda. 192 2.8. Incompleteness of standard type theory. 193 2.9. Relational general structures and relational frames. 193 r 3.- Algebraic definition of relational general structures. 197 3.1. Fundamental relations. 198 3.2. Definition of relational general structure by algebraic closure of the domains. 199 3.3. Theorem. 200 3.4. Some parametrically definable relations also included ' in the universe of relational general structures defined by algebraic closure. 201 3.5. Theorem. 203 4.- A functional theory of types. 205 4.1. Definition (signature and alphabet). 205 4.2. Expressions. 206

4.3. Functional frames, functional general structures and functional standard structures. 207 4.4. From RTT to FTT. 210 5.- Equational presentation of the functional theory of finite types. 214 5.1. Main features of ETT. 214 5.2. Connectors and quantifiers in ETT. 215 5.3. The selector operator in ETT. 218 5.4. A calculus for ETT. 218 CHAPTER VI: MANY-SORTED LOGIC. 220 1.- Introduction. 220 1.1. Examples. 220 1.2. Reduction to and comparison with first order logic. 221 1.3. Uses of many-sorted logic. 225 1.4. Many-sorted logic as a unifier logic. 226 2.- Structures. 227 2.1. Definition (signature). 229 2.2. Definition (structure). 229 3.- Formal many-sorted language. 231 3.1 Alphabet. 231 3.2. Expressions: formulas and terms. 231 3.3. Remarks on notation. 232 3.4. Abbreviations. 233 3.5. Induction. 233 3.6. Free and bound variables. 234 4.- Semantics. 234 4.1. Definitions. 235 4.2. Satisfiability, validity, consequence and logical equivalence. 236

XI 5.- Substitution of a term for a variable. 236 6.- Semantic theorems. 238 6.1. Coincidence lemma. 238 6.2. Substitution lemma. 238 6.3. Equals substitution lemma. 239 6.4. Isomorphism theorem. 239 7.- The completeness of many-sorted logic. 240 7.1. Deductive calculus. 241 7.2. Syntactic notions. 242 7.3. Soundness. 244 7.4. Completeness theorem (countable language). 245 7.5. Compactness theorem. 256 7.6. Lowenheim-Skolem theorem. 256 8.- Reduction to one-sorted logic. 257 8.1. The syntactical translation (relativization of quantifiers). 257 8.2. Conversion of structures. 258 CHAPTER VH: APPLYING MANY-SORTED LOGIC. 236 1.- General plan. 263 1.1. Aims. 263 1.2. Representation theorem. 264 1.3. Main theorem. 269 1.4. Testing a given calculus for XL. 272 Applying many-sorted logic to higher order logic. 2.- Higher order logic as many-sorted logic. 2.0. Preliminaries. 277 2.1. The formal many-sorted language MSL. 281 2.2. The syntactical translation. 283 2.3. Structures. 283

Xll 2.4. The equivalence SOL-MSL D 288 Applying many-sorted logic to modal logic. 3.- Modal logic. 291 3.1. Some history. 291 3.2. A formal language for PML. 295 3.3. Modal propositional logics. 297 3.4. Normal modal logics. 301 3.5. Consistency of all normal modal logics contained in S5. 303 3.6. Kripke models. 305 3.7. A formal language for FOML. 309 3.8. Semantics. 310 3.9. A deductive calculus for FOML(S5). 311 4.- Propositional modal logic as many-sorted logic. 4.1. The formal many-sorted language MSL". 312 4.2. Translating function. 313 4.3. General structures and frames built on PM-structures. 314 4.4. The MODO theory. 317 4.5. Reverse conversion. 320 4.6. Testing the calculus. 323 5.- First order modal logic as many-sorted logic. 327 5.1. The formal many-sorted language MSL. 328 5.2. Translating function. 328 5.3. Theorems on semantic equivalence FOML-MSL. 329 5.4. Metaproperties of FOML-S5: compactness, and Loweheim-Skolem. 333 5.5. Soundness and completeness of S5. 333

Xlll Applying many-sorted logic to dynamic logic. 6.- Dynamic logic. 335 6.1. General idea. 335 6.2. A formal language for PDL. 336 6.3. Semantics. 337 6.4. The logic PDL. 340 7.- Propositional dynamic logic as many-sorted logic. 342 7.1. The formal many-sorted language MSL. 342 7.2. Translating function. 343 7.3. Structures and frames built on PD-structures. 344 7.4. The SOLO 2 theory. 347 Bibliography 352 List of notation 364 Index 369