b. Induction (LfP 50 3)

Similar documents
127: Lecture notes HT18. Week 3. D.I. Semantic and proof-theoretic approaches to consequence (LfP 1.5)

Predicate Logic: Sematics Part 1

H. Quantified Modal Logic (QML)

Informal Statement Calculus

a. Introduction to metatheory

Knowledge representation DATA INFORMATION KNOWLEDGE WISDOM. Figure Relation ship between data, information knowledge and wisdom.

Classical Propositional Logic

Semantic Metatheory of SL: Mathematical Induction

Description Logics. Foundations of Propositional Logic. franconi. Enrico Franconi

First-Order Logic First-Order Theories. Roopsha Samanta. Partly based on slides by Aaron Bradley and Isil Dillig

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

C. Modal Propositional Logic (MPL)

Language of Propositional Logic

Introduction to Metalogic

What are the recursion theoretic properties of a set of axioms? Understanding a paper by William Craig Armando B. Matos

A. Brief review of classical propositional logic (PL)


Gödel s Completeness Theorem

An Introduction to Gödel s Theorems

Propositional Logic. Testing, Quality Assurance, and Maintenance Winter Prof. Arie Gurfinkel

Tecniche di Verifica. Introduction to Propositional Logic

INTRODUCTION TO LOGIC. Propositional Logic. Examples of syntactic claims

Lecture 2: Syntax. January 24, 2018

Gödel s Incompleteness Theorems

Propositional Logic: Models and Proofs

Logic Part I: Classical Logic and Its Semantics

ACLT: Algebra, Categories, Logic in Topology - Grothendieck's generalized topological spaces (toposes)

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

185.A09 Advanced Mathematical Logic

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

First-Order Logic (FOL)

Přednáška 12. Důkazové kalkuly Kalkul Hilbertova typu. 11/29/2006 Hilbertův kalkul 1

Propositional Logic and Semantics

Proseminar on Semantic Theory Fall 2013 Ling 720 Propositional Logic: Syntax and Natural Deduction 1

Mathematical Foundations of Logic and Functional Programming

A REGULAR SEQUENT CALCULUS FOR QUANTUM LOGIC IN WHICH A AND v ARE DUAL N.J. CUTLAND GIBBINS

Notation for Logical Operators:

02 Propositional Logic

Propositional and Predicate Logic - II

Predicate Calculus - Semantics 1/4

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

LING 106. Knowledge of Meaning Lecture 3-1 Yimei Xiang Feb 6, Propositional logic

Decidability of integer multiplication and ordinal addition. Two applications of the Feferman-Vaught theory

LOGIC. Mathematics. Computer Science. Stanley N. Burris

Logic: Propositional Logic (Part I)

First-Order Logic. 1 Syntax. Domain of Discourse. FO Vocabulary. Terms

Unary negation: T F F T

There are infinitely many set variables, X 0, X 1,..., each of which is

PHIL 422 Advanced Logic Inductive Proof

Propositional Logic: Syntax

Propositional Logic, Predicates, and Equivalence

Krivine s Intuitionistic Proof of Classical Completeness (for countable languages)

Class 29 - November 3 Semantics for Predicate Logic

Propositional logic. First order logic. Alexander Clark. Autumn 2014

Syntax. Notation Throughout, and when not otherwise said, we assume a vocabulary V = C F P.

a. ~p : if p is T, then ~p is F, and vice versa

Ling 130 Notes: Syntax and Semantics of Propositional Logic

Handbook of Logic and Proof Techniques for Computer Science

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

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

More Propositional Logic Algebra: Expressive Completeness and Completeness of Equivalences. Computability and Logic

Propositional and Predicate Logic - VII

First Order Logic (FOL) 1 znj/dm2017

CHAPTER 11. Introduction to Intuitionistic Logic

PART II QUANTIFICATIONAL LOGIC

Marie Duží

7. Propositional Logic. Wolfram Burgard and Bernhard Nebel

Tutorial on Axiomatic Set Theory. Javier R. Movellan

Fuzzy Propositional Logic for the Knowledge Representation

Propositional Logic Language

First-Order Logic. Chapter Overview Syntax

5. Peano arithmetic and Gödel s incompleteness theorem

TRUTH TELLERS. Volker Halbach. Scandinavian Logic Symposium. Tampere

Learning Goals of CS245 Logic and Computation

Packet #1: Logic & Proofs. Applied Discrete Mathematics

Proving simple set properties...

PEANO AXIOMS FOR THE NATURAL NUMBERS AND PROOFS BY INDUCTION. The Peano axioms

Foundations of Mathematics

With Question/Answer Animations. Chapter 2

Discrete Mathematics for CS Fall 2003 Wagner Lecture 3. Strong induction

