Discrete Mathematics

Similar documents
Lecture 13: Soundness, Completeness and Compactness

03 Review of First-Order Logic

LOGIC. Mathematics. Computer Science. Stanley N. Burris

Propositional and Predicate Logic - IV

Propositional and Predicate Logic - V

Classical Propositional Logic

cse541 LOGIC FOR COMPUTER SCIENCE

Herbrand Theorem, Equality, and Compactness

Chapter 2: Introduction to Propositional Logic

Poincaré s Thesis CONTENTS. Peter Fekete

Math 455 Some notes on Cardinality and Transfinite Induction

Discrete Mathematics

Handbook of Logic and Proof Techniques for Computer Science

02 Propositional Logic

Relational dual tableaux for interval temporal logics *

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

Hypersequent Calculi for some Intermediate Logics with Bounded Kripke Models

Logic in Computer Science. Frank Wolter

Model Theory of Modal Logic Lecture 5. Valentin Goranko Technical University of Denmark

An Introduction to Modal Logic III

Chapter 11: Automated Proof Systems

CHAPTER 2 INTRODUCTION TO CLASSICAL PROPOSITIONAL LOGIC

Chapter 11: Automated Proof Systems (1)

185.A09 Advanced Mathematical Logic

Reasoning Under Uncertainty: Introduction to Probability

Discrete Mathematics(II)

Lecture 3: Semantics of Propositional Logic

On minimal models of the Region Connection Calculus

VILNIUS UNIVERSITY. Julius Andrikonis. Mathematical Logic. Lecture Notes

CHAPTER 10. Gentzen Style Proof Systems for Classical Logic

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

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

1 Completeness Theorem for First Order Logic

First-order resolution for CTL

Tecniche di Verifica. Introduction to Propositional Logic

Part II Logic and Set Theory

Sequent calculi of quantum logic with strict implication

Semantic methods in proof theory. Jeremy Avigad. Department of Philosophy. Carnegie Mellon University.

Monodic fragments of first-order temporal logics

Chapter 1 : The language of mathematics.

Discrete Mathematics (VI) Yijia Chen Fudan University

TR : Tableaux for the Logic of Proofs

CS 486: Applied Logic Lecture 7, February 11, Compactness. 7.1 Compactness why?

Abstract model theory for extensions of modal logic

On the Complexity of the Reflected Logic of Proofs

Lecture 10: Gentzen Systems to Refinement Logic CS 4860 Spring 2009 Thursday, February 19, 2009

the logic of provability

Madhavan Mukund Chennai Mathematical Institute

Mathematical Logic. Introduction to Reasoning and Automated Reasoning. Hilbert-style Propositional Reasoning. Chiara Ghidini. FBK-IRST, Trento, Italy

Informal Statement Calculus

Propositional Logics and their Algebraic Equivalents

2.2 Lowenheim-Skolem-Tarski theorems

Binary Decision Diagrams. Graphs. Boolean Functions

Introduction to Model Theory

Handout: Proof of the completeness theorem

Rasiowa-Sikorski proof system for the non-fregean sentential logic SCI

Lecture 4: Proposition, Connectives and Truth Tables

A Super Introduction to Reverse Mathematics

Principles of Knowledge Representation and Reasoning

Completeness Theorems and λ-calculus

The semantics of propositional logic

Algebraically Closed Fields

First Order Logic (FOL) 1 znj/dm2017

Decidability: Church-Turing Thesis

Chapter 6: Computation Tree Logic

MATH 3300 Test 1. Name: Student Id:

Automata, Logic and Games: Theory and Application

17.1 Correctness of First-Order Tableaux

Expressiveness, decidability, and undecidability of Interval Temporal Logic

Propositional and Predicate Logic - XIII

Logic as The Calculus of Computer Science

20 Ordinals. Definition A set α is an ordinal iff: (i) α is transitive; and. (ii) α is linearly ordered by. Example 20.2.

Computation Tree Logic

Syntax Semantics Tableau Completeness Free Logic The Adequacy of First-Order Logic. Predicate Logic. Daniel Bonevac.

Lecture Notes for MATH Mathematical Logic 1

