Discrete Mathematics(II)

Similar documents
Discrete Mathematics (VI) Yijia Chen Fudan University

Discrete Mathematics

INF3170 Logikk Spring Homework #8 For Friday, March 18

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

Introduction to Metalogic 1

Propositional and Predicate Logic - II

Propositional and Predicate Logic - IV

Learning Goals of CS245 Logic and Computation

Lecture 2. Logic Compound Statements Conditional Statements Valid & Invalid Arguments Digital Logic Circuits. Reading (Epp s textbook)

Lecture 4: Proposition, Connectives and Truth Tables

Lecture 6: Formal Syntax & Propositional Logic. First: Laziness in Haskell. Lazy Lists. Monads Later. CS 181O Spring 2016 Kim Bruce

10 Propositional logic

Logic as a Tool Chapter 1: Understanding Propositional Logic 1.1 Propositions and logical connectives. Truth tables and tautologies

Lecture 13: Soundness, Completeness and Compactness

Discrete Mathematics

THE LOGIC OF COMPOUND STATEMENTS

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

2 Truth Tables, Equivalences and the Contrapositive

CSCE 222 Discrete Structures for Computing. Propositional Logic. Dr. Hyunyoung Lee. !!!!!! Based on slides by Andreas Klappenecker

3. Only sequences that were formed by using finitely many applications of rules 1 and 2, are propositional formulas.

CS 486: Lecture 2, Thursday, Jan 22, 2009

Propositional and Predicate Logic - V

Mathematics 114L Spring 2018 D.A. Martin. Mathematical Logic

Introduction to Sets and Logic (MATH 1190)

Propositional Logic. Yimei Xiang 11 February format strictly follow the laws and never skip any step.

Propositional Logic: Part II - Syntax & Proofs 0-0

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

Natural Deduction. Formal Methods in Verification of Computer Systems Jeremy Johnson

PL: Truth Trees. Handout Truth Trees: The Setup

Propositional and Predicate Logic - VII

INTRODUCTION TO LOGIC. Propositional Logic. Examples of syntactic claims

Syntax of propositional logic. Syntax tree of a formula. Semantics of propositional logic (I) Subformulas

Chapter 3: Propositional Calculus: Deductive Systems. September 19, 2008

Introduction to Metalogic

Propositional Logic: Models and Proofs

Propositional logic (revision) & semantic entailment. p. 1/34

1. Propositional Calculus

What is logic, the topic of this course? There are at least two answers to that question.

Propositional Logic and Semantics

Description Logics. Deduction in Propositional Logic. franconi. Enrico Franconi

3 Propositional Logic

Automated Reasoning Lecture 2: Propositional Logic and Natural Deduction

Artificial Intelligence Knowledge Representation I

Review. Propositional Logic. Propositions atomic and compound. Operators: negation, and, or, xor, implies, biconditional.

Filtrations and Basic Proof Theory Notes for Lecture 5

Completeness for FOL

Propositional Logic Language

Deductive Systems. Lecture - 3

