Abstract

Let 𝑛 and 𝑟 be two integers such that 0<𝑟𝑛; we denote by 𝛾(𝑛,𝑟)[𝜂(𝑛,𝑟)] the minimum [maximum] number of the nonnegative partial sums of a sum 𝑛1=1𝑎𝑖0, where 𝑎1,,𝑎𝑛 are 𝑛 real numbers arbitrarily chosen in such a way that 𝑟 of them are nonnegative and the remaining 𝑛𝑟 are negative. We study the following two problems: (𝑃1) which are the values of 𝛾(𝑛,𝑟) and 𝜂(𝑛,𝑟) for each 𝑛 and 𝑟, 0<𝑟𝑛? (𝑃2) if 𝑞 is an integer such that 𝛾(𝑛,𝑟)𝑞𝜂(𝑛,𝑟) , can we find 𝑛 real numbers 𝑎1,,𝑎𝑛, such that𝑟 of them are nonnegative and the remaining 𝑛𝑟 are negative with 𝑛1=1𝑎𝑖0, such that the number of the nonnegative sums formed from these numbers is exactly 𝑞?

1. Introduction

In [1] Manickam and Miklós raised several interesting extremal combinatorial sum problems, two of which will be described below. Let 𝑛 and 𝑟 be two integers such that 0<𝑟𝑛; we denote by 𝛾(𝑛,𝑟)[𝜂(𝑛,𝑟)] the minimum [maximum] number of the nonnegative partial sums of a sum 𝑛1=1𝑎𝑖0, when 𝑎1,,𝑎𝑛 are 𝑛 real numbers arbitrarily chosen in such a way that 𝑟 of them are nonnegative and the remaining 𝑛𝑟 are negative. Put 𝐴(𝑛)=min{𝛾(𝑛,𝑟)0<𝑟𝑛}. In [1] the authors answered the following question.

(𝑄1) Which is the value of 𝐴(𝑛)?

In [1, Theorem 1] they found that 𝐴(𝑛)=2𝑛1. On the other side, from the proof of Theorem 1 of [1] also it follows that 𝛾(𝑛,𝑟)2𝑛1 for each 𝑟 and that 𝛾(𝑛,1)2𝑛1; therefore 𝛾(𝑛,1)=2𝑛1 (since 2𝑛1=𝐴(𝑛)𝛾(𝑛,1)2𝑛1). It is natural to set then the following problem which is a refinement of (𝑄1).

(𝑃1) Which are the values of 𝛾(𝑛,𝑟)and 𝜂(𝑛,𝑟) for each 𝑛 and 𝑟 with 0<𝑟𝑛?

In the first part of this paper we solve the problem (𝑃1), and we prove (see Theorem 4.1) that 𝛾(𝑛,𝑟)=2𝑛1 and 𝜂(𝑛,𝑟)=2𝑛2𝑛𝑟 for each positive integer 𝑟𝑛.

A further question that the authors raised in [1] is the following.

(𝑄2)  “We do not know what is the range of the possible numbers of the nonnegative partial sums of a nonnegative 𝑛-element sum. The minimum is 2𝑛1 as it was proven and the maximum is obviously 2𝑛1 but we do not know which are the numbers between them for which we can find reals 𝑎1,,𝑎𝑛 with 𝑛1=1𝑎𝑖0 such that the number of the nonnegative sums formed from these numbers is equal to that number.’’

The following problem is a natural refinement of (Q2).

(𝑃2)  If 𝑞 is an integer such that 𝛾(𝑛,𝑟)𝑞𝜂(𝑛,𝑟), can we find 𝑛 real numbers 𝑎1,,𝑎𝑛, such that 𝑟 of them are nonnegative and the remaining 𝑛𝑟 are negative with 𝑛1=1𝑎𝑖0, such that the number of the nonnegative sums formed from these numbers is exactly 𝑞?

In the latter part of this paper (see Theorem 4.5) we give a partial solution to the problem (𝑃2).

To be more precise in the formulation of the problems that we study and to better underline the links with some interesting problems raised in [1], it will be convenient-identify a finite set of real-numbers with an appropriate real-valued function. Let then 𝑛 and 𝑟 be two fixed integers such that 0<𝑟𝑛 and let 𝐼𝑛={1,2,,𝑛} (we call 𝐼𝑛 the index set). We denote by 𝑊(𝑛,𝑟), the set of all the functions 𝑓𝐼𝑛 such that 𝑥𝐼𝑛𝑓(𝑥)0 and |{𝑥𝐼𝑛𝑓(𝑥)0}|=𝑟. If 𝑓𝑊(𝑛,𝑟), we set 𝛼(𝑓)=|{𝑌𝐼𝑛𝑦𝑌𝑓(𝑦)0}|. It is easy to observe that 𝛾(𝑛,𝑟)=min{𝛼(𝑓)𝑓𝑊(𝑛,𝑟)} and 𝜂(𝑛,𝑟)=max{𝛼(𝑓)𝑓𝑊(𝑛,𝑟)}. We can reformulate the problem (𝑃2) in an equivalent way using the functions terminology instead of the sets terminology.

(𝑃2)  If 𝑞 is an integer such that 𝛾(𝑛,𝑟)𝑞𝜂(𝑛,𝑟), does there exist a function 𝑓𝑊(𝑛,𝑟) with the property that 𝛼(𝑓)=𝑞?

To solve the problem (𝑃1) and (partially) (𝑃2), we use some abstract results on a particular class of lattices introduced in [2, 3]. In this paper we substantially continue the research project started in [4], which is the attempt to solve some extremal sum problems as started in [1] and further studied in [3, 511].

2. A Partial Order on the Subsets of 𝐼𝑛

