Some Properties of Fuzzy Logic

Similar documents
Propositional Logic: Models and Proofs

Propositional Calculus: Formula Simplification, Essential Laws, Normal Forms

First-order resolution for CTL

Propositional Logic Language

Reverse mathematics of some topics from algorithmic graph theory

Chapter 11: Automated Proof Systems

Propositional and Predicate Logic - V

Deductive Systems. Lecture - 3

Propositional and Predicate Logic - II

Introduction to Metalogic

Propositional Resolution Introduction

Classical Propositional Logic

Computational Logic. Davide Martinenghi. Spring Free University of Bozen-Bolzano. Computational Logic Davide Martinenghi (1/30)

Propositional Resolution

Basing Decisions on Sentences in Decision Diagrams

The Calculus of Computation: Decision Procedures with Applications to Verification. Part I: FOUNDATIONS. by Aaron Bradley Zohar Manna

Chapter 11: Automated Proof Systems (1)

Chapter 3: Propositional Calculus: Deductive Systems. September 19, 2008

Truth-Functional Logic

Knowledge base (KB) = set of sentences in a formal language Declarative approach to building an agent (or other system):

On Urquhart s C Logic

Přednáška 12. Důkazové kalkuly Kalkul Hilbertova typu. 11/29/2006 Hilbertův kalkul 1

3 Propositional Logic

CHAPTER 10. Gentzen Style Proof Systems for Classical Logic

Propositional Calculus - Deductive Systems

Decision Procedures for Satisfiability and Validity in Propositional Logic

THE COMPLETENESS OF PROPOSITIONAL RESOLUTION A SIMPLE AND CONSTRUCTIVE PROOF

TR : Tableaux for the Logic of Proofs

Propositional and Predicate Logic. jean/gbooks/logic.html

Computation and Logic Definitions

COMP219: Artificial Intelligence. Lecture 20: Propositional Reasoning

Version January Please send comments and corrections to

Section 1.2 Propositional Equivalences. A tautology is a proposition which is always true. A contradiction is a proposition which is always false.

Hypersequent Calculi for some Intermediate Logics with Bounded Kripke Models

KRIPKE S THEORY OF TRUTH 1. INTRODUCTION

6. Logical Inference

Section 2.2 Set Operations. Propositional calculus and set theory are both instances of an algebraic system called a. Boolean Algebra.

Measuring the Good and the Bad in Inconsistent Information

Incomplete version for students of easllc2012 only. 6.6 The Model Existence Game 99

Chapter 4 Optimized Implementation of Logic Functions

Formal (natural) deduction in propositional logic

Description Logics. Deduction in Propositional Logic. franconi. Enrico Franconi

Propositional Logic. Testing, Quality Assurance, and Maintenance Winter Prof. Arie Gurfinkel

Applied Logic. Lecture 1 - Propositional logic. Marcin Szczuka. Institute of Informatics, The University of Warsaw

4 The semantics of full first-order logic

Chapter 3 Deterministic planning

cis32-ai lecture # 18 mon-3-apr-2006

Prime and irreducible elements of the ring of integers modulo n

Predicate Logic - Semantic Tableau

Language of Propositional Logic

Artificial Intelligence. Propositional Logic. Copyright 2011 Dieter Fensel and Florian Fischer

Tecniche di Verifica. Introduction to Propositional Logic

Intelligent Systems. Propositional Logic. Dieter Fensel and Dumitru Roman. Copyright 2008 STI INNSBRUCK

Boolean Algebra CHAPTER 15

Exercises 1 - Solutions

Kruskal s Theorem Rebecca Robinson May 29, 2007

UNIT-I: Propositional Logic

Propositional logic. First order logic. Alexander Clark. Autumn 2014

Lecture Notes 1 Basic Concepts of Mathematics MATH 352

Propositional Logic. Spring Propositional Logic Spring / 32

Logic as a Tool Chapter 1: Understanding Propositional Logic 1.1 Propositions and logical connectives. Truth tables and tautologies

Propositional and Predicate Logic - IV

Nested Epistemic Logic Programs

Mathematical Preliminaries. Sipser pages 1-28

KE/Tableaux. What is it for?

Taming Implications in Dummett Logic

2.5.2 Basic CNF/DNF Transformation

On the Complexity of the Reflected Logic of Proofs


First-Order Logic First-Order Theories. Roopsha Samanta. Partly based on slides by Aaron Bradley and Isil Dillig