127: Lecture notes HT17. Week 8. (1) If Oswald didn t shoot Kennedy, someone else did. (2) If Oswald hadn t shot Kennedy, someone else would have.

Propositional Calculus - Soundness & Completeness of H

1 Completeness Theorem for Classical Predicate

Intelligent Agents. First Order Logic. Ute Schmid. Cognitive Systems, Applied Computer Science, Bamberg University. last change: 19.

ECE473 Lecture 15: Propositional Logic

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

Deductive Systems. Lecture - 3

Overview of Logic and Computation: Notes

From Constructibility and Absoluteness to Computability and Domain Independence

Outline. Formale Methoden der Informatik First-Order Logic for Forgetters. Why PL1? Why PL1? Cont d. Motivation

Lecture 4: Proposition, Connectives and Truth Tables

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes

CHAPTER 2. FIRST ORDER LOGIC

Axiomatic set theory. Chapter Why axiomatic set theory?

An Introduction to Modal Logic III

0.Axioms for the Integers 1

AN EXTENSION OF THE PROBABILITY LOGIC LP P 2. Tatjana Stojanović 1, Ana Kaplarević-Mališić 1 and Zoran Ognjanović 2

Topics in Logic and Proofs

The semantics of propositional logic

Logic I - Session 22. Meta-theory for predicate logic

Transcription:

b. Induction (LfP 50 3) b.i. The principle of mathematical induction The principle of mathematical induction is a property of natural numbers. b.i.1. Natural numbers The natural numbers are the non-negative integers: 0, 1, 2, 3,.... We write N for the set of natural numbers i.e.: N t0, 1, 2, 3,...u We ll reserve the variables m and n for natural numbers. b.i.2. Weak and Strong induction and the Least Number Principle. There are three common ways to formulate the principle of induction, and variants of it. The weak principle of induction (Ind). If (i) F p0q and (ii) for each n P N: F pnq implies F pn ` 1q, then F pnq for each n P N pf p0q ^ @npf pnq Ñ F pn ` 1qqq Ñ @nf pnq The strong principle of induction (S-Ind). If, for each n P N, F pmq for all m ă n implies F pnq, then F pnq for all n P N @npp@m ă nqf pmq Ñ F pnqq Ñ @nf pnq The least number principle (LNP). If M is a non-empty set of natural numbers, M has a least element. Remarks. Ind is included as one of the axioms in standard axiomatizations of the canonical theory of arithmetic Peano arithmetic (PA). This serves to distinguish N, from e.g. the set of all integers, non-negative and negative, Z t..., 2, 1, 0, 1, 2,...u e.g. t 1, 2, 3,...u is a subset of Z with no least element. Ind, S-Ind, and LNP are provably equivalent (given the other axioms of PA) We shall help ourselves to all three in informal proofs usually S-Ind. Consequently, the background theory where we do metatheory is stronger than classical logic also containing some classical mathematics. vii

