A Statement; Logical Operations

Similar documents
CSC Discrete Math I, Spring Propositional Logic

2. The Logic of Compound Statements Summary. Aaron Tan August 2017

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

- 1.2 Implication P. Danziger. Implication

1.1 Language and Logic

AMTH140 Lecture 8. Symbolic Logic

Compound Propositions

1.1 Language and Logic

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

What is Logic? Introduction to Logic. Simple Statements. Which one is statement?

Numbers that are divisible by 2 are even. The above statement could also be written in other logically equivalent ways, such as:

Chapter Summary. Propositional Logic. Predicate Logic. Proofs. The Language of Propositions (1.1) Applications (1.2) Logical Equivalences (1.

THE LOGIC OF COMPOUND STATEMENTS

Proofs. Joe Patten August 10, 2018

Propositional Logic. Spring Propositional Logic Spring / 32

Mathematical Reasoning (Part I) 1

HW1 graded review form? HW2 released CSE 20 DISCRETE MATH. Fall

CHAPTER 1 - LOGIC OF COMPOUND STATEMENTS

Chapter 1, Part I: Propositional Logic. With Question/Answer Animations

PROPOSITIONAL CALCULUS

CISC-102 Winter 2016 Lecture 17

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

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

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

Section 1.1 Propositional Logic. proposition : true = T (or 1) or false = F (or 0) (binary logic) the moon is made of green cheese

15414/614 Optional Lecture 1: Propositional Logic

INTRODUCTION TO LOGIC. Propositional Logic. Examples of syntactic claims

DISCRETE STRUCTURES WEEK5 LECTURE1

Deduction by Daniel Bonevac. Chapter 3 Truth Trees

Logical Agents. Knowledge based agents. Knowledge based agents. Knowledge based agents. The Wumpus World. Knowledge Bases 10/20/14

Logic. Def. A Proposition is a statement that is either true or false.

Section L.1- Introduction to Logic

Logic and Proofs. (A brief summary)

Propositional natural deduction

Discrete Mathematical Structures. Chapter 1 The Foundation: Logic

TRUTH TABLES LOGIC (CONTINUED) Philosophical Methods

Artificial Intelligence. Propositional logic

THE LOGIC OF COMPOUND STATEMENTS

Note: The area of logic that deals with propositions is called the propositional calculus or propositional logic.

Definition 2. Conjunction of p and q

~ p is always false. Based on the basic truth table for disjunction, if q is true then p ~

Today s Topic: Propositional Logic

Logic, Sets, and Proofs

Propositional Logic. Fall () Propositional Logic Fall / 30

Introduction. Applications of discrete mathematics:

Knowledge base (KB) = set of sentences in a formal language Declarative approach to building an agent (or other system):

Announcements. CS311H: Discrete Mathematics. Propositional Logic II. Inverse of an Implication. Converse of a Implication

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

Announcements. CS243: Discrete Structures. Propositional Logic II. Review. Operator Precedence. Operator Precedence, cont. Operator Precedence Example

PHIL 422 Advanced Logic Inductive Proof

Lecture Notes 1 Basic Concepts of Mathematics MATH 352

Chapter 4: Classical Propositional Semantics

Chapter 5: Section 5-1 Mathematical Logic

Solutions to Homework I (1.1)

Sec$on Summary. Propositions Connectives. Truth Tables. Negation Conjunction Disjunction Implication; contrapositive, inverse, converse Biconditional

Lecture 02: Propositional Logic

Truth-Functional Logic

PHIL12A Section answers, 16 February 2011

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

Tautologies, Contradictions, and Contingencies

A Little Deductive Logic

LECTURE 1. Logic and Proofs

Proposition/Statement. Boolean Logic. Boolean variables. Logical operators: And. Logical operators: Not 9/3/13. Introduction to Logical Operators

Example. Logic. Logical Statements. Outline of logic topics. Logical Connectives. Logical Connectives

Manual of Logical Style (fresh version 2018)

An Introduction to Logic 1.1 ~ 1.4 6/21/04 ~ 6/23/04

Section 3.1. Statements and Logical Connectives. Copyright 2013, 2010, 2007, Pearson, Education, Inc.

The Logic of Compound Statements cont.

CISC-102 Fall 2018 Week 11

Connectives Name Symbol OR Disjunction And Conjunction If then Implication/ conditional If and only if Bi-implication / biconditional

Chapter 1 Elementary Logic

Propositional logic ( ): Review from Mat 1348

EECS 1028 M: Discrete Mathematics for Engineers

Topic 1: Propositional logic

A Little Deductive Logic

Propositional Logic and Semantics

Propositional Equivalence

Propositional Languages

Packet #1: Logic & Proofs. Applied Discrete Mathematics

HANDOUT AND SET THEORY. Ariyadi Wijaya

Boolean Logic. CS 231 Dianna Xu

Logic and Proofs. (A brief summary)

Discrete Mathematics

software design & management Gachon University Chulyun Kim

Logic and Propositional Calculus

ECE473 Lecture 15: Propositional Logic

Propositional Logic 1

CHAPTER 2 INTRODUCTION TO CLASSICAL PROPOSITIONAL LOGIC

3/29/2017. Logic. Propositions and logical operations. Main concepts: propositions truth values propositional variables logical operations

Chapter 1, Part I: Propositional Logic. With Question/Answer Animations

Logic and Inferences

p, p or its negation is true, and the other false

1 Propositional Logic

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

1.1 Statements and Compound Statements

Introduction Propositional Logic. Discrete Mathematics Andrei Bulatov

Discrete Structures for Computer Science

Math Real Analysis

2/13/2012. Logic: Truth Tables. CS160 Rosen Chapter 1. Logic?

Logic. Definition [1] A logic is a formal language that comes with rules for deducing the truth of one proposition from the truth of another.

Transcription:

A Statement; Logical Operations

Mathematical logic is a branch of mathematics that deals with the formal principles, methods and criteria of validity of reasoning and knowledge. Logic is concerned with what is true and how we can know whether something is true. Augustus De Morgan George Boole Bertrand Russel

Main object of mathematical logic is a statement. Definition: A STATEMENT (A PROPOSITION) is a declarative sentence that is true or false, but not both. a statement = ISKAZ

Example: Which of these sentences are statements? Are they true or false? 1) 1 < 2 2) What is your name? 3) 25 = 5 4) x 2 = 4 simple propositions