Of course if we take two functions 𝑓,𝑔𝑊(𝑛,𝑟) such that 𝑓(𝐼𝑛)=𝑔(𝐼𝑛), then 𝛼(𝑓)=𝛼(𝑔). This implies that if we define on 𝑊(𝑛,𝑟) the equivalence relation 𝑓𝑔 iff 𝑓(𝐼𝑛)=𝑔(𝐼𝑛) and we denote by [𝑓] the equivalence class of a function 𝑓𝑊(𝑛,𝑟), then the definition 𝛽([𝑓])=𝛼(𝑓) is well placed. It is also clear that it holds 𝛾(𝑛,𝑟)=min{𝛽([𝑓])[𝑓]𝑊(𝑛,𝑟)/} and 𝜂(𝑛,𝑟)=max{𝛽([𝑓])[𝑓]𝑊(𝑛,𝑟)/}. Now, when we take an equivalence class [𝑓]𝑊(𝑛,𝑟)/~, there is a unique 𝑓[𝑓] such that𝑓(𝑟)𝑓(1)0>𝑓(𝑟+1)𝑓(𝑛).(2.1) We can then identify the quotient set 𝑊(𝑛,𝑟)/~  with the subset of all the functions 𝑓𝑊(𝑛,𝑟) that satisfy the condition (2.1). This simple remark conducts us to rename the indexes of 𝐼𝑛 as follows: ̃𝑟 instead of ̃1𝑟,, instead of 1, 1 instead of 𝑟+1,,𝑛𝑟 instead of 𝑛. Therefore, if we set ̃𝐼(𝑛,𝑟)={1,,̃𝑟,1,,𝑛𝑟}, we can identify the quotient set 𝑊(𝑛,𝑟)/  with the set of all the functions 𝑓𝐼(𝑛,𝑟) that satisfy the following two conditions:̃1𝑓(̃𝑟)++𝑓+𝑓1++𝑓̃1𝑛𝑟0,𝑓(̃𝑟)𝑓0>𝑓1𝑓.𝑛𝑟(2.2) Now, if a generic function 𝑓𝐼(𝑛,𝑟) that satisfies (2.2) is given, we are interested to find all the subsets 𝑌𝐼(𝑛,𝑟) such that 𝑦𝑌𝑓(𝑦)0. This goal becomes then easier if we can have an appropriate partial order on the power set 𝒫(𝐼(𝑛,𝑟)) “compatible” with the total order of the partial sums inducted by 𝑓, that is, a partial order that satisfies the following monotonicity property: if 𝑌,𝑍𝒫(𝐼(𝑛,𝑟)), then 𝑧𝑍𝑓(𝑥)𝑦𝑌𝑓(𝑦) whenever 𝑍𝑌. To have such a partial order on 𝒫(𝐼(𝑛,𝑟)) that has the monotonicity property we must introduce a new formal symbol that we denote by0§. We add this new symbol to the index set 𝐼(𝑛,𝑟), so we set 𝐴(𝑛,𝑟)=𝐼(𝑛,𝑟){0§}. We introduce on 𝐴(𝑛,𝑟) the following total order:𝑛𝑟210§̃̃12̃𝑟.(2.3)If 𝑖,𝑗𝐴(𝑛,𝑟), then we write: 𝑖𝑗 for 𝑖=𝑗 or 𝑖𝑗. We denote by 𝑆(𝑛,𝑟) the set of all the formal expressions 𝑖1𝑖𝑟𝑗1𝑗𝑛𝑟 (hereafter called strings) that satisfy the following properties:(i)𝑖1,,𝑖𝑟̃{1,,̃𝑟,0§}, (ii)𝑗1,,𝑗𝑛𝑟{1,,𝑛𝑟,0§}, (iii)𝑖1𝑖𝑟0§𝑗1𝑗𝑛𝑟, (iv)the unique element which can be repeated is 0§.

In the sequel we often use the lowercase letters 𝑢,𝑤,𝑧, to denote a generic string in 𝑆(𝑛,𝑟). Moreover to make smoother reading, in the numerical examples the formal symbols which appear in a string will be written without ~   and §; in such way the vertical bar will indicate that the symbols on the left of | are in {̃1,,̃𝑟,0§} and the symbols on the right of are elements in {0§,1,,𝑛𝑟}. For example, if 𝑛=3 and 𝑟=2, then ̃̃𝐴(3,2)={210§1} and 𝑆(3,2)={21|0,21|1,10|0,20|0,10|1,20|1,00|1,00|0}.

Note that there is a natural bijective setcorrespondence 𝑤𝑆(𝑛,𝑟)𝑤𝒫(𝐼(𝑛,𝑟))between 𝑆(𝑛,𝑟) and 𝒫(𝐼(𝑛,𝑟)) defined as follows: if 𝑤=𝑖1𝑖𝑟𝑗1𝑗𝑛𝑟𝑆(𝑛,𝑟), then 𝑤 is the subset of 𝐼(𝑛,𝑟) made with the elements 𝑖𝑘 and 𝑗𝑙 such that 𝑖𝑘0§ and 𝑗𝑙0§. For example, if 𝑤=4310013𝑆(7,4), then 𝑤̃̃̃={1,3,4,1,3}. In particular, if 𝑤=0000, then 𝑤=.

Now, if 𝑣=𝑖1𝑖𝑟𝑗1𝑗𝑛𝑟 and 𝑤=𝑖1𝑖𝑟𝑗1𝑗𝑛𝑟 are two strings in 𝑆(𝑛,𝑟), we define: 𝑣𝑤 iff 𝑖1𝑖1,,𝑖𝑟𝑖𝑟,𝑗1𝑗𝑟,,𝑗𝑛𝑟𝑗𝑛𝑟.

It is easily seen that (1)(𝑆(𝑛,𝑟),) is a finite distributive (hence also graded) lattice with minimum element 0012(𝑛𝑟) and maximum element 𝑟(𝑟1)2100; (2)(𝑆(𝑛,𝑟),)has the following unary complementary operation 𝑐: 𝑝1𝑝𝑘0000𝑞1𝑞𝑙𝑐=𝑝1𝑝𝑟𝑘0000𝑞1𝑞𝑛𝑟𝑙,(2.4)where {𝑝1,,𝑝𝑟𝑘} is the usual complement of {𝑝1,,𝑝𝑘} in {̃1,,̃𝑟} and {𝑞1,,𝑞𝑛𝑟𝑙} is the usual complement of {𝑞1,,𝑞𝑙} in {1,,𝑛𝑟} (e.g., in 𝑆(7,4), we have that (4310001)𝑐=2000023).

Since we have the formal necessity to consider functions 𝑓 defined on the extended set 𝐴(𝑛,𝑟) instead of on the indexes set 𝐼(𝑛,𝑟), then we will put 𝑓(0§)=0. Precisely we can identify the quotient set 𝑊(𝑛,𝑟)/ with the set 𝑊𝐹(𝑛,𝑟), defined by ̃10𝑊𝐹(𝑛,𝑟)=𝑓𝐴(𝑛,𝑟)𝑓(̃𝑟)𝑓𝑓§=0>𝑓1𝑓̃1𝑛𝑟,𝑓(̃𝑟)++𝑓+𝑓1++𝑓.𝑛𝑟0(2.5)

We call an element of 𝑊𝐹(𝑛,𝑟) a (𝑛,𝑟)-weight function, and if 𝑓𝑊𝐹(𝑛,𝑟), we will continue to set 𝛼(𝑓)=|{𝑌𝐼(𝑛,𝑟)𝑦𝑌𝑓(𝑦)0}|. Therefore, with these last notations we have that 𝛾(𝑛,𝑟)=min{𝛼(𝑓)𝑓𝑊𝐹(𝑛,𝑟)}, 𝜂(𝑛,𝑟)=max{𝛼(𝑓)𝑓𝑊𝐹(𝑛,𝑟)} and the question (𝑃2) becomes equivalent to the following.

(𝑃2)  If 𝑞 is an integer such that 𝛾(𝑛,𝑟)𝑞𝜂(𝑛,𝑟), does there exist a function 𝑓𝑊𝐹(𝑛,𝑟)with the property that 𝛼(𝑓)=𝑞?

3. Boolean Maps Induct by Weight Functions

We denote by 𝟐 the boolean lattice composed of a chain with 2 elements that we denote 𝑁 (the minimum element) and 𝑃 (the maximum element). A Boolean map (briefly BM) on 𝑆(𝑛,𝑟) is a map 𝐴dom(𝐴)𝑆(𝑛,𝑟)𝟐; in particular if dom(𝐴)=𝑆(𝑛,𝑟),we also say that 𝐴 is a Boolean total map (briefly BTM) on 𝑆(𝑛,𝑟). If 𝐴 is BM on 𝑆(𝑛,𝑟), we set 𝑆+𝐴(𝑛,𝑟)={𝑤dom(𝐴)𝐴(𝑤)=𝑃}.

