Intermediate Logic Spring. Second-Order Logic

Similar documents
Philosophy 240: Symbolic Logic

Intermediate Logic. First-Order Logic

Philosophy 240: Symbolic Logic

Gödel s Incompleteness Theorems

A Little Deductive Logic

A Little Deductive Logic

6.825 Techniques in Artificial Intelligence. Logic Miscellanea. Completeness and Incompleteness Equality Paramodulation

I thank the author of the examination paper on which sample paper is based. VH

All psychiatrists are doctors All doctors are college graduates All psychiatrists are college graduates

The Foundations of Mathematics. Frege s Logicism

Propositional Logic Not Enough

Williamson s Modal Logic as Metaphysics

Intermediate Logic. Natural Deduction for TFL

This is logically equivalent to the conjunction of the positive assertion Minimal Arithmetic and Representability

Philosophy 240 Symbolic Logic Russell Marcus Hamilton College Fall 2014

Topic #3 Predicate Logic. Predicate Logic

Examples: P: it is not the case that P. P Q: P or Q P Q: P implies Q (if P then Q) Typical formula:

UC Berkeley, Philosophy 142, Spring 2016 John MacFarlane Philosophy 142

Completeness in the Monadic Predicate Calculus. We have a system of eight rules of proof. Let's list them:

cis32-ai lecture # 18 mon-3-apr-2006

Introduction to Metalogic

Introduction to first-order logic:

Overview. CS389L: Automated Logical Reasoning. Lecture 7: Validity Proofs and Properties of FOL. Motivation for semantic argument method

Proseminar on Semantic Theory Fall 2013 Ling 720 First Order (Predicate) Logic: Syntax and Natural Deduction 1

13. APPENDIX 1: THE SYNTAX OF PREDICATE LOGIC

1 Predicates and Quantifiers

Exercises. Exercise Sheet 1: Propositional Logic

Propositional Logic Review

Ling 130 Notes: Predicate Logic and Natural Deduction

2/2/2018. CS 103 Discrete Structures. Chapter 1. Propositional Logic. Chapter 1.1. Propositional Logic

Lecture 13: Soundness, Completeness and Compactness

INTRODUCTION TO LOGIC 4 The Syntax of Predicate Logic

Formal Logic: Quantifiers, Predicates, and Validity. CS 130 Discrete Structures

Section 8.3 Higher-Order Logic A logic is higher-order if it allows predicate names or function names to be quantified or to be arguments of a

Logic. Quantifiers. (real numbers understood). x [x is rotten in Denmark]. x<x+x 2 +1

University of Aberdeen, Computing Science CS2013 Predicate Logic 4 Kees van Deemter

Logic: The Big Picture

Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 1

Predicate Logic: Sematics Part 1

Overview of Today s Lecture

3. The Logic of Quantified Statements Summary. Aaron Tan August 2017

First Order Logic: Syntax and Semantics

Quantifiers Here is a (true) statement about real numbers: Every real number is either rational or irrational.

LECTURE 11 - PARTIAL DIFFERENTIATION

Announcements Multiple & Mixed Quantifiers Understanding Quantification. Quantification What We ve Done. Outline. William Starr

Overview of Today s Lecture

Propositional Logic: Syntax

Mathematical Logic Part Three

2.3 Exercises. (a) F P(A). (Solution)

A MODEL-THEORETIC PROOF OF HILBERT S NULLSTELLENSATZ

Propositional Logic: Logical Agents (Part I)

First-Order Natural Deduction. Part 1: Universal Introduction and Elimination

Logic. Propositional Logic: Syntax. Wffs

Mathematical Logic Part Three

COMP4418: Knowledge Representation and Reasoning First-Order Logic

Section Summary. Section 1.5 9/9/2014

PROOFS IN PREDICATE LOGIC AND COMPLETENESS; WHAT DECIDABILITY MEANS HUTH AND RYAN 2.3, SUPPLEMENTARY NOTES 2

MATH 22 INFERENCE & QUANTIFICATION. Lecture F: 9/18/2003

CS 2800: Logic and Computation Fall 2010 (Lecture 13)

Automated Reasoning Lecture 5: First-Order Logic

Reasoning. Inference. Knowledge Representation 4/6/2018. User

Predicate Logic. Predicates. Math 173 February 9, 2010