A brief introduction to Logic. (slides from

Lecture 10: Predicate Logic and Its Language

An Introduction to Modal Logic III

02 Propositional Logic

The Importance of Being Formal. Martin Henz. February 5, Propositional Logic

Madhavan Mukund Chennai Mathematical Institute

Unit 1 Logic Unit Math 114

CVO103: Programming Languages. Lecture 2 Inductive Definitions (2)

Discrete Structures of Computer Science Propositional Logic I

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

Applied Logic. Lecture 1 - Propositional logic. Marcin Szczuka. Institute of Informatics, The University of Warsaw

Unit 1 Logic Unit Math 114

Herbrand Theorem, Equality, and Compactness

Digital Logic Design: a rigorous approach c

15414/614 Optional Lecture 1: Propositional Logic

Advanced Topics in LP and FP

Logic in Computer Science (COMP118) Tutorial Problems 1

Chapter 4: Classical Propositional Semantics

Classical Sentential Logic

A generalization of modal definability

Packet #1: Logic & Proofs. Applied Discrete Mathematics

Review CHAPTER. 2.1 Definitions in Chapter Sample Exam Questions. 2.1 Set; Element; Member; Universal Set Partition. 2.

Propositional Logic Basics Propositional Equivalences Normal forms Boolean functions and digital circuits. Propositional Logic.

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

Informal Statement Calculus

A statement is a sentence that is definitely either true or false but not both.

PREDICATE LOGIC: UNDECIDABILITY AND INCOMPLETENESS HUTH AND RYAN 2.5, SUPPLEMENTARY NOTES 2

Lecture 3: Semantics of Propositional Logic

Introduction to Theoretical Computer Science

It rains now. (true) The followings are not propositions.

Math 267a - Propositional Proof Complexity. Lecture #1: 14 January 2002

ICS141: Discrete Mathematics for Computer Science I

Natural Deduction for Propositional Logic

Lecture 7. Logic. Section1: Statement Logic.

C. Modal Propositional Logic (MPL)

UNIVERSITY OF EAST ANGLIA. School of Mathematics UG End of Year Examination MATHEMATICAL LOGIC WITH ADVANCED TOPICS MTH-4D23

CS 514, Mathematics for Computer Science Mid-semester Exam, Autumn 2017 Department of Computer Science and Engineering IIT Guwahati

Symbolic Logic 3. For an inference to be deductively valid it is impossible for the conclusion to be false if the premises are true.

CHAPTER 4 CLASSICAL PROPOSITIONAL SEMANTICS

Gödel s Completeness Theorem

Logic: The Big Picture

Modal Probability Logic

Outline. Overview. Syntax Semantics. Introduction Hilbert Calculus Natural Deduction. 1 Introduction. 2 Language: Syntax and Semantics

Formal Logic Lecture 11

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

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

Linear Temporal Logic and Büchi Automata

Mathematical Logic Propositional Logic - Tableaux*

Choosing Logical Connectives

Logic Part II: Intuitionistic Logic and Natural Deduction

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

4. Sets The language of sets. Describing a Set. c Oksana Shatalov, Fall

Transcription:

Discrete Mathematics(II) Yi Li Software School Fudan University March 27, 2017 Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 1 / 28

Review Language Truth table Connectives Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 2 / 28

Outline Formation tree Assignment, Valuation, and Deduction Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 3 / 28

Ambiguity Example Consider the following sentences: Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 4 / 28

Ambiguity Example Consider the following sentences: 1 The lady hit the man with an umbrella. Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 4 / 28

Ambiguity Example Consider the following sentences: 1 The lady hit the man with an umbrella. 2 He gave her cat food. Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 4 / 28

Ambiguity Example Consider the following sentences: 1 The lady hit the man with an umbrella. 2 He gave her cat food. 3 They are looking for teachers of French, German and Japanese. Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 4 / 28

Ambiguity Example Consider the following proposition A 1 A 2 A 3. Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 5 / 28

Ambiguity Example Consider the following proposition A 1 A 2 A 3. We have two possible different propositions 1 (A 1 A 2 ) A 3 Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 5 / 28

Ambiguity Example Consider the following proposition A 1 A 2 A 3. We have two possible different propositions 1 (A 1 A 2 ) A 3 2 A 1 (A 2 A 3 ) Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 5 / 28

Ambiguity Example Consider the following proposition A 1 A 2 A 3. We have two possible different propositions 1 (A 1 A 2 ) A 3 2 A 1 (A 2 A 3 ) Of course, they have different abbreviated truth tables. Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 5 / 28

Count of Parentheses Theorem Every well-formed proposition has the same number of left as right parentheses. Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 6 / 28

Count of Parentheses Theorem Every well-formed proposition has the same number of left as right parentheses. Proof. Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 6 / 28

Count of Parentheses Theorem Every well-formed proposition has the same number of left as right parentheses. Proof. 1 Consider the symbols without parentheses first. Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 6 / 28

Count of Parentheses Theorem Every well-formed proposition has the same number of left as right parentheses. Proof. 1 Consider the symbols without parentheses first. 2 And then prove it by induction with more complicated propositions according to the Definition. Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 6 / 28

Prefix Theorem Any proper initial segement of a well-defined proposition contains an excess of left parenthesiss. Thus no proper initial segement of a well defined propositon can itself be a well defined propositions. Proof. Prove it by induction from simple to complicated propositions. Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 7 / 28

Formation Tree Example The formation tree of (A B), ((A B) C). Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 8 / 28

Formation Tree Example The formation tree of (A B), ((A B) C). How? Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 8 / 28

Formation Tree Example The formation tree of (A B), ((A B) C). How? Form a tree bottom-up while constructing the proposition according to the Definition. Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 8 / 28

Formation Tree Definition (Top-down) A formation tree is a finite tree T of binary sequences whose nodes are all labeled with propositions. The labeling satisfies the following conditions: Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 9 / 28

Formation Tree Definition (Top-down) A formation tree is a finite tree T of binary sequences whose nodes are all labeled with propositions. The labeling satisfies the following conditions: 1 The leaves are labeled with propositional letters. Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 9 / 28

Formation Tree Definition (Top-down) A formation tree is a finite tree T of binary sequences whose nodes are all labeled with propositions. The labeling satisfies the following conditions: 1 The leaves are labeled with propositional letters. 2 if a node σ is labeled with a proposition of the form (α β), (α β), (α β) or (α β), its immediate successors, σˆ0 and σˆ1, are labeled with α and β (in that order). Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 9 / 28

Formation Tree Definition (Top-down) A formation tree is a finite tree T of binary sequences whose nodes are all labeled with propositions. The labeling satisfies the following conditions: 1 The leaves are labeled with propositional letters. 2 if a node σ is labeled with a proposition of the form (α β), (α β), (α β) or (α β), its immediate successors, σˆ0 and σˆ1, are labeled with α and β (in that order). 3 if a node σ is labeled with a proposition of the form ( α), its unique immediate successor, σˆ0, is labeled with α. Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 9 / 28

Formation Tree Definition Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 10 / 28

Formation Tree Definition 1 The depth of a proposition is the depth of associated formation tree. Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 10 / 28

Formation Tree Definition 1 The depth of a proposition is the depth of associated formation tree. 2 The support of a proposition is the set of propositional letters that occur as labels of the leaves of the associated formation tree. Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 10 / 28

Formation Tree Theorem Each well-defined proposition has a unique formation tree associated with it. Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 11 / 28

Formation Tree Theorem Each well-defined proposition has a unique formation tree associated with it. Proof. Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 11 / 28

Formation Tree Theorem Each well-defined proposition has a unique formation tree associated with it. Proof. 1 Existence of the formation tree by induction on depth. Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 11 / 28

Formation Tree Theorem Each well-defined proposition has a unique formation tree associated with it. Proof. 1 Existence of the formation tree by induction on depth. 2 Uniqueness of the formation tree by induction on depth. Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 11 / 28

Truth Assignment How we discuss the truth of propositional letters? Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 12 / 28

Truth Assignment How we discuss the truth of propositional letters? Definition (Assignment) A truth assignment A is a function that assigns to each propositional letter A a unique truth value A(A) {T, F }. Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 12 / 28

Truth Valuation How we discuss the truth of propositions? Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 13 / 28

Truth Valuation How we discuss the truth of propositions? Example Truth assignment of α and β and valuation of (α β). α β (α β) T T T T F T F T T F F F Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 13 / 28

Assignment and Valuation Definition (Valuation) A truth valuation V is a function that assigns to each proposition α a unique truth value V(α) so that its value on a compund proposition is determined in accordance with the appropriate truth tables. Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 14 / 28

Assignment and Valuation Definition (Valuation) A truth valuation V is a function that assigns to each proposition α a unique truth value V(α) so that its value on a compund proposition is determined in accordance with the appropriate truth tables. Specially, V(α) determines one possible truth assignment if α is a propositional letter. Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 14 / 28

Assignment and Valuation Theorem Given a truth assignment A there is a unique truth valuation V such that V(α) = A(α) for every propositonal letter α. Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 15 / 28

Assignment and Valuation Theorem Given a truth assignment A there is a unique truth valuation V such that V(α) = A(α) for every propositonal letter α. Proof. The proof can be divided into two step. Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 15 / 28

Assignment and Valuation Theorem Given a truth assignment A there is a unique truth valuation V such that V(α) = A(α) for every propositonal letter α. Proof. The proof can be divided into two step. 1 Construct a V from A by induction on the depth of the associated formation tree. Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 15 / 28

Assignment and Valuation Theorem Given a truth assignment A there is a unique truth valuation V such that V(α) = A(α) for every propositonal letter α. Proof. The proof can be divided into two step. 1 Construct a V from A by induction on the depth of the associated formation tree. 2 Prove the uniqueness of V with the same A by induction bottom-up. Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 15 / 28

Assignment and Valuation Corollary If V 1 and V 2 are two valuations that agree on the support of α, the finite set of propostional letters used in the construction of the proposition of the proposition α, then V 1 (α) = V 2 (α). Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 16 / 28

Tautology Definition A proposition σ of propostional logic is said to be valid if for any valuation V, V(σ) = T. Such a proposition is also called a tautology. Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 17 / 28

Tautology Example α α is a tautology. Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 18 / 28

Tautology Example α α is a tautology. Solution: α α α α T F T F T T Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 18 / 28

Logical Equivenlence Definition Two proposition α and β such that, for every valuation V, V(α) = V(β) are called logically equivalent. We denote this by α β. Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 19 / 28

Logical Equivenlence(Cont.) Example α β α β. Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 20 / 28

Logical Equivenlence(Cont.) Example α β α β. Proof. Prove by truth table. α β α β T T T T F F F T T F F T α β α α β T T F T T F F F F T T T F F T T Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 20 / 28

Consequence Definition Let Σ be a (possibly infinite) set of propositions. We say that σ is a consequence of Σ (and write as Σ = σ) if, for any valuation V, (V(τ) = T for all τ Σ) V(σ) = T. Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 21 / 28

Consequence Example Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 22 / 28

Consequence Example 1 Let Σ = {A, A B}, we have Σ = B. Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 22 / 28

Consequence Example 1 Let Σ = {A, A B}, we have Σ = B. 2 Let Σ = {A, A B, C}, we have Σ = B. Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 22 / 28

Consequence Example 1 Let Σ = {A, A B}, we have Σ = B. 2 Let Σ = {A, A B, C}, we have Σ = B. 3 Let Σ = { A B}, we have Σ = B. Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 22 / 28

Model Definition We say that a valuation V is a model of Σ if V(σ) = T for every σ Σ. We denote by M(Σ) the set of all models of Σ. Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 23 / 28

Model Example Let Σ = {A, A B}, we have models: Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 24 / 28

Model Example Let Σ = {A, A B}, we have models: 1 Let A(A) = T, A(B) = T Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 24 / 28

Model Example Let Σ = {A, A B}, we have models: 1 Let A(A) = T, A(B) = T 2 Let A(A) = T, A(B) = T, A(C) = T. Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 24 / 28

Model Example Let Σ = {A, A B}, we have models: 1 Let A(A) = T, A(B) = T 2 Let A(A) = T, A(B) = T, A(C) = T. 3 Let A(A) = T, A(B) = T, A(C) = F, A(D) = F,.... Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 24 / 28

Model Definition We say that propositions Σ is satisfiable if it has some model. Otherwise it is called unsatisfiable. To a proposition, it is called invalid. Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 25 / 28

Properties Proposition Let Σ, Σ 1, Σ 2 be sets of propositions. Let Cn(Σ) denote the set of consequence of Σ and Taut the set of tautologies. Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 26 / 28

Properties Proposition Let Σ, Σ 1, Σ 2 be sets of propositions. Let Cn(Σ) denote the set of consequence of Σ and Taut the set of tautologies. 1 Σ 1 Σ 2 Cn(Σ 1 ) Cn(Σ 2 ). Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 26 / 28

Properties Proposition Let Σ, Σ 1, Σ 2 be sets of propositions. Let Cn(Σ) denote the set of consequence of Σ and Taut the set of tautologies. 1 Σ 1 Σ 2 Cn(Σ 1 ) Cn(Σ 2 ). 2 Σ Cn(Σ). Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 26 / 28

Properties Proposition Let Σ, Σ 1, Σ 2 be sets of propositions. Let Cn(Σ) denote the set of consequence of Σ and Taut the set of tautologies. 1 Σ 1 Σ 2 Cn(Σ 1 ) Cn(Σ 2 ). 2 Σ Cn(Σ). 3 Taut Cn(Σ) = Cn(Cn(Σ)). Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 26 / 28

Properties Proposition Let Σ, Σ 1, Σ 2 be sets of propositions. Let Cn(Σ) denote the set of consequence of Σ and Taut the set of tautologies. 1 Σ 1 Σ 2 Cn(Σ 1 ) Cn(Σ 2 ). 2 Σ Cn(Σ). 3 Taut Cn(Σ) = Cn(Cn(Σ)). 4 Σ 1 Σ 2 M(Σ 2 ) M(Σ 1 ). Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 26 / 28

Properties Proposition Let Σ, Σ 1, Σ 2 be sets of propositions. Let Cn(Σ) denote the set of consequence of Σ and Taut the set of tautologies. 1 Σ 1 Σ 2 Cn(Σ 1 ) Cn(Σ 2 ). 2 Σ Cn(Σ). 3 Taut Cn(Σ) = Cn(Cn(Σ)). 4 Σ 1 Σ 2 M(Σ 2 ) M(Σ 1 ). 5 Cn(Σ) = {σ V(σ) = T for all V M(Σ)}. Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 26 / 28

Properties Proposition Let Σ, Σ 1, Σ 2 be sets of propositions. Let Cn(Σ) denote the set of consequence of Σ and Taut the set of tautologies. 1 Σ 1 Σ 2 Cn(Σ 1 ) Cn(Σ 2 ). 2 Σ Cn(Σ). 3 Taut Cn(Σ) = Cn(Cn(Σ)). 4 Σ 1 Σ 2 M(Σ 2 ) M(Σ 1 ). 5 Cn(Σ) = {σ V(σ) = T for all V M(Σ)}. 6 σ Cn({σ 1,..., σ n }) σ 1 (σ 2... (σ n σ)...) Taut. Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 26 / 28

Deduction Theorem Theorem For any propositions φ, ψ, Σ {ψ} = φ Σ = ψ φ holds. Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 27 / 28

Deduction Theorem Theorem For any propositions φ, ψ, Σ {ψ} = φ Σ = ψ φ holds. Proof. Prove by the definition of consequence. When we consider, V which satisfy Σ are divided into two parts, V 1 (ψ) = T and V 2 (ψ) = F. Then we investigate whether V satisfies ψ φ. Conversely, V which makes ψ false are discarded. Because they are not taken into consideration to satisfy Σ {ψ}. Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 27 / 28

Next Class Tableau Proof Yi Li (Fudan University) Discrete Mathematics(II) March 27, 2017 28 / 28