# Fuzzy logic

**Fuzzy logic**is a form ofmulti-valued logic derived fromfuzzy set theory to deal withreasoning that is approximate rather than precise. Just as infuzzy set theory the set membership values can range (inclusively) between 0 and 1, in fuzzy logic the degree of truth of a statement can range between 0 and 1 and is not constrained to the two truth values {true, false} as in classicpredicate logic . [*Novák, V., Perfilieva, I. and Močkoř, J. (1999) "Mathematical principles of fuzzy logic" Dodrecht: Kluwer Academic. ISBN 0-7923-8595-0*] And when "linguistic variables" are used, these degrees may be managed by specific functions, as discussed below.The term "fuzzy logic" emerged in the development of the theory of fuzzy sets by

Lotfi Zadeh [*cite web |url=http://plato.stanford.edu/entries/logic-fuzzy/ |title=Fuzzy Logic |accessdate=2008-09-29 |work=Stanford Encyclopedia of Philosophy |publisher=Stanford University |date=2006-07-23*] . The first paper on Fuzzy Logic (defined as a multivalued logic based upon set theory) was published by R.H. Wilkinson in 1963 following his first proposals in his 1961 Electrical Engineering master thesis. [*Wilkinson, R.H. (1963). "A method of generating functions of several variables using analog diode logic". IEEE Transactions on Electronic Computers. EC12, 112-129*] He was the first one to redefine the earlier multivalued logics in terms of set theory. The main purpose of his paper was to show how any mathematical function could be simulated using hardwired analog electronic circuits based upon what he called analog logic. He did this by first creating various linear voltage ramps which were then selected in a "logic block" using diodes and resistor circuits which implemented the maximum and minimum Fuzzy Logic rules of the INCLUSIVE OR and the AND operations respectively. He called his logic analog logic.In 1965

Lotfi Zadeh (then an Electrical Engineering systems professor) axiomatized the logic of Wilkinson without the electrical circuits and without giving Wilkinson any credit. [*Zadeh, L.A. (1965). "Fuzzy sets", Information and Control 8 (3): 338-353*] Fuzzy Logic has been applied to diverse fields fromcontrol theory toartificial intelligence , yet still remains controversial among moststatistician s who preferprobabilistic logic Fact|date=September 2008 and some control engineers who prefer traditional two valued logic.Fact|date=September 2008**Degrees of truth**Both

degrees of truth and probabilities range between 0 and 1 and hence may seem similar at first. However, they are distinct conceptually; truth represent membership in vaguely defined sets, not "likelihood" of some event or condition as in probability theory. For example, let a 100-ml glass contain 30 ml of water. Then we may consider two concepts: Empty and Full. The meaning of each of them can be represented by a certain fuzzy set. Then one might define the glass as being 0.7 empty and 0.3 full. Note that the concept of emptiness would be subjective and thus would depend on the observer or designer. Another designer might equally well design a set membership function where the glass would be considered full for all values down to 50 ml. It is essential to realize that fuzzy logic uses truth degrees as a mathematical model of the vagueness phenomenon while probability is a mathematical model of randomness.A probabilistic setting would first define a

scalar variable for the fullness of the glass, and second, conditional distributions describing the probability that someone would call the glass full given a specific fullness level. This model, however, has no sense without accepting occurrence of some event, e.g. that after a few minutes, the glass will be half empty. Note that the conditioning can be achieved by having a specific observer that randomly selects the label for the glass, a distribution over deterministic observers, or both. Consequently, probability has nothing in common with fuzziness, these are simply different concepts which superficially seem similar because of using the same interval of real numbers [0, 1] .**Applying truth values**A basic application might characterize subranges of a continuous variable. For instance, a temperature measurement for anti-lock brakes might have several separate membership functions defining particular temperature ranges needed to control the brakes properly. Each function maps the same temperature value to a truth value in the 0 to 1 range. These truth values can then be used to determine how the brakes should be controlled.

In this image, the meaning of the expressions "cold", "warm", and "hot" is represented by functions mapping a temperature scale. A point on that scale has three "truth values" — one for each of the three functions. The vertical line in the image represents a particular temperature that the three arrows (truth values) gauge. Since the red arrow points to zero, this temperature may be interpreted as "not hot". The orange arrow (pointing at 0.2) may describe it as "slightly warm" and the blue arrow (pointing at 0.8) "fairly cold".

**Linguistic variables**While variables in mathematics usually take numerical values, in fuzzy logic applications, the non-numeric "linguistic variables" are often used to facilitate the expression of rules and facts. [

*Zadeh, L. A. et al. 1996 "Fuzzy Sets, Fuzzy Logic, Fuzzy Systems", World Scientific Press, ISBN 9810224214*]A linguistic variable such as "age" may have a value such as "young" or its antonym "old". However, the great utility of linguistic variables is that they can be modified via linguistic hedges applied to primary terms. The linguistic hedges can be associated with certain functions. For example, L. A. Zadeh proposed to take the square of the membership function. This model, however, does not work properly. For more details, see the references.

**An example of fuzzy reasoning**Fuzzy Set Theory defines Fuzzy Operators on Fuzzy Sets. The problem in applying this is that the appropriate Fuzzy Operator may not be known. For this reason, Fuzzy logic usually uses IF-THEN rules, or constructs that are equivalent, such as fuzzy associative matrices.

Rules are usually expressed in the form:

IF "variable" IS "property" THEN "action"For example, an extremely simple temperature regulator that uses a fan might look like this:

IF temperature IS very cold THEN stop fan

IF temperature IS cold THEN turn down fan

IF temperature IS normal THEN maintain level

IF temperature IS hot THEN speed up fanNotice there is no "ELSE". All of the rules are evaluated, because the temperature might be "cold" and "normal" at the same time to different degrees.

The AND, OR, and NOT operators of

boolean logic exist in fuzzy logic, usually defined as the minimum, maximum, and complement; when they are defined this way, they are called the "Zadeh operators", because they were first defined as such in Zadeh's original papers. So for the fuzzy variables x and y:NOT x = (1 - truth(x))

x AND y = minimum(truth(x), truth(y))

x OR y = maximum(truth(x), truth(y))

There are also other operators, more linguistic in nature, called "hedges" that can be applied. These are generally adverbs such as "very", or "somewhat", which modify the meaning of a set using a mathematical formula.

In application, the

programming language Prolog is well geared to implementing fuzzy logic with its facilities to set up a database of "rules" which are queried to deduct logic. This sort of programming is known aslogic programming .Once fuzzy relations are defined, it is possible to develop fuzzy

relational database s. The first fuzzy relational database, FRDB, appeared in Maria Zemankova's dissertation. After, some other models arose like the Buckles-Petry model, the Prade-Testemale Model, the Umano-Fukami model or the GEFRED model by J.M.Medina , M.A.Vila et al. In the context of fuzzy databases, some fuzzy querying languages have been defined, highlighting theSQLf by P.Bosc et al. and theFSQL by J.Galindo et al. These languages define some structures in order to include fuzzy aspects in theSQL statements, like fuzzy conditions, fuzzy comparators, fuzzy constants, fuzzy constraints, fuzzy thresholds, linguistic labels and so on.**Other examples*** If a male is 1.8 meters, consider him as tall:IF male IS true AND height >= 1.8 THEN is_tall IS true; is_short IS false

* The fuzzy rules do not make sharp distinction between tall and short, that is not so realistic:IF height <= medium male THEN is_short IS agree somewhat

IF height >= medium male THEN is_tall IS agree somewhatIn the fuzzy case, there are no such heights like 1.83 meters, but there are fuzzy values, like the following assignments:

dwarf male = [0, 1.3] m

short male = [1.3, 1.5] m

medium male = [1.5, 1.8] m

tall male = [1.8, 2.0] m

giant male > 2.0 mFor the

consequent , there are also not only two values, but five, say:agree not = 0

agree little = 1

agree somewhat = 2

agree a lot = 3

agree fully = 4In the binary, or "crisp", case, a person of 1.79 meters of height is considered medium. If another person is 1.8 meters or 2.25 meters, these persons are considered tall.

The crisp example differs deliberately from the fuzzy one. We did not put in the

antecedent IF male >= agree somewhat AND ...

as gender is often considered as a binary information. So, it is not so complex as being tall.

**Mathematical fuzzy logic**In

mathematical logic , there are severalformal system s of "fuzzy logic"; most of them belong among so-calledt-norm fuzzy logics .**Propositional fuzzy logics**The most important propositional fuzzy logics are:

* Monoidal t-norm-based propositional fuzzy logic MTL is an axiomatization of logic whereconjunction is defined by a left continuous t-norm, and implication is defined as the residuum of the t-norm. Its models correspond toMTL-algebra s that are prelinear commutative bounded integralresiduated lattice s.

* Basic propositional fuzzy logic BL is an extension of MTL logic whereconjunction is defined by a continuous t-norm, and implication is also defined as the residuum of the t-norm. Its models correspond toBL-algebra s.

* Łukasiewicz fuzzy logic is an extension of basic fuzzy logic BL where standard conjunction is the Łukasiewicz t-norm. It has the axioms of basic fuzzy logic plus an axiom of double negation, and its models correspond toMV-algebra s.

* Gödel fuzzy logic is a special case of basic fuzzy logic where conjunction isGödel t-norm. It has the axioms of basic logic plus an axiom of idempotence of conjunction, and its models are calledG-algebra s.

*Product fuzzy logic is a special case of basic fuzzy logic where conjunction is product t-norm. It has the axioms of basic logic plus another axiom, and its models are calledproduct algebra s.

*Fuzzy logic with evaluated syntax (sometimes also called Pavelka's logic), denoted by EVŁ, is a further generalization of mathematical fuzzy logic. While the above kinds of fuzzy logic have traditional syntax and many-valued semantics, in EVŁ is evaluated also syntax. This means that each formula has an evaluation. Axiomatization of EVŁ stems from Łukasziewicz fuzzy logic. A generalization of classical Godel completeness theorem is provable in EVŁ.**Predicate fuzzy logics**These extend the above-mentioned fuzzy logics by adding universal and

existential quantifier s in a manner similar to the way thatpredicate logic is created frompropositional logic . The semantics of the universal resp. existential quantifier int-norm fuzzy logics is theinfimum resp.supremum of the truth degrees of the instances of the quantified subformula.**Higher-order fuzzy logics**These logics, called

fuzzy type theories , extend predicate fuzzy logics to be able to quantify also predicates and higher order objects. A fuzzy type theory is a generalization of classical simple type theory introduced by B. Russell [*Russell, B. Mathematical logic as based on the theory of types, American Journal of Mathematics 30 (1908) 222-262.*] and mathematically elaborated by A. Church [*Church, A. A formulation of the simple theory of types, J. Symb. Logic 5 (1940) 56--68.*] and L. Henkin [*Henkin, L. Completeness in the theory of types, J. Symb. Logic 15 (1950) 81-91.*] .**Decidability issues for fuzzy logic**The notions of a "decidable subset" and "

recursively enumerable subset" are basic ones forclassical mathematics andclassical logic . Then, the question of a suitable extension of such concepts to fuzzy set theory arises. A first proposal in such a direction was made by E.S. Santos by the notions of "fuzzyTuring machine ", "Markov normal fuzzy algorithm" and "fuzzy program". Successively, L. Biacino and G. Gerla showed that such a definition is not adequate and therefore proposed the following one. "Ü" denotes the set of rational numbers in [0,1] .A fuzzy subset "s" : "S" $ightarrow$ [0,1] of a set "S" is "recursively enumerable" if a recursive map "h" : "S"×"N" $ightarrow$"Ü" exists such that, for every "x" in "S", the function "h"("x","n") is increasing with respect to "n" and "s"("x") = lim "h"("x","n").We say that "s" is "decidable" if both "s" and its complement –"s" are recursively enumerable. An extension of such a theory to the general case of the L-subsets is proposed in Gerla 2006.The proposed definitions are well related with fuzzy logic. Indeed, the following theorem holds true (provided that the deduction apparatus of the fuzzy logic satisfies some obvious effectiveness property).**Theorem.**Any axiomatizable fuzzy theory is recursively enumerable. In particular, the fuzzy set of logically true formulas is recursively enumerable in spite of the fact that the crisp set of valid formulas is not recursively enumerable, in general. Moreover, any axiomatizable and complete theory is decidable.It is an open question to give supports for a "Church thesis" for fuzzy logic claiming that the proposed notion of recursive enumerability for fuzzy subsets is the adequate one. To this aim, further investigations on the notions of fuzzy grammar and fuzzy Turing machine should be necessary (see for example Wiedermann's paper). Another open question is to start from this notion to find an extension of

Gödel ’s theorems to fuzzy logic.**Application areas*** Automobile and other vehicle subsystems, such as

automatic transmissions , ABS andcruise control (e.g. Tokyomonorail )

* Air conditioners

* The Massive engine used in the "Lord of the Rings" films, which helped huge scale armies create random, yet orderly movements

*Camera s

*Digital image processing , such asedge detection

*Rice cooker s

*Dishwasher s

*Elevator s

*Washing machine s and otherhome appliance s

*Video game artificial intelligence

*Language filter s on message boards andchat room s for filtering out offensive text

*Pattern recognition inRemote Sensing

* Fuzzy logic has also been incorporated into somemicrocontroller s andmicroprocessor s, for instance, theFreescale 68HC12 .**Controversies**;Fuzzy logic is the same as "imprecise logic". :Fuzzy logic is not any less precise than any other form of logic: it is an organized and mathematical method of handling "inherently" imprecise concepts. The concept of "coldness" cannot be expressed in an equation, because although temperature is a quantity, "coldness" is not. However, people have an idea of what "cold" is, and agree that there is no sharp cutoff between "cold" and "not cold", where something is "cold" at N degrees but "not cold" at N+1 degrees — a concept classical logic cannot easily handle due to the

principle of bivalence . The result has no set answer so it is believed to be a 'fuzzy' answer. Fuzzy logic simply provides a mathematical model of the vagueness which is manifested in the above example.;Fuzzy logic is a new way of expressing probability. :Fuzzy logic and probability are different ways of expressing uncertainty. While both fuzzy logic and probability theory can be used to represent subjective belief, fuzzy set theory uses the concept of fuzzy set membership (i.e. "how much" a variable is in a set), probability theory uses the concept of

subjective probability (i.e. "how probable" do I think that a variable is in a set). While this distinction is mostly philosophical, the fuzzy-logic-derived possibility measure is inherently different from theprobability measure , hence they are not "directly" equivalent. However, manystatisticians are persuaded by the work ofBruno de Finetti that only one kind of mathematical uncertainty is needed and thus fuzzy logic is unnecessary. On the other hand,Bart Kosko argues that probability is a subtheory of fuzzy logic, as probability only handles one kind of uncertainty. He also claims to have proven a derivation ofBayes' theorem from the concept of fuzzy subsethood. Lotfi Zadeh argues that fuzzy logic is different in character from probability, and is not a replacement for it. He fuzzified probability tofuzzy probability and also generalized it to what is calledpossibility theory . Other approaches to uncertainty includeDempster-Shafer theory andrough set s. :Note, however, that fuzzy logic is not controversial to probability but rather complementary (cf. [*Novák, V. Are fuzzy sets a reasonable tool for modeling vague phenomena?,Fuzzy Sets and Systems 156 (2005) 341--348.*] );Fuzzy logic will be difficult to scale to larger problems.:This criticism is mainly because there exist problems with conditional possibility, the fuzzy set theory equivalent of conditional probability (see Halpern (2003), Section 3.8). This makes it difficult to perform inference. However there have not been many studies comparing fuzzy-based systems with probabilistic ones.

**See also**

*Artificial intelligence

*Artificial neural network

*Neuro-fuzzy

*Biologically-inspired computing

*Combs method

*Concept mining

*Contextualism

*Control system

*Defuzzification

*Dynamic logic

*Expert system

*False dilemma

*Fuzzy subalgebra

*Fuzzy associative matrix

*FuzzyCLIPS expert system

*Fuzzy concept

*Fuzzy Control Language

*Fuzzy control system

*Fuzzy electronics

*Fuzzy set

*Machine learning

*Multi-valued logic

*Paradox of the heap

*Perspectivism

*Pattern recognition

*Rough set **Notes****Bibliography***

*

*

*

*

*

*

*

*

*

*

*

*

*

*

*

*

*

*

*Citation | last1=Pu | first1=Pao Ming | last2=Liu | first2=Ying Ming | title=Fuzzy topology. I. Neighborhood structure of a fuzzy point and Moore-Smith convergence | year=1980 | journal=Journal of Mathematical Analysis and Applications | issn=0022-247X | volume=76 | issue=2 | pages=571–599

*

*

*

*

*

*

*

*

***External links****Additional articles**

* [*http://en.citizendium.org/wiki/Formal_fuzzy_logic Formal fuzzy logic*] - article atCitizendium

* [*http://www.scholarpedia.org/article/Fuzzy_Logic Fuzzy Logic*] - article atScholarpedia

* [*http://www.scholarpedia.org/article/Modeling_with_words Modeling With Words*] - article atScholarpedia

* [*http://plato.stanford.edu/entries/logic-fuzzy/ Fuzzy logic*] - article atStanford Encyclopedia of Philosophy

* [*http://will.dwinnell.com/will/Putting%20Fuzzy%20Logic%20to%20Work.pdf Putting Fuzzy Logic To Work*] "PC AI" Mar/Apr, 2002 An Introduction to Fuzzy Rules

* [*http://blog.peltarion.com/2006/10/25/fuzzy-math-part-1-the-theory Fuzzy Math*] - Beginner level introduction to Fuzzy Logic.

*Fuzzy Logic and theInternet of Things : [*http://www.i-o-t.org/post/WEB_3 I-o-T*]**Links pages**

* [*http://www.lcc.uma.es/~ppgg/FSQL/ Web page about FSQL*] : References and links aboutFSQL **Software & tools**

* [*http://sourceforge.net/projects/pyfuzzylib pyFuzzyLib: Open Source Library to write software with fuzzy logic (Python)*]

* [*http://www.timtomtam.de/rockonfuzzy RockOn Fuzzy: Open Source Fuzzy Control And Simulation Tool (Java)*]

* [*http://www.fuzzytech.com Free Educational Software and Application Notes*]

* [*http://www.openfuzzymath.org InrecoLAN FuzzyMath*] , Fuzzy logic add-in for OpenOffice.org Calc

* [*http://jfuzzylogic.sourceforge.net/ JFuzzyLogic: Open Source Fuzzy Logic Package + FCL (sourceforge, java)*]

* [*http://www.metarule.com Open fuzzy logic based inference engine and data mining web service based on Metarule*]

* [*http://mbfuzzit.sourceforge.net Open Source Software "mbFuzzIT" (Java)*]**Tutorials**

* [*http://www.jimbrule.com/fuzzytutorial.html Fuzzy Logic Tutorial*]

* [*http://www.calvin.edu/~pribeiro/othrlnks/Fuzzy/home.htm Another Fuzzy Logic Tutorial*] with MATLAB/Simulink Tutorial

* [*http://www.byond.com/members/DreamMakers?command=view_post&post=37966 Fuzzy logic in your game*] - tutorial aimed towards game programming.

* [*http://www.answermath.com/fuzzymath.htm Simple test to check how well you understand it*]**Applications**

* [*http://econpapers.repec.org/paper/amrwpaper/398.htm Research article that describes how industrial foresight could be integrated into capital budgeting with intelligent agents and Fuzzy Llogic*]

* [*http://econpapers.repec.org/paper/pramprapa/4328.htm A doctoral dissertation describing how Fuzzy Logic can be applied in profitability analysis of very large industrial investments*]**Research Centres**

* [*http://irafm.osu.cz/ Institute for Reserarch and Applications of Fuzzy Modeling*]

* [*http://www.softcomputing.es/en/home.php European Centre for Soft Computing*]

*Wikimedia Foundation.
2010.*

### Look at other dictionaries:

**fuzzy logic**— ☆ fuzzy logic n. 〚< fuzzy (set), coined (1965) by L. A. Zadeh, U.S. computer scientist〛 a type of logic used in computers and other electronic devices for processing imprecise or variable data: in place of the traditional binary values, fuzzy… … Universalium**fuzzy logic**— ☆ fuzzy logic n. [< fuzzy (set), coined (1965) by L. A. Zadeh, U.S. computer scientist] a type of logic used in computers and other electronic devices for processing imprecise or variable data: in place of the traditional binary values, fuzzy… … English World dictionary**fuzzy logic**— fuzzy sets/fuzzy logic … Philosophy dictionary**fuzzy logic**— n [U] technical a type of ↑logic which is used to try to make computers think like humans … Dictionary of contemporary English**fuzzy logic**— noun uncount COMPUTING a type of LOGIC used in computers that are designed to behave like humans … Usage of the words and phrases in modern English**Fuzzy Logic**— Fuzzylogik (engl. fuzzy ‚verschwommen‘, fuzzy logic, fuzzy theory ‚verschwommene Logik‘ bzw. ‚verschwommene Theorie‘) ist eine Theorie, welche vor allem für die Modellierung von Unsicherheiten und Unschärfen von umgangssprachlichen Beschreibungen … Deutsch Wikipedia**fuzzy logic**— noun a form of mathematical logic in which truth can assume a continuum of values between 0 and 1 • Hypernyms: ↑symbolic logic, ↑mathematical logic, ↑formal logic * * * fuzzy logic noun A form of logic used in computers in which truth values… … Useful english dictionary**Fuzzy Logic**— Fuz|zy|lo|gic, die; , Fuz|zy Lo|gic, die; [ fazilɔd̮ʒɪk , auch: fa… lɔ…]: Fuzzylogik. * * * Fuzzy Logic [dt. »fusselige Logik«, »unscharfe Logik«], eine Erweiterung der klassischen, booleschen Logik, bei der anstelle von nur zwei… … Universal-Lexikon**Fuzzy logic**— Logique floue La logique floue (fuzzy logic, en anglais) est une technique utilisée en intelligence artificielle. Elle a été formalisée par Lotfi Zadeh en 1965 et utilisée dans des domaines aussi variés que l automatisme (freins ABS), la… … Wikipédia en Français**fuzzy logic**— A system which mathematically models complex relationships which are usually handled in a vague manner by language. Under the title of Fuzzy Logic falls formal fuzzy logic (a multi valued form of logic), and fuzzy sets. Fuzzy sets measure the… … Financial and business terms