Computational Logic. Davide Martinenghi. Spring Free University of Bozen-Bolzano. Computational Logic Davide Martinenghi (1/26)

Class 15: Hilbert and Gödel

Predicates, Quantifiers and Nested Quantifiers

Predicate Logic & Quantification

03 Review of First-Order Logic

Philosophy 148 Announcements & Such

INTRODUCTION TO LOGIC. Propositional Logic. Examples of syntactic claims

Class 29 - November 3 Semantics for Predicate Logic

Final Exam (100 points)

ICS141: Discrete Mathematics for Computer Science I

Peano Arithmetic. CSC 438F/2404F Notes (S. Cook) Fall, Goals Now

Introduction to Logic and Axiomatic Set Theory

Herbrand Theorem, Equality, and Compactness

Formal (Natural) Deduction for Predicate Calculus

Marie Duží

Mathematical Logic Part Three

GÖDEL S COMPLETENESS AND INCOMPLETENESS THEOREMS. Contents 1. Introduction Gödel s Completeness Theorem

GS03/4023: Validation and Verification Predicate Logic Jonathan P. Bowen Anthony Hall

Predicate Calculus. Lila Kari. University of Waterloo. Predicate Calculus CS245, Logic and Computation 1 / 59

Proposi'onal Logic Not Enough


06 From Propositional to Predicate Logic

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

Quantification What We ve Done. Multiple & Mixed Quantifiers Understanding Quantification. William Starr

Bound and Free Variables. Theorems and Proofs. More valid formulas involving quantifiers:

Introducing Proof 1. hsn.uk.net. Contents

Introduction to Metalogic

Discrete Mathematics and Its Applications

Predicate Logic Thursday, January 17, 2013 Chittu Tripathy Lecture 04

Mathematical Preliminaries. Sipser pages 1-28

Motivation. CS389L: Automated Logical Reasoning. Lecture 10: Overview of First-Order Theories. Signature and Axioms of First-Order Theory

CS1021. Why logic? Logic about inference or argument. Start from assumptions or axioms. Make deductions according to rules of reasoning.

Lecture 3 : Predicates and Sets DRAFT

Introduction to Sets and Logic (MATH 1190)

Axiomatic set theory. Chapter Why axiomatic set theory?

AI Principles, Semester 2, Week 2, Lecture 5 Propositional Logic and Predicate Logic

CSCI3390-Lecture 6: An Undecidable Problem

Announcements & Such

Transcription:

Intermediate Logic Spring Lecture Five Second-Order Logic Rob Trueman rob.trueman@york.ac.uk University of York 1 / 47

Introduction Second-Order Logic Introduction The Language of SOL Introduction and Elimination Rules Comprehension Semantics Identity in SOL 2 / 47

Introduction Two Arguments Bertrand is a logician Bertrand is a mathematician Someone is both a logician and a mathematician Bertrand is a philosopher Alfred is a philosopher Bertrand and Alfred have something in common 3 / 47

Introduction Two Arguments Lb Mb x(lx Mx) Bertrand is a philosopher Alfred is a philosopher Bertrand and Alfred have something in common 4 / 47

Introduction Two Arguments Lb Mb x(lx Mx) Pb Pa X (Xb Xa) 5 / 47

Introduction Introducing Second-Order Logic When we introduce variables that go where predicates go, we take the step from first-order logic (FOL) to second-order logic (SOL) The quantifiers in FOL let us quantify over objects x(lx Mx) says that there is some object which is both L and M The quantifiers in SOL let us quantify over properties X (Xb Xa) says that there is some property which b and a both have 6 / 47

The Language of SOL Second-Order Logic Introduction The Language of SOL Introduction and Elimination Rules Comprehension Semantics Identity in SOL 7 / 47

The Language of SOL An Extension of FOL To get from FOL to SOL, all we need to do add some second-order variables A first-order variable is a variable which can go where names go A second-order variable is a variable which can go where predicates go We will use capital letters from the end of the alphabet, with or without numerical subscripts, as our second-order variables S, T, U, V, W, X, Y, Z S 1, T 1, U 1, V 1, W 1, X 1, Y 1, Z 1 S 2, T 2, U 2, V 2, W 2, X 2, Y 2, Z 2... 8 / 47

