Lecture Notes: Discrete Mathematics

Similar documents
Introduction to NP-Completeness Written and copyright c by Jie Wang 1

6.042/18.062J Mathematics for Computer Science December 12, 2006 Tom Leighton and Ronitt Rubinfeld. Random Walks

Software Model Checking: Theory and Practice

Likewise, we have contradictions: formulas that can only be false, e.g. (p p).

Handout #1: Mathematical Reasoning

CHAPTER 7 GENERAL PROOF SYSTEMS

SQUARE GRID POINTS COVERAGED BY CONNECTED SOURCES WITH COVERAGE RADIUS OF ONE ON A TWO-DIMENSIONAL GRID

A Modified Measure of Covert Network Performance

def: An axiom is a statement that is assumed to be true, or in the case of a mathematical system, is used to specify the system.

Precalculus Prerequisites a.k.a. Chapter 0. August 16, 2013

CHAPTER 3. Methods of Proofs. 1. Logical Arguments and Formal Proofs

Point Location. Preprocess a planar, polygonal subdivision for point location queries. p = (18, 11)

1 Gambler s Ruin Problem

Logic in Computer Science: Logic Gates

The Magnus-Derek Game

Stochastic Derivation of an Integral Equation for Probability Generating Functions

The impact of metadata implementation on webpage visibility in search engine results (Part II) q

Regular Languages and Finite Automata

Concurrent Program Synthesis Based on Supervisory Control

Mathematical Induction

PRIME NUMBERS AND THE RIEMANN HYPOTHESIS

Risk in Revenue Management and Dynamic Pricing

Computational Logic and Cognitive Science: An Overview

Multiperiod Portfolio Optimization with General Transaction Costs

Failure Behavior Analysis for Reliable Distributed Embedded Systems

The Online Freeze-tag Problem

POISSON PROCESSES. Chapter Introduction Arrival processes

As we have seen, there is a close connection between Legendre symbols of the form

NP-Completeness and Cook s Theorem

A Simple Model of Pricing, Markups and Market. Power Under Demand Fluctuations

Frequentist vs. Bayesian Statistics

More Properties of Limits: Order of Operations

Computational Finance The Martingale Measure and Pricing of Derivatives

ALGEBRAIC SIGNATURES FOR SCALABLE WEB DATA INTEGRATION FOR ELECTRONIC COMMERCE TRANSACTIONS

Mathematics for Computer Science/Software Engineering. Notes for the course MSM1F3 Dr. R. A. Wilson

Partial-Order Planning Algorithms todomainfeatures. Information Sciences Institute University ofwaterloo

Static and Dynamic Properties of Small-world Connection Topologies Based on Transit-stub Networks

CUBIC AND QUARTIC FORMULAS. James T. Smith San Francisco State University

ENFORCING SAFETY PROPERTIES IN WEB APPLICATIONS USING PETRI NETS

Comparing Dissimilarity Measures for Symbolic Data Analysis

Overview of Lecture 3. Model Checking with SPIN. First attempt (revisited) Linear Temporal Logic (LTL) CDP #3

Logic Appendix. Section 1 Truth Tables CONJUNCTION EXAMPLE 1

Remarks on Non-Fregean Logic

MATH10212 Linear Algebra. Systems of Linear Equations. Definition. An n-dimensional vector is a row or a column of n numbers (or letters): a 1.

(LMCS, p. 317) V.1. First Order Logic. This is the most powerful, most expressive logic that we will examine.

CS 3719 (Theory of Computation and Algorithms) Lecture 4

A Little Set Theory (Never Hurt Anybody)

THE WELFARE IMPLICATIONS OF COSTLY MONITORING IN THE CREDIT MARKET: A NOTE

So let us begin our quest to find the holy grail of real analysis.

Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 2

FREQUENCIES OF SUCCESSIVE PAIRS OF PRIME RESIDUES

Math 3000 Section 003 Intro to Abstract Math Homework 2

The Mathematics of GIS. Wolfgang Kainz

Logic in general. Inference rules and theorem proving

6.080/6.089 GITCS Feb 12, Lecture 3

c 2009 Je rey A. Miron 3. Examples: Linear Demand Curves and Monopoly