Stat 451: Solutions to Assignment #1

Propositional Logic. What is discrete math? Tautology, equivalence, and inference. Applications

Final Exam (100 points)

Chapter 4: Computation tree logic

07 Equational Logic and Algebraic Reasoning

Chapter 5: The Integers

Sets, Models and Proofs. I. Moerdijk and J. van Oosten Department of Mathematics Utrecht University

Modal Logic XXI. Yanjing Wang

The Skolemization of existential quantifiers in intuitionistic logic

Completeness Results for Memory Logics

Foundations of Proof Complexity: Bounded Arithmetic and Propositional Translations. Stephen Cook and Phuong Nguyen c Copyright 2004, 2005, 2006

Math 109 September 1, 2016

Theory of Languages and Automata

Introduction to Temporal Logic. The purpose of temporal logics is to specify properties of dynamic systems. These can be either

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

MATHEMATICAL LOGIC FOR APPLICATIONS

On Axiomatic Rejection for the Description Logic ALC

Binary Decision Diagrams

Mathematical Logic. Reasoning in First Order Logic. Chiara Ghidini. FBK-IRST, Trento, Italy

Resolution for mixed Post logic

Restricted truth predicates in first-order logic

From Syllogism to Common Sense

Maximal Introspection of Agents

Proof Theory and Subsystems of Second-Order Arithmetic

Tableau vs. Sequent Calculi for Minimal Entailment

Transcription:

Discrete Mathematics Yi Li Software School Fudan University March 13, 2017 Yi Li (Fudan University) Discrete Mathematics March 13, 2017 1 / 1

Review of Lattice Ideal Special Lattice Boolean Algebra Yi Li (Fudan University) Discrete Mathematics March 13, 2017 2 / 1

Examples of Proof Zeno s paradox Yi Li (Fudan University) Discrete Mathematics March 13, 2017 3 / 1

Examples of Proof Zeno s paradox Zhuang Zi s paradox Yi Li (Fudan University) Discrete Mathematics March 13, 2017 3 / 1

Examples of Proof Zeno s paradox Zhuang Zi s paradox Gongsun Long s a white horse is not a horse Yi Li (Fudan University) Discrete Mathematics March 13, 2017 3 / 1

Examples of Proof Zeno s paradox Zhuang Zi s paradox Gongsun Long s a white horse is not a horse... Yi Li (Fudan University) Discrete Mathematics March 13, 2017 3 / 1

Examples of Proof Zeno s paradox Zhuang Zi s paradox Gongsun Long s a white horse is not a horse... How can you persuade yourself and the others? Yi Li (Fudan University) Discrete Mathematics March 13, 2017 3 / 1

Examples of Proof Axiom The axiom of group theory can be formulated as follows: Yi Li (Fudan University) Discrete Mathematics March 13, 2017 4 / 1

Examples of Proof Axiom The axiom of group theory can be formulated as follows: (G1) For all x, y, z: (x y) z = x (y z). Yi Li (Fudan University) Discrete Mathematics March 13, 2017 4 / 1

Examples of Proof Axiom The axiom of group theory can be formulated as follows: (G1) For all x, y, z: (x y) z = x (y z). (G2) For all x: x e = x. Yi Li (Fudan University) Discrete Mathematics March 13, 2017 4 / 1

Examples of Proof Axiom The axiom of group theory can be formulated as follows: (G1) For all x, y, z: (x y) z = x (y z). (G2) For all x: x e = x. (G3) For every x there is a y such that x y = e. (right inverse) Yi Li (Fudan University) Discrete Mathematics March 13, 2017 4 / 1

Examples of Proof Axiom The axiom of group theory can be formulated as follows: (G1) For all x, y, z: (x y) z = x (y z). (G2) For all x: x e = x. (G3) For every x there is a y such that x y = e. (right inverse) Theorem For every x there is a y such that y x = e.(left inverse) Yi Li (Fudan University) Discrete Mathematics March 13, 2017 4 / 1

What is Logic Premise Yi Li (Fudan University) Discrete Mathematics March 13, 2017 5 / 1

