Fuzzy logic. 1. Introduction. 2. Fuzzy sets. Radosªaw Warzocha. Wrocªaw, February 4, Denition Set operations

Similar documents
Disjunctive and Conjunctive Normal Forms in Fuzzy Logic

Propositional Calculus. CS 270: Mathematical Foundations of Computer Science Jeremy Johnson

L. A. Zadeh: Fuzzy Sets. (1965) A review

Propositional Calculus. Math Foundations of Computer Science

Propositional Calculus: Boolean Algebra and Simplification. CS 270: Mathematical Foundations of Computer Science Jeremy Johnson

Contour Lines: The Lost World

Fuzzy Reasoning. Outline

A fuzzy subset of a set A is any mapping f : A [0, 1], where [0, 1] is the real unit closed interval. the degree of membership of x to f

FUZZY BOOLEAN ALGEBRAS AND LUKASIEWICZ LOGIC. Angel Garrido

The Truth about Types. Bartosz Milewski

Fuzzy Systems (1/2) Francesco Masulli

Introduction to Fuzzy Logic. IJCAI2018 Tutorial

[Ch 6] Set Theory. 1. Basic Concepts and Definitions. 400 lecture note #4. 1) Basics

Chapter 4 Fuzzy Logic

Logic and its Applications

ARTIFICIAL INTELLIGENCE. Uncertainty: fuzzy systems

Some Properties of Intuitionistic. (T, S)-Fuzzy Filters on. Lattice Implication Algebras

Neural Networks Lesson 9 - Fuzzy Logic

Proofs are Programs. Prof. Clarkson Fall Today s music: Proof by Paul Simon

SINGLE VALUED NEUTROSOPHIC SETS

REVIEW OF FUZZY SETS

Algebraic Properties of CSP Model Operators? Y.C. Law and J.H.M. Lee. The Chinese University of Hong Kong.

Typed Lambda Calculus

Figure-12 Membership Grades of x o in the Sets A and B: μ A (x o ) =0.75 and μb(xo) =0.25

Formal Calculi of Fuzzy Relations

Mathematically Rigorous Software Design Review of mathematical prerequisites

Chapter 3: Propositional Languages

Proofs are Programs. Prof. Clarkson Fall Today s music: Two Sides to Every Story by Dyan Cannon and Willie Nelson

Programming Languages Third Edition

CS Bootcamp Boolean Logic Autumn 2015 A B A B T T T T F F F T F F F F T T T T F T F T T F F F

Propositional Logic. Part I

CMPSCI 250: Introduction to Computation. Lecture #7: Quantifiers and Languages 6 February 2012

Knowledge Representation

Machine Learning & Statistical Models

Lecture 5. Logic I. Statement Logic

Fuzzy Stabilizer in IMTL-Algebras

Computational Intelligence Lecture 12:Linguistic Variables and Fuzzy Rules

Formal Predicate Calculus. Michael Meyling

XI International PhD Workshop OWD 2009, October Fuzzy Sets as Metasets

Typed Lambda Calculus for Syntacticians

Fuzzy Logic : Introduction

STABILITY AND PARADOX IN ALGORITHMIC LOGIC

Artificial Intelligence Notes Lecture : Propositional Logic and Inference

Propositional Calculus: Boolean Functions and Expressions. CS 270: Mathematical Foundations of Computer Science Jeremy Johnson

What is all the Fuzz about?

Relational Algebra. Procedural language Six basic operators

Left and right compatibility of strict orders with fuzzy tolerance and fuzzy equivalence relations

Fuzzy Logic. This amounts to the use of a characteristic function f for a set A, where f(a)=1 if the element belongs to A, otherwise it is 0;

Intersections between some families of (U,N)- and RU-implications

Introduction to Fuzzy Logic and Fuzzy Systems Adel Nadjaran Toosi

LOGIC AND DISCRETE MATHEMATICS

On Some Properties of Vague Lattices

Lotfi Zadeh (professor at UC Berkeley) wrote his original paper on fuzzy set theory. In various occasions, this is what he said