The Cubic Formula. The quadratic formula tells us the roots of a quadratic polynomial, a polynomial of the form ax 2 + bx + c. The roots (if b 2 b+

Rigorous Software Development CSCI-GA

Interaction Expressions A Powerful Formalism for Describing Inter-Workflow Dependencies

How To Understand The Theory Of Computer Science

Binary Adders: Half Adders and Full Adders

The risk of using the Q heterogeneity estimator for software engineering experiments

Rummage Web Server Tuning Evaluation through Benchmark

Number Theory Naoki Sato

TRANSCENDENTAL NUMBERS

CABRS CELLULAR AUTOMATON BASED MRI BRAIN SEGMENTATION

Logical Agents. Explorations in Artificial Intelligence. Knowledge-based Agents. Knowledge-base Agents. Outline. Knowledge bases

Asymmetric Information, Transaction Cost, and. Externalities in Competitive Insurance Markets *

Project Management and. Scheduling CHAPTER CONTENTS

CSL105: Discrete Mathematical Structures. Ragesh Jaiswal, CSE, IIT Delhi

Undergraduate Notes in Mathematics. Arkansas Tech University Department of Mathematics

Rules of Inference Friday, January 18, 2013 Chittu Tripathy Lecture 05

WOLLONGONG COLLEGE AUSTRALIA. Diploma in Information Technology

How To Understand The Difference Between A Bet And A Bet On A Draw Or Draw On A Market

Managing specific risk in property portfolios

ON FUNCTIONAL SYMBOL-FREE LOGIC PROGRAMS

Schedule. Logic (master program) Literature & Online Material. gic. Time and Place. Literature. Exercises & Exam. Online Material

Risk and Return. Sample chapter. e r t u i o p a s d f CHAPTER CONTENTS LEARNING OBJECTIVES. Chapter 7

Sage Timberline Office

Circuits and Boolean Expressions

The History of Logic. Aristotle ( BC) invented logic.

Jena Research Papers in Business and Economics

Complex Conjugation and Polynomial Factorization

Beyond the F Test: Effect Size Confidence Intervals and Tests of Close Fit in the Analysis of Variance and Contrast Analysis

Price Elasticity of Demand MATH 104 and MATH 184 Mark Mac Lean (with assistance from Patrick Chan) 2011W

Service Network Design with Asset Management: Formulations and Comparative Analyzes

DISCRETE MATH: LECTURE 3

WHAT ARE MATHEMATICAL PROOFS AND WHY THEY ARE IMPORTANT?

EQUATIONAL LOGIC AND ABSTRACT ALGEBRA * ABSTRACT

Lecture Notes in Discrete Mathematics. Marcel B. Finan Arkansas Tech University c All Rights Reserved

NAVAL POSTGRADUATE SCHOOL THESIS

Albert D. Rich. Soft Warehouse, Inc.

Chapter 3. Cartesian Products and Relations. 3.1 Cartesian Products


University of Ostrava. Reasoning in Description Logic with Semantic Tableau Binary Trees

CONTENTS 1. Peter Kahn. Spring 2007

CRITICAL AVIATION INFRASTRUCTURES VULNERABILITY ASSESSMENT TO TERRORIST THREATS

o-minimality and Uniformity in n 1 Graphs

Multi-Channel Opportunistic Routing in Multi-Hop Wireless Networks

3. Mathematical Induction

Transcription:

Lecture Notes: Discrete Mathematics GMU Math 125-001 Sring 2007 Alexei V Samsonovich Any theoretical consideration, no matter how fundamental it is, inevitably relies on key rimary notions that are acceted without definition. In our case, examles of notions that we shall accet without definitions are: an object, a value, a concet, a symbol, to name just a few. In fact, most English words used here are not defined yet exected to be understood. Given this agreement, our first ste is to give useful definitions of the key terms, notations and concets wisely selected among others. Below in this text, whenever a key term is introduced, it is tyed in bold italic. Synonyms are listed in arentheses. An examle follows immediately. Discrete mathematics (sometimes understood as finite mathematics) is the study of mathematical structures that do not suort or reuire the notion of continuity. In articular, all comuter imlementations of continuous mathematical structures involve their finite discretization in a certain sense. Toics of discrete mathematics include logic, sets, number theory, combinatorics, grahs, algorithms, robability, information, comlexity, comutability, and more. Lecture notes included here should be considered comlementary rather than alternative to the textbook. The intent is to hel with understanding of difficult concets: sometimes by taking the reader to a higher level of abstraction that oens a better view of the main subject, and sometimes by sueezing the essence from long ages into just a few lines. Lecture 1: Logic It is generally understood that mathematics lays the role of a theoretical fundament for all modern natural sciences. In the same sense, logic can be viewed as a theoretical fundament for mathematics in general and for discrete mathematics in articular. It is not surrising therefore that we start our consideration with logic. In order to introduce concets of logic from first rinciles, we need to introduce some other general notions first. By introduce I do not mean rigorously define. Many of these notions will be addressed in more detail and used extensively in subseuent lectures, so in a sense the following three aragrahs are just an outline. A set is a collection of distinct objects called elements (or members) of the set. In articular, the notion of a set does not allow for multile instances (reetitions) of the same element in the set. In contrast, a seuence is an ordered collection that allows for reetition of its elements. An ordered n-tule is a seuence of n elements. If X is a set, then X n (the n-th ower of X) is the set of all ordered n-tules over X ( over X here means comosed from elements of X). An n-lace relation on X is a subset of X n.

Sulementary Lecture Notes for Math 125-1 - Alexei V. Samsonovich 1/27/2007 2 An exression is a finite seuence of elements-symbols (the entire set of symbols of a given language is called alhabet or vocabulary). A well-formed exression satisfies certain grammar rules (that need to be secified searately in each articular case of a formal theory). Below the term exression will refer to well-formed exressions only. A language is a set of exressions over an alhabet. A formal axiomatic theory is a language in which a subset of exressions are called axioms, and the rest are connected to the axioms via relations called inference rules. A seuence of these connections that starts from axioms is called a roof, and the exression at the end of this seuence is a theorem. A theory is decidable, if there is an algorithm to determine for any given exression whether it has a roof. Here we comare two theories: roositional calculus and redicate calculus (both are addressed in more detail below). Elements of roositional calculus are truth-valued (Boolean) variables, constants and exressions constructed from them using connectives (AND, OR, etc.). Elements of redicate calculus are variables that may take values of any nature (e.g., numbers, eole), lus arbitrary truth-valued functions of those variables called redicates, lus connectives and uantifiers used to construct exressions. A variable is a symbol that can be associated with (bound to) a value, an object, a set, or an exression. A variable can be free or bound. Variables may have tyes: restrictions on the nature of objects to which they can bind. On the other hand, a uantifier secifies a set of objects to which a variable is (to be) bound. While it is ossible to design an unlimited number of uantifiers, two of them are commonly used in most cases: the universal uantifier, secifying that something alies (the variable can be bound) to any element of a certain category, and the existential uantifier, secifying that something alies to at least one element. Given the above outline, we can define roositional calculus (roositional logic) as a formal axiomatic theory L with the alhabet, syntax, set of axioms and inference rules that follow below. The alhabet includes connectives (,,,, ), arentheses: (, ), and variables denoted here by lowercase English letters that may aear with or without subscrits. Each variable in L is bound to a roosition (a statement), which is an exression that is either true or false (i.e., has a definite truth value). The set of exressions in L can be formally given as follows. 1. All letters that denote statements with definite truth values are exressions of L. 2. If B and G are exressions of L, then so are ( B) and (B G). 3. If B, G and D are laceholders for exressions of L, then the following axiom schemas define axioms of L: a. (B (G B)) b. ((B (G D)) ((B G) (B D))) c. ((( G) ( B) ((( G) B) G)) 4. It suffices for L to have the only inference rule, modus onens: ((a b, a) b. Again, in summary, roositional calculus (roositional logic) can be defined as a formal axiomatic theory in which the alhabet includes variables denoted by letters (e.g.,

Sulementary Lecture Notes for Math 125-1 - Alexei V. Samsonovich 1/27/2007 3, 1 ), symbols 1 and 0 used for tautology and contradiction, connectives (,,,, ) and arentheses: (, ), the set of axioms includes those given by the above schemas (a), (b) and (c), and the only inference rule is modus onens. We can avoid using unnecessary arentheses, if we agree on a articular order of recedence for connectives, e.g.:,,,,, and then and other symbols of meta-language. We can reason about variables in L without knowing their values, yet we assume that they have definite values within the set {T, F}. This feature searates roositional calculus from redicate calculus, in which redicates may have free variables. In L, all exressions are roositions. A direct analogy with regular numerical exressions can be seen. Indeed, roositional logic is isomorhic to binary arithmetic (calculus of Boolean numbers: zeros and ones), as the following translation table shows. This translation rovides an intuition into L and can be taken as a art of its definition. Table 1. L is isomorhic to Boolean arithmetic. Proositional logic Boolean arithmetic T 1 F 0 +- 1-1-+ 1--+2 (XOR) +-2 2 0 (1-) 0 Given this table, you can confidently solve your HW1 roblems (or you can use the truth tables), yet there is a more convenient way of doing this: by using euivalence relations listed on age 24 in the textbook. At least, with this table you should have no roblem understanding what L is about: it is a calculus in which all variables and exressions take only two values. In this sense it is much simler than redicate calculus. Therefore, for examle, it is not surrising that and cannot be simultaneously false in roositional logic. It is also clear that there may be cases when P Q holds and P Q does not (generally, whenever P Q holds, P Q is a tautology, and vice versa). The analogy between and multilication, and addition with regard to commutativity, associativity and distributivity is straightforward. In articular, it imlies that euivalence relations allow us to reduce any logical exression to its disjunctive normal form (dns): i.e., a logical sum (disjunction) of disjuncts, each of which is either a logical roduct (conjunction) of literals (i.e., variable letters or their negations) or a single literal. The counterart of dns is a conjunctive normal form (cns) defined similarly, with swaing

Sulementary Lecture Notes for Math 125-1 - Alexei V. Samsonovich 1/27/2007 4 and. These forms can be useful when you want to comare two exressions. A dns / cns is called full, if each of its disjuncts / conjuncts is a minterm (contains each variable used in the form exactly once). Every non-contradiction / non-tautology can be reduced to a full dns / cns. An exression is satisfiable if it is true for some values of its variables. A logical argument is a finite set of roositions called remises or hyotheses followed by a roosition called conclusion. In a valid argument, the conclusion is true whenever remises are true. A sound argument is a valid argument in which remises are true. An arguments can be written in a column form (below), or as a comound statement with an imlication connecting remises to the conclusion. As a comound statement, a valid argument is a tautology. Moreover, its variables can be treated as laceholders for exressions (substitution theorem). All this is useful for roblem solving. A table of useful arguments some inference rules derived from modus onens is given below. Table 2. Inference rules. Modus onens Modus tollens introduction Contraositive Case analysis r r r Vacuous roof: introduction elimination introduction elimination Disjunctive syllogism Resolution r r Chain rule r r Contradiction F

Sulementary Lecture Notes for Math 125-1 - Alexei V. Samsonovich 1/27/2007 5 First-order logic (FOL, first-order redicate calculus) is an extension of roositional logic L that includes uantifiers, redicates (see above) and variables with arbitrary values beyond {T, F}, with the excetion for redicates themselves, which makes this theory first-order (without this restriction we run into logical aradoxes). The set of axioms and the set of rules of inference in FOL, as comared to L, is augmented with (intuitively obvious) axioms and arguments involving uantifiers. A higher-order logic differs from FOL in that its redicates are allowed to have redicates as their arguments. The notion of logic, esecially in comuter science, is raidly exanding in many dimensions, including fuzzy logic, many-valued logic, uantum logic, modal logics (temoral, dynamic, deontic, alethic, eistemic, etc.). Related calculi include situation calculus, fluent calculus, event calculus, etc. Further Reading: Hamburger, H., and Richards, D. (2002) Logic and Language Models for Comuter Science. Uer Saddle River, NJ: Prentice Hall. Mendelson, E. (1997) Initroduction to Mathematical Logic. New York: Chaman & Hall.