What is Logic Premise Argument Yi Li (Fudan University) Discrete Mathematics March 13, 2017 5 / 1

What is Logic Premise Argument Conclusion Yi Li (Fudan University) Discrete Mathematics March 13, 2017 5 / 1

What is Logic Premise Argument Conclusion Follow Yi Li (Fudan University) Discrete Mathematics March 13, 2017 5 / 1

What is Logic Premise Argument Conclusion Follow Proof Yi Li (Fudan University) Discrete Mathematics March 13, 2017 5 / 1

History of Mathematical Logic Aristotle(384-322 B.C.): theory of syllogistic Yi Li (Fudan University) Discrete Mathematics March 13, 2017 6 / 1

History of Mathematical Logic Aristotle(384-322 B.C.): theory of syllogistic De Morgan(1806-71), Boole(1815-64), Schröder(1841-1902) Yi Li (Fudan University) Discrete Mathematics March 13, 2017 6 / 1

History of Mathematical Logic Aristotle(384-322 B.C.): theory of syllogistic De Morgan(1806-71), Boole(1815-64), Schröder(1841-1902) Frege(1848-1925), Russell(1872-1970) Yi Li (Fudan University) Discrete Mathematics March 13, 2017 6 / 1

History of Mathematical Logic Aristotle(384-322 B.C.): theory of syllogistic De Morgan(1806-71), Boole(1815-64), Schröder(1841-1902) Frege(1848-1925), Russell(1872-1970) Post(1897-1954), Gödel (1906-78), Henkin(1921-2006), Herbrand(1908-31) Yi Li (Fudan University) Discrete Mathematics March 13, 2017 6 / 1

History of Mathematical Logic Aristotle(384-322 B.C.): theory of syllogistic De Morgan(1806-71), Boole(1815-64), Schröder(1841-1902) Frege(1848-1925), Russell(1872-1970) Post(1897-1954), Gödel (1906-78), Henkin(1921-2006), Herbrand(1908-31) Robbinson(1930-); Beth and Smullyan Yi Li (Fudan University) Discrete Mathematics March 13, 2017 6 / 1

History of Mathematical Logic Aristotle(384-322 B.C.): theory of syllogistic De Morgan(1806-71), Boole(1815-64), Schröder(1841-1902) Frege(1848-1925), Russell(1872-1970) Post(1897-1954), Gödel (1906-78), Henkin(1921-2006), Herbrand(1908-31) Robbinson(1930-); Beth and Smullyan Leibniz(1646-1716) and Hilbert(1862-1943) Yi Li (Fudan University) Discrete Mathematics March 13, 2017 6 / 1

Introduction to Mathematical Logic First order logic Yi Li (Fudan University) Discrete Mathematics March 13, 2017 7 / 1

Introduction to Mathematical Logic First order logic Propositional Logic Yi Li (Fudan University) Discrete Mathematics March 13, 2017 7 / 1

Introduction to Mathematical Logic First order logic Propositional Logic Predicate Logic Yi Li (Fudan University) Discrete Mathematics March 13, 2017 7 / 1

Introduction to Mathematical Logic First order logic Propositional Logic Predicate Logic High order logic Yi Li (Fudan University) Discrete Mathematics March 13, 2017 7 / 1

Introduction to Mathematical Logic First order logic Propositional Logic Predicate Logic High order logic Other type of logic Yi Li (Fudan University) Discrete Mathematics March 13, 2017 7 / 1

Introduction to Mathematical Logic First order logic Propositional Logic Predicate Logic High order logic Other type of logic Modal logic Yi Li (Fudan University) Discrete Mathematics March 13, 2017 7 / 1

Introduction to Mathematical Logic First order logic Propositional Logic Predicate Logic High order logic Other type of logic Modal logic Intuitionistic logic Yi Li (Fudan University) Discrete Mathematics March 13, 2017 7 / 1

Introduction to Mathematical Logic First order logic Propositional Logic Predicate Logic High order logic Other type of logic Modal logic Intuitionistic logic Temporal logic Yi Li (Fudan University) Discrete Mathematics March 13, 2017 7 / 1