The Language of SOL Monadic SOL As you already know, predicates come with a certain number of places A one-place predicate combines with one term at a time A two-place predicate combines with two terms at a time An n-place predicate combines with n terms at a time We can divide second-order variables up in exactly the same way......but to keep things simple, we will assume that all the second-order variables have just one place Second-order variables can only combine with one term at a time 9 / 47

The Language of SOL Formulas and Sentences of SOL You can build a new formula out of an old one by replacing one-place predicates with second-order variables Fa Xa x y(px Py) x y(yx Yy) You can build a new formula out of an old one by binding free second-order variables with quantifiers Xa X Xa x y(yx Yy) Y x y(yx Yy) A sentence of SOL is just a formula which contains no free variables (first-order or second-order) 10 / 47

Introduction and Elimination Rules Second-Order Logic Introduction The Language of SOL Introduction and Elimination Rules Comprehension Semantics Identity in SOL 11 / 47

Introduction and Elimination Rules An Extension of FOL The natural deduction system for SOL is an extension of the system for FOL SOL includes all of the rules of FOL, basic and derived SOL simply adds some extra rules to govern the second-order quantifiers Second-order quantifiers are quantifiers which bind second-order variables We start with their introduction and elimination rules, which look pretty much exactly the same as the rules for the first-order quantifiers 12 / 47

Introduction and Elimination Rules First-Order Universal Elimination m xa(...x...x...) A(...c...c...) 1 E, m A(...x...x...) is a formula containing one or more occurrences of some first-order variable x c can be any name you like A(...c...c...) is the result of replacing all of the occurrences of x in A(...x...x...) with c 13 / 47

Introduction and Elimination Rules Second-Order Universal Elimination m XA(...X...X...) A(...F...F...) 2 E, m A(...X...X...) is a formula containing one or more occurrences of some second-order variable X F can be any one-place predicate you like A(...F...F...) is the result of replacing all of the occurrences of X in A(...X...X...) with F 14 / 47

Introduction and Elimination Rules Z(Za Zb), Ga 2 Gb 1 Z(Za Zb) 2 Ga 3 Ga Gb 2 E, 1 4 Gb E, 3, 2 15 / 47

Introduction and Elimination Rules First-Order Existential Introduction m A(...c...c...) xa(...x...c...) 1 I, m A(...c...c...) is a sentence containing one or more occurrences of the name c x can be any first-order variable that does not occur in A(...c...c...) A(...x...c...) is the result of replacing one or more of the occurrences of c in A(...c...c...) with x 16 / 47

Introduction and Elimination Rules Second-Order Existential Introduction m A(...F...F...) XA(...X...F...) 2 I, m A(...F...F...) is a sentence containing one or more occurrences of a one-place predicate F X can be any second-order variable that does not occur in A(...F...F...) A(...X...F...) is the result of replacing one or more of the occurrences of F in A(...F...F...) with X 17 / 47

Introduction and Elimination Rules Pb, Pa 2 X (Xa Xb) 1 Pb 2 Pa 3 Pb Pa I, 1, 2 4 X (Xa Xb) 2 I, 3 18 / 47

Introduction and Elimination Rules First-Order Universal Introduction m A(...c...c...) xa(...x...x...) 1 I, m A(...c...c...) is a sentence containing one or more occurrences of the name c, and A(...x...x...) is the formula that you get when you replace all of those occurrences of c with the first-order variable x c must not occur in any undischarged assumptions above line m (including the premises of the argument) c must not occur in xa(...x...x...) 19 / 47

Introduction and Elimination Rules Second-Order Universal Introduction m A(...F...F...) XA(...X...X...) 2 I, m A(...F...F...) is a sentence containing one or more occurrences of the one-place predicate F, and A(...X...X...) is the formula that you get when you replace all of those occurrences of F with the second-order variable X F must not occur in any undischarged assumptions above line m (including the premises of the argument) F must not occur in XA(...X...X...) 20 / 47

Introduction and Elimination Rules 2 V y(vy Vy) 1 Fa 2 Fa R, 1 3 Fa Fa I, 1 2 4 y(fy Fy) 1 I, 3 5 V y(vy Vy) 2 I, 4 21 / 47