b.ii. Induction in arithmetic We ll usually think of induction as a proof technique. b.ii.1. Proof by induction on n Proof by induction on n. One standard way to show that every n P N is such that F pnq is by induction on n: Base case. Prove F p0q. Induction hypothesis. Assume F pnq Induction step. Prove F pn ` 1q (given the induction hypothesis) Remark. Once you ve completed the induction step, you ve completed the proof. But sometimes you may wish to flag this with something like Consequently F pnq holds for every n P N, by induction. b.ii.2. Example: summing series Worked Example. Show that for any n P N: 0 2 ` 1 2 ` 2 2 ` ` n 2 npn ` 1qp2n ` 1q 6 b.iii. Induction in logic Induction in logic is often strong induction on complexity of formulas. b.iii.1. Complexity One standard way to measure the complexity of a formula is simply to count how many connectives it contains: Definition of complexity. Let the complexity of a wff φ be the number of connectives in φ we ll sometimes write this as Crφs. Remark. This is a complexity measure for PL, and other propositional languages. When we come to predicate logic, we ll count quantifiers as well as connectives. viii

Worked Example. Compute: (i) CrP s; (ii) Cr ppp ^ Qq _ Rqs. b.iii.2. Proof by induction on complexity of φ Proof by induction on the complexity of φ. One standard way to show that every formula φ is such that Gpφq is to reason as follows. Base case. Show Gpαq holds for any atomic formula α. Let φ be an arbitrary formula. Induction hypothesis. Assume Gpψq holds for all ψ with complexity less than φ. Induction step. Prove Gpφq (given the induction hypothesis). Remark. This is an application of S-Ind on the following property of natural numbers: F pnq : Gpφq holds for all formulas φ with Crφs n. b.iii.3. Example: syntactic properties Worked Example. Show that every PL-wff has the same number of left brackets as right brackets. Remarks. For PL, the induction step often splits into cases: (i) φ ψ, (ii) φ pψ 1 Ñ ψ 2 q. Applying the induction hypothesis relies on the fact that Crψs, Crψ 1 s, Crψ 2 s ă Crφs. b.iii.4. Example: semantic properties Worked Example. Let I # be the trivalent interpretation that assigns every sentence letter #. Show that KV I# pφq # for each wff φ. Remark. The induction step in the three-valued setting typically calls for four cases: (i) φ ψ, (ii) φ pψ 1 Ñ ψ 2 q, (iii) φ pψ 1 ^ ψ 2 q, (iv) φ pψ 1 _ ψ 2 q. ix

c. Expressive Adequacy in PL (LfP 3.1) c.i. Symbolizing truth functions We often think of the truth tables as somehow giving the meaning of a connective. Truth functions and the notion of symbolizing provide a way to make this precise. c.i.1. Truth functions Definition of truth function. An (n-place) truth function is a function that maps each n-tuple of truth values to a truth value. Notation. We use lowercase t (and t 1, t 1 etc.) to stand for truth values since we re working with PL, we only have two truth values, 1 or 0. Examples. N :1 ÞÑ 0 C :x1, 1y ÞÑ 1 0 ÞÑ 1 x1, 0y ÞÑ 0 x0, 1y ÞÑ 1 x0, 0y ÞÑ 1 Remark. Each n-ary truth function is uniquely determined by the corresponding n ` 1- column truth-table, and vice versa. c.i.2. Symbolizing Definition of symbolizing (LfP 68). A wff φpp 1,..., P n q symbolizes an n-place truth function f iff φpp 1,..., P n q contains the sentence letters P 1,..., P n, and no others, and for each PL-interpretation I : V I pφq fpi pp 1 q,..., I pp n qq Remark. It s helpful to write the wff here as φpp 1,..., P n q as a reminder that it contains precisely these sentence letters. Examples. P 1 symbolizes N P 1 Ñ P 2 symbolizes C Remark. When φpp 1,..., P n q symbolizes f, φpp 1,..., P n q and f have the same truth table. x

c.ii. DNF Theorem Question. Which truth functions can we symbolize in PL? To start with take, ^, and _ as primitive. DNF Theorem. Every truth function is symbolized by some wff or other containing only, ^ and _ in fact, by a sentence in Disjunctive Normal Form (DNF). Definition of DNF. A literal is a sentence letter or its negation. A sentence φ is in DNF if it is a disjunction or one or more conjunctions of one or more literals. Worked Example. Find a DNF-sentence that symbolizes C. Proof of DNF theorem. Let an n-ary truth-function f be given. Clearly, there are only finitely many n-tuples of truth-values s.t. fpt 1,..., t n q 1. 1 Case 1. There are 0 such n-tuples. Set δ pp 1 ^ P 1 q _... _ pp n ^ P n q. Clearly this symbolizes the truth-function that maps each n-tuple to 0 and is in DNF. Case 2. There are 1 or more such n-tuples. Enumerate the n-tuples that are mapped to 1: xt 1 1,..., t 1 ny,..., xt k 1,..., t k ny. Define literals θ i j as follows (i 1,... k, j 1,... n): θ i j # P j if t i j 1 P j if t i j 0 Note that, by construction, V I pθ i jq 1 iff V I pp j q t i j (under any I ). ( ) Define a DNF-sentence as follows: δ pθ 1 1 ^... ^ θ 1 nq _... _ pθ k 1 ^... ^ θ k nq. Remains to prove: δ symbolizes f: V I pδq 1 iff fpi pp 1 q,..., I pp n qq 1 for each I. V I pδq 1 iff V I pθ1 i ^... ^ θnq i 1 for some i 1,..., k iff V I pθ1q i 1;... ; V I pθnq i 1 for some i 1,..., k iff I pp 1 q t i 1;... ; I pp n q t i n for some i 1,..., k (by ( )) iff xi pp 1 q,..., I pp n qy xt i 1,..., t i ny for some i 1,..., k iff fpi pp 1 q,..., I pp n qq fpt i 1,..., t i nq 1 1 After all, for each n, there are only 2 n n-tuples of truth values. xi

c.iii. Expressive Adequacy Definition of adequacy (LfP 69). A set of connectives S is (expressively) adequate iff every truth function is symbolized by a wff containing only connectives in S. c.iii.1. Demonstrating adequacy The usual strategy to show S is adequate is to show its members can simulate, ^ and _, and then appeal to DNF. Worked Example. Show t, Ñu is adequate. c.iii.2. Demonstrating inadequacy The usual strategy to show S is inadequate is to show: (i) all the truth functions that can be symbolized with sentences built from S-connectives have a certain property F. (ii) not all truth functions have the property F. Worked Example. t^, _, Ñ, Øu is not adequate. xii