Introduction to Mathematical Logic Proof system Yi Li (Fudan University) Discrete Mathematics March 13, 2017 8 / 1

Introduction to Mathematical Logic Proof system Axiom Yi Li (Fudan University) Discrete Mathematics March 13, 2017 8 / 1

Introduction to Mathematical Logic Proof system Axiom Tableaux Yi Li (Fudan University) Discrete Mathematics March 13, 2017 8 / 1

Introduction to Mathematical Logic Proof system Axiom Tableaux Resolution Yi Li (Fudan University) Discrete Mathematics March 13, 2017 8 / 1

Introduction to Mathematical Logic Proof system Axiom Tableaux Resolution Two Components Yi Li (Fudan University) Discrete Mathematics March 13, 2017 8 / 1

Introduction to Mathematical Logic Proof system Axiom Tableaux Resolution Two Components Syntax Yi Li (Fudan University) Discrete Mathematics March 13, 2017 8 / 1

Introduction to Mathematical Logic Proof system Axiom Tableaux Resolution Two Components Syntax Semantics Yi Li (Fudan University) Discrete Mathematics March 13, 2017 8 / 1

Introduction to Mathematical Logic Proof system Axiom Tableaux Resolution Two Components Syntax Semantics Algorithmic approach Yi Li (Fudan University) Discrete Mathematics March 13, 2017 8 / 1

Application 1 Programming language Yi Li (Fudan University) Discrete Mathematics March 13, 2017 9 / 1

Application 1 Programming language 2 Digital circuit Yi Li (Fudan University) Discrete Mathematics March 13, 2017 9 / 1

Application 1 Programming language 2 Digital circuit 3 Database Yi Li (Fudan University) Discrete Mathematics March 13, 2017 9 / 1

Application 1 Programming language 2 Digital circuit 3 Database 4 Program verification Yi Li (Fudan University) Discrete Mathematics March 13, 2017 9 / 1

Application 1 Programming language 2 Digital circuit 3 Database 4 Program verification 5 Computational theory Yi Li (Fudan University) Discrete Mathematics March 13, 2017 9 / 1

Application 1 Programming language 2 Digital circuit 3 Database 4 Program verification 5 Computational theory 6 Artificial intelligence Yi Li (Fudan University) Discrete Mathematics March 13, 2017 9 / 1

Reference Book 1 Hao Wang, Reflections on Kurt Gödel 2 Hao Wang, A Logical Journey: From Gödel to Philosophy 3 Huth&Ryan, Logic in Computer Science 2ed Yi Li (Fudan University) Discrete Mathematics March 13, 2017 10 / 1

Order Definition (Partial order) A partial order is a set S with a binary relation < on S, which is transitive and irreflexive. Yi Li (Fudan University) Discrete Mathematics March 13, 2017 11 / 1

Order Definition (Partial order) A partial order is a set S with a binary relation < on S, which is transitive and irreflexive. Definition (Linear order) A partial order < is a linear order, if it satisfies the trichotomy law: x < y or x = y or y < x. Yi Li (Fudan University) Discrete Mathematics March 13, 2017 11 / 1

Order Definition (Partial order) A partial order is a set S with a binary relation < on S, which is transitive and irreflexive. Definition (Linear order) A partial order < is a linear order, if it satisfies the trichotomy law: x < y or x = y or y < x. Definition (Well ordering) A linear order is well ordered if every nonempty set A of S has a least element. Yi Li (Fudan University) Discrete Mathematics March 13, 2017 11 / 1

Countable and Infinite Definition (Countable) A set A is countable if there is a one-to-one mapping from A to N. Yi Li (Fudan University) Discrete Mathematics March 13, 2017 12 / 1

Countable and Infinite Definition (Countable) A set A is countable if there is a one-to-one mapping from A to N. Definition (Finite) A set A is finite if there is a one-to-one mapping from A to {0, 1,..., n 1} for some n N. Yi Li (Fudan University) Discrete Mathematics March 13, 2017 12 / 1