Introduction and Elimination Rules First-Order Existential Elimination m xa(...x...x...) n o B A(...c...c...) B 1 E, m, n o c must not occur in any undischarged assumptions above line m (including the premises of the argument) c must not occur in xa(...x...x...) c must not appear in B 22 / 47

Introduction and Elimination Rules Second-Order Existential Elimination m XA(...X...X...) n A(...F...F...) o B B 2 E, m, n o F must not occur in any undischarged assumptions above line m (including the premises of the argument) F must not occur in XA(...X...X...) F must not appear in B 23 / 47

Introduction and Elimination Rules X (Xa Xb), Y (Yb Yc) 2 Z(Za Zc) 1 X (Xa Xb) 2 Y (Yb Yc) 3 Fa Fb 4 Fa E, 3 5 Fb E, 3 6 Fb Fc 2 E, 2 7 Fc E, 6, 5 8 Fa Fc I, 4, 7 9 Z(Za Zc) 2 I, 8 10 Z(Za Zc) 2 E, 1, 3 9 24 / 47

Comprehension Second-Order Logic Introduction The Language of SOL Introduction and Elimination Rules Comprehension Semantics Identity in SOL 25 / 47

Comprehension Another Argument Susanne is a pianist or an historian Mary is a pianist or an historian Susanne and Mary have something in common This strikes me as a good argument Even if Susanne isn t a historian and Mary isn t a pianist, they still have something in common: they are both pianists or historians! Unfortunately, the rules we have laid out so far will not allow us to provide a proof to vindicate this argument 26 / 47

Comprehension Another Argument Ps Hs Pm Hm X (Xs Xm) This strikes me as a good argument Even if Susanne isn t a historian and Mary isn t a pianist, they still have something in common: they are both pianists or historians! Unfortunately, the rules we have laid out so far will not allow us to provide a proof to vindicate this argument 27 / 47

Comprehension Another Argument Ps Hs Pm Hm X (Xs Xm) This strikes me as a good argument Even if Susanne isn t a historian and Mary isn t a pianist, they still have something in common: they are both pianists or historians! Unfortunately, the rules we have laid out so far will not allow us to provide a proof to vindicate this argument The trouble is that our rules only allow us to replace simple predicates, like, P and H, with second-order variables, not complex formulas like Px Hx 28 / 47

Comprehension Comprehension X x (Xx A(... x... x...)) Comp X must not occur in A(... x... x...) 29 / 47

Comprehension Ps Hs, Pm Hm 2 X (Xs Xm) 1 Ps Hs 2 Pm Hm 3 X x(xx (Px Hx)) Comp 4 x(fx (Px Hx)) 5 Fs (Ps Hs) 1E, 4 6 Fs E, 5, 1 7 Fm (Pm Hm) 1E, 4 8 Fm E, 7 9 Fs Fm I, 6, 8 10 X (Xs Xm) 2I, 9 11 X (Xs Xm) 2E, 3, 4 10 30 / 47

Comprehension A Note on Comprehension You are allowed to plug in any formula for A(... x... x...) It can contain first-order quantifiers! X y(xy xrxy) It can even contain second-order quantifiers!!! Y y(yy x X (Xx Xy)) 31 / 47

Comprehension Natural Deduction for SOL Our natural deduction system for SOL: All of the natural deduction rules for FOL The Introduction and Elimination rules for the second-order quantifiers Comprehension (Logicians often add another rule to this system, called Choice, but we will leave that one out for now) 32 / 47

Semantics Second-Order Logic Introduction The Language of SOL Introduction and Elimination Rules Comprehension Semantics Identity in SOL 33 / 47

Semantics Set-Theory and Semantics The way I presented the semantics for FOL in forallx was fairly informal Normally, philosophers use set-theory to formalise this semantics I explain this in some detail in the Primer, but I will go over a couple of the basics here This is important, because the Standard Semantics for SOL is set-theoretic As you will see, not everyone agrees that the so-called Standard Semantics is the best semantics! 34 / 47

Semantics Set-Theorising our Interpretations In forallx, I said that an interpretation specifies three things: The referent of each name we are dealing with The extension of each predicate we are dealing with The domain of quantification We can think of the domain as a set, D We can also think of the extensions of our one-place predicates as subsets of D A B x(x A x B) 35 / 47

