Академический Документы
Профессиональный Документы
Культура Документы
Implications Logic:
Logical Implication as regarded in
mathematical logic.
Material conditional as regarded in
philosophical logic.
Adriano Joaquim de O Cruz
Semantic entailment between two sets of
2002 statements.
NCE/UFRJ
adriano@nce.ufrj.br
@2002 Adriano Cruz NCE e IM - UFRJ Implicaes 2
Logic Definitions
Logical implication is a logical relation that A set of sentences logically implies a
holds between a set T of formulas and a formula
B when every model (or interpretation or
sentence B if and only if it is impossible
valuation) of T is also a model of B. In symbols, that all the members of the set be true
while B false.
Without using the language of models, the A peculiar feature of logical implication
material conditional formed from the is that a contradiction implies anything
conjunction of all the elements of T and B is
valid. That is, it is valid that and that anything implies a validity.
A1 An B
@2002 Adriano Cruz NCE e IM - UFRJ Implicaes 3 @2002 Adriano Cruz NCE e IM - UFRJ Implicaes 4
1
Implication Implication
If xA then yB. An implication is a logical construction that
tell us if one condition is true, then another
P is a proposition described by the set A
condition must also be true.
Q is a proposition described by the set B Implication is not if and only if.
PQ: If xA then yB Implication P -> Q is true even if only Q is
P implies Q true.
Elephants can fly, therefore it is hot today.
This statement is true if it is hot today.
@2002 Adriano Cruz NCE e IM - UFRJ Implicaes 5 @2002 Adriano Cruz NCE e IM - UFRJ Implicaes 6
2
Implication Implication Truth table
If I am elected I will decrease taxes A B A -> B
I was not elected, I did not decrease F F T
taxes F T T
I was not elected, I did decrease taxes T F F
I was elected, I did not decrease taxes T T T
I was elected, I did decrease taxes
A->B=(not A) or B
A->B=(not A) or (A and B)
@2002 Adriano Cruz NCE e IM - UFRJ Implicaes 9 @2002 Adriano Cruz NCE e IM - UFRJ Implicaes 10
A B = A (A B)
R(x,y)= (1 A(x))(B(y)/(x,y)
(x,y)
R(x,y)= (1 A(x))(A(x) B(y) /(x,y)
(x,y)
R(x,y)= 1(1 A(x)+B(y))/(x,y)
(x,y)
3
Interpretations of Implication Interpretations of Implication
A -> B as A entails B There are fuzzy ways to interpret the
Entailment is a relation between sets of fuzzy rule if then else
formulae such that, if A and B are sets of
formulae of a formal language, then A entails
B if and only if every model (or interpretation) First: A -> B as A entails (coupled) with
that makes all the members of A true, makes B
at least one of the members of B true. R(x,y)= T(A(x),B(y))/(x,y)
Entailment differs from implication, where the (x,y)
truth of one (A) suggests the truth of the other
(B), but does not require it. Where T is a T-norm operator
@2002 Adriano Cruz NCE e IM - UFRJ Implicaes 13 @2002 Adriano Cruz NCE e IM - UFRJ Implicaes 14
@2002 Adriano Cruz NCE e IM - UFRJ Implicaes 15 @2002 Adriano Cruz NCE e IM - UFRJ Implicaes 16
4
Inference
Inference Fuzzy inference refers to computational
procedures used for evaluating fuzzy
rules of the form if x is A then y is B
There are two important inferencing
procedures
Generalized modus ponens (GMP) - mode
that affirms
Generalized modus tollens (GMT) mode
that denies
@2002 Adriano Cruz NCE e IM - UFRJ Implicaes 19 @2002 Adriano Cruz NCE e IM - UFRJ Implicaes 20
5
Fuzzy Modus Ponens proof - I Fuzzy Modus Ponens proof - II
(A(AB))B start AB B
(A(A B))Bimplicatio
n ( AB)B implicatio
n
(A A) (AB))B distributi
vity ( A B)B DeMorgan
((AB))B ( A( BB))Associativ
ity
ABB ( A X)
X
@2002 Adriano Cruz NCE e IM - UFRJ Implicaes 21 @2002 Adriano Cruz NCE e IM - UFRJ Implicaes 22
6
Fuzzy Modus Tollens proof ? Reasoning Methods
Backward Chaining: the reasoning engine is
presented with a goal and asked to find all the
relevant, supporting processes that lead to this goal.
@2002 Adriano Cruz NCE e IM - UFRJ Implicaes 25 @2002 Adriano Cruz NCE e IM - UFRJ Implicaes 26
B 1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9 10
@2002 Adriano Cruz NCE e IM - UFRJ Implicaes 27 @2002 Adriano Cruz NCE e IM - UFRJ Implicaes 28
7
Example 1 Example 2
We will use the Mamdani implication function
10
(xi , yi ) = A(xi ) B (yi )
A = A(xi ) / xi = 0.5/ 2+1.0/ 3+0.5/ 4
(x, y )/(x , y )
i=0
10 R(xi , yi )= i i i i
B = B (yi ) / yi = 0.33/ 5+0.67/ 6+1.0/ 7+0.67/ 8+0.33/ 9 (xi ,yi )
i=0
R(xi , yi )= 0.33/( 2,5)+0.5/( 2,6)+0.5/( 2,7)+
0.5/( 2,8)+0.33/( 2,9)+0.33/( 3,5)+0.67/( 3,6)+
1.0/( 3,7)+0.67/( 3,8)+0.33/( 3,9)+0.33/( 4,5)+
0.5/( 4,6)+0.5/( 4,7)+0.5/( 4,8)+0.33/( 4,9)
@2002 Adriano Cruz NCE e IM - UFRJ Implicaes 29 @2002 Adriano Cruz NCE e IM - UFRJ Implicaes 30
Example 3 Example 4
R(xi , yi )= (x , y )/(x , y )
i i i i Consider the rule if x is A then y is B
(xi ,yi )
B Consider the statement x is A, what is
5 6 7 8 9 the conclusion?
A 2 0,33 0,50 0,50 0,50 0,33 1.00 uA(4)=1.0
3 0,33 0,67 1,00 0,66 0,33
4 0,33 0,50 0,50 0,50 0,33
1 2 3 4 5 6 7 8 9 10
10
A' = A(xi ) / xi = 1.0 / 4
i=0
@2002 Adriano Cruz NCE e IM - UFRJ Implicaes 31 @2002 Adriano Cruz NCE e IM - UFRJ Implicaes 32
8
Example 5 Example 6
uA(3)
1.0
0.5
10
1 2 3 4 5 6 7 8 9 10
A = A(xi ) / xi = 0.5/ 2 +1.0 / 3+ 0.5 / 4
i=0
10
1.00 uB(y) B = B (yi ) / yi = 0.33/ 5+ 0.67/ 6 +1.0 / 7 + 0.67 / 8+ 0.33/ 9
0.67 i=0
0.33 10
A' = A(xi ) / xi = 1.0 / 4
1 2 3 4 5 6 7 8 9 10
i=0
1.00 uA(4)=1.0
1 2 3 4 5 6 7 8 9 10
@2002 Adriano Cruz NCE e IM - UFRJ Implicaes 33 @2002 Adriano Cruz NCE e IM - UFRJ Implicaes 34
Example 7 Example 8
B(yi)=A(xi)oR(xi,yi)
B' (yi )= [ 0 01]0.33 0.50 0.50 0.50 0.33 1.00 uB(y)
0.67
1 2 3 4 5 6 7 8 9 10
@2002 Adriano Cruz NCE e IM - UFRJ Implicaes 35 @2002 Adriano Cruz NCE e IM - UFRJ Implicaes 36