Countable and Infinite Definition (Countable) A set A is countable if there is a one-to-one mapping from A to N. Definition (Finite) A set A is finite if there is a one-to-one mapping from A to {0, 1,..., n 1} for some n N. Definition Yi Li (Fudan University) Discrete Mathematics March 13, 2017 12 / 1

Countable and Infinite Definition (Countable) A set A is countable if there is a one-to-one mapping from A to N. Definition (Finite) A set A is finite if there is a one-to-one mapping from A to {0, 1,..., n 1} for some n N. Definition 1 If A is not countable, it is uncountable. Yi Li (Fudan University) Discrete Mathematics March 13, 2017 12 / 1

Countable and Infinite Definition (Countable) A set A is countable if there is a one-to-one mapping from A to N. Definition (Finite) A set A is finite if there is a one-to-one mapping from A to {0, 1,..., n 1} for some n N. Definition 1 If A is not countable, it is uncountable. 2 If A is not finite, it is infinite. Yi Li (Fudan University) Discrete Mathematics March 13, 2017 12 / 1

Countable and Infinite Theorem Let A be a countable set. The set of all finite sequence of elements in A is also countable. Yi Li (Fudan University) Discrete Mathematics March 13, 2017 13 / 1

Countable and Infinite Theorem Let A be a countable set. The set of all finite sequence of elements in A is also countable. Proof. We can formalize it as S = n N A n = A 1 A 2 A n. Construct a mapping from A n to N. Yi Li (Fudan University) Discrete Mathematics March 13, 2017 13 / 1

Trees Definition (Tree) A tree is a set T (whose elements are called nodes) partially ordered by < T, with a unique least element called the root, in which the predecessors of every node are well ordered by < T. Yi Li (Fudan University) Discrete Mathematics March 13, 2017 14 / 1

Trees Definition (Tree) A tree is a set T (whose elements are called nodes) partially ordered by < T, with a unique least element called the root, in which the predecessors of every node are well ordered by < T. Definition (Path) A path on a tree T is a maximal linearly ordered subset of T. Yi Li (Fudan University) Discrete Mathematics March 13, 2017 14 / 1

Tree Definition (Properties of tree) Yi Li (Fudan University) Discrete Mathematics March 13, 2017 15 / 1

Tree Definition (Properties of tree) 1 The levels of a tree T are defined by induction. Yi Li (Fudan University) Discrete Mathematics March 13, 2017 15 / 1

Tree Definition (Properties of tree) 1 The levels of a tree T are defined by induction. 2 The 0 th level of T consists precisely of the root of T. Yi Li (Fudan University) Discrete Mathematics March 13, 2017 15 / 1

Tree Definition (Properties of tree) 1 The levels of a tree T are defined by induction. 2 The 0 th level of T consists precisely of the root of T. 3 The k + 1 th level of T consists of the immediate successors of the nodes on the k th level of T. Yi Li (Fudan University) Discrete Mathematics March 13, 2017 15 / 1

Tree Definition (Properties of tree) Yi Li (Fudan University) Discrete Mathematics March 13, 2017 16 / 1

Tree Definition (Properties of tree) 1 The depth of a tree T is the maximum n such that there is a node of level n in T. Yi Li (Fudan University) Discrete Mathematics March 13, 2017 16 / 1

Tree Definition (Properties of tree) 1 The depth of a tree T is the maximum n such that there is a node of level n in T. 2 If there are nodes of the level n for every natural number n, we say the depth of T is infinite of ω. Yi Li (Fudan University) Discrete Mathematics March 13, 2017 16 / 1

Tree Definition (Properties of tree) Yi Li (Fudan University) Discrete Mathematics March 13, 2017 17 / 1

Tree Definition (Properties of tree) 1 If each node has at most n immediate successors, the tree is n-ary or n-branching. Yi Li (Fudan University) Discrete Mathematics March 13, 2017 17 / 1

Tree Definition (Properties of tree) 1 If each node has at most n immediate successors, the tree is n-ary or n-branching. 2 If each node has finitely many immediate successors, we say that the tree is finitely branching. Yi Li (Fudan University) Discrete Mathematics March 13, 2017 17 / 1

