Title: Inference Rules and Proofs
1Inference Rules and Proofs
- Z Inference Rules and Proofs
2Propositional 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)
3Logical Operators
4Inference Rule--Z Notation
Abbreviations intro introduction elim
elimination
5AND Rules
6OR Rules
7IMPLICATION rules
(implication, equivalence)
8NEGATION Rules
9Truth Table Formulation
For n input variables, truth table would have 2n
rows using truth tables for expressions and
proofs is therefore not a practical or efficient
method of computation
In terms of sets
universe
P ? Q
P ? Q
P
Q
P
Q
P
P
? P
P ? Q
Q
10Proof example AND is commutative
11Proof example OR is commutative
12Exercise associativity
13Proof example implication (1)
14Proof example implication (2)
15Proof example deMorgans Law
16Proof example Law of the excluded middle