NOTATION: Often a statement is abbreviated by lower case letter: p,q,r, - propositional variables ( iskazna slova ) Example: p: Seven is a prime number

TRUTH VALUE OF A STATEMENT: If the statement is true, its truth value is T. If the statement is false, its truth value is F. truth value = istinitosna vrednost p T, ako je p tačan iskaz, ako je p netačan iskaz

Like in language, we can build compound sentences using connectives. COMPOUND STATEMENTS are statements with connectives. connective operator notation NOT Negation AND Conjunction OR Disjunction IF THEN Implication IF AND ONLY IF Equivalence

Negation Let p stands for a given statement. The negation of the statement p is the statement NOT p that respresents the logical opposite of p. When p is true, then not p is false and vice versa. ~p p, p NOT p p T F p F T TRUTH TABLE = is a summary of all possible truth values of a logic statement

truth table = tablica istinitosti Example: p: π < 4 true p: π 4 false

Conjunction A conjuction is a compound statement formed by combining two simple statements using the word AND. p, q - statements ( conjuncts ) p q p AND q The conjuction, p and q, is true only when both p and q are true, and false is otherwise.

p q p q T T T T F F F T F F F F n - number of statements 2 n - number of rows in truth tables Example : p: " 2 > 0 " true q: " 2 < 0 " false p q " 2 > 0 and 2 < 0 false

Disjunction A disjuction is a compound statement formed by combining two simple statements using the word OR. p, q - statements ( disjuncts ) p q p OR q The disjuction, p or q, is true when at least one of the statements p and q is true, and is false when both are false.

p q p q T T T T F T F T T F F F Example : p: " 2 > 0 " true q: " 2 < 0 " false p q " 2 > 0 or 2 < 0 true

Implication ( Conditional ) A conditional is a compound statement formed by combining two simple statements using words IF THEN. p, q - statements p q ( p q ) if p then q The implication, if p then q, is false when p is true and q is false. In all other cases, the implication is true.

p q p q p - antecedent, premise, T T T hypothesis, T F F protasis F T T q - consequent, F F T conclusion, apodosis

p q if p, then q p implies q p only if q q if p q provided that p q whenever p q is a necessary condition for p p is a sufficient condition for q Example: The following implication is true: " 3 + 1 = 7 6 1 = 2" If 3 + 1 = 7, then 1 = 7 3 = 4, so 6 1 = 6 4 = 2.

Equivalence ( Biconditional ) A biconditional is the conjuction of the two implications p q and q p. p, q - statements p q p q p if and only if q p iff q if p then q, and if q then p The biconditional, p if and only if q, is true when p and q are both true or both false.

p q p q T T T T F F F T F F F T Example: A number is divisible by 6 if and only if is divisible by 2 and 3.

Every definition is a true biconditional! Example: Line segments that have the same measure are congruent. Restated: Two line segments are congruent if and only if they have the same measure. Biconditionals are used to solve equations! 3x + 7 = 19 if and only if 3x = 12 if and only if x = 4