Grainy Numbers

Grainy numbers are defined as tuples of bits. They form a lattice where the meet and the join operations are an addition and a multiplication. They may be substituted for the real numbers in the definition of fuzzy sets. The aim is to propose an alte…

Authors: Gilles Champenois

Grainy Numbers
Grainy Numbers Gilles C HAMPENOIS Collège Saint-André, Saint-Maur, France gilles_champenois@yahoo.fr ABSTRACT . Grainy numbers are defined as tuples of bits. They form a lattice where the meet and the join operations are an addition and a multiplication. They may be substituted for the real numbers in the definition of fuzzy sets. The aim is to propose an alternative negation for the complement that we’ll call supplement. "Die ganzen Zahlen hat der liebe Gott gemacht, alles andere ist Menschenwerk." Leopold Kronecker (1823-1891) I. INTRODUCTION In the now familiar Zadeh’s theory [1], k- € 16 ( k- € i here represents the number of years a student attend school before leaving) falls under € HIGH _ EDUCATED fuzzy set with a membership value of € 1 . In fuzzy set theory, the negation of a fuzzy set exists and is itself a set: for example k- € 16 (resp. k- € 8 ) falls under € NOT _ HIGH _ EDUCATED fuzzy set with a membership coefficient of € 0 (resp. € 1 ). By contrast, € LOW _ EDUCATED is another fuzzy set which differs from € NOT _ HIGH _ EDUCATED set because k- € 12 falls under the former with a coefficient of € 0 and under the latter with a coefficient of more than € 0 , 5 . € 1 € 0 k- € 12 k- € 8 k- € 16 FIGURE 1 . Two sorts of negation k- € 12 k- € 8 k- € 16 € NOT _ HIGH _ EDUCATED € HIGH _ EDUCATED € HIGH _ EDUCATED € LOW _ EDUCATED € 1 € 0 We can see that two sorts of negation may be considered: the negation of complementation ( € NOT _ HIGH _ EDUCATED vs. € HIGH _ EDUCATED ) which has been much studied in mathematical logic [2]; while the negation of contrariety ( € LOW _ vs. € HIGH _ EDUCATED ) has been put aside although ancient logic mentioned it. That kind of negation is precisely what we called supplementation negation. The intention here is to define grainy numbers and to substitute them for real numbers in the membership functions. So we could capture the notion of supplementation and put it on a mathematical track. II. DEFINITION A grainy number is a tuple of bits with values among € − , 1 { } . DEFINITION . The symbols “ € − ” (for example representing the empy set) and “ € 1 ” (representing the power set of the empty set) will be used. Let € G # denote the set of tuples made of € 1 and € − . € 0 denotes the empty tuple. Recursively we have, < DEF € x ∈ G # > < END € x = 0 > < NEXT € x = 1 , ′ x [ ) > < NEXT € x = − , ′ x [ ) > EXAMPLE . € a = 1 , − , 1 ,0 [ ) [ ) [ ) ∈ G # or simply € a = 1 ° 3 ° € b = 1 , − , − ,0 [ ) [ ) [ ) ∈ G # or simply € b = 1 ° 3 ( ) € − − − − 1 € 1 − − − 1 € 1 − − − − € 111 € − − − € 1 ° 2 ° € 1 ° 2 ( ) € 2 ° € 1 ° € 1 ( ) € 11 € 1 − € − 1 € 1 € − € 5 ° € 1 ° 5 ° € 1 ° 5 ( ) € 1 ° 2 ° 3 ° € 3 ( ) € − , − , − , − , 1 ,0 [ ) [ ) [ ) [ ) [ ) € 1 , − , − , − , 1 , 0 [ ) [ ) [ ) [ ) [ ) € 1 , − , − , − , − ,0 [ ) [ ) [ ) [ ) [ ) € 1 , 1 , 1 , 0 [ ) [ ) [ ) € − , − , − ,0 [ ) [ ) [ ) € 1 , 1 , 0 [ ) [ ) € 1 , − ,0 [ ) [ ) € − , 1 ,0 [ ) [ ) € 1 , 0 [ ) € − ,0 [ ) € 1 ( ) , 2 ( ) , 3 ( ) , L are called flat grainy numbers. Addition . We call addition the bitwise AND . If an operand is longer, the extra bits are cut. The addition of two grainy numbers € x and € y is a grainy number, written € x ⊕ y , and defined recursively as follows: < DEF € z = x ⊕ y = y ⊕ x > < END € x = 0 > € z = 0 < NEXT € x = A , ′ x [ ) AND € y = A , ′ y [ ) > € z = A , ′ x ⊕ ′ y [ ) < NEXT € x = 1 , ′ x [ ) AND € y = − , ′ y [ ) > € z = − , ′ x ⊕ ′ y [ ) EXAMPLES . € 3 ° ⊕ 2 ° = 2 ( ) € 1 ° ⊕ 1 ° = 1 ° € 1 ° ⊕ 1 ( ) = 1 ( ) € 1 ° 3 ° 4 ° ⊕ 1 ° 2 ° 4 ( ) = 1 ° 4 ( ) The addition is associative and idempotent. PROOF . Suppose that € x = A , ′ x [ ) and € ′ x ⊕ ′ x = ′ x . Then € x ⊕ x = A , ′ x ⊕ ′ x [ ) = A , ′ x [ ) = x Ordering . An order relation is defined on € G # as follows: € x ≥ y iff € x ⊕ y = x . EXAMPLES . € 0 ≥ 1 ° ≥ 1 ° 2 ° ≥ 1 ° 2 ° 3 ° ≥ 1 ° 2 ° 3 ° 5 ( ) Multiplication . We call multiplication the biwise OR . If an operand is longer, the extra bits are concatenated. The multiplication of two grainy numbers € x and € y is a grainy number, written € x ⊗ y , and defined as follows. < DEF € z = x ⊗ y = y ⊗ x > < END € x = 0 > € z = y < NEXT € x = A , ′ x [ ) AND € y = A , ′ y [ ) > € z = A , ′ x ⊗ ′ y [ ) < NEXT € x = 1 , ′ x [ ) AND € y = − , ′ y [ ) > € z = 1 , ′ x ⊗ ′ y [ ) EXAMPLES . € 2 ° ⊗ 3 ° = 2 ° 3 ° € 1 ° ⊗ 1 ° = 1 ° € 1 ° ⊗ 1 ( ) = 1 ° € 1 ° 3 ° 4 ° ⊗ 1 ° 2 ° 4 ( ) = 1 ° 2 ° 3 ° 4 ° The multiplication is associative and idempotent. Absorption laws hold: given two grainy numbers € x , y ∈ G # , € y ⊕ x ⊗ y ( ) = y and € y ⊗ x ⊕ y ( ) = y . PROOF . We prove that € y ⊕ x ⊗ y ( ) = y Suppose that € x = A , ′ x [ ) and € y = A , ′ y [ ) € y ⊕ x ⊗ y ( ) = y ⊕ A , ′ x ⊗ ′ y [ ) = A , ′ y ⊕ ′ x ⊗ ′ y ( ) [ ) = A , ′ y [ ) = y Suppose that € x = − , ′ x [ ) and € y = 1 , ′ y [ ) € y ⊕ x ⊗ y ( ) = y ⊕ 1 , ′ x ⊗ ′ y [ ) = 1 , ′ y ⊕ ′ x ⊗ ′ y ( ) [ ) = 1 , ′ y [ ) = y Suppose that € x = 1 , ′ x [ ) and € y = − , ′ y [ ) € y ⊕ x ⊗ y ( ) = y ⊕ 1 , ′ x ⊗ ′ y [ ) = − , ′ y ⊕ ′ x ⊗ ′ y ( ) [ ) = − , ′ y [ ) = y The multiplication distributes over the addition and vice versa. € G # , ⊕ , ⊗ ( ) is a distributive lattice. III. SUPPLEMENTATION The supplementation is a binary operation that changes the grainy number € x in its bits specified by € k ∈ G # . The supplementation of € x along € k is defined recursively as follows (We use € 1 = 0 and € 0 = 1 ), < DEF € y = x k > < END € x = 0 > € y = 0 < END € k = 0 > € y = x < NEXT € x = X , ′ x [ ) AND € k = − , ′ k [ ) > € y = X , ′ x ′ k [ ) < NEXT € x = X , ′ x [ ) AND € k = 1 , ′ k [ ) > € y = X , ′ x ′ k [ ) EXAMPLE . € 3 ( ) 2 ° = 2 ° 3 ( ) € 1 ° 2 ° 3 ° 2 ° = 1 ° 3 ° Note that: • the supplementation is involutive, • € x k = x whenever € k is a flat number (for example, € 1 ° 2 ° 3 ° 2 ( ) = 1 ° 2 ° 3 ° ), • € x x is a flat number (for example, € 1 ° 3 ° 1 ° 3 ° = 3 ( ) ) called the module of € x and denoted by € x , • € x x = x for any € x ∈ G # . IV. FUZZY SETS FROM GRAINY NUMBERS In the historical definition of fuzzy sets, we intend to replace the unit interval by the grainy lattice. € A , ∗ ∈ G # will denote the membership function of the set € A . Full set . It is the set whose membership function equals € A , ∗ = 0 . Containment . A set € A contains a set € B iff € B , ∗ ≤ A , ∗ . Reunion . The reunion of two sets € A and € B is a set € A ∪ B , whose membership € A ∪ B , ∗ equals € A , ∗ ⊕ B , ∗ . Intersection . The intersection of two sets € A and € B is a set € A ∩ B whose membership function € A ∩ B , ∗ equals € A , ∗ ⊗ B , ∗ . Supplementation . The supplement of a set € A along € k ∈ G # is the set (written € A k ) defined by € A k , ∗ = A , ∗ k . V. EXAMPLE EXAMPLE N°1 . Let’s consider the two sets € HIGH _ EDUCATED and € LOW _ EDUCATED defined by their respective membership functions: k- € 12 FIGURE 2. The grainy membership functions of € HIGH _ EDUCATED (left) and € LOW _ EDUCATED (right) € 1 ° € 1 ( ) k- € i € 1 ° € 1 ( ) € 1 € − We see that € LOW − EDUCATED is the first order supplement of € HIGH − EDUCATED , € HIGH _ EDUCATED 1 ° = LOW _ EDUCATED EXAMPLE N°2 . We now consider the sets € HIGH _ EDUCATED and € LOW _ EDUCATED extended to the sets € VERY _ HIGH _ EDUCATED and € VERY _ LOW _ EDUCATED : k- € i FIGURE 3 . The grainy membership functions of € HIGH _ EDUCATED (left) and € LOW _ EDUCATED (right) € 1 ° 2 ° k- € 14 € 1 ° 2 ( ) € 1 € − € 2 ° k- € 10 k- € i k- € 14 € 1 € − k- € 10 € 2 ( ) € 1 ° 2 ° € 1 ° 2 ( ) € 2 ° € 2 ( ) k- € 12 k- € 12 k- € i FIGURE 4 . The grainy membership functions of € VERY _ HIGH _ EDUCATED (left) and € VERY _ LOW _ EDUCATED (right) € 1 ° k- € 14 € 0 € 1 € − € 1 ( ) k- € 10 k- € i € 1 ° k- € 14 € 0 € 1 € − € 1 ( ) k- € 10 We see that € LOW − EDUCATED is still the first order supplement of € HIGH − EDUCATED , € HIGH _ EDUCATED 1 ° = LOW _ EDUCATED and € VERY _ LOW − EDUCATED is also the first order supplement of € VERY _ HIGH − EDUCATED , € VERY _ HIGH _ EDUCATED 1 ° = VERY _ LOW _ EDUCATED REFERENCES 1. ZADEH L. (1965), Fuzzy Sets 2. BOOLE G. (1854), The Laws of Thought

Original Paper

Loading high-quality paper...

Comments & Academic Discussion

Loading comments...

Leave a Comment