ANFIS: ADAPTIVE-NETWORK-BASED FUZZY INFERENCE SYSTEMS (J.S.R. Jang 1993,1995) bell x; a, b, c = 1 a

Generalized Implicative Model of a Fuzzy Rule Base and its Properties

计算智能 第 10 讲 : 模糊集理论 周水庚 计算机科学技术学院

About the Tutorial. Audience. Prerequisites. Copyright & Disclaimer. Discrete Mathematics

FUZZY INFERENCE SYSTEMS

Formal Methods of Software Design, Eric Hehner, segment 1 page 1 out of 5

The three faces of homotopy type theory. Type theory and category theory. Minicourse plan. Typing judgments. Michael Shulman.

CPS331 Lecture: Fuzzy Logic last revised October 11, Objectives: 1. To introduce fuzzy logic as a way of handling imprecise information

Lecture Notes 15 Number systems and logic CSS Data Structures and Object-Oriented Programming Professor Clark F. Olson

HOL DEFINING HIGHER ORDER LOGIC LAST TIME ON HOL CONTENT. Slide 3. Slide 1. Slide 4. Slide 2 WHAT IS HIGHER ORDER LOGIC? 2 LAST TIME ON HOL 1

Introduction 2 Fuzzy Sets & Fuzzy Rules. Aleksandar Rakić Contents

arxiv: v1 [math.lo] 16 Mar 2008

CHAPTER 3 FUZZY INFERENCE SYSTEM

CSL105: Discrete Mathematical Structures. Ragesh Jaiswal, CSE, IIT Delhi

Chapter 2 The Operation of Fuzzy Set

Propositional Calculus. Math Foundations of Computer Science

Univalent fibrations in type theory and topology

Vague Congruence Relation Induced by VLI Ideals of Lattice Implication Algebras

Why Fuzzy Fuzzy Logic and Sets Fuzzy Reasoning. DKS - Module 7. Why fuzzy thinking?

Fuzzy Sets and Systems. Lecture 1 (Introduction) Bu- Ali Sina University Computer Engineering Dep. Spring 2010

Propositional Logic Formal Syntax and Semantics. Computability and Logic

Introduction to Boolean Algebra

Introduction 3 Fuzzy Inference. Aleksandar Rakić Contents

The temporal explorer who returns to the base 1

Chapter 2: FUZZY SETS

BOOLEAN ALGEBRA AND CIRCUITS

LECTURE 2 An Introduction to Boolean Algebra

CSE 20 DISCRETE MATH. Fall

Program Verification & Testing; Review of Propositional Logic

FUZZY SYSTEMS: Basics using MATLAB Fuzzy Toolbox. Heikki N. Koivo

Introduction to Boolean Algebra

CSE 20 DISCRETE MATH. Winter

Propositional logic (Ch. 7)

AXIOMS FOR THE INTEGERS

MTAEA Convexity and Quasiconvexity

A stack eect (type signature) is a pair of input parameter types and output parameter types. We also consider the type clash as a stack eect. The set

Fuzzy Systems. Fuzzy Systems in Knowledge Engineering. Chapter 4. Christian Jacob. 4. Fuzzy Systems. Fuzzy Systems in Knowledge Engineering

Higher-Order Logic. Specification and Verification with Higher-Order Logic

2 Review of Set Theory

A Brief Idea on Fuzzy and Crisp Sets

Topic 3: Propositions as types

Computational Intelligence Lecture 10:Fuzzy Sets

Musikasuwan, Salang (2013) Novel fuzzy techniques for modelling human decision making. PhD thesis, University of Nottingham.

1. Fuzzy sets, fuzzy relational calculus, linguistic approximation

Definition: A context-free grammar (CFG) is a 4- tuple. variables = nonterminals, terminals, rules = productions,,

Goals: Define the syntax of a simple imperative language Define a semantics using natural deduction 1

About the Tutorial. Audience. Prerequisites. Copyright & Disclaimer. Discrete Mathematics

Transcription:

