Formal fuzzy logic

From Citizendium
Revision as of 09:44, 18 September 2007 by imported>Giangiacomo Gerla (→‎Fuzzy logics: the semantics)
Jump to navigation Jump to search

Template:TOC-right Formal fuzzy logic, or "fuzzy logic in narrow sense", is a relatively new chapter of formal logic. Its aim is to represent predicates which are vague in nature as big, near, or similar (for example), and to formalize the reasonings involving these predicates. The notion of a fuzzy subset, proposed by L. A. Zadeh, plays a crucial role, since a vague predicate is interpreted by a fuzzy subset. In the sequel, we will write "fuzzy logic" instead of "formal fuzzy logic", but notice that in literature the name "fuzzy logic" comprises a large series of topics based on the notion of a fuzzy subset and which are usually devoted to applications.

More precisely, we can consider fuzzy logic as an evolution and an enlargement of multi-valued logic. Indeed, all the multi-valued logics defined in literature are also considered in fuzzy logic. Nevertheless, there are fuzzy logics such as similarity logic and necessity logic that are completely new topics and that have no truth-functional semantics. Moreover, fuzzy logic, as proposed by J. A. Goguen, J. Pavelka and many authors, is totally out of line with the tradition of multi-valued logic in the idea of deduction. Indeed, the notions of fuzzy inference rule and of approximate reasoning lead to define a deduction operator working on a fuzzy set of proper axioms (the available information) and giving the corresponding fuzzy subset of consequences.

Fuzzy logics: the semantics

We obtain the semantics for a fuzzy logic by interpreting the logical connectives by suitable operations in [0,1]. As an example, if are the logical connectives, then in Lukasievicz logic the corresponding operations are defined by the equations

x y = max{x+y-1,0}, x → y = max{1-x+y,1}, ~x = 1-x,

respectively. More in general, usually one assumes that is a continuous triangular norm, i.e. a continuous, associative, commutative, order preserving operation in [0,1] such that x 1 = 1 . Moreover, one defines → as the residuation operation, i.e. by setting x → y = sup{z | x z ≤ y} and ~ by setting ~x = x → 0 (see Hájek 1998, Novák et al. 1999 and Gottwald 2005). It is also possible to consider languages with logical constants to denote truth values. Once an interpretation of the logical connectives is given, the semantics of the corresponding propositional calculus is defined in a truth-functional way as usual. The semantics of the corresponding first order fuzzy logic is defined as in classical logic. The only difference is that the interpretation of a n-ary predicate symbol is an n-ary fuzzy relation in D, i.e. a map r from to [0,1]. This enables us to represent properties which are "vague" in nature. In the following we denote by L a first order language and by F the corresponding set of formulas.


Definition. Given a first order language L, a fuzzy interpretation is a pair (D,I) such that D is a nonempty set and I a map associating

- every operation name h with arity n with an n-ary operation I(h) in D,

- every constant c with an element I(c) in D

- every n-ary predicate name r with an n-ary fuzzy relation I(r) : DD in D.


In order to evaluate the fomulas in a given fuzzy interpretation, given a term t, we denote by the corresponding function we define as in classical logic.


