Professional Documents
Culture Documents
Marcin Szczuka
1 Introduction
Definitions and properties
Operations on fuzzy sets
Linguistic rules
may mean many things, depending of our perspective, the place we live
(meaning of tall is different in e.g. Japan) and so on.
But, if we want to feed John’s data into computer, we have to determine
his height precisely – say 190 cm.
But what if do not know John’s height exactly?
In real life we are doing perfectly all right with the sentences like:
It takes about 40 minutes to reach an airport if the traffic is not too
heavy.
But what if we want a computer to understand such a sentence?
How do we represent about and too heavy in a machine?
In 1965 Lotfi Zadeh proposed a different way of looking at notions such as:
set, containment, subset. His target was to make it possible to deal with
concepts (sets) and dependencies that by nature are imprecise and vague -
so called fuzzy concepts (sets).
Again, the example of such concept is the natural language sentence:
If we know, that John is 175 cm tall, we may start to wonder about the
validity of the above sentence.
In classical set theory we are forced to make definite decision whether 175
cm qualifies John as tall or not.
In the fuzzy set theory we may be more subtle and express to what degree
175 cm of height makes John a tall guy.
In classical set theory and with classical binary logic, that we usually
employ when doing things with use of computer, the (contents of a) set A
in some universe X can be expressed in the form of its characteristic
(containment) function:
1 if x ∈ A
χA (x) =
0 if x ∈ /A
Such classical, rigidly defined set we will further call crisp or definite.
The key step in defining fuzzy set theory is the replacement of
characteristic function χA by function µA : X → [0, 1].
µA is called membership function or fuzzy membership.
If ∀x∈X µA (x) ∈ {0, 1} then A is a classical set i.e., crisp (definite) set. If
there exists x ∈ X such that 0 < µA (x) < 1 – the set A is fuzzy.
Another example of three fuzzy sets for the notion of cold, warm and hot,
where x is a temperature.
1 Introduction
Definitions and properties
Operations on fuzzy sets
Linguistic rules
Some properties
For each fuzzy set we may establish:
Height of A: height(A) = h(A) = maxx∈X µA (x).
Support of A: Supp(A) = {x ∈ X : µA (x) > 0}.
Core of A: Core(A) = {x ∈ X : µA (x) = 1}.
In case of classical set theory the size of the set is measured in terms of the
number of its elements. In case of fuzzy set elements may be only partly in
the set, so we use membership function to determine the P ower of set –
the equivalent of cardinality for classic sets.
Power of fuzzy set
For a fuzzy set A its “cardinality” is given as
Pn
µ (x) if X = {x1 , . . . , xn }
P ower(A) = A = R i=1 A
X µA (x)dx otherwise
1 Introduction
Definitions and properties
Operations on fuzzy sets
Linguistic rules
µB(x) µB(x)
µA(x) µA(x)
1 Introduction
Definitions and properties
Operations on fuzzy sets
Linguistic rules
such rules we may obtain form a human expert or discover (mine) from
data. In order to use them in the context of fuzzy sets, we will employ
fuzzy set operators.
1 Introduction
Definitions and properties
Operations on fuzzy sets
Linguistic rules
1 Introduction
Definitions and properties
Operations on fuzzy sets
Linguistic rules
As mentioned before, there are in fact (infinitely) many ways for defining
operations on fuzzy sets. That comes form the fact, that there is more
than one:
1 Function that satisfies conditions for a T-norm, i.e., equivalent to
intersection.
2 Function that satisfies conditions for a T- co-norm (S-norm), i.e.,
equivalent to union.
3 Function that satisfies conditions complement (negation).
We will see several examples of such functions.
The whole class of functions that are called T-norms can be used as fuzzy
intersection.
Definition – T-norm
For any a, b, c, d ∈ [0, 1] T-norm is a function T : [0, 1]2 → [0, 1] such that:
Commutativity: T (a, b) = T (b, a);
Associativity: T (a, T (b, c)) = T (T (a, b), c);
Monotonicity: T (a, b) ≥ T (c, d) whenever a ≥ c, b ≥ d;
Invariance for 1: T (a, 1) = a
There are several functions that may be used as complement, but in 99.9%
of applications (and further in this lecture) the only function used is
N (x) = 1 − x (µ\A = 1 − µA ).
If in the definition above we cannot assure involution, the resulting
operator is called an intuitionistic negation.
Marcin Szczuka (MIMUW) Applied Logic 2019 24 / 36
Duality of T-norms and S-norms
1 Introduction
Definitions and properties
Operations on fuzzy sets
Linguistic rules
Fuzzy relation defined in such a way possesses all the required features.
However, please note that in order to introduce fuzzy relation we have not
used the notion of Cartesian product of fuzzy sets.
We want to define the Cartesian product of two fuzzy sets and check how
it relates to the previously introduced notion of fuzzy relation.
Definition - Cartesian product of fuzzy sets
Let A, B be fuzzy sets in universes X and Y , respectively. Cartesian
product A × B is a relation R (notation: R = A × B) defined on X × Y by:
where R = A1 × A2 × . . . × An
where T is a T-norm.
Let R be a fuzzy relation defined over X × Y . Projection of R on X
(analogously on other co-ordinates) is a fuzzy set A◦ in X, denoted by
A◦ = P rojx (A) and given by membership function:
1 Introduction
Definitions and properties
Operations on fuzzy sets
Linguistic rules
In the case of classical set theory, set operators are connected 1-to-1 to
logical operators (logical connectives). In fuzzy case the situation is more
complicated.
To begin with, we can have several different set operators. Therefore, when
we consider logical operators associated with fuzzy set operations, we have
to use different meaning of the truth/falsity for logical formulæ.
In the classical logic the valuation is a function v : V AR → {0, 1}, so the
formula has either value equal to 0 (falsity) or 1 (truth). In fuzzy logic we
will permit the formula to have logical value between 0 and 1. More
precisely, [[φ]]v ∈ [0, 1].
[[¬φ]]v = 1 − [[φ]]v .
By assuming that
1 Introduction
Definitions and properties
Operations on fuzzy sets
Linguistic rules