Fuzzy logic Radosªaw Warzocha Wrocªaw, February 4, 2014 1. Introduction A fuzzy concept appearing in works of many philosophers, eg. Hegel, Nietzche, Marx and Engels, is a concept the value of which can vary according to context and conditions. We can think of those concepts as if they can be neither completely true not completely false. For example when can we say if someone is considered tall? For a person 1.2m or 2.1m tall the answer is obvious but what about someone who is 1.7m tall? In 1920's Tarski and Šukasiewicz were studying multi-valued and innite-valued logics, but the title of father of fuzzy logic is granted Lofti A. Zadeh who in 1965 presented the article "Fuzzy sets" where he described his fuzzy set theory the foundation on which fuzzy logic was built. 2. Fuzzy sets 2.1. Denition A fuzzy set A = (U, m A ) is a pair where U is a standard set, as we know them from set theory, and m A : U [0; 1] is a membership function. A value m A (x) is called the grade of membership of x. We say that x is included in A when m A (x) > 0 excluded from A when m A (x) = 0 fully included in A when m A (x) = 1 Sometimes, when considering fuzzy sets it is convenient to speak of kernel of A - {x U m A (x) = 1}, and support of A - {x U m A (x) > 0}. We say that a fuzzy set A is empty when its support is. 2.2. Set operations Now we would like to dene operations on fuzzy sets as well as a way of comparing them. We can dene sum and product of sets in many ways. Some of them are presented in the following table:

