Exercises for CS1512 Weeks 7 and 8 Propositional Logic 1 (questions)

Slides:



Advertisements
Similar presentations
Exercises for CS1512 Weeks 7 and 8 Propositional Logic 1 (questions + solutions)
Advertisements

PROOF BY CONTRADICTION
Possible World Semantics for Modal Logic
Goals Determine the true value of statements with AND, OR, IF..THEN. Negate statements with the connectives above Construct truth tables Understand when.
Uses for Truth Tables Determine the truth conditions for any compound statementDetermine the truth conditions for any compound statement Determine whether.
Propositional Logic. Negation Given a proposition p, negation of p is the ‘not’ of p.
1 Chapter 7 Propositional and Predicate Logic. 2 Chapter 7 Contents (1) l What is Logic? l Logical Operators l Translating between English and Logic l.
Discrete Mathematics Math 6A Instructor: M. Welling.
Propositional Logic 7/16/ Propositional Logic A proposition is a statement that is either true or false. We give propositions names such as p, q,
Chapter 2: The Logic of Compound Statements 2.1 Logical Forms and Equivalence 12.1 Logical Forms and Equivalences Logic is a science of the necessary laws.
Mathematical Induction Assume that we are given an infinite supply of stamps of two different denominations, 3 cents and and 5 cents. Prove using mathematical.
Adapted from Discrete Math
The Laws of Logic: Boolean Algebra A State High Math Club Presentation START==TRUE.
CSCI2110 – Discrete Mathematics Tutorial 8 Propositional Logic Wong Chung Hoi (Hollis)
Discrete Math – Logic Unit
Propositions and Truth Tables
Extra slides for Chapter 3: Adequacy of connectives Based on Prof. Lila Kari’s slides For CS2209A, 2009 By Dr. Charles Ling;
Math 240: Transition to Advanced Math Deductive reasoning: logic is used to draw conclusions based on statements accepted as true. Thus conclusions are.
Today’s Topics Introduction to Proofs Rules of Inference Rules of Equivalence.
Theorem Proving Semantic Tableaux CIS548 November 15, 2006.
Exercises for CS3511 Week 31 (first week of practical) Propositional Logic.
Thinking Mathematically
COMP 170 L2 Part 3 of Course Chapter 3 of Textbook.
Chapter 1: The Foundations: Logic and Proofs
CSNB143 – Discrete Structure Topic 4 – Logic. Learning Outcomes Students should be able to define statement. Students should be able to identify connectives.
Laws of Boolean Algebra Commutative Law Associative Law Distributive Law Identity Law De Morgan's Theorem.
Propositional Logic Rather than jumping right into FOL, we begin with propositional logic A logic involves: §Language (with a syntax) §Semantics §Proof.
1 Section 6.2 Propositional Calculus Propositional calculus is the language of propositions (statements that are true or false). We represent propositions.
Thinking Mathematically Logic 3.4 Truth Tables for the Conditional and Biconditional.
1 Georgia Tech, IIC, GVU, 2006 MAGIC Lab Rossignac Lecture 01: Boolean Logic Sections 1.1 and 1.2 Jarek Rossignac.
CS 270 Lecture 1 In Class Problems. Q1: Logic Puzzle You arrive at the end of a long hallway. There are two knights guarding two doors. One knight always.
CS-7081 Application - 1. CS-7082 Example - 2 CS-7083 Simplifying a Statement – 3.
Discrete Structures for Computer Science Presented By: Andrew F. Conn Slides adapted from: Adam J. Lee Lecture #1: Introduction, Propositional Logic August.
Chapter 1 – Part 3 ELEMENTARY LOGIC
Chapter 1 Propositional Logic
Propositional Logic (a.k.a. Sentential Logic)
Chapter 2 Deductive Reasoning
The Foundations: Logic and Proofs
DISCRETE MATHEMATICS CHAPTER I.
CSNB 143 Discrete Mathematical Structures
Truth Tables and Equivalent Statements
Chapter 1 – Logic and Proof
A statement is a contradiction
Classwork/Homework Classwork – Page 90 (11 – 49 odd)
How do I show that two compound propositions are logically equivalent?
Chapter 3 Introduction to Logic 2012 Pearson Education, Inc.
Discrete Mathematics Lecture # 2.
Chapter 8 Logic Topics
Chapter 3 Introduction to Logic 2012 Pearson Education, Inc.
Conditional Statements
Propositional Calculus: Boolean Algebra and Simplification
Information Technology Department
Chapter 1 The Foundations: Logic and Proof, Sets, and Functions
2-1 Conditional Statements
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett
CSE 311 Foundations of Computing I
Applied Discrete Mathematics Week 1: Logic
CSS 342 Data Structures, Algorithms, and Discrete Mathematics I
Discrete Mathematics Lecture 2: Propositional Logic
CSE 321 Discrete Structures
Logical Truth To show a statement A is a logic truth (tautology) ...
MAT 3100 Introduction to Proof
Truth tables Construct a truth table for the following statements:
Discrete Mathematics Lecture 2: Propositional Logic
Section 3.7 Switching Circuits
Truth tables Mrs. Palmer.
1.2 Propositional Equivalences
Discrete Structures Prepositional Logic 2
A THREE-BALL GAME.
Propositional Satisfiability
Presentation transcript:

Exercises for CS1512 Weeks 7 and 8 Propositional Logic 1 (questions)

Exercise 1 1. Express each formula using only (at most) the connectives listed. In each case use a truth table to prove the equivalence. (Note: is exclusive `or`) a.Formula: p q. Connectives: {, }. b.Formula: p q. Connectives: {,, }. c.Formula: p q. Connectives: {, }. d.Formula: (p q) (( p) q). Conn: {, }.

Ex. 2. Which of these are tautologies? 1.p (q p) 2.p ( p p) 3.(q p) (p q) 4.(q p) (p q) 5.(p (q r)) (q (p r)) Please prove your claims, using truth tables. (Hint: Ask what assignment of truth values to p,q, and r would falsify each formula. In this way you can disregard parts of the truth table).

Ex. 3. Reading formulas off truth tables Background: In class, a proof was sketched for the claim that every propositional logic formula can be expressed using the connectives {, }. The proof proceeded essentially by reading off the correct formula off the truth table of any given formula. Task: Use this meticulous method to construct a formula equivalent to p q.

Question 4a In class, it was proven that {, } is a functionally complete set of connectives. Making use of this result, can you prove that {, } is also functionally complete?

Question 4b In class, it was proven that {, } is a functionally complete set of connectives. Making use of this result, can you prove that {NAND} is also functionally complete? [Explanation: (p NAND q) is TRUE iff (p q) is FALSE. This connective is also called the Sheffer stroke and written (p|q).)

Question 4c Given this result, why do we bother defining and using more than one connective?

Question 5 Translate into propositional logic (abbreviating it has rained as r, its been cold as c, and the plant is dead as d): a. If it has rained and its been cold then the plant is dead b. If it has rained then either it hasnt been cold or the plant is dead Use truth tables to determine whether these two statements are logically equivalent