https://vu5.sfc.keio.ac.jp/slide/

Similar documents




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

Compound Propositions

CSC Discrete Math I, Spring Propositional Logic

Fundamentals of Logic

Part Two: The Basic Components of the SOFL Specification Language

AMTH140 Lecture 8. Symbolic Logic

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

DISCRETE STRUCTURES WEEK5 LECTURE1

2.2: Logical Equivalence: The Laws of Logic

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

2 Truth Tables, Equivalences and the Contrapositive

FUNDAMENTALS OF MATHEMATICS HANDOUT 1.3 DR. MCLOUGHLIN

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

Logic and Discrete Mathematics. Section 3.5 Propositional logical equivalence Negation of propositional formulae

Solutions to Homework I (1.1)

Discrete Mathematics and Its Applications

1.3 Propositional Equivalences

Foundation of proofs. Jim Hefferon.

CS 220: Discrete Structures and their Applications. Propositional Logic Sections in zybooks

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

Today s Topic: Propositional Logic

Discrete Structures & Algorithms. Propositional Logic EECE 320 // UBC

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

Section L.1- Introduction to Logic

Section 1.1: Logical Form and Logical Equivalence

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

Propositional Equivalence

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

Introduction to Theoretical Computer Science

Discrete Structures for Computer Science


Equational Logic: Part 2. Roland Backhouse March 6, 2001

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

Introduction to Sets and Logic (MATH 1190)

THE LOGIC OF COMPOUND STATEMENTS

Propositional Languages

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

Topic 1: Propositional logic

We last time we began introducing equivalency laws.

Logic and Truth Tables

Equivalence and Implication

Chapter 4: Classical Propositional Semantics

CSE 20: Discrete Mathematics

PROPOSITIONAL CALCULUS

15414/614 Optional Lecture 1: Propositional Logic

1.1 Language and Logic

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

Chapter 5: Section 5-1 Mathematical Logic

CS206 Lecture 03. Propositional Logic Proofs. Plan for Lecture 03. Axioms. Normal Forms

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

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

MAT 101 Exam 2 Logic (Part I) Fall Circle the correct answer on the following multiple-choice questions.

PHIL12A Section answers, 16 February 2011

Logical Operators. Conjunction Disjunction Negation Exclusive Or Implication Biconditional

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

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

PHI Propositional Logic Lecture 2. Truth Tables

Math 13, Spring 2013, Lecture B: Midterm

Examples. Example (1) Example (2) Let x, y be two variables, and denote statements p : x = 0 and q : y = 1. Solve. x 2 + (y 1) 2 = 0.

EECS 1028 M: Discrete Mathematics for Engineers

The following techniques for methods of proofs are discussed in our text: - Vacuous proof - Trivial proof

WUCT121. Discrete Mathematics. Logic. Tutorial Exercises

Section 1.1: Propositions and Connectives

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

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

Introduction to Decision Sciences Lecture 2

ECE473 Lecture 15: Propositional Logic

Comp487/587 - Boolean Formulas

COMP 2600: Formal Methods for Software Engineeing

Chapter 1, Section 1.1 Propositional Logic

Conjunction: p q is true if both p, q are true, and false if at least one of p, q is false. The truth table for conjunction is as follows.

Introduction Logic Inference. Discrete Mathematics Andrei Bulatov

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

1.1 Language and Logic

MACM 101 Discrete Mathematics I. Exercises on Propositional Logic. Due: Tuesday, September 29th (at the beginning of the class)

CSE20: Discrete Mathematics for Computer Science. Lecture Unit 2: Boolan Functions, Logic Circuits, and Implication

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.

Learning Goals of CS245 Logic and Computation

Chapter 3: Logic. Diana Pell. A statement is a declarative sentence that is either true or false, but not both.

n logical not (negation) n logical or (disjunction) n logical and (conjunction) n logical exclusive or n logical implication (conditional)

Discrete Mathematical Structures. Chapter 1 The Foundation: Logic

Lecture 02: Propositional Logic

CSE 20 DISCRETE MATH. Fall

Packet #1: Logic & Proofs. Applied Discrete Mathematics

Boolean Logic. CS 231 Dianna Xu

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

Propositional Logic Not Enough

CITS2211 Discrete Structures. Propositional Logic

Proving Things. Why prove things? Proof by Substitution, within Logic. Rules of Inference: applying Logic. Using Assumptions.

Logic and Truth Tables

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

Sec$on Summary. Tautologies, Contradictions, and Contingencies. Logical Equivalence. Normal Forms (optional, covered in exercises in text)

10/5/2012. Logic? What is logic? Propositional Logic. Propositional Logic (Rosen, Chapter ) Logic is a truth-preserving system of inference