If 𝑓𝑊𝐹(𝑛,𝑟), the sum function Σ𝑓𝑆(𝑛,𝑟) induced by 𝑓 on 𝑆(𝑛,𝑟) is the function that associates to 𝑤=𝑖𝑟𝑖1𝑗1𝑗𝑛𝑟𝑆(𝑛,𝑟) the real number Σ𝑓(𝑤)=𝑓(𝑖1)++𝑓(𝑖𝑟)+𝑓(𝑗1)++𝑓(𝑗𝑛𝑟), and therefore we can associate to 𝑓𝑊𝐹(𝑛,𝑟) the map 𝐴𝑓𝑆(𝑛,𝑟)𝟐 setting:𝐴𝑓(𝑤)=𝑃ifΣ𝑓(𝑤)0,𝑤0000,𝑁if𝑤=0000,𝑁ifΣ𝑓(𝑤)<0.(3.1)

Let us note that |𝑆+𝐴𝑓(𝑛,𝑟)|=|{𝑤𝑆(𝑛,𝑟)𝐴𝑓(𝑤)=𝑃}|=𝛼(𝑓), and so 𝛾(𝑛,𝑟)=min{|𝑆+𝐴𝑓(𝑛,𝑟)|𝑓𝑊𝐹(𝑛,𝑟)},𝜂(𝑛,𝑟)=max{|𝑆+𝐴𝑓(𝑛,𝑟)|𝑓𝑊𝐹(𝑛,𝑟)}.

Our goal is now to underline that some properties of such maps simplify the study of our problems. It is easy to observe that the map 𝐴𝑓 has the following properties.(i)𝐴𝑓 is orderpreserving.(ii)If 𝑤𝑆(𝑛,𝑟) is such that 𝐴𝑓(𝑤)=𝑁, then 𝐴𝑓(𝑤𝑐)=𝑃,(iii)𝐴𝑓(10000)=𝑃, 𝐴(0000)=𝑁, and 𝐴𝑓(𝑟2112(𝑛𝑟))=𝑃.

Example 3.1. Let 𝑓 be the following (5,3)-weight function: ̃3̃2̃1𝑓12110.90.82.1(3.2) We represent the map 𝐴𝑓 defined on 𝑆(5,3) by using the Hasse diagram of this lattice, on which we color green the nodes where the map 𝐴𝑓 assumes value 𝑃 and red the nodes where it assumes value 𝑁 (See Figure 1).
Note that if we have a generic Boolean total map 𝐴𝑆(𝑛,𝑟)𝟐 which has the properties (i), (ii), and (iii) of 𝐴𝑓, that is, the following:(BM1)𝐴 is orderpreserving,(BM2)if 𝑤𝑆(𝑛,𝑟) is such that 𝐴(𝑤)=𝑁, then 𝐴(𝑤𝑐)=𝑃,(BM3)𝐴(10000)=𝑃, 𝐴(0000)=𝑁, and𝐴(𝑟2112(𝑛𝑟))=𝑃,in general there does not exist a function 𝑓𝑊𝐹(𝑛,𝑟) such that 𝐴𝑓=𝐴 (see [3] for a counterexample).
We denote by 𝒲+(𝑆(𝑛,𝑟),𝟐) the set of all the maps 𝐴𝑆(𝑛,𝑟)𝟐 which satisfy (BM1) and (BM2) and by 𝒲+(𝑛,𝑟) the subset of all the maps in 𝒲+(𝑆(𝑛,𝑟),𝟐) which satisfy also (BM3). We also set 𝛾(𝑛,𝑟)=min{|𝑆+𝐴(𝑛,𝑟)𝐴𝒲+(𝑛,𝑟)} and 𝜂(𝑛,𝑟)=max{|𝑆+𝐴(𝑛,𝑟)|𝐴𝒲+(𝑛,𝑟)}. Let us observe that 𝛾(𝑛,𝑟)𝛾(𝑛,𝑟)𝜂(𝑛,𝑟)𝜂(𝑛,𝑟). A natural question raises at this point.
(𝑄):if 𝑞 is an integer such that 𝛾(𝑛,𝑟)𝑞𝜂(𝑛,𝑟), does there exist a map 𝐴𝒲+(𝑛,𝑟) with the property that |𝑆+𝐴(𝑛,𝑟)|=𝑞?
The question (𝑄) is the analogue of (𝑃2) expressed in terms of Boolean total maps on 𝑆(𝑛,𝑟) instead of (𝑛,𝑟)-weight functions, and if we are able to respond to (𝑄), we provide also a partial answer to (𝑃2). In Section 4 we give an affirmative answer to the question (𝑄), and also we give a constructive method to build the map 𝐴.

4. Main Results

In the sequel of this paper we adopt the classical terminology and notations usually used in the context of the partially ordered sets (see [1214] for the general aspects on this subject). If 𝑍𝑆(𝑛,𝑟), we will set 𝑍={𝑥𝑆(𝑛,𝑟)𝑧𝑍suchthat𝑥𝑧},𝑍={𝑥𝑆(𝑛,𝑟)𝑧𝑍suchthat𝑧𝑥}. In particular, if 𝑧𝑆(𝑛,𝑟), we will set 𝑧={𝑧}={𝑥𝑆(𝑛,𝑟)𝑧𝑥}, 𝑧={𝑧}={𝑥𝑆(𝑛,𝑟)𝑧𝑥}. 𝑍 is called a downset of 𝑆(𝑛,𝑟) if for 𝑧𝑍 and 𝑥𝑆(𝑛,𝑟) with 𝑧𝑥, then 𝑥𝑍. 𝑍 is called an upset of 𝑆(𝑛,𝑟) if for 𝑧𝑍 and 𝑥𝑆(𝑛,𝑟) with 𝑧𝑥, then 𝑥𝑍. 𝑍 is the smallest down-set of 𝑆(𝑛,𝑟) which contains 𝑍, and 𝑍 is a downset of 𝑆(𝑛,𝑟) if and only if 𝑍=𝑍. Similarly, 𝑍 is the smallest up-set of 𝑆(𝑛,𝑟) which contains 𝑍, and 𝑍 is an upset in 𝑆(𝑛,𝑟) if and only if 𝑍=𝑍.

Theorem 4.1. If 𝑛 and 𝑟 are two integers such that 0<𝑟<𝑛, then 𝛾(𝑛,𝑟)=𝛾(𝑛,𝑟)=2𝑛1 and 𝜂(𝑛,𝑟)=𝜂(𝑛,𝑟)=2𝑛2𝑛𝑟.

