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



Similar documents
Propositional Logic. A proposition is a declarative sentence (a sentence that declares a fact) that is either true or false, but not both.

Handout #1: Mathematical Reasoning

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

CHAPTER 2. Logic. 1. Logic Definitions. Notation: Variables are used to represent propositions. The most common variables used are p, q, and r.

Logic in general. Inference rules and theorem proving

Compound Inequalities. AND/OR Problems

Beyond Propositional Logic Lukasiewicz s System

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

DISCRETE MATH: LECTURE 3

Math Week in Review #4. A proposition, or statement, is a declarative sentence that can be classified as either true or false, but not both.

CHAPTER 7 GENERAL PROOF SYSTEMS

INTRODUCTORY SET THEORY

Mathematics for Computer Scientists

p: I am elected q: I will lower the taxes

High School Geometry Test Sampler Math Common Core Sampler Test

Math 3000 Section 003 Intro to Abstract Math Homework 2

Mathematical Induction

Boolean Algebra Part 1

Logic in Computer Science: Logic Gates

Artificial Intelligence

Formal Engineering for Industrial Software Development

WOLLONGONG COLLEGE AUSTRALIA. Diploma in Information Technology

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

Quine on truth by convention

CS510 Software Engineering

Predicate Logic. For example, consider the following argument:

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

Applied Liberal Arts Mathematics MAT-105-TE

A simple solution to the hardest logic puzzle ever

Logic Appendix. Section 1 Truth Tables CONJUNCTION EXAMPLE 1

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

Chapter 3. Cartesian Products and Relations. 3.1 Cartesian Products

Invalidity in Predicate Logic

WOLLONGONG COLLEGE AUSTRALIA. Diploma in Information Technology

A Few Basics of Probability

196 Chapter 7. Logical Agents

Predicate Logic. Example: All men are mortal. Socrates is a man. Socrates is mortal.

The Role of Dispute Settlement Procedures in International Trade Agreements: Online Appendix

Degrees of Truth: the formal logic of classical and quantum probabilities as well as fuzzy sets.

Introduction to Logic in Computer Science: Autumn 2006

Sentence Semantics. General Linguistics Jennifer Spenader, February 2006 (Most slides: Petra Hendriks)

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.

Predicate Logic Review

1 of 6 9/30/15, 4:49 PM

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

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

Certamen 1 de Representación del Conocimiento

CHANCE ENCOUNTERS. Making Sense of Hypothesis Tests. Howard Fincher. Learning Development Tutor. Upgrade Study Advice Service

We would like to state the following system of natural deduction rules preserving falsity:

The Mathematics of GIS. Wolfgang Kainz

DEDUCTIVE & INDUCTIVE REASONING

Negative Integral Exponents. If x is nonzero, the reciprocal of x is written as 1 x. For example, the reciprocal of 23 is written as 2

Undergraduate Notes in Mathematics. Arkansas Tech University Department of Mathematics

Clue Deduction: an introduction to satisfiability reasoning

WHAT ARE MATHEMATICAL PROOFS AND WHY THEY ARE IMPORTANT?

Arithmetic Progression

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

Is Justified True Belief Knowledge?

MAT Program Verication: Exercises

Geometry 1. Unit 3: Perpendicular and Parallel Lines

Conjunction is true when both parts of the statement are true. (p is true, q is true. p^q is true)

Formal Software Development

Basic Logic Gates Richard E. Haskell

Mathematics Review for MS Finance Students

2. The Language of First-order Logic

EQUATIONS and INEQUALITIES

Trust but Verify: Authorization for Web Services. The University of Vermont

6.080/6.089 GITCS Feb 12, Lecture 3

Translation Guide. Not both P and Q ~(P Q) Not either P or Q (neither/nor)

Predicate logic. Logic in computer science. Logic in Computer Science (lecture) PART II. first order logic

Gates, Circuits, and Boolean Algebra

Resolution. Informatics 1 School of Informatics, University of Edinburgh

Last time we had arrived at the following provisional interpretation of Aquinas second way:

An Innocent Investigation

So, using the new notation, P X,Y (0,1) =.08 This is the value which the joint probability function for X and Y takes when X=0 and Y=1.

Lesson 1. Key Financial Concepts INTRODUCTION

PHILOSOPHY 101: CRITICAL THINKING

Set Theory and Logic Supplementary Materials Math 103: Contemporary Mathematics with Applications. A. Calini, E. Jurisich, S.

Alexy's Thesis of the Necessary Connection between Law and Morality*

Lesson 3: Using Inequalities to Problem Solve

Degrees all the way down: Beliefs, non-beliefs and disbeliefs