Operators Sum (m A B (x)) Product (m A B (x)) Zadeh max(m A (x), m B (x)) min(m A (x), m B (x)) Product m A (x) m B (x) m A (x) + m B (x) m A (x) m B (x) Hamaher m A (x) + m B (x) m A (x) m B (x) 1 m A (x) m B (x) m A (x) m B (x) m A (x) + m B (x) 2m A (x) m B (x) Einstein { 2 (m A (x) + m B (x) m A (x) m B (x)) { 1 + m A (x) m B (x) m A (x) m B (x) m A (x) + m B (x) Drastic min(m A (x), m B (x)) max(m A (x), m B (x)) = 1 max(m A (x), m B (x)) min(m A (x), m B (x)) = 0 0 otherwise 1 otherwise Bounded di. max(0, m A (x) + m B (x)) min(1, m A (x) + m B (x)) Table 1: Various denitions of operations on fuzzy sets Choice of appropriate operator depends on purpose of the system (we can see practical example in section 4). We can also dene set complement as a fuzzy set with membership function m A = 1 m A. We say that A B if m A (x) m B (x) for every x in U. Figure 1: An illustration of various sum and product operators 2

2.3. Other denitions Many classical concepts can be adapted to t fuzzy set theory. For example convex combination of two vectors can be generalized to fuzzy sets in the following manner. Definition Let A, B and Λ be fuzzy sets. The convex combination of A, B and Λ is denoted by (A, B; Λ) and is dened by its membership function m (A,B;Λ) = m A m Λ + m B m Λ Thanks to the denition we can see that convex combination of A, B and Λ satises the following property A B (A, B; Λ) A B We can also observe that, given any fuzzy set C satisfying A B C A B one can always nd Λ such that C = (A, B; Λ). We can generalize the concept of relation to embrace fuzziness as well. This extension will let us for example treat x y as fuzzy relation, which is a much more natural way than treating it as relation in the classic meaning. Definition A n-ary fuzzy relation R on sets X 1, X 2,..., X n is a fuzzy set (X 1 X 2... X n, m R ) where m R is a membership function of the form m R : X 1 X 2... X n [0; 1]. Of course we should also dene composition of binary relations B A as a fuzzy relation with the following membership function: m B A (x, y) = sup z U min(m A (x, z), m B (z, y)) Finally, we'll see how we can generalize convexity on fuzzy sets. Definition We say that fuzzy set A is convex i. is convex. Alternatively i. α [0; 1]. Γ α = {x m A (x) α} a 1, a 2 A. λ [0; 1]. m A (λa 1 + (1 λ)a 2 ) min(m A (a 1 ), m A (a 2 )) 2.4. Fuzzy mathematics Many other branches of fuzzy mathematics were developed on top of fuzzy set theory like fuzzy topology (Chang, 1968), group theory (Rosenfeld, 1971) or even graph theory (Kaufman, Rosenfeld, Yeh, 2000). Also, the concept of a fuzzy number has been introduced: Definition A fuzzy number is a convex fuzzy set A with a segmentally continuous membership function which satises!x U.m A (x) = 1. 3

3. Formal systems 3.1. T-norms Definition A binary operator T which is commutative, i.e. T (a, b) = T (b, a) Figure 2: Convex and nonconvex fuzzy set monotonic, i.e. if a c and b d, then T (a, b) T (c, d) associative, i.e. T (a, T (b, c)) = T (T (a, b), c) 1 is identity element, i.e. T (a, 1) = a is called a triangular norm (or a t-norm for short). We can also say that t-norm is strict if it is strictly monotone nilpotent if it is continuous and x (0; 1) n N.x n = 0 archimedean if it is continuous and x, y (0; 1). n N.x n y As we will shortly see, a t-norm properties make it a very good candidate to represent conjunction in our formal system. Classical conjunction is also commutative and associative. The property of monotonicity tells us that the overall 'truth value' becomes greater with the increase of the conjuncts' 'truth values'. The last property sets 1 as 'completely true' (and of course 0 as 'completely false'). But for our system to do its job conjunction is not enough. Let us dene yet another binary operator called residuum. 4

Definition Let be a left-continuous t-norm. We dene a residuum of, denoted, as x y := sup{z z x y} Let us take a look at some t-norms and their residua. We can see that they correspond to product operators on fuzzy sets Name t-norm residuum (value for x < y) Gödel min(x, y) y Product x y y/x Šukasiewicz { max(0, x + y 1) 1 x + y min(x, y) x + y > 1 Nilpotent max(1 x, y) 0 otherwise Table 2: t-norms and residua dened by them We can see that t-norm and it's residuum satisfy following conditions: (x y) = 1 i. x y (1 y) = y min(x, y) x (x y) (we can replace with = when is continuous) max(x, y) = min((x y) y, (y x) x) Now we want to see how to use those concepts in dening semantics of a formal logical system. 3.2. Monoidal t-norm logic (MTL) Monoidal t-norm logic (or MTL for short) is a system described by Esera and Godo in 2001. It has the following syntactic constructs: - implication & - strong conjunction - weak conjunction - bottom - negation, - equivalence, - (weak) disjunction and - top Now to dene semantics we are going to dene MTL algebra and its interpretation. A MTL algebra is an algebraic structure (L,,,,, 0, 1) which satises the following properties: (L,,, 0, 1) is a bounded lattice (0 and 1 are minimal and maximal elements) 5

(L,, 1) is a commutative monoid z x y i z (x y) x, y L.(x y) (y x) = 1 Furthermore, if L = [0; 1], = min, = max, than we call this structure a standard MTLalgebra. The interpretation of this structure is quite straightforward: t-norm corresponds to strong conjunction residuum corresponds to implication weak conjunction and disjunction correspond to lattice operators we dene: x y (x y) (y x) x x 0 Formula A is said to be valid in a MTL-algebra if e(a) = 1 for every evaluation e. If A is valid in any MTL-algebra, then it is called a tautology. Finally let us present a proof system we can use. Hilbert-style deduction system for fuzzy logic has only one rule (modus ponens) and 9 axioms: Modus ponens: (A&(A B)) B 1. (A B) ((B C) (A C)) 4c. A&(A B) A B 2. A&B A 5a. (A (B C)) (A&B C) 3. A&B B&A 5b. (A&B C) (A (B C)) 4a. A B A 6. ((A B) C) (((B A) C) C) 4b. A B B A 7. A Now let us show proof of a simple fact: A A, in order to get better understanding of the presented system. 1. ((A A)&A A A) ((A A A) ((A A)&A A)) (Axiom 1) 2. (A A)&A A A (Axiom 4c) 3. (A A A) ((A A)&A A) (modus ponens for 1 and 2) 4. A A A (Axiom 4a) 5. (A A)&A A (modus ponens for 3 and 4) 6. ((A A)&A A) ((A A) (A A)) (Axiom 5b) 7. (A A) (A A) (modus ponens for 5 and 6) 8. ((A A) (A A)) (((A A) (A A)) (A A)) (Axiom 6) 9. ((A A) (A A)) (A A) (modus ponens for 7 and 8) 10. (A A) (modus ponens for 7 and 9) Some other proof systems, like a hypersequent system for fuzzy logic, are presented in [3]. 6

3.3. Extensions and other logics As we may observe, negation dened in this way does not obey the law of double negation and because of that sometimes we want to introduce involutive negation, to our system. We can also extend it with strong disjunction dened as A B ( A& B). There are other ways of dening fuzzy logic of which the most important is Basic propositional fuzzy logic (BL) proposed by Hájek in 1998. The dierence between Bl and MTL is that in BL we need our t-norm to be continuous (not only left-continuous like in MTL). We can also talk about Gödel fuzzy logic, Šukasiewicz fuzzy logic etc. depending on the t-norm we choose. We can also dene predicate fuzzy logic or even intuitionistic fuzzy logic (IF). 4. Applications Fuzzy logic is mostly used in fuzzy controllers and AI. However, hardware controllers should be easily programmable. For this reason fuzzy logic is usually programmed with IF-THEN clauses or an equivalent concept (like fuzzy associative matrices). An example program has the following form: IF t e m p e r a t u r e IS cold OR h u m i d i t y IS dry THEN low fan s p e e d IF t e m p e r a t u r e IS n o r m a l THEN m e d i u m fan s p e e d IF t e m p e r a t u r e IS hot AND h u m i d i t y IS wet THEN high fan s p e e d There is no 'else' clause, and all of the options are evaluated. Many rules can be applied at once. To generate a nal response the program needs to use so called defuzzycation method function which, when given fuzzy sets and membership degrees corresponding to them, produces quantiable result. Let us show an example of the defuzzycation method, called Center of Gravity (or COG for short). What COG rst does is it translates input sets (in our case temperature-cold, humidity-dry and so on) into output sets (again, in our case fan speed-low and so on). For example let us consider rst clause in program shown above: IF t e m p e r a t u r e IS cold OR h u m i d i t y IS dry THEN low fan s p e e d Let x, y be current values of temperature and humidity respectively, also let m tl, m hd and m fl be membership functions of sets corresponding to low temperature, dry air and low fan speed. In GOC we take values m tl (x) and m hd (y) and then create new fuzzy set with membership function m fl (z) = min(m fl(z), max(m tl (x), m hd (y))) Of course other function then max can be applied depending on the choice of appropriate fuzzy operators. Also AND condition in the clause would make use of the product operator instead of sum operator. We can see illustration of this process in gure 3. 7

Figure 3: Translation of the input sets into the output sets. 8

Figure 4: Accumulating output sets and calculating centroid. Next we accumulate those new sets (there is one for each clause) by taking their sum and obtain yet another fuzzy set, which membership function we will denote by m acc. Finally we compute centroid of the area bounded by the plot of m acc. One can nd abscissa of the centroid using following formula: C x = xmacc(x)dx macc(x)dx Note that in most cases the integrals appearing in formula above, thanks to the common 'shape' of fuzzy sets, should be quite easy to compute. Obtained value C x is nal response of the COG method. There are many other commonly used methods of defuzzication, including: COA (center of area) FM (fuzzy mean) FOM (rst of maximum) Choice of appropriate method should be based on purpose of the system and past experience. 9

5. Bibliography [1] Lot A. Zadeh, "Fuzzy sets", Information and control vol 8. [2] Steven D. Kaehler, "Fuzzy Logic Tutorial", http://www.seattlerobotics.org/encoder/mar98/fuz/index.html [3] George Metcalfe, "Proof theory for propositional fuzzy logic", http://sitemason.vanderbilt.edu/les/faxpwi/thesis.ps 10