Definition. Given a fuzzy interpretation (D,I), a formula α whose free variables are in and in D, we define the truth degree Val(I,α, of α by induction on the complexity of α by setting

Val(I,

Val(I,α β,) = Val(I,α, Val(I,β,

Val(I,αβ,) = Val(I,α,)→ Val(I,β,

Val(I, α, = ~(Val(I,α,

Val(I, xi α,) = supd DVal(I,α,.

As usual, if α is a closed formula, then its valuation does not depend on the elements and we write Val(I,α) instead of Val(I,α,. More in general, given any formula α, we denote by Val(I,α), the valuation of the universal closure of α.

Now, in defining the semantical notions we can consider the traditional approach inerithed from multi-valued logic and the Pavelka-style approach which is a characteristic of fuzzy logic.


Definition (Traditional approach). One says that a formula α is valid in a fuzzy interpretation (D,I) if Val(I,α) = 1. The formula α is logically true if it is valid in every fuzzy interpretation. Let T be a theory and α be a formula, then we write T α if every model of T is also a model of α. In such a case we say that α is a logical consequence of T.

Once we admit these definitions as the basic ones, given a deduction apparatus, a "standard" completeness theorem claims that the class of logically true formulas coincides with the class of provable formulas. An extended completeness theorem claims that a formula is a logical consequence of a theory T if and only if it is derivable from T. The notions of compactness and of effectivenes are not different from the classical ones.

Such an approach is perhaps not completely satisfactory. In fact in fuzzy logic we will elaborate (uncomplete) information on vague predicates (i.e. constraints on the truth values of the formulas) to obtain further information (inproved constraints on the truth values) on these formulas. A more appropriate definition was proposed by Pavelka.


Definition (Pavelka's approach). Consider a fuzzy subset s of formulas we interpret as the fuzzy subset of proper axioms. Then we say that a fuzzy interpretation (D,I) is a model of s, in brief (D,I) if Val(I,α)≥ s(α). The logical consequence operator is the map Lc : [0,1]F </math> → [0,1]F defined by setting

Lc(s)(α) = Sup{Val(I,α) : (D,I) s}.


Then the meaning of a fuzzy subset of proper axioms s is that for every sentence α, the value s(α) is a constraint" on the unknown truth value of α. More precisely s(α) is a lower bound for such a value. Again, the value Lc(s)(α) is a "constraint" on the unknown truth value of α. As a matter of fact it is the better constraint we can find given the information s.

The deduction apparatus: approximate reasonings

Once the logical consequence operator Lc is defined, we have to search for a "deduction apparatus" able to calculate Lc(s) in some "effective" way. As an example, by extending the Hilbert's aproach for classical logic, we can define a deduction apparatus by a fuzzy subset of formulas la, we call fuzzy subset of logical axioms, and by a set R of fuzzy inference rules. In turn, a fuzzy inference rule is a pair (sy,se) where sy, the syntactical part, is a partial n-ary operation in F (i.e. an inference rule in the usual sense) and se, the semantical part, is an n-ary operation in [0,1]. The meaning of an inference rule is:

- if we are able to prove at degree , respectively

- and we can apply sy to

- then we can prove at degree .

As an example, let be an operation in [0,1] able to interpret the conjunction. Then the fuzzy Modus Ponens is defined by assuming that the domain of sy is the set {(α, α→β: α,β are in F}, by setting sy(α, α→β) = β and by assuming that se(λ,μ) = λμ. This rule says that if we are able to prove α and α →β at degree λ and μ, respectively, then we can prove β at degree λμ. The fuzzy -introduction rule is a totally defined rule such that sy(α,β) = αβ and again se coincides with . This rule says that if we are able to prove α and β at degree λ and μ, respectively, then we can prove αβ at degree λμ.


Definition. A proof π of a formula α is a sequence of formulas such that = α, together with a sequence of related justifications. This means that, for every formula , we have to specify whether

i) is assumed as a logical axiom or;

ii) is assumed as a proper axiom or;

iii) is obtained by a rule (in this case we have to indicate also the rule and the formulas from used to obtain ).

The justifications are necessary to valuate the proofs. Indeed, let s be the fuzzy subset of proper axioms and, for every i ≤ m denote by π(i) the proof . Then the valuation Val(π,s) of π with respect to s is defined by induction on m by setting

if is assumed as a logical axiom

if is assumed as a proper axiom

Val(π,s) = if there is a fuzzy rule such that with .

Now, unlike the crisp deduction systems, in a fuzzy deduction system different proofs of a same formula α may give different contributions to the degree of validity of α. This suggests setting

D(s)(α)= Sup{Val(π,s)| π is a proof of α}.

This formula defines an operator, the deduction operator, able to associate every fuzzy subset of axiom s with the fuzzy subset D(s) of formulas deduced from s.


Definition. A fuzzy logic is axiomatizable if there is a fuzzy deduction system such that Lc = D.

Notice that under some natural hypotheses, a fuzzy propositional logic is axiomatizable if and only if the logical connectives are interpreted by continuous functions (see Biacino and Gerla 2002). As was shown in Hajek 1998, completeness results for first order fuzzy logic can be find if one adds a constant for every rational value in [0,1].

Paradoxes

The heap paradox

To show an example of reasoning in fuzzy logic we refer to the famous "heap paradox". Let n be a natural number and denote by Small(n) a sentence whose intended meaning is "a heap with n stones is small". Then it is natural to assume the validity of the atomic formula

(a) Small(1)

and, for every n, the validity of the formulas

(b) Small(n) Small(n+1).


On the other hand from these formulas we can prove that, given any natural number n, a heap with n stones is small. Indeed,


- from Small(1) and Small(1) Small(2) by MP we may state Small(2);


- from Small(2) and Small(2) Small(3) by MP we may state Small(3),

- from Small(n-1) and Small(n-1) Small(n) by MP we may state Small(n).


Obviously, a conclusion like Small(20.000) is contrary to our intuition in spite of the fact that the reasoning is correct and the premises appear very reasonable. Clearly, the core of such a paradox lies in the vagueness of the predicate " small" and therefore, as proposed by Goguen, we can refer to the notion of approximate reasoning to face it. Indeed it is a fact that everyone is convinced that the implications Small(n) Small(n+1) are near-true but not completely true, in general. We can try to "respect" this conviction by assigning to these formulas a truth value different from 1 (but very close to 1). Then, for example, we can express the axioms for the heap paradox as follows


Small(1) [to degree 1]

Small(2) [to degree 1]

...

Small(10.000) [to degree 1]

Small(10.000) Small(10.001) [to degree ]

Small(10.001) Small(10.002) [to degree ]

...


In accordance, the Heap Paradox argument can be restated as follows where we assume that is associative and we denote by the n-power of with respect to .


- Since Small(10.000) [to degree 1]


and


Small(10.000) Small(10.001) [to degree ]


we state


Small(10.001) [to degree ]


- since Small(10.001) [to degree ]


and


Small(10.001) Small(10.002) [to degree ]


we state


Small(10.002) [to degree ]


. . .


- since Small(10.000+n-1) [to degree ]


and


Small(10.000+n-1) Small(10.000+n) [to degree ]


we state


Small(10.000+n) [to degree ].


In particular, we can prove Small(10.000+10.000) at degree . Now, this is not paradoxical. Indeed if is the Lukasievicz triangular norm, then = max {}. As a consequence, we have that for every . Assume that then . In this way we get a formal representation of heap argument preserving its intuitive content but avoiding its paradoxical character.

The Poincaré paradox

(to be included)

The liar paradox

(to be included)

Fuzzy logics with a truth-functional semantics

Rational Pavelka logic

(to be included)

Basic Fuzzy Logic

(to be included)

Fuzzy logic with no semantics

Necessity logic

This very simple fuzzy logic is obtained by an obvious fuzzyfication of first order classical logic. Indeed, assume, for example, that the deduction apparatus of classical first order logic is presented by a suitable set Al of logical axioms, by the MP-rule and the Generalization rule and denote by the related consequence relation. Then a fuzzy deduction system is obtained by considering as fuzzy subset of logical axioms the characteristic function of Al and as fuzzy inference rules the extension of MP obtained by assuming that is the minimum operator . Moreover, an extension of the Generalization rule is obtained by assuming that if we prove at degree then we obtain at the same degree . Assume that D is the deduction operator of such a fuzzy logic and that s is a fuzzy set of proper axioms. Then one proves that for every logically true formula . Otherwise,

.

By recalling that the existential quantifier is interpreted by the supremum operator, such a formula arises from a multivalued valuation of the (metalogical) claim:

" is a consequence of the fuzzy subset s of axioms if there are formulas in s able to prove "

It is apparent that in such a case the vagueness originates from s, i.e., from the notion of "hypothesis". Moreover is not a truth degree but rather a degree of "preference" or "acceptability" for . For example, let T be a system of axioms for set theory and assume that the choice axiom CA does not depend on T. Then we can consider the fuzzy subset of axioms s defined by setting

if ,

if ,

otherwise.

A simple calculation shows that:

if we can prove from T, otherwise

if we can prove from T + CA, otherwise

.

Fuzziness in this case is not semantical in nature. Indeed, it is evident that the number is a degree of acceptability for and not a truth degree. In this sense, by recalling the Euclidean distinction between axiom and postulate, perhaps it's better to say s is the fuzzy subset of the accepted postulates. Thus, despite the fact that no vague predicate is considered in set theory, in the metalanguage we can consider a vague predicate as "is acceptable" and to represent it by a suitable fuzzy subset s. Equivalently, we can interpret as the degree of preference for since the only reason we assign to CA the degree 0.8 instead of 1 is that we do not like to use CA.

(to be completed)

Similarity logic

In accordance with the ideas of M. S. Ying [1994] we can extend necessity logic by introducing a similarity relation among the predicates (see also Biacino, Gerla, Ying [2002]). As an example, consider an inference like

1. x is a thriller x good for me +

2. b is a detective story +

3. "detective story" is synonymous of "thriller"

therefore

"b is good for me".

Now the synonymy is a vague notion we can represent by a suitable similarity e in the set W of English worlds, i.e. a fuzzy relation e such that

(a) e(x,x) = 1 (reflexivity),

(b) e(x,z) e(z,y) ≤ e(x,y) (transitivity),

(c) e(x,y) = e(y,x) (symmetry).

Also, as it is usual in fuzzy logic, it is natural to admit that the truth degree of the conclusion "b is good for me" depends on the degree of similarity between the predicates "detective story" and "thriller", obviously. The structure of the corresponding fuzzy inference rule is:

if α was proven at degree λ

and α’→ β at degree μ

then

β is proven at degree λ μ e(α,α’).

Every inference rule can be extended in a similar way, i.e. by relaxing the precise matching of the identity with the approximate matching of a similarity. These ideas are also on the basis of a similarity based logic programming (see Formato, Gerla Sessa [2000]).

Fuzzy logic programming

Effectiveness

Effectiveness for fuzzy subsets

The notions of a "decidable subset" and "recursively enumerable subset" are basic ones for classical mathematics and classical 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 fuzzy Turing machine, Markov normal fuzzy algorithm and fuzzy program. Successively, L. Biacino and G. Gerla proposed the following definition where Ü denotes the set of rational numbers in [0,1] and is the complement of the fuzzy subset defined by setting .

Definition A fuzzy subset μ : S [0,1] of a set S is recursively enumerable if a recursive map h : S×N Ü exists such that, for every x in S, the function h(x,n) is increasing with respect to n and μ(x) = lim h(x,n). We say that μ is decidable if both μ and its complement –μ are recursively enumerable.

An extension of such a theory to the general case of the L-subsets is proposed in G. Gerla (2006) where one refers to the theory of effective domains. 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).

Effectiveness for fuzzy logic

Define the set Val of valid formulas as the set of formulas assuming constantly value equal to 1. Then it is possible to prove that among the usual first order logics only Goedel logic has a recursively enumerable set of valid formulas. In the case of Lukasiewicz and product logic, for example, Val is not recursively enumerable (see B. Scarpellini (1962)). Such a fact was extensively examined in the book of Hajek. Neverthless, from these results we cannot conclude that these logics are not effective and therefore that an axiomatization is not possible. Indeed, if we refer to the just exposed notion of effectiveness for fuzzy sets, then 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 utilize the notion of recursively enumerable fuzzy subset to find an extension of Gödel’s theorems to fuzzy logic.

Is fuzzy logic a proper extension of classical logic ?

Obviously, the question of the connection between classical and fuzzy logic arises. Now, we can consider this question from two point of views. Firstly, the interpretation of the logical connectives in fuzzy logic is conservative. This means that these interpretations coincide with the classical ones in the case we confine ourselves to truth values in {0,1}. So, in such a sense fuzzy logic is a conservative proper extension of classical logic. On the other hand fuzzy logic is defined by using elementary notions of mathematics and therefore it is a (small) part of classical logic. From such a point of view, differently from intuitionistic logic, fuzzy logic is not an alternative to classical mathematics. Rather, its relation with classical mathematics is similar in nature with the one between recursive and classical mathematics.

See also

Bibliography

  • Biacino L., Gerla G., Ying M. S.: Approximate reasoning based on similarity, Math. Log. Quart., 46 (2000), 77-86.
  • Biacino L., Gerla G., Fuzzy logic, continuity and effectiveness, Archive for Mathematical Logic, 41, (2002), 643-667.
  • Chang C. C.,Keisler H. J., Continuous Model Theory, Princeton University Press, Princeton, 1996.
  • Cignoli R., D’Ottaviano I. M. L. , Mundici D. , Algebraic Foundations of Many-Valued Reasoning. Kluwer, Dordrecht, 1999.
  • Elkan C.. The Paradoxical Success of Fuzzy Logic. November 1993. Available from Elkan's home page.
  • Hájek P., Metamathematics of fuzzy logic. Kluwer 1998.
  • Hájek P., Fuzzy logic and arithmetical hierarchy, Fuzzy Sets and Systems, 3, (1995), 359-363.
  • Hájek P., Novák V., The sorites paradox and fuzzy logic, Internat. J. General Systems, 32 (2003) 373-383.
  • Klir G. and Folger T., Fuzzy Sets, Uncertainty, and Information (1988), ISBN 0-13-345984-5.
  • Klir G. and Bo Yuan, Fuzzy Sets and Fuzzy Logic (1995) ISBN 0-13-101171-5
  • Formato F., Gerla G., Sessa M., Similarity-based unification, Fundamenta Informaticae, 41 (2000), 393-414.
  • Gerla G., Effectiveness and Multivalued Logics, Journal of Symbolic Logic, 71 (2006) 137-162.
  • Goguen J. A., The logic of inexact concepts, Synthese, 19 (1968/69) 325-373.
  • Gottwald S., A Treatise on Many-Valued Logics, Studies in Logic and Computation, Research Studies Press, Baldock, 2001.
  • Gottwald S., Mathematical fuzzy logic as a tool for the treatment of vague information, Information Sciences, 72, (2005) 41-1.
  • Montagna F., Three complexity problems in quantified fuzzy logic. Studia Logica, 68,(2001), 143-152.
  • Novák V., Perfilieva I, Mockor J., Mathematical Principles of Fuzzy Logic, Kluwer Academic Publishers, Dordrecht, (1999).
  • Santos E. S., Fuzzy algorithms, Inform. and Control, 17,(1970), 326-339.
  • Pavelka, On fuzzy logic, I-III, Zeitschr. Math. Logik Grundl. Math., 25, (1979), 45-52, 119-134, 447-464.
  • Scarpellini B., Die Nichaxiomatisierbarkeit des unendlichwertigen Prädikatenkalküls von Łukasiewicz, J. of Symbolic Logic, 27,(1962), 159-170.
  • Wiedermann J. , Characterizing the super-Turing computing power and efficiency of classical fuzzy Turing machines, Theor. Comput. Sci. 317, (2004), 61-69.
  • Ying M. S., A logic for approximate reasoning, J. Symbolic Logic, 59 (1994).
  • Zadeh L. A., Fuzzy Sets, Information and Control, 8 (1965) 338­-353.
  • Zadeh L. A., Fuzzy algorithms, Information and Control, 5,(1968), 94-102.
  • Zimmermann H., Fuzzy Set Theory and its Applications (2001), ISBN 0-7923-7435-5.