COMPUTER SCIENCE. Paper 1 (THEORY)

Workforce scheduling with logical constraints: theory and applications in call centers

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

Extending the Internet of Things to IPv6 with Software Defined Networking

Multiplication and Division with Rational Numbers

CSEE 3827: Fundamentals of Computer Systems. Standard Forms and Simplification with Karnaugh Maps

Hypothetical Syllogisms 1

Chapter II. Controlling Cars on a Bridge

Introduction to Logic: Argumentation and Interpretation. Vysoká škola mezinárodních a veřejných vztahů PhDr. Peter Jan Kosmály, Ph.D

A Propositional Dynamic Logic for CCS Programs

Lecture 9 Maher on Inductive Probability

Solutions to Math 51 First Exam January 29, 2015

A simple algorithm with no simple verication

Chapter 4: The Logic of Boolean Connectives

Transcription:

Propositional Logic: logical operators Negation ( ) Conjunction ( ) Disjunction ( ). Exclusive or ( ) Conditional statement ( ) Bi-conditional statement ( ): Let p and q be propositions. The biconditional statement p q is the proposition p if and only if q. The biconditional statement p q is true when p and q have the same truth values, and is false otherwise. Biconditional statements are also called bi-implications. p q p q T T T T F F F T F F F T Table: Truth table for p q.

Propositional Logic: logical operators Negation ( ) Conjunction ( ) Disjunction ( ). Exclusive or ( ) Conditional statement ( ) Bi-conditional statement ( ): Let p and q be propositions. The biconditional statement p q is the proposition p if and only if q. The biconditional statement p q is true when p and q have the same truth values, and is false otherwise. Biconditional statements are also called bi-implications. p q is also expressed as: p is necessary and sufficient for q p iff q if p, then q and conversely Show that p q always has the same truth value as (p q) (q p).

Propositional Logic Logical operators Negation ( ) Conjunction ( ) Disjunction ( ). Exclusive or ( ) Conditional statement ( ) Bi-conditional statement ( ) A compound proposition is formed by applying these operators on simpler propositions. E.g. (p q r). Operator Precedence (in decreasing order):,,,,,. Construct the truth table for p q p q.

Propositional logic: Applications Simplify complex sentences and enable to logically analyze them. You cannot ride the roller coaster if you are under 4 feet tall unless you are older than 16 years old. p: You can ride the roller coaster. q: You are under 4 feet tall. r: You are older than 16 years old. Express the sentence in terms of propositions p, q, and r.

Propositional logic: Applications Simplify complex sentences and enable to logically analyze them. You cannot ride the roller coaster if you are under 4 feet tall unless you are older than 16 years old. p: You can ride the roller coaster. q: You are under 4 feet tall. r: You are older than 16 years old. Express the sentence in terms of propositions p, q, and r. (q r) p.

Propositional logic: Applications Simplify complex sentences and enable to logically analyze them. Translate system specification expressed in natural language into unambiguous logical expressions. Example: The diagnostic message is stored in the buffer or is retransmitted. The diagnostic message is not stored in the buffer. If the diagnostic message is stored in the buffer, then it is retransmitted. The diagnostic message is not transmitted. Consistency: Whether all the specifications can be satisfied simultaneously. Are these specifications consistent?

Propositional logic: Applications Simplify complex sentences and enable to logically analyze them. Translate system specification expressed in natural language into unambiguous logical expressions. Resolve complex puzzling scenarios. Example: An island has two kinds of inhabitants, knights and knaves. Knights always tell the truth and Knaves always lie. You meet two people on this island A and B. What are A and B if A says B is a knight and B says The two of us are opposite types?

Propositional logic Definition (Tautology and Contradiction) A compound proposition that is always true, no matter what the truth values of the proposition that occurs in it, is called a tautology. A compound proposition that is always false is called a contradiction. A compound proposition that is neither a tautology nor a contradiction is called a contingency. Examples: (p p) is a tautology. (p p) is a contradiction. Definition (Logical equivalence) A compound proposition p and q are called logically equivalent if p q is a tautology. The notation p q denotes that p and q are logically equivalent.

Propositional logic Definition (Tautology and Contradiction) A compound proposition that is always true, no matter what the truth values of the proposition that occurs in it, is called a tautology. A compound proposition that is always false is called a contradiction. A compound proposition that is neither a tautology nor a contradiction is called a contingency. Definition (Logical equivalence) Compound propositions p and q are called logically equivalent if p q is a tautology. The notation p q denotes that p and q are logically equivalent. Show that p and q are logically equivalent if and only if the columns giving their truth values match. Show that (p q) p q.

End