Semantics The First-Order Quantifiers Let c be a new name added to the language xa(...x...x...) is true in an interpretation iff A(...c...c...) is true in every interpretation that extends the original interpretation by assigning an object to c (without changing the interpretation in any other way) xa(...x...x...) is true in an interpretation iff A(...c...c...) is true in some interpretation that extends the original interpretation by assigning an object to c (without changing the interpretation in any other way) 36 / 47

Semantics The Second-Order Quantifiers Let F be a new one-place predicate added to the language XA(...X...X...) is true in an interpretation iff A(...F...F...) is true in every interpretation that extends the original interpretation by assigning a subset of the domain to F (without changing the interpretation in any other way) XA(...X...X...) is true in an interpretation iff A(...F...F...) is true in some interpretation that extends the original interpretation by assigning a subset of the domain to F (without changing the interpretation in any other way) 37 / 47

Semantics Logical Consequence A 1, A 2,..., A n 2 C iff every interpretation which makes all of A 1, A 2,..., A n true also makes C true Is 2 sound relative to 2? If A 1, A 2,..., A n 2 C, then A 1, A 2,..., A n 2 C Is 2 complete relative to 2? If A 1, A 2,..., A n 2 C, then A 1, A 2,..., A n 2 C 38 / 47

Semantics SOL is Inherently Incomplete! 2 is sound relative to 2, but it is not complete! This is not just because I forgot to add some rules to our proof system for SOL It turns out that SOL is so powerful that no system of natural deduction for SOL can be both sound and complete! Proving that is well beyond our means here, since it is a corollary of Gödel s Incompleteness Theorems But if you are intrigued, then I recommend you take the Foundations of Mathematics module next term You won t quite learn how to prove Gödel s theorems, but you will get a sense of what they mean, and why they are so important! 39 / 47

Identity in SOL Second-Order Logic Introduction The Language of SOL Introduction and Elimination Rules Comprehension Semantics Identity in SOL 40 / 47

Identity in SOL Defining Identity In FOL, identity is indefinable: you have to take it as a primitive, basic logical concept But in SOL, we can define identity! x y(x = y df X (Xx Xy)) In English: x is identical to y iff x and y have exactly the same properties 41 / 47

Identity in SOL Two Leibnizian Principles This is an old definition of identity, which goes back to two principles proposed by Leibniz: Indiscernibility of Identicals: x y(x = y X (Xx Xy)) Identity of Indiscernibles: x y( X (Xx Xy) x = y) The second-order definition of identity is what you get when you put these two principles together 42 / 47

Identity in SOL The Identity of Indiscernibles You may have heard people say that while the Indiscernibility of Identical is unassailable, the Identity of Indiscernibles is a controversial thesis But in fact, it is quite easy to show that the Identity of Indiscernibles is true on every interpretation in the Standard Semantics The core of the argument runs like this: Suppose a and b refer to distinct objects, 1 and 2 Now consider the sentence Aa Ab This will come out false if we assign {1} to A as its extension So X (Xa Xb) will be false 43 / 47

Identity in SOL Properties and Sets Does this show that all of the metaphysical debate about the Identity of Indiscernibles was a waste of time? Not at all! When I introduced you to SOL, I told you that second-order quantifiers quantify over properties But in the Standard Semantics, we swapped properties for sets This swap makes a lot of sense for formal purposes, because sets are well behaved mathematical objects But for metaphysical purposes, it is properties which really matter 44 / 47

Identity in SOL Properties and Sets A metaphysician should think of the Standard Semantics a a mere model of what they are really interested in The sets we assign to predicates merely represent the properties we really care about When we look at the Standard Semantics like that, we must ask: How well does our set-theoretic model represent reality? At this point, it becomes very interesting to ask whether it is possible for two distinct objects to share all of their properties! 45 / 47

Identity in SOL Tomorrow s Seminar The reading for tomorrow s seminar is: A Second-Order Logic Primer You can find this primer on the VLE 46 / 47

Identity in SOL Next Week s Lecture and Seminar For next week s lecture and seminar, read: W.V.O. Quine, Philosophy of Logic, pp. 64 68 George Boolos, To Be is to Be a Value of a Variable (or to Be Some Values of Some Variables) A number of study questions will shortly be posted on the VLE; please bring written answers to all of these questions 47 / 47