Tree Definition (Properties of tree) 1 If each node has at most n immediate successors, the tree is n-ary or n-branching. 2 If each node has finitely many immediate successors, we say that the tree is finitely branching. 3 A node with no successors is called a leaf or a terminal node. Yi Li (Fudan University) Discrete Mathematics March 13, 2017 17 / 1

Tree Theorem (König s lemma) If a finitely branching tree T is infinite, it has an infinite path. Yi Li (Fudan University) Discrete Mathematics March 13, 2017 18 / 1

Tree Theorem (König s lemma) If a finitely branching tree T is infinite, it has an infinite path. Proof. Yi Li (Fudan University) Discrete Mathematics March 13, 2017 18 / 1

Tree Theorem (König s lemma) If a finitely branching tree T is infinite, it has an infinite path. Proof. 1 If there is no infinite path, the tree would be finite. Yi Li (Fudan University) Discrete Mathematics March 13, 2017 18 / 1

Tree Theorem (König s lemma) If a finitely branching tree T is infinite, it has an infinite path. Proof. 1 If there is no infinite path, the tree would be finite. 2 Split the successors of the node into two parts. One with inifinite successors and the other with finite successors. Yi Li (Fudan University) Discrete Mathematics March 13, 2017 18 / 1

Tree Definition A labeled tree T is a tree T with a function (the labeling function) that associates some objects with every node. This object is called the label of the node. Yi Li (Fudan University) Discrete Mathematics March 13, 2017 19 / 1

Tree Definition (Segment) Yi Li (Fudan University) Discrete Mathematics March 13, 2017 20 / 1

Tree Definition (Segment) 1 σ is an initial segment of τ if σ τ or σ = τ. Yi Li (Fudan University) Discrete Mathematics March 13, 2017 20 / 1

Tree Definition (Segment) 1 σ is an initial segment of τ if σ τ or σ = τ. 2 σ is an proper initial segment of τ if σ τ. Yi Li (Fudan University) Discrete Mathematics March 13, 2017 20 / 1

Tree Definition (Segment) 1 σ is an initial segment of τ if σ τ or σ = τ. 2 σ is an proper initial segment of τ if σ τ. Definition (Lexicographic ordering) For two sequences σ and τ we say that σ < L τ if σ τ or if σ(n), the n th entry in σ, is less than τ(n) where n is the first entry at which the sequences differ. Yi Li (Fudan University) Discrete Mathematics March 13, 2017 20 / 1

Tree One way to define a linear order based on given tree. Definition (left to right ordering) Given two nodes x and y, Yi Li (Fudan University) Discrete Mathematics March 13, 2017 21 / 1

Tree One way to define a linear order based on given tree. Definition (left to right ordering) Given two nodes x and y, 1 If x < T y, we say that x < L y. Yi Li (Fudan University) Discrete Mathematics March 13, 2017 21 / 1

Tree One way to define a linear order based on given tree. Definition (left to right ordering) Given two nodes x and y, 1 If x < T y, we say that x < L y. 2 If x and y are incomparable in the tree ordering, find the largest predecessors of x and y on the same level, say x and y Yi Li (Fudan University) Discrete Mathematics March 13, 2017 21 / 1

Tree One way to define a linear order based on given tree. Definition (left to right ordering) Given two nodes x and y, 1 If x < T y, we say that x < L y. 2 If x and y are incomparable in the tree ordering, find the largest predecessors of x and y on the same level, say x and y 1 If x equals y, x y if and only if x is left to y relative to x. Yi Li (Fudan University) Discrete Mathematics March 13, 2017 21 / 1

Tree One way to define a linear order based on given tree. Definition (left to right ordering) Given two nodes x and y, 1 If x < T y, we say that x < L y. 2 If x and y are incomparable in the tree ordering, find the largest predecessors of x and y on the same level, say x and y 1 If x equals y, x y if and only if x is left to y relative to x. 2 Otherwise x < L y if and only if x < L y. Yi Li (Fudan University) Discrete Mathematics March 13, 2017 21 / 1

Next Class Language of proposition logic Formation tree Truth table Connectives Yi Li (Fudan University) Discrete Mathematics March 13, 2017 22 / 1