The Strength of Multilinear Proofs

A brief introduction to Logic. (slides from

Chapter 4. Declarative Interpretation

Logic: Propositional Logic (Part I)

CS 486: Lecture 2, Thursday, Jan 22, 2009

Semantic Metatheory of SL: Mathematical Induction

Advanced Topics in LP and FP

Reduced Ordered Binary Decision Diagrams

The Importance of Being Formal. Martin Henz. February 5, Propositional Logic

On Sequent Calculi for Intuitionistic Propositional Logic

Compact subsets of the Baire space

RELATIONS BETWEEN PARACONSISTENT LOGIC AND MANY-VALUED LOGIC

Propositional Logic: Part II - Syntax & Proofs 0-0

Handbook of Logic and Proof Techniques for Computer Science

Infinite Strings Generated by Insertions

Sequent calculi of quantum logic with strict implication

Lifted Inference: Exact Search Based Algorithms

Propositional Calculus - Semantics (3/3) Moonzoo Kim CS Dept. KAIST

Logic. Introduction to Artificial Intelligence CS/ECE 348 Lecture 11 September 27, 2001

Introduction to Metalogic 1

This content downloaded from on Thu, 3 Oct :28:06 AM All use subject to JSTOR Terms and Conditions

The semantics of propositional logic

Inference in Propositional Logic

CS156: The Calculus of Computation

Madhavan Mukund Chennai Mathematical Institute

Introduction to Artificial Intelligence Propositional Logic & SAT Solving. UIUC CS 440 / ECE 448 Professor: Eyal Amir Spring Semester 2010

A MODEL-THEORETIC PROOF OF HILBERT S NULLSTELLENSATZ

Arithmetical classification of the set of all provably recursive functions

A Study on Monotone Self-Dual Boolean Functions

Two New Definitions of Stable Models of Logic Programs with Generalized Quantifiers

Transcription:

INFORMATION AND CONTROL 19, 417--431 (1971) Some Properties of Fuzzy Logic RICHARD C. T. LEE AND CHIN-LIANG CHANG Department of Health, Education and Welfare, Public Health Service, Division of Computer Research and Technology, National Institutes of Health, Bethesda, Maryland 20014 In this paper, the fuzzy set [Zadeh (1965)] is viewed as a multivalued logic with a continuum of truth values in the interval [0, 1]. The concepts of inconsistency, validity, prime implicant and prime implicate are extended to fuzzy logic and various properties of these notions m the context of fuzzy logic are established. It is proved that a formula is valid (inconsistent) in fuzzy logic iff it is valid (inconsistent) in two-valued logic. An algorithm that generates fuzzy prime implicants (implicates) is introduced. A proof of the completeness of this algorithm is also given. 1. INTRODUCTION Ever since Zadeh proposed the idea of the fuzzy set [Zadeh (1965)], many researchers have investigated the mathematical properties and applications of fuzzy sets [Chang (1968), Goguen (1967), Marinos (1969), Paz (1967), Nasu and Honda (1968), Zadeh (1968)]. In this paper, we shall consider the fuzzy set as a many-valued logic [Ackermann (1967), Rosser and Turquette (1952)] with a continuum of truth-values in the interval [0, 1] [McNaughton (1951), Chang (1958)]. We shall define many important concepts, such as inconsistency, validity, and prime implicant in fuzzy logic. We shall also show some of the relationships between fuzzy logic and two-valued logic [Hilbert and Ackermann (1950)]. 2. Fuzzy FORMULAS In the sequel, we shall assume that a fuzzy function is a function of variables 221, X 2,..., X~, each of which assumes values in the interval [0, 1]. Fuzzy formulas are defined recursively as follows: 1. A variable X, is a fuzzy formula. 2. If A is a fuzzy formula, then --A is a fuzzy formula. 417

418 LEE AND CHANG 3. If d and B are fuzzy formulas, then A & B and d v B are fuzzy formulas. 4. The above are the only fuzzy formulas. For example, (X 1 ~x; 23) V (--22) and ((X 1 & X2) v X3)& --X 4 are fuzzy formulas. Since we are interested only in fuzzy formulas, we can drop the word "fuzzy" without causing any confusion. In the sequel, whenever formulas are mentioned, they are fuzzy formulas. It should be noted that fuzzy formulas are identical to formulas in two-valued logic [Hilbert and Ackermann (1950)]. Denoting the truth-value assigned to X i by T(X~), the truth-value T(S) of a formula is uniquely determined through the following rules: 1. T(S) = T(X/) if S = X~ ; 2. T(S) = 1 -- T(A) if S = --A; 3. T(S) = min[t(a), T(B)] if S = A & B; and 4. T(S) = max[r(a), T(B)] if S = A v B. EXAMPLE I. S = X 1 & (--X~ v Xa). Let the assignments to X 1, X~ and X 3 be T(X1) = 0.3, T(X2) = 0.6 and T(X3) = 0.1. Then T(S) = min[t(x1), T(--X2 v X3)] = min[t(x O, max[t(--x2), T(X3)] = min[0.3, max[1 -- T(X2), T(X3)]] = min[0.3, max[1 -- 0.6, 0.1]] = min[0.3, max[0.4, 0.111 = min[0.3, 0.4] = 0.3. Since every variable Xi of a formula S can assume an infinite number of values, there are an infinite number of distinct assignments of truth-values to the variables of a formula. Among them, there are a finite number of assignments in which every variable is assigned either 1 or 0. We shall call those assignments two-valued assignments. 3. CONSISTENCY IN FuzzY LOGIC In two-valued logic, a very important concept is the consistency of a formula. A Formula A is said to be valid iff T(A) = 1 under all of its possible

SOME PROPERTIES OF FUZZY LOGIC 419 two-valued assignments. Similarly, a formula A is said to be inconsistent iff T(A) ~ 0 under all of its possible two-valued assignments. A formula is said to be consistent iff it is not inconsistent. A formula is said to be invalid iff it is not valid. In fuzzy logic, we shall define similar concepts. A fuzzy formula is said to be fuzzily valid iff T(A) ~ 0.5 under all possible assignments and A is fuzzily inconsistent iff T(A) ~ 0.5 under all possible assignments. Having defined validity and inconsistency of formulas in fuzzy logic, we can now investigate ways to determine consistency of formulas. In two-valued logic, since there are a finite number of distinct assignments for a formula, the most straightforward way to determine the consistency of a formula is an exhaustive search. That is, given a formula S, we examine every possible two-valued assignment. If S is 1(0) under all these assignments, we say that S is valid (inconsistent). But we can not have an exhaustive examination of all possible assignments in fuzzy logic because there are an infinite number of possible assignments for every formula. Therefore, some nonexhaustive way to determine consistency of formulas in fuzzy logic is very important. We shall devote the rest of this section to a discussion of this subject. To check whether a formula A is valid or inconsistent in fuzzy logic, the simplest approach involves expanding A into conjunctive and disjunctive forms. Before defining these normal forms we must give some definitions: A literal is a variable X~, or --X,, the complement of Xi A clause is a disjunction of one or more than one literal. A phrase is a conjunction of one or more than one literal. A formula A is said to be in conjunctive normal form if A = C1 & C2 "'" & Cm, m >~ 1 and every C~, 1 ~< i ~< m, is a clause. A formula A is said to be in disjunctive normal form if A = P1 v P2 "'" v P~, m >~ 1 and every Pi, 1 ~ i ~ m, is a phrase. In two-valued logic, it can be shown that every formula can be expressed in conjunctive and disjunctive normal forms [Hilbert and Ackermann (1950)]. This is due to the existence of the distributive laws and DeMorgan's laws. Zadeh (1965) proved that both of the laws mentioned above hold in fuzzy logic. Since there is no syntactical difference between formulas in fuzzy logic and formulas in two-valued logic, we can easily see that formulas in fuzzy logic can also be expressed in conjunctive and disjunctive normal form. We shall now present some lemmas.

420 LEE AND CHANG LEMMA 1. Let C be a clause. If C contains a complementary pair of literals, then C is fuzzily valid. Proof. Let C = L 1 v L 2.-- v L~. Assume Li and Lj form such a complementary pair. Then T(L~) ~ 1 -- T(L~). For every possible assignment, either T(Li), or T(L~) will be greater than or equal to 0.5. Therefore, max[t(l~), T(Lj)] ~ 0.5 for all possible assignments. Since T(C) ~- max[t(l1), T(L~)... T(L~)], T(C) -~ max[t(l1), T(L~)... T(L~)... T(Lj),..., T(L~)] >/max[t(l1), T(Lj)] ~/0.5. Thus C is fuzzily valid. Q.E.D. LEMMA 2. Let C be a clause. If C is fuzzily valid, then C contains a complementary pair of literals. Proof. Consider the assignment in which every literal of C is assigned a truth-value smaller than 0.5. T(C) will be smaller than 0.5 under this assignment; so C is not fuzzily valid. This is contradictory to the assumption that C is fuzzily valid. Q.E.D. Combining Lemmas 1 and 2, we have the following theorem. THEOREM 1. Let C be a clause. C is fuzzily valid iff C contains a complementary pair of liter als. Similarly, we can prove the following theorem concerning inconsistency in fuzzy logic. THEOREM 2. Let P be a phrase. P is fuzzily inconsistent iff P contains a complementary pair of literals. Theorems 1 and 2 can be utilized to check the consistency of formulas in fuzzy logic. Suppose we want to see whether a formula A is fuzzily valid. We can expand A into conjunctive normal form: A = C1 & C~ "'-C~. Then A is fuzzily valid iff every Ci is fuzzily valid. But the fuzzy validity of a clause can be established through Theorem 1. Similarly, in case we want to check the fuzzy inconsistency of formula A, we can expand A into disjunctive normal form: A ~ P1 v P2 "'" v P~. Then A is fuzzily inconsistent iif every phrase Pi is fuzzily inconsistent, and the fuzzy inconsistency of a phrase can be established through Theorem 2.

SOME PROPERTIES OF FUZZY LOGIC 421 EXAMPLE 2. S = (--X 1 v --X2) & X, & X 2. S is in conjunctive normal form. Since none of its clauses are fuzzily valid, we conclude that S is not fuzzily valid. Expand S into disjunctive normal form. s --- (-&&& &&) v (-% &:% ~ x~). It is easy to see that every phrase of the above formula is fuzzily inconsistent; therefore N is fuzzily inconsistent. EXAMPLE 3. S = (--X 1 v X 1 v X3)~(--.J~3 v X 3 v 22). S is in conjunctive normal form. According to Lemma 1, every clause of S is fuzzily valid. Therefore, S is fuzzily valid. 4. CONSISTENCY IN FUZZY LOGIC AND CONSISTENCY IN Two-VALUED LOGIC In this section we shall discuss the relationship between consistency in fuzzy logic and that in two-valued logic. Consider Theorems 1 and 2 in Section 3. We can immediately derive the following two corollaries. COROLLARY 1. A clause C is fuzzily valid iff C is valid. COROLLARY 2. A phrase P is fuzzily inconsistent iff P is inconsistent. Combining these two corollaries, we have the following theorems: THEOREM 3. A formula A is fuzzily valid iff A is valid. THEOREM 4. A formula A is fuzzily inconsistent iff A is inconsistent. Theorems 3 and 4 state that validity (inconsistency) in fuzzy logic is equivalent to validity (inconsistency) in two-valued logic. Thus to prove the fuzzy validity (inconsistency) of a formula, it suffices to prove its validity (inconsistency). For example, in Example 2 of Section 3, it should be easy to see that S is also inconsistent in two-valued logic. Theorems 3 and 4 can also be used to determine consistency of formulas in two-valued logic. Given a formula _d in two-valued logic, Theorems 3 and 4 indicate that the validity (inconsistency) of A can be established iff min[t(a)](max[t(a)]) is ~(~) 0.5 in fuzzy logic. Note that the original

422 LEE AND CHANG X&- 0.5 0.5 1 X FICURE 1 Xv-X 1 0 I I 0.5 1 FIOURE 2

SOME PROPERTIES OF FUZZY LOGIC 423 problem in two-valued logic is a discrete case problem. Using Theorems 3 and 4, one can now view it as a problem of continuous case because the variables of fuzzy formulas are continuous variables. If a procedure to calculate the maximum and minimum of a fuzzy formula can be found, it might be useful for solving some of the difficult decision problems in two-valued logic. EXAMPLE 4. Consider the formula X & --X. We can plot the truth-value of this formula against the value of X. For X ~ 0.5, T(X) <~ T(--X). Therefore, in this range of X, T(X&--X) = T(X). At X=0.5, T(X& --X) = 0.5. By the same token, T(X& --X) = T(--X)forX > 0.5. This is shown in Fig. 1. Since T(X& --X) <~ 0.5 for all X, X& --X is fuzzily inconsistent. Using Theorem 4, we conclude that X&--X is inconsistent. EXAMPLE 5. Consider the formula X v--x. The curve depicting X v --X against X is shown in Fig. 2. Since T(X v --X) ~ 0.5 for all X, X v --X is fuzzily valid. We can then use Theorem 3 to conclude that X v --X is valid. 5. PRIME IMPLICANTS AND PRIME IMPLICATES IN FUZZY LOGIC Let us now consider the following question. Given a formula A, a real number ~, max[t(a)] = 5, min[t(a)] = y, and 7 ~ a ~< fi, how can we find all the assignments under which T(A) ~> e~? In two-valued logic c~ = 1, and this can be answered easily by finding all the prime implicants (we shall give the definition of prime implicant later) of A. If every literal of a prime implicant of d is assigned 1, then T(A) = 1. Furthermore, every assignment under which T(A)= 1 corresponds to at least one prime implicant. In fuzzy logic, we shall show that we can define similar concepts. A formula S 1 is said to fuzzily imply a formula S.z iff T(S~) >~ c~ whenever T(S1) >~ ~, 0 ~< a ~ 1. If only two-valued assignments are considered, c~= 1 and we say that S 1 implies S 2. In other words, S 1 implies S 2 iff T(S~) = 1 whenever T(S1) ~ 1. EXAMPLE 6. Consider formulas X and X v Y. Suppose X is assigned a truth-value a, then T(X) = oz. T(X v Y) = max[~, T(Y)] /> a. Therefore, X fuzzily implies X v Y.

424 LEE AND CHANG EXAMPLE 7. Consider formulas X & Y and X. Assume that X & Y is assigned a truth-value ~. This means that both T(X) and T(Y) are greater than or equal to ~. Therefore T(X) >~ o~. X & Y is concluded to fuzzily imply X. A phrase P is a fuzzy implicant of a formula A iff P fuzzily implies A. P is a fuzzy prime implicant of A iff P is a fuzzy implicant of A and P does not fuzzily imply any other fuzzy implicant P' of A. A clause Q is a fuzzy implicate of a formula A iff A fuzzily implies Q. Q is a fuzzy prime implicate of A iff Q is a fuzzy implicate of A and Q is not fuzzily implied by any other fuzzy implicate Q' of A. If only two-valued assignments are considered, we drop the word "fuzzy". Thus a phrase P is an implicant of a formula A iff P implies A. P is a prime implicant of ~/iff P is an implicant of A, P is not inconsistent and P does not imply any other implicant P' of _d. A clause Q is an implicate of a formula A iff A implies Q. Q is a prime implicate of A iff Q is an implicate of.//, Q is not valid and Q is not implied by any other implicate Q' of _d. Note that there is a significant difference between the definition of a prime implicant (implicate) and the definition of a fuzzy prime implicant (implicate). While we do not allow the prime implicants (implicates) to be inconsistent (valid), we do allow the fuzzy prime implicants (implicates) to be inconsistent (valid). This can be best explained by a simple example. EXAMPLE 8. Consider A = (X v Y)& (--X v Y). To find the prime implicant of A, we first expand A into disjunctive normal form: A = (X & --X) v Y. In two-valued logic, A can be reduced to Y. Thus, the only prime implicant of A is Y. In fuzzy logic, A can not be reduced to Y. Indeed, (X& --X) is a fuzzy prime implicant of A although it is inconsistent. The reason is very simple: (X & --X) does fuzzily imply A. For example, if (X & --X) is assigned any truth-value ~, 0 ~< ~ ~< 0.5, then T(A) is greater than or equal to ~. Well-known techniques exist to find prime implicants in two-valued logic [Lee (1970), Miller (1965), McClusky (1965), Slagle, Chang and Lee (1970)]. In this paper, we shall investigate ways to find fuzzy prime implicants and fuzzy prime implicates. THEOREM 5. If P is an implicant of A, then P is a fuzzy implicant of A. Proof. Let P =LI &L 2 "" &L~. Expand A into conjunctive normal form: A ~ C 1 & C a "" & C~, where every Ci = Lilv Li2 "'" v Lik. Since P implies A, P implies every C~. Therefore Ci contains at least one literal Lj,

SOME PROPERTIES OF FUZZY LOGIC 425 1 <~ j ~ m. If T(P) >/~, then for all j, 1 < j <~ m, T(L~) >~ ~. Therefore, T(Ci) ---- max[t(la), T(Li~),..., T(L~k )] >/ T(Lj) >/a, and T(A) = min[t(c1), T(C2),..., T(C~)] ~> a. Q.E.D. THEOREM 6. If P is a fuzzy implicant of A and is not inconsistent, then P is an implicant of A. Proof. Since P is a fuzzy implicant of A, T(A) ~ ~ whenever T(P) ~ ~. Since P is consistent, there exist one or more than one assignment under which T(P) -- 1. Under all of these assignments, T(A) = 1. Thus P is an implicant of A. Q.E.D. From Theorem 6, we can have the following corollary. COROLLARY 3. If P is a.fuzzy implicant of A and not an implicant of A, then P must be inconsistent. EXAMPLE 9. Let S ---- X 1 & (--X 1 v 2(2). (XI & -X1) and (X 1 & X2) are the only two fuzzy prime implicants of S. Note that X 1 & --X 1 is inconsistent. Similarly, we have the following theorems concerning fuzzy prime implicates. THEOREM 7. If Q is an implicate of A, then Q is a fuzzy implicate of.4. THEOREM 8. implicate of./i. If Q is a fuzzy implicate of A and is not valid, then ~ is an From Theorem 8, we can derive Corollary 4. COROLLARY 4. If Q is a fuzzy implicate of A but not an implicate of A, then ~ must be valid. ]EXAMPLE 10. Let S = X 1 v (--X1 & X2). (X 1 v --X1) and (X 1 v X2) are the only two fuzzy prime implicates of S. Note that (X 1 v --X1) is valid. The following statements serve as a summary of the preceding discussion: (1) There are two kinds of fuzzy prime implicants, consistent fuzzy prime implicants and inconsistent fuzzy prime implicants. (2) There are two kinds of fuzzy prime implicates, invalid fuzzy prime implicates and valid fuzzy prime implicates. 643/I9/5-4

426 LEE AND CHANG (3) For every phrase (clause) P(Q) which is consistent (invalid), P(Q) is a fuzzy prime implicant (implicate of some formula iff P(Q) is a prime implicant (implicate) of A. (4) Given a formula A and a fuzzy prime implicant P of 4, (a) If P is consistent, then an assignment under which 0 ~ ~ T(P) ~ 1 constitutes a sufficient condition for T(A) ~ o~, and (b) If P is inconsistent, then an assignment under which 0 ~ ~ T(P) ~ 0.5 constitutes a sufficient condition for T(A) ~ ~. (5) Given a formula A and a fuzzy prime implicate Q of 4, (a) If Q is invalid, then an assignment under which 0 ~ c~ T(A) ~ 1 constitutes a sufficient condition for T(Q) ~ ~, and (b) If Q is valid, then an assignment under which 0.5 ~ ~ T(A) ~ 1 constitutes a sufficient condition for which T(Q) ~ c~. The theorems proved in this section indicate that in order to find consistent (invalid) fuzzy prime implicants (implicates), it suffices to find prime implicants (implicates). But we must have other methods to find fuzzy prime implicants (implicates) that are not prime implicants (implicates). The next section is devoted to introducing an algorithm which generates all the fuzzy prime implicants and fuzzy prime implicates of a formula. 6. AN ALGORITHM TO GENERATE Fuzzy PRIME IMPLICANTS In [Slagle, Chang and Lee (1970)], an algorithm is presented to generate prime implicants of a formula. We shall call the algorithm presented in [Slagle, Chang and Lee (1970)] Algorithm A. In this paper, we shall modify Algorithm A to Algorithm B so that Algorithm B can generate fuzzy prime implicants. We shall first introduce some definitions. By an ordering of a set S of clauses, we mean an ordering on all the distinct literals appearing in S. The frequency order ~ for a set S of clauses is an ordering such that for any two distinct literals L1 and L 2 appearing in S, L 1 ~ L 2 if L 1 occurs in more clauses of S than does L 2. If L 1 and L~ occur in the same number of clauses of S, we arbitrarily let either L 1 ~ L 2 or L~ ~ Lx. A semantic tree T is a tree to each node of which is attached a circle, a cross or a set of clauses, and to each branch of which is attached a literal. A node with a circle or a cr~s ~ called a terminating node and a node with a set of clauses is a nonter~g node.

SOME PROPERTIES OF FUZZY LOGIC 427 S S1 S2... Sr FIGURE 3 For a node S in a semantic tree, if S is a set of clauses and >~ is an ordering for S, by sprouting of the semantic tree from node S with ), we mean the following operations. Let LI, L~,...,Lr be all the distinct literals in S such that L 1 >/L 2 "" >~ Lr From S, sprout branches L 1,L 2,...,L T as shown in Fig. 3, where nodes S1, S 2,..., S r are defined as follows: For each i, 1 ~< i ~< r, let S'(L,) be that obtained from S by deleting every clause in S containing Li. If S'(L~) is empty, we call node Si a success node and attach a circle to it. Otherwise, let S(Li) be that obtained from S'(Li) by deleting all the literals L~, j = 1, 2... i- 1, from S'(Li). If S(Li) contains an empty clause, we call node Si a failure node and attach a cross to it. Otherwise, we let S i be S(Li). Each Si is an immediate descendant of node S. To use Algorithm B, formula S must be in conjunctive normal form. Algorithm B. Input: S: a set of clauses. Output: W[S]: a set of phrases. Step 1. Let the initial node be S. Choose an ordering 0~ for S and apply sprouting from S with 0~. Let S 1, S 2,..., Sr be the nodes sprouted from S. Step 2. If there exists a nonterminating node S~, choose an ordering 0,, for Si and apply sprouting from S~ with 0,. Repeatedly apply Step 2 until there is no nonterminating node to sprout, i.e., until each path in the tree leads to a terminating node. Let T be the final semantic tree. Step 3. For each success node N in T, form the conjunction of all the literals at the branches on the path from the top down to node N. Let W[S] be the set of all these conjunctions and terminate the algorithm.

428 LrE AND CHANG EXAMPLE 8. Let S = (M iv M 2v --Mz)&(M 2v --Ms)&(M lvms), A frequency ordering ~ for the distinct literals appearing in S is Using Algorithm B, we obtain the semantic tree shown in Fig. 4. W[S] = {M2& M~, M~& M3, M~ & --M3, --M3& M3}. $ -M. M X FIGURE 4 $ X~ X X M -M 31 X FIGURE 5

SOME PROPERTIES OF FUZZY LOGIC 429 EXAMPLE 9. S=(M 1 v --M2)&(]ll 2 v M 8 v M4)&(--M 8 v M 4 v M1). A frequency ordering /> for the literals appearing in S is The semantic tree obtained from using Algorithm B is shown in Fig. 5. W[S] ~- (M~ & Ma, MI & M2, M~ & M 8, M, & --M2, --M~ & M: & --M~, --Ms & M3 & --M~}. It should be noted that Algorithm B does not generate any duplicate implieants. That is, if 3//1 & M 2 & M 3 is generated, it will not generate MI&M3&M~, M2&MI&M3, M~&Ms&M~, Ma&MI&M~. or M~&M~&MI. 7. COMPLETENESS OF ALGORITHM B In this section, we shall prove that Algorithm B is complete. That is, every element in W[S] is a fuzzy implicant of S, and every fuzzy prime implicant of S is in W[S]. Before proving this theorem, we shall first present two lemmas. The proof of these lemmas are simple and will be omitted here. LEMMA 3. A phrase P fuzzily implies a clause C iff C contains at least one literal which appears in P. LEMMA 4. A phrase P fuzzily implies a conjunction S of clauses iff P implies every clause of S. THEOREM 9. Given a formula in conjunctive normal form. Let W[S] and T be obtained as in Algorithm B with an ordering O N for each nonterminating node N of T. Then (a) (b) Every element of W[S] is a.fuzzy implicant of S, and Every fuzzy prime implicant of S is in W[S]. Proof. (a) Since every element P of W[S] corresponds to a success node, by definition of a success node each clause C has at least one literal which appears in P. Therefore, according to Lemmas 3 and 4, P fuzzily implies S and P is a fuzzy implicant of S. (b) Let P be a prime implicant of S. We can prove that P is in W[S] by induction on the number of literals in P. If P contains exactly one literal,

430 LEE AND CHANG say Lr, then according to Lemmas 3 and 4, L r appears in every clause in S. Let S'(L~) be defined as in Section 6. Then S'(L~) is empty. Therefore P is in W[S]. Suppose (b) of this theorem is true when P contains n distinct literals, n = 1. To complete the induction, we consider the case where P contains n > 1 distinct literals. Let Lr be the largest literal in P with respect to the ordering 0s for the initial node S. Let Lrl, Lr2,...,Lri be the literals in S larger than L r. From the algorithm, we shall obtain S'(L~). S'(L~) is not empty. For otherwise, according to Lemma 4 and the construction of S'(Lr), L r is a fuzzy prime implicant which contradicts the assumption that P is a fuzzy prime implicant. From the algorithm, we shall also obtain S(Lr). S(Lr) does not contain an empty clause. For otherwise, there is a clause in S, which does not contain any literal that appears in P. According to Lemma 3, this clause is not fuzzily implied by P which is impossible. Let P' be the conjunction obtained from P by deleting L r. Since P fuzzily implies S, or Lr & P' fuzzily implies S, and L~ does not appear in any clause in S(L~), P' is a fuzzy implicant of S(L~), since otherwise P would not be a fuzzy prime implicant of S. Since P' consists of exactly n distinct literals, by the induction hypothesis P' is in W[S(L,.)] where W[S(L~)] is obtained through Algorithm B by considering S(L~) as an initial node. Therefore P is in W[S]. This completes the proof. Similarly, we can prove the following theorem. THEOREM 10. Use the same definitions, notations and algorithm as given in Sections 6 and 7, except that in the algorithm replace phrase, conjunctive, conjunction, disjunction, implicant by clause, disjunctive, disjunction, conjunction and implicate, respectively. If a formula S is in disjunctive normal form and ON is an ordering for each nonterminating node N of T, then (a) (b) Every element in W[S] is a fuzzy implicate of S, and Every fuzzy prime implicate of S is in W[S]. RECEIVED: July 8, 1971 REFERENCES ACKERMAN, R., "Introduction to Many Valued Logics," Dover, New York, 1967. CHANG, C. C., Algebraic analysis of many valued logics, Trans. Amer. Math. Soc. 88 (1958), 467-490. CHANt, C. L., Fuzzy topological spaces, J. Math. Anal. Appl. 24 (1968), 182-190. CHANG, C. L., "Fuzzy Algebras, Fuzzy Functions and Their Applications to Function

SOME PROPERTIES OF FUZZY LOGIC 431 Approximation," Division of Computer Research and Technology, National Institutes of Health, Bethesda, MD, 1971. GOGImN, J. A., L-fuzzy sets, J. Math. Anal. Appl. 18 (1967), 145-174. HILBERT, D. AND ACKEEMANN, W., "Principles of Mathematical Logic," Chelsea, New York, 1950. LEE, R. C. T., An algorithm to generate prime implicants and its application to the selection problem, Information Sci., to appear. MAmNOS, P. N., Fuzzy logic and its application to switching systems, IEEE Trans. Computers C-18 (1969), 343-348. McNAIJGHTON, R. A., Theorems about infinite-valued sentential logic, J. Symbolic Logic 16 (1951), 1-13. McCLUSKY, E. J., "Introduction to the Theory of Switching Circuits," McGraw-Hill, New York, 1965. MILLER, R. E., "Switching Theory," Wiley, New York, 1965. NASU, M. AND HONDA, N., Fuzzy events realized by finite probabilistic automata, Information and Control 12 (1968), 284-303. PAz, A., Fuzzy functions, probabilistic automata, and their approximation by nonprobabilistic automata, J. Comput. System Sci. 1 (1967), 371-390. RossER, J. B. AND TURQUETTE, A. R., "Many-Valued Logics," North-Holland, Amsterdam, 1952. SLAGLE, J. R., CHANt, C. L., AND LEE, R. C. T., A new algorithm for generating prime implicants, IEEE Trans. Computers C-19 (1970), 304-310. SLAGLE, J. R., CHANG, C. L., AND LEE, R. C. T., Completeness theorems for semantic resolution in consequence-finding, "Proceedings of the International Joint Conference on Artificial Intelligence," May, 1969, Washington, D. C., 281-286. SLAm.E, J. R., Interpolation theorems for resolution in lower predicate calculus, jr. Assoc. Comput. Mach. 17 (1970), 535-542. ZADEH, L. A., Fuzzy sets, Information and Control 8 (1965), 338-353. ZADEIL L. A., Fuzzy algorithms, Information and Control 12 (1968), 94-102.