1 Inference Rules and Proofs Z: Inference Rules and Proofs.

Slides:



Advertisements
Similar presentations
Propositional Equivalences
Advertisements

Disjunctive Normal Form CS 680: Formal Methods Jeremy Johnson.
Logic Use mathematical deduction to derive new knowledge.
1 Introduction to Abstract Mathematics Valid AND Invalid Arguments 2.3 Instructor: Hayk Melikya
Propositional Equivalences. L32 Agenda Tautologies Logical Equivalences.
Logic 1 Statements and Logical Operators. Logic Propositional Calculus – Using statements to build arguments – Arguments are based on statements or propositions.
Laws of , , and  Excluded middle law Contradiction law P   P  T P   P  F NameLaw Identity laws P  F  P P  T  P Domination laws P  T  T P.
Propositional Logic. Negation Given a proposition p, negation of p is the ‘not’ of p.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
1 Section 1.2 Propositional Equivalences. 2 Equivalent Propositions Have the same truth table Can be used interchangeably For example, exclusive or and.
From Chapter 4 Formal Specification using Z David Lightfoot
1 Inference Rules and Proofs Z: Inference Rules and Proofs.
Chapter 9: Boolean Algebra
Propositional Calculus Math Foundations of Computer Science.
Propositional Equivalence Goal: Show how propositional equivalences are established & introduce the most important such equivalences.
Normal or Canonical Forms Rosen 1.2 (exercises). Logical Operators  - Disjunction  - Conjunction  - Negation  - Implication p  q   p  q  - Exclusive.
CHAPTER 2 Boolean Algebra
CSCI 115 Chapter 2 Logic. CSCI 115 §2.1 Propositions and Logical Operations.
Discrete Mathematics and Its Applications
Systems Architecture I1 Propositional Calculus Objective: To provide students with the concepts and techniques from propositional calculus so that they.
Copyright © Curt Hill Truth Tables A way to show Boolean Operations.
1 Inference Rules and Proofs (Z); Program Specification and Verification Inference Rules and Proofs (Z); Program Specification and Verification.
Propositional Equivalences
Apr. 3, 2000Systems Architecture I1 Systems Architecture I (CS ) Lecture 3: Review of Digital Circuits and Logic Design Jeremy R. Johnson Mon. Apr.
Boolean Algebra. Boolean algebra (or Boolean logic) is a logical calculus of truth values, developed by George Boole in the late 1830s. It created a notation.
Thinking Mathematically Logic 3.6 Negations of Conditional Statements and De Morgan’s Laws.
Tautologies, contradictions, contingencies
Chapter 1: The Foundations: Logic and Proofs 1.1 Propositional Logic 1.2 Propositional Equivalences 1.3 Predicates and Quantifiers 1.4 Nested Quantifiers.
Propositional Calculus – Methods of Proof Predicate Calculus Math Foundations of Computer Science.
Natural Deduction CS 270 Math Foundations of CS Jeremy Johnson.
Lecture Propositional Equivalences. Compound Propositions Compound propositions are made by combining existing propositions using logical operators.
CS 381 DISCRETE STRUCTURES Gongjun Yan Aug 25, November 2015Introduction & Propositional Logic 1.
Propositional Calculus CS 270: Mathematical Foundations of Computer Science Jeremy Johnson.
1 Introduction to Abstract Mathematics Expressions (Propositional formulas or forms) Instructor: Hayk Melikya
Exercises for CS3511 Week 31 (first week of practical) Propositional Logic.
Thinking Mathematically
CS6133 Software Specification and Verification
Disjunctive Normal Form CS 270: Math Foundation of CS Jeremy Johnson.
Chapter 1: The Foundations: Logic and Proofs
Propositional Equivalence A needed step towards proofs Copyright © 2014 Curt Hill.
ARTIFICIAL INTELLIGENCE Lecture 2 Propositional Calculus.
CS-7081 Application - 1. CS-7082 Example - 2 CS-7083 Simplifying a Statement – 3.
2. The Logic of Compound Statements Summary
Propositional Equivalence
Truth Tables and Equivalent Statements
Chapter 1 – Logic and Proof
CHAPTER 2 Boolean Algebra
Classwork/Homework Classwork – Page 90 (11 – 49 odd)
Disjunctive Normal Form
Jeremy R. Johnson Wed. Sept. 29, 1999
Propositional Calculus: Boolean Functions and Expressions
Chapter 8 Logic Topics
Jeremy R. Johnson Anatole D. Ruslanov William M. Mongan
Propositional Calculus: Boolean Algebra and Simplification
Elementary Metamathematics
Propositional Equivalences
Information Technology Department
Logic Use mathematical deduction to derive new knowledge.
CS 270 Math Foundations of CS
Propositional Equivalences
CSE 311 Foundations of Computing I
TRUTH TABLES.
CS 220: Discrete Structures and their Applications
Disjunctive Normal Form
Lecture 2: Propositional Equivalences
MAT 3100 Introduction to Proof
Propositional Calculus
1.3 Propositional Equivalences
A THREE-BALL GAME.
Lesson 3.3 Writing functions.
Presentation transcript:

1 Inference Rules and Proofs Z: Inference Rules and Proofs

2 Propositional logic The Z methodology is based on propositional logic basic operators of propositional logic: conjunction (AND); disjunction (OR); implication (  ); equivalence (  ) ; negation (NOT, ~) propositions--statements about the system tautologies--propositions which are always true (A = A) contradictions--propositions which are never true (A = not A)

3 Logical Operators

4 Inference Rule--Z Notation Abbreviations:“intro” = introduction “elim” = elimination

5 AND Rules

6 OR Rules

7 IMPLICATION rules (implication, equivalence)

8 NEGATION Rules

9 Truth Table Formulation In terms of sets: P P “universe”  P Q P  Q P  Q Q P  Q P QP For n input variables, truth table would have 2 n rows; using truth tables for expressions and proofs is therefore not a practical or efficient method of computation

10 Proof example: AND is commutative

11 Proof example: OR is commutative

12 Exercise: associativity

13 Proof example: implication (1)

14 Proof example: implication (2)

15 Proof example: deMorgan’s Law

16 Proof example: Law of the excluded middle