Tautologies, Contradictions, and Contingencies

Chapter 1: The Logic of Compound Statements. January 7, 2008

Propositional natural deduction

Transcription:

1 FUNDAMENTALS OF LOGIC NO.2 PROPOSITION AND TRUTH VALUE Tatsuya Hagino hagino@sfc.keio.ac.jp lecture URL https://vu5.sfc.keio.ac.jp/slide/

Proposition A Proposition is a statement of which truth does not change (i.e. always true or always false). `1 < 2' `There are infinitely many prime numbers.' `A triangle has equal edges.' `Any even number can be expressed as a sum of two prime numbers.' (Gold Bach's Conjecture) `Taro likes Hanako.' `The headquarter of Keio University is at SFC.' `Keio University is a national university.' If a statement contains a variable, it is not a proposition. The truth may change depending on the variable. `x < 5' `Taro likes A.' 2

3 Propositional Variable A propositional variable represents a proposition which cannot be decomposed. It represents an atomic statement. p, q, r, Non atomic statements: A compound statement is not basic because it can be decomposed into smaller statements. `Taro likes Hanako and Hanako likes Taro.' `If the wind blows, the bucket makers make money.' `Taro comes to SFC using bus or bicycle'

4 Compound Proposition Propositions can be combined. A compound statement is composed of some atomic statements. There are four ways of composition: Connective Symbol Name Meaning Other Symbols and conjunction both hold & or disjunction one of them holds imply conditional under some condition, it holds not negation the reverse holds ~

5 Logical Formula A logical formula represents a compound proposition. Definition A propositional variable is a logical formula. If A and B are logical formulae, the followings are also logical formulae: (A B) (A B) (A B) ( A) Example (p q) (p (q ( r))) ( ((p q) (r p)))

6 Omission of Parenthesis Too many parentheses. Omit some of them if there is no confusion. Omit out most parentheses. Give priority to connectives. > > > and are left associative and is right associative. p q r p q r p q r (p q) r p q r p q r Example: ` ' has more priority than ` ', ` ' connects stronger than ` '. Therefore, ` p q' means `(( p) q)'. p q r means p p means p (q p) means

Creating Logical Formulae Let p represent `Taro likes Hanako', q represent `Taro likes Momoko' and r represent `Hanako likes Taro'. Write the following statements as logical formulae. `Taro likes both Hanako and Momoko.' 7 `Taro likes Hanako or Momoko.' `Taro likes Hanako, but Hanako does not like him.' `If Taro likes Hanako, Hanako also likes him.' `If Taro likes Hanako and not Momoko, Hanako likes him.' `Hanako likes Taro who likes Momoko.'

8 Truth Table A proposition has a value of true (T) or false (F). A proposition is either true or false, not both. The negation of true is false, and the negation of false is true. The truth value of a logical formula depends on the true value of propositional variables in the formula. If a formula consists of connecting two formulae with a logical connective, its truth value can be determined from the true value of two sub formulae. The following truth tables show truth value of each logical connective. A B A B A B A A B T F T T F A B T F T T T A B T F T T F A T A F F F F F T F F T T F T

9 Exclusive Or A B is true if A or B is true. When A and B are true, A B is true. exclusive or, xor Exclude the case when both A and B are true. It is true when only one of A or B is true. A B A B T F T T T F T F A B A B T F T F T F T F A B is also used for exclusive or.

Calculating Truth Value of a Formula When a formula A contains propositional variables p 1, p 2,..., p n, the truth value of A can be calculated from the truth value of p 1, p 2,..., p n. Starting form the truth value of p 1, p 2,..., p n, using the truth value table of each connective, the truth value of the formula can be calculated. Example Truth value of p q p 10 p q p q p p q p T T F T T T F F F F F T T T T F F T T T

11 Exercise Calculate the truth value of p (q p). p q q p (q p) p (q p) T T T F F T F F

12 Tautology A is a tautology if A is always true no matter what the truth value of propositional variables p 1, p 2,..., p n inside A. A is also called valid. There are 2 n comination of truth value of p 1, p 2,..., p n. By checking all the cases, we can determine whether A is a tautology or not. Theorem: It is decidable whether a given logical formula is a tautology or not. Example: p (p q) q is a tautology. p q p q p (p q) p (p q) q T T T T T T F F F T F T T F T F F T F T

13 Exercise Show that p p is a tautology. p T F p p Show that (p q) ( q p) is also a tautology. p q p q q p q p (p q) ( q p) T T T F F T F F

14 Summary Mathematical Logic Proposition Propositional variables Logical connectives Logical formulae Truth value Truth table of logical connectives Tautologies