Proof. Assume that 0<𝑟<𝑛. We denote by 𝑆1(𝑛,𝑟) the sublattice of 𝑆(𝑛,𝑟) of all the strings 𝑤 of the form 𝑤=𝑖1𝑖𝑟𝑗1𝑗𝑛𝑟1(𝑛𝑟), with 𝑗1𝑗𝑛𝑟1{0§,1,,𝑛𝑟1} and by 𝑆2(𝑛,𝑟) the sublattice of 𝑆(𝑛,𝑟) of all the strings 𝑤 of the form 𝑤=𝑖1𝑖𝑟0𝑗2𝑗𝑛𝑟, with 𝑗2𝑗𝑛𝑟{0§,1,,𝑛𝑟1}. It is clear that 𝑆(𝑛,𝑟)=𝑆1̇𝑆(𝑛,𝑟)2(𝑛,𝑟)and 𝑆1(𝑛,𝑟)𝑆2(𝑛,𝑟)𝑆(𝑛1,𝑟). We consider now the following further sublattices of 𝑆(𝑛,𝑟): 𝑆+1(𝑛,𝑟)=𝑤𝑆1(𝑛,𝑟)𝑤=𝑟(𝑟1)21𝑗1𝑗𝑛𝑟1,𝑆(𝑛𝑟)±1(𝑛,𝑟)=𝑤𝑆1(𝑛,𝑟)𝑤=𝑖1𝑖𝑟10𝑗1𝑗𝑛𝑟1(𝑛𝑟),𝑖10§,𝑆1(𝑛,𝑟)=𝑤𝑆1(𝑛,𝑟)𝑤=00𝑗1𝑗𝑛𝑟1,𝑆(𝑛𝑟)+2(𝑛,𝑟)=𝑤𝑆2(𝑛,𝑟)𝑤=𝑟(𝑟1)210𝑗2𝑗𝑛𝑟,𝑆±2(𝑛,𝑟)=𝑤𝑆2(𝑛,𝑟)𝑤=𝑖1𝑖𝑟100𝑗2𝑗𝑛𝑟,𝑖10§,𝑆2(𝑛,𝑟)=𝑤𝑆2(𝑛,𝑟)𝑤=000𝑗2𝑗𝑛𝑟.(4.1)It occurs immediately that 𝑆𝑖(𝑛,𝑟)=𝑆+𝑖̇𝑆(𝑛,𝑟)±𝑖̇𝑆(𝑛,𝑟)𝑖(𝑛,𝑟), for 𝑖=1,2 and 𝑆±𝑖(𝑛,𝑟) is a distributive sublattice of 𝑆𝑖(𝑛,𝑟) with 2𝑛122𝑛𝑟1=2𝑛12𝑛𝑟 elements, for 𝑖=1,2.
Now we consider the following (𝑛,𝑟)-weight function 𝑓𝐴(𝑛,𝑟):̃𝑓̃𝑟10§1(𝑛𝑟1)(𝑛𝑟)(𝑛𝑟)(𝑛𝑟)011(𝑛𝑟)(1𝑟)1(4.2) Then it follows that Σ𝑓𝑆(𝑛,𝑟) is such that Σ𝑓(𝑤)0if𝑤𝑆±2(𝑛,𝑟),<0if𝑤𝑆±1(𝑛,𝑟).(4.3) It means that the boolean map 𝐴𝑓𝒲+(𝑛,𝑟) is such that 𝐴𝑓(𝑤)𝑃if𝑤𝑆±2(𝑛,𝑟),𝑁if𝑤𝑆±1(𝑛,𝑟).(4.4) This shows that |𝑆+𝐴𝑓(𝑛,𝑟)|=|𝑆+1̇𝑆(𝑛,𝑟)+2̇𝑆(𝑛,𝑟)±2(𝑛,𝑟)|=2𝑛𝑟1+2𝑛𝑟1+2𝑛122𝑛𝑟1=2𝑛1.
In [1, Theorem 1] it has been proved that 𝛾(𝑛,1)=2𝑛1 and 𝛾(𝑛,𝑟)2𝑛1. Since 𝛾(𝑛,𝑟)𝛾(𝑛,𝑟), using a technique similar to that used in the proof Theorem 1 of [1], it easily follows that 𝛾(𝑛,𝑟)2𝑛1. As shown above, it results that |𝑆+𝐴𝑓(𝑛,𝑟)|=2𝑛1. Hence 2𝑛1𝛾(𝑛,𝑟)𝛾(𝑛,𝑟)2𝑛1, that is, 𝛾(𝑛,𝑟)=𝛾(𝑛,𝑟)=2𝑛1. This proves; the first part of theorem; it remains to prove the latter part.
We consider now the following (𝑛,𝑟)-positive weight function 𝑔𝐴(𝑛,𝑟): ̃̃𝑟10§1(𝑛𝑟1)(𝑛𝑟)𝑔1101𝑛𝑟1𝑛𝑟1𝑛𝑟(4.5) It results then that the sum Σ𝑔𝑆(𝑛,𝑟) is such that Σ𝑔(𝑤)0 if 𝑤𝑆±1̇𝑆(𝑛,𝑟)±2(𝑛,𝑟); that is, the boolean map 𝐴𝑔𝒲+(𝑛,𝑟) is such that 𝐴𝑔(𝑤)=𝑃if 𝑤𝑆±1̇𝑆(𝑛,𝑟)±2(𝑛,𝑟). This shows that |𝑆+𝐴𝑔(𝑛,𝑟)|=|𝑆±1̇𝑆(𝑛,𝑟)±2̇𝑆(𝑛,𝑟)+1̇𝑆(𝑛,𝑟)+2(𝑛,𝑟)|=(2𝑛12𝑛𝑟)+(2𝑛12𝑛𝑟)+2𝑛𝑟1+2𝑛𝑟1 = 2𝑛2𝑛𝑟.
On the other hand, it is clear that for any 𝐴𝒲+(𝑛,𝑟) it results 𝐴(𝑤)=𝑃 for each 𝑤𝑆+1̇𝑆(𝑛,𝑟)+2(𝑛,𝑟)and 𝐴(𝑤)=𝑁 for each 𝑤𝑆1̇𝑆(𝑛,𝑟)2(𝑛,𝑟).The number (2𝑛2𝑛𝑟) is the biggest number of values 𝑃 that a boolean map 𝐴𝒲+(𝑛,𝑟) can assume. Hence, since 𝜂(𝑛,𝑟)𝜂(𝑛,𝑟), we have 2𝑛2𝑛𝑟=|𝑆+𝐴𝑔(𝑛,𝑟)|𝜂(𝑛,𝑟)𝜂(𝑛,𝑟)2𝑛2𝑛𝑟; that is be; 𝜂(𝑛,𝑟)=𝜂(𝑛,𝑟)=2𝑛2𝑛𝑟. This concludes the proof of Theorem 4.1.

To better visualize the previous result, we give a numerical example on a specific Hasse diagram. Let 𝑛=6 and 𝑟=2 and let 𝑓 be as given in previous theorem; that is ̃2̃𝑓10§12344401115(4.6) In Figure 2 we have shown the Hasse diagram of the lattice 𝑆(6,2), where 𝑆+1(𝑛,𝑟) is black, 𝑆±1(𝑛,𝑟) is violet, 𝑆1(𝑛,𝑟) is red, 𝑆+2(𝑛,𝑟) is blue, 𝑆±2(𝑛,𝑟) is brown, 𝑆2(𝑛,𝑟) is green. Therefore 𝐴𝑓 assume the following values.(i)The blue, black, and brown nodes correspond to values 𝑃 of 𝐴𝑓,(ii)The violet, red, and green nodes correspond to values 𝑁 of 𝐴𝑓.

First to give the proof of Theorem 4.5 we need to introduce some useful results and the concept of basis in 𝑆(𝑛,𝑟). In the following first lemma we show some properties of the sublattices of 𝑆(𝑛,𝑟).

Lemma 4.2. Here the following properties hold, where 𝜃=00000 and Θ=𝑟2112(𝑛𝑟). (i)Θ=𝑆+1̇𝑆(𝑛,𝑟)+2(𝑛,𝑟).(ii)𝜃=𝑆1̇𝑆(𝑛,𝑟)2(𝑛,𝑟).(iii)𝑆±2(𝑛,𝑟)𝑆±2̇𝑆(𝑛,𝑟)+2(𝑛,𝑟).(iv)𝑆±1(𝑛,𝑟)𝑆±1̇𝑆(𝑛,𝑟)1(𝑛,𝑟).(v)((𝑆±1(𝑛,𝑟))𝑐=𝑆±2(𝑛,𝑟).

Proof. (i) If 𝑤(Θ), then Θ𝑤; that is, it has the form 𝑤=𝑟1𝑗1𝑗𝑛𝑟, where 𝑗1𝑗𝑛𝑟{0§,1,,𝑛𝑟}; therefore 𝑤𝑆+1̇𝑆(𝑛,𝑟)+2(𝑛,𝑟). If 𝑤𝑆+1(𝑛,𝑟), it has the form 𝑤=𝑟1𝑗1𝑗𝑛𝑟1(𝑛𝑟), where 𝑗1𝑗𝑛𝑟1{0§,1,,𝑛𝑟1}; if 𝑤𝑆+2(𝑛,𝑟), it has the form 𝑤=𝑟10𝑗2𝑗𝑛𝑟, where 𝑗2𝑗𝑛𝑟{0§,1,,𝑛𝑟1}. In both cases it results that Θ𝑤, that is, 𝑤(Θ).(ii)It is analogue to (i).(iii)The minimum of the sublattice 𝑆±2(𝑛,𝑟)is 𝛼=10001(𝑛𝑟1); since 𝑆±2(𝑛,𝑟)𝛼, it is sufficient to show that 𝛼=𝑆±2𝑆(𝑛,𝑟)+2(𝑛,𝑟). The inclusion 𝑆±2𝑆(𝑛,𝑟)+2(𝑛,𝑟)𝛼follows by the definition of 𝑆±2(𝑛,𝑟)and of 𝑆+2(𝑛,𝑟). On the other side, if 𝑤𝛼, it follows that 𝛼𝑤; that is, 𝑤=𝑖1𝑖𝑟0𝑗2𝑗𝑛𝑟, with 𝑖10§and 𝑗2𝑗𝑛𝑟{0§,1,,𝑛𝑟1}. Therefore 𝑤𝑆±2𝑆(𝑛,𝑟)+2(𝑛,𝑟), and this proves the other inclusion.(iv)Let us consider the maximum of the sublattice 𝑆±1(𝑛,𝑟); that is 𝑡1=𝑟(𝑟1)2000(𝑛𝑟). Since 𝑆±1(𝑛,𝑟)𝛽, it is sufficient to show that 𝑡1=𝑆±1𝑆(𝑛,𝑟)1(𝑛,𝑟); this proof is similar to (iii).(v)If 𝑤𝑆±1(𝑛,𝑟); it has the form 𝑤=𝑖1𝑖𝑟10𝑗1𝑗𝑛𝑟1(𝑛𝑟), with 𝑖10§ and 𝑗1𝑗𝑛𝑟1{0§,1,,𝑛𝑟1}; therefore its complement has the form 𝑤𝑐=𝑖1𝑖𝑟100𝑗2𝑗𝑛𝑟, with 𝑖10§ and 𝑗2𝑗𝑛𝑟{0§,1,,𝑛𝑟1}; hence 𝑤𝑐𝑆±2(𝑛,𝑟). This shows that (𝑆±1(𝑛,𝑟))𝑐𝑆±2(𝑛,𝑟).
Now, if 𝑤𝑆±2(𝑛,𝑟), we write 𝑤 in the form (𝑤𝑐)𝑐; then 𝑤𝑐(𝑆±2(𝑛,𝑟))𝑐𝑆±1(𝑛,𝑟); therefore 𝑤(𝑆±1(𝑛,𝑟))𝑐. This shows that 𝑆±2(𝑛,𝑟)(𝑆±1(𝑛,𝑟))𝑐.

At this point let us recall the definition of basis for 𝑆(𝑛,𝑟), as given in [3] in a more general context. In the same way as an antichain uniquely determines a Boolean order-preserving map, a basis uniquely determines a Boolean map that has the properties (BM1) and (BM2) (see [3] for details). Hence the concept of basis will be fundamental in the sequel of this proof.

Definition 4.3. A basis for 𝑆(𝑛,𝑟) is an ordered couple 𝑌+𝑌, where 𝑌+ and 𝑌 are two disjoint antichains of 𝑆(𝑛,𝑟) such that(B1)(𝑌+)(𝑌𝑐)=, (B2)((𝑌+)(𝑌𝑐))𝑌=, (B3)𝑆(𝑛,𝑟)=((𝑌+)(𝑌𝑐))𝑌. In the proof of Theorem 4.5 we will construct explicitly such a basis.
We will also use the following result that was proved in [3].

Lemma 4.4. Let 𝑊+𝑊 be a basis for 𝑆(𝑛,𝑟). Then the map 𝑊𝐴(𝑥)𝑃if𝑥+𝑊𝑐,𝑁if𝑥𝑊(4.7) is such that 𝐴𝒲+(𝑆(𝑛,𝑟),𝟐).

Theorem 4.5. If 𝑞 is a fixed integer with 2𝑛1𝑞2𝑛2𝑛𝑟, then there exists a boolean map 𝐴𝑞𝒲+(𝑛,𝑟) such that |𝑆+𝐴𝑞(𝑛,𝑟)|=𝑞.

Proof. Let 𝑞 be a fixed integer such that 2𝑛1𝑞2𝑛2𝑛𝑟. We determine a specific Boolean total map 𝐴𝒲+(𝑛,𝑟) such that |𝑆+𝐴(𝑛,𝑟)|=𝑞. We proceed as follows.
The case 𝑟=1 is proved in the previous Theorem 4.1. Let us assume then 𝑟>1. Since 𝑆±1(𝑛,𝑟) is a finite distributive sublattice of graded lattice 𝑆(𝑛,𝑟), also 𝑆±1(𝑛,𝑟) is a graded lattice. We denote by 𝑅 the rank of 𝑆±1(𝑛,𝑟) and with 𝜌1 its rank function. Note that the bottom of 𝑆±1(𝑛,𝑟) is 𝑏1=1001(𝑛𝑟1)(𝑛𝑟) and the top is 𝑡1=𝑟(𝑟1)2000(𝑛𝑟).
We write 𝑞 in the form 𝑞=2𝑛1+𝑝 with 0𝑝2𝑛2𝑛𝑟2𝑛1=2n12𝑛𝑟=|𝑆±1(𝑛,𝑟)|. We will build a map 𝐴𝑊+(𝑛,𝑟) such that |𝑆+𝐴(𝑛,𝑟)|=2𝑛1+𝑝.
If 𝑝=0, we take 𝐴=𝐴𝑓, with 𝑓 as in Theorem 4.1, and hence we have |𝑆+𝐴(𝑛,𝑟)|=2𝑛1.
If 𝑝=2𝑛12𝑛𝑟, we take 𝐴=𝐴𝑔, with 𝑔 as in Theorem 4.1, and we have |𝑆+𝐴(𝑛,𝑟)|=2𝑛2𝑛𝑟.
Therefore we can assume that 0<𝑝<2𝑛12𝑛𝑟.
If 0𝑖𝑅, we denote by 𝑖 the set of elements 𝑤𝑆±1(𝑛,𝑟) such that 𝜌1(𝑤)=𝑅𝑖, and we also set 𝛽𝑖=|𝑖| to simplify the notation. We write each 𝑖 in the following form: 𝑖={𝑣𝑖1,,𝑣𝑖𝛽𝑖}. If 0𝑙𝑅, we set 𝔘l̇=𝑖=0,,𝑙𝑖.
If 0𝑙𝑅2, we set 𝔅𝑙̇=𝑖=𝑙+2,,𝑅𝑖 and 𝔅𝑅1=𝔅𝑅=. We can then write 𝑝 in the form 𝑝=𝑘𝑖=0|𝑖|+𝑠=|𝔘𝑘|+𝑠, for some 0𝑠<|𝑘+1| and some 0𝑘𝑅1. Depending on the previous number 𝑠 we partition 𝑘+1 into the following two disjoint subsets: 𝑘+1={𝑣(𝑘+1)1,,𝑣(𝑘+1)𝑠}̇{𝑣(𝑘+1)(𝑠+1),,𝑣(𝑘+1)𝛽𝑘+1}, where the first subset is considered empty if 𝑠=0.
In the sequel, to avoid an overload of notations, we write simply 𝑣𝑖 instead of 𝑣(𝑘+1)𝑖, for 𝑖=1,,𝛽𝑘+1.
Let us note that 𝑆±1(𝑛,𝑟)=𝔘𝑘̇𝑘+1̇𝔅𝑘.
We define now the map 𝐴𝑆(𝑛,𝑟)𝟐: 𝐴(𝑤)=𝑃if𝑤𝑆±2̇𝑆(𝑛,𝑟)+1̇𝑆(𝑛,𝑟)+2(𝑛,𝑟),𝑃if𝑤𝔘𝑘̇𝑣1,,𝑣𝑠,𝑁if𝑤𝔅𝑘̇𝑣𝑠+1,,𝑣𝛽𝑘+1,𝑁if𝑤𝑆1(̇𝑆𝑛,𝑟)2(𝑛,𝑟).(4.8) Let us observe that |𝑆+𝐴(𝑛,𝑟)| = |𝑆±2̇𝑆(𝑛,𝑟)+1̇𝑆(𝑛,𝑟)+2(𝑛,𝑟)|+|𝔘𝑘̇{𝑣1,,𝑣𝑠}| = (2𝑛12𝑛𝑟)+2𝑛𝑟1+2𝑛𝑟1+|𝔘𝑘|+𝑠 = 2𝑛1+𝑝 = 𝑞.
Therefore, if we show that 𝐴𝒲+(𝑛,𝑟), the theorem is proved.
We write 𝑘 in the following way: 𝑘={𝑤1,,𝑤𝑡}̇{𝑤𝑡+1,,𝑤𝛽𝑘},where {𝑤1,,𝑤𝑡} = 𝑘{𝑣1,,𝑣𝑠} and {𝑤𝑡+1,,𝑤𝛽𝑘} = 𝑘{𝑤1,,𝑤𝑡}. Analogously 𝑘+2 = {𝑧1,,𝑧𝑞}̇{𝑧𝑞+1,,𝑧𝛽𝑘+2}, where {𝑧𝑞+1,,𝑧𝛽𝑘+2} = 𝑘+2{𝑣𝑠+1,,𝑣𝛽𝑘+1} and {𝑧1,,𝑧𝑞} = 𝑘+2{𝑧𝑞+1,,𝑧𝛽𝑘+2}.
We can see a picture of this partition of the sublattice 𝑆±1(𝑛,𝑟) in Figure 3.
Depending on 𝑠 and 𝑘, we build now a particular basis for 𝑆(𝑛,𝑟).
To such aim, let us consider the minimum 𝛼=10001(𝑛𝑟1) of 𝑆±2(𝑛,𝑟) and the subsets 𝑇+={𝑣1,,𝑣𝑠,𝑤𝑡+1,,𝑤𝛽𝑘} and 𝑇={𝑣𝑠+1,,𝑣𝛽𝑘+1,𝑧1,,𝑧𝑞}. Let us distinguish two cases:(a1)𝛼𝑇+,(a2)𝛼𝑇+. We define two different couples of subsets as follows:
In the case (a1) we set 𝑌+=𝑇+and𝑌=𝑇̇{𝜃};in the case (a2) we set 𝑌+=𝑇+{𝛼} and 𝑌=𝑇̇{𝜃}.
Step 1. 𝑌+𝑌 is a couple of two disjoint antichains of 𝑆(𝑛,𝑟).
In both cases (a1) and (a2) it is obvious that 𝑌+𝑌=.
Case (a1)
The elements {𝑣1,,𝑣𝑠} are not comparable between them because they have all rank 𝑅(𝑘+1) and analogously for the elements {𝑤𝑡+1,,𝑤𝛽𝑘} that have all rank 𝑅𝑘. Let now 𝑣{𝑣1,,𝑣𝑠} and let 𝑤{𝑤𝑡+1,,𝑤𝛽𝑘}; then 𝑤𝑣 because 𝜌1(𝑣)<𝜌1(𝑤), and 𝑤𝑣 because {𝑤𝑡+1,,𝑤𝛽𝑘}{𝑣1,,𝑣𝑠}= by construction. For the elements in 𝑌 different from 𝜃, we can proceed as for 𝑌+. On the other side, we can observe that 𝜃 is not comparable with none of the elements 𝑣𝑠+1,,𝑣𝛽𝑘+1,𝑧1,,𝑧𝑞 since these are all in 𝑆±1(𝑛,𝑟) while 𝜃𝑆2(𝑛,𝑟). Thus 𝑌+ is an antichain.
Case (a2)
In this case we only must show that 𝛼 is not comparable with none of the elements 𝑣1,,𝑣𝑠,𝑤𝑡+1,,𝑤𝛽𝑘. At first from the fact that 𝛼𝑇+ it follows 𝑣𝑖𝛼 for each 𝑖=1,,𝑠, and 𝑤𝑗𝛼 for each 𝑗=𝑡+1,,𝛽𝑘. Moreover, the elements 𝑣1,,𝑣𝑠 and 𝑤𝑡+1,,𝑤𝛽𝑘 are all in 𝑆±1(𝑛,𝑟); hence they have the form 𝑖1𝑖𝑟10𝑗1𝑗𝑛𝑟1(𝑛𝑟), with 𝑖10§, while 𝛼=10001(𝑛𝑟1), so 𝛼𝑣𝑖 and 𝛼𝑤𝑗 for each 𝑖=1,,𝑠 and each 𝑗=𝑡+1,,𝛽𝑘.
Step 2. 𝑌+𝑌 is a basis for 𝑆(𝑛,𝑟).
We must see that (B1), (B2), and (B3) hold in both cases (a1) and (a2).
Case (a1)
(B1)Let us begin to observe that 𝑇𝑐={𝑣𝑐𝑠+1,,𝑣𝑐𝛽𝑘+1,𝑧𝑐1,,𝑧𝑐𝑞}(𝑆±1(𝑛,𝑟))𝑐=𝑆±2(𝑛,𝑟). Since 𝜃𝑐=Θ, we have then 𝑌𝑐=𝑇𝑐̇{𝜃𝑐}𝑆±2̇(𝑛,𝑟){Θ}𝑆±2̇𝑆(𝑛,𝑟)+1(𝑛,𝑟).On the other hand, since 𝑌+𝑆±1(𝑛,𝑟), by Lemma 4.2(iv) we have also that 𝑌+𝑆±1(𝑛,𝑟).𝑆1(𝑛,𝑟). Hence (𝑌+)(𝑌𝑐)=. This proves (B1).(B2)We show at first that 𝑌𝑐𝑌=. Since 𝑌𝑐𝑆±2̇(𝑛,𝑟){Θ}, we have that 𝑌𝑐(𝑆±2(𝑛,𝑟))Θ. By Lemma 4.2(i) and (iii) we have then 𝑌𝑐𝑆±2̇𝑆(𝑛,𝑟)+1̇𝑆(𝑛,𝑟)+2(𝑛,𝑟). On the other side, since 𝑇𝑆±1(𝑛,𝑟), by Lemma 4.2(iv) it follows that 𝑇𝑆±1(𝑛,𝑟).𝑆1(𝑛,𝑟). By Lemma 4.2(ii), we have 𝜃=𝑆1̇𝑆(𝑛,𝑟)2(𝑛,𝑟). Hence it holds 𝑌𝑆±1̇𝑆(𝑛,𝑟)1̇𝑆(𝑛,𝑟)2(𝑛,𝑟). This proves that 𝑌𝑐𝑌=. We show now that also 𝑌+𝑌=; we proceed by contradiction. Let us suppose that there exists an element 𝑧𝑌+𝑌, then there are two elements 𝑤+𝑌+ and 𝑤𝑌 such that 𝑤+𝑧𝑤, hence 𝑤+𝑤. We will distinguish the following five cases, and in each of them we will find a contradiction.(a)𝑤+{𝑣1,,𝑣𝑠} and 𝑤{𝑣𝑠+1,,𝑣𝛽𝑘+1}. In this case 𝑤+ and 𝑤 are two distinct elements having both rank 𝑅(𝑘+1) and such that 𝑤+𝑤; it is not possible.(b)𝑤+{𝑣1,,𝑣𝑠} and 𝑤{𝑧1,,𝑧𝑞}. In this case 𝑤+ has rank 𝑅(𝑘+1) while 𝑤 has rank 𝑅(𝑘+2)<𝑅(𝑘+1), and this contradicts the condition 𝑤+𝑤.(c)𝑤+{𝑤𝑡+1,,𝑤𝛽𝑘} and 𝑤{𝑣𝑠+1,,𝑣𝛽𝑘+1}.This case is similar to the previous because 𝑤+ has rank 𝑅𝑘 while 𝑤 has rank𝑅(𝑘+1).(d)𝑤+{𝑤𝑡+1,,𝑤𝛽𝑘} and 𝑤{𝑧1,,𝑧𝑞}.This is similar to the previous because 𝑤+ has rank 𝑅𝑘 while 𝑤 has rank 𝑅(𝑘+2).(e)𝑤+{𝑣1,,𝑣𝑠,𝑤𝑡+1,,𝑤𝛽𝑘} and 𝑤=𝜃. In this case the condition 𝑤+𝑤 implies that 𝑤+𝜃; since 𝜃=𝑆1̇𝑆(𝑛,𝑟)2(𝑛,𝑟) this is not possible since 𝑤+𝑆±1(𝑛,𝑟).(B3)Since 𝛼 is the minimum of 𝑆±2(𝑛,𝑟) we have that 𝑆±2(𝑛,𝑟)𝛼, moreover, 𝛼𝑌+; therefore 𝑆±2(𝑛,𝑟)𝛼𝑌+. Since Θ=𝜃𝑐𝑌𝑐, it follows that Θ𝑌𝑐. By Lemma 4.2(i) we have then that (𝑆+1̇𝑆(𝑛,𝑟)+2(𝑛,𝑟))=Θ𝑌𝑐. By Lemma 4.2(ii) we also have that (𝑆1̇𝑆(𝑛,𝑟)2(𝑛,𝑟))=𝜃𝑌.
To complete the proof of (B3) let us observe that 𝑆±1(𝑛,𝑟)=(𝑘𝑖=0𝑖)̇𝑘+1̇(𝑅𝑗=𝑘+2𝑗), where (𝑘𝑖=0𝑖)𝑘𝑌+, (𝑅𝑗=𝑘+2𝑗)𝑘+2𝑌.
Moreover, since 𝑘+1={𝑣1,,𝑣𝑠}̇{𝑣𝑠+1,,𝑣𝛽𝑘+1},with {𝑣1,,𝑣𝑠}𝑌+𝑌+ and {𝑣𝑠+1,,𝑣𝛽𝑘+1}𝑌𝑌, then 𝑘+1(𝑌+𝑌). This shows that 𝑆±1(𝑛,𝑟)(𝑌+𝑌). Since the six sublattices 𝑆+𝑖(𝑛,𝑟), 𝑆±𝑖(𝑛,𝑟) and 𝑆𝑖(𝑛,𝑟) for 𝑖=1,2 are a partition of 𝑆(𝑛,𝑟), the property (B3) is proved.
Case (a2)
(B1)We begin to show that 𝛼𝑌𝑐. In fact, it holds that 𝛼=(𝑟(𝑟1)2000(𝑛𝑟))𝑐; suppose that 𝛼𝑌𝑐, and this shows that we obtain a contradiction. By 𝛼𝑌𝑐 it follows 𝛼𝑐=𝑡1𝑌. But 𝑡1 is the top of 𝑆±1(𝑛,𝑟), so 𝑌=𝑡1, since 𝑌 is antichain. This means that 𝑘+1=0 and this is not possible, of course. Since 𝑌+=𝑇+̇{𝛼}, we have (𝑌+)𝑌𝑐=((𝑇+)𝑌𝑐)𝑌((𝛼)𝑐), and, moreover, as in the proof of (B1) in the case (a1), we also have that (𝑇+)𝑌𝑐=; therefore, to prove (B1) it is sufficient to show that 𝑌(𝛼)𝑐=; As in the proof of (B1) in the case (a1), we have 𝑌𝑐𝑆±2̇(𝑛,𝑟){Θ}. Since 𝛼 is the minimum of 𝑆±2(𝑛,𝑟) and Θ𝛼, it follows that the unique element of 𝛼 that can belong to 𝑌𝑐 is 𝛼, but we have shown before that this is not true.(B2)As in the previous case we have (𝑌𝑐)𝑌=; moreover (𝑌+)(𝑌)=((𝑇+)(𝛼))(𝑌)((𝑇+)(𝑌))((𝛼)(𝑌)). As in the case (a1) we have ((𝑇+)(𝑌))=; therefore, to prove (B2) also in the case (a2), it is sufficient to show that ((𝛼)(𝑌))=. As in the proof of (B2) in the case (a1) it results that 𝑌𝑆±2̇𝑆(𝑛,𝑟)1̇𝑆(𝑛,𝑟)2(𝑛,𝑟), and, by definition of 𝛼, it is easy to observe that (𝛼)(𝑆±1̇𝑆(𝑛,𝑟)1̇𝑆(𝑛,𝑟)2(𝑛,𝑟))=. Hence ((𝛼)(𝑌))=.(B3)It is identical to that of case (a1).
Step 3. The map A defined in (4.8) is such that 𝐴𝒲+(𝑛,𝑟).
Since we have proved that𝑌+𝑌 is a basis for 𝑆(𝑛,𝑟), by Lemma 4.4 it follows that the map 𝐴𝒲+(𝑆(𝑛,𝑟),𝟐) if the two following identities hold: 𝑌+𝑌𝑐=𝑆±2̇S(𝑛,𝑟)+1̇𝑆(𝑛,𝑟)+2̇𝔘(𝑛,𝑟)𝑘̇𝑣1,,𝑣𝑠,(4.9)𝑌=𝔅𝑘̇𝑣𝑠+1,,𝑣𝛽𝑘+1̇𝑆1̇𝑆(𝑛,𝑟)2(𝑛,𝑟).(4.10)
We prove at first (4.10). By definition of 𝔅𝑘 and 𝑇 it easy to observe that 𝔅𝑘̇{𝑣𝑠+1,,𝑣𝛽𝑘+1}𝑇, and, moreover, by Lemma 4.2(ii) we also have that 𝜃=𝑆1𝑆(𝑛,𝑟)2(𝑛,𝑟); hence, since 𝑌=𝜃𝑇, it results that 𝔅𝑘̇{𝑣𝑠+1,,𝑣𝛽𝑘+1}𝑆1̇𝑆(𝑛,𝑟)2(𝑛,𝑟)𝑌. On the other hand, by Lemma 4.2(iv) we have that 𝑇𝑆±1̇𝑆(𝑛,𝑟)1(𝑛,𝑟) because 𝑇 is a subset of 𝑆±1(𝑛,𝑟). At this point let us note that the elements of 𝑇 that are also in 𝑆±1(𝑛,𝑟) must belong necessarily to the subset 𝔅𝑘̇{𝑣𝑠+1,,𝑣𝛽𝑘+1}. This proves the other inclusion and hence (4.10).
To prove now (4.9) we must distinguish the cases (a1) and (a2). We set Δ=𝑆±2̇𝑆(𝑛,𝑟)+1̇𝑆(𝑛,𝑟)+2𝔘(𝑛,𝑟)𝑘̇{𝑣1,,𝑣𝑠}. Let us first examine the case (a1). Since 𝛼 is the minimum of 𝑆±2(𝑛,𝑟), we have 𝑆±2(𝑛,𝑟)𝛼𝑌+. Moreover, since 𝑌=𝑇{𝜃}, it follows that 𝑌𝑐𝜃𝑐=(Θ)=𝑆+1̇𝑆(𝑛,𝑟)+2(𝑛,𝑟) by lemma 3.2(i). Finally, since 𝔘𝑘̇{𝑣1,,𝑣𝑠}𝑇+=𝑌+, the inclusion in (4.9) is proved. To prove the other inclusion we begin to observe that 𝑌+(𝑆1𝑆(𝑛,𝑟)1(𝑛,𝑟))=; therefore the elements of 𝑌+ that are not in 𝑆±2̇𝑆(𝑛,𝑟)+1̇𝑆(𝑛,𝑟)+2(𝑛,𝑟) must be necessarily in 𝑆±1(𝑛,𝑟), and such elements, by definition of 𝑇+, must be necessarily in 𝔘𝑘̇{𝑣1,,𝑣𝑠}.This proves that 𝑌+Δ, For (𝑌𝑐), we have (𝑌𝑐)=(𝑇𝑐{𝜃}𝑐)=(𝑇𝑐)(Θ), where (Θ)=𝑆+1̇(𝑛,𝑟)𝑆+2(𝑛,𝑟) by Lemma 4.2(i), and, since 𝑇𝑆±1(𝑛,𝑟), also 𝑇𝑐(𝑆±1(𝑛,𝑟))𝑐=𝑆±2(𝑛,𝑟), by Lemma 4.2(v). Therefore 𝑇𝑐𝑆±2(𝑛,𝑟)𝑆±2𝑆(𝑛,𝑟)+2(𝑛,𝑟) by Lemma 4.2(iii). This shows that (𝑌𝑐)𝑆±2𝑆(𝑛,𝑟)+2𝑆(𝑛,𝑟)+1(𝑛,𝑟)Δ, hence, the inclusion . The proof of (4.9) in the case (a1) is therefore complete.
Finally, to prove (4.9) in the case (a2), it easy to observe that the only difference with respect to case (a1) is when we must show that 𝑌+Δ. In fact, in the case (a2) it results that 𝛼𝑇+ and 𝑌+=𝑇+{𝛼}, while 𝑌 is the same in both cases (a1) and (a2). Therefore, in the case (a2), the elements of 𝑌+ that are not in 𝑆±2̇𝑆(𝑛,𝑟)+1̇𝑆(𝑛,𝑟)+2(𝑛,𝑟) must be in (𝑇+)𝑆±1(𝑛,𝑟) or in 𝑆(𝛼)±1(𝑛,𝑟). As in the case (a1) we have (𝑇+)𝑆±1(𝑛,𝑟)=𝔘𝑘̇{𝑣1,,𝑣𝑠}, and, since 𝛼 is the minimum of 𝑆±2(𝑛,𝑟), it results that 𝛼=𝑆±2(𝑛,𝑟)𝑆±2𝑆(𝑛,𝑟)+2(𝑛,𝑟) by Lemma 4.2(iii); hence 𝑆(𝛼)±1(𝑛,𝑟)=. Therefore, also in the case (a2), the elements of 𝑌+ that are not in 𝑆±2̇𝑆(𝑛,𝑟)+1̇𝑆(𝑛,𝑟)+2(𝑛,𝑟) must be necessarily in 𝔘𝑘̇{𝑣1,,𝑣𝑠}. The other parts of the proof are same as in case (a1). Hence we have proved the identities (4.9) and (4.10). By Lemma 4.4 it follows then that the map 𝐴𝒲+(𝑆(𝑛,𝑟),𝟐). Finally, by definition of 𝐴, we have obviously 𝐴(𝜃)=𝑁, 𝐴(𝜉1)=𝑃, and 𝐴(Θ)=𝑃. This shows that 𝐴𝒲+(𝑛,𝑟). The proof is complete.

To conclude we emphasize the elegant symmetry of the induced partitions on 𝑆(𝑛,𝑟) from the boolean total maps 𝐴𝑞’s constructed in the proof of the Theorem 4.5.