We divide the proof into two subsections according to the size of the smallest class. In the first subsection, a similar idea as in the proof of Theorem 1 is extended to determine the minimum coloring when the number of vertices of each class is at least 3. The second subsection is mainly about hypergraphs with some small classes.
  4.1. Hypergraphs with 
Assume that 
. Let 
 be the change in the number of monochromatic edges if a blue vertex in the 
ith class is recolored into red and a red vertex in the 
th class is recolored into blue. The process will be called 
swapping, which results in a new coloring, say 
. We compute 
 by comparing the number of monochromatic edges containing those vertices undergone swapping before and after the swapping process. Thus,
        
A successful swapping is a swapping in such a way that the number of monochromatic edges is reduced, i.e., .
Lemma 1. If , then .
 Proof.  The equality holds only when ( and ) and ( and ) and . Suppose that . We have that  and . Thus,  and , i.e., , which contradicts .    □
 Lemma 1 means that if a swapping can be carried out without increasing the number of monochromatic edges, another swapping in the same direction will be successful (if there are red and blue vertices to be swapped). The process of successful swappings will terminate when one of the two classes (or both) is monochromatic.
Lemma 2. If , then .
 Proof.  The equality holds only when ( and ) and ( and ) and . Suppose that . We have that  and . Thus,  and , i.e.,  and , which contradicts .    □
 Note that, for any coloring c, if c contains two classes, the ith and th, which are polychromatic, then a swapping can be carried out in two directions as follows.
By Lemma 2, one of the two directions is successful. Moreover, by Lemma 1, we can continue swapping in the same direction until one of the two classes is monochromatic and has fewer monochromatic edges. Hence, the coloring with the minimum number of monochromatic edges among colorings with a constant number of red vertices must have at most one polychromatic class. We will list all these forms in the following 
Table 1, which will be the candidates for the coloring with the minimum number of monochromatic edges.
The first column illustrates the list of 12 canonical forms, and the remaining columns describe the colors of vertices in those classes. The terms red and blue mean all vertices in those classes are monochromatic of red and blue, respectively. On the other hand, polychromatic means that this class is allowed to be polychromatic, but it may be monochromatic. Note that a coloring can be considered in several canonical forms; for example, the all-blue coloring is of the form ,  or .
We may assume that 
. Consequently, both 
 and 
 are out of our interest since the total numbers of red vertices, which are 
 and 
, respectively, exceed 
, as shown:
        and
        
Next, we will focus on the possibility of 
. If 
c has total red vertices to be 
. Then,
        
The necessary condition of a coloring c of a hypergraph H to be in the form  is that . Note that the condition  is equivalent to , and we call a hypergraph with this condition type A. On the other hand, the condition  is equivalent to , and we call a hypergraph with this condition type B. Next, we will determine the minimum coloring among those colorings with a constant number X of red vertices or  from the candidates  to , and  will be considered only when H is a type A hypergraph.
As in the proof of Theorem 1, we calculate 
 by summing each change when a blue vertex is recolored into red one by one starting from the all-blue hypergraph until we reach 
c. Let 
 be the all-blue coloring and let 
 be the coloring after the 
jth change in 
H. Thus,
        
We suppose that the vertices in the first class of the all-blue hypergraph will be recolored first to match the first class of 
c and then continue to the next class. Note that 
 has 
j red vertices. Let the 
ith class be the class containing the blue vertex that will be recolored and 
x be the number of red vertices in that class. Then, from 
Section 2.2,
        
Note that while each vertex in the changing class is being recolored, the term 
x ascends from 0 to 
. Thus,
        
Similarly, if we consider only the coloring with 
X red vertices, then the terms
        
        in the function 
 are constant. Only the term
        
        is distinct and we denote this term by 
. Hence, the coloring with maximum value of 
 will have the minimum number of monochromatic edges. Remark that if 
, then the term 
 cancels itself out. Hence, 
 and similarly when 
 or 
.
Next, we will determine  by considering and comparing only among possible canonical forms according to the value X and type of H. We will divide into several cases.
We will compare among colorings in the forms 
, 
 and 
. Note that if 
, 
 and 
 are the same. Similarly, if 
, 
 and 
 are the same. Then,
        
The equality holds only when  or . Since , we can conclude that a coloring in the form  has fewer monochromatic edges than  and similarly for . Hence,  is in the form .
Case 2: 
 (See 
Table 3).
In this case, we must have that 
. Similarly to Case 1, we have that 
 has fewer monochromatic edges than 
. Next, we will compare between colorings in the forms 
 and 
. If 
, then both forms are the same. Thus,
        
The equality holds only when 
 or 
. Since 
, we have that 
 has fewer monochromatic edges than 
. Finally, we will compare between colorings in the forms 
 and 
. Note that 
. Then,
        
The equality holds only when . Since , this occurs only when , i.e., . Since , we have that  gives fewer monochromatic edges than , and  is in the form .
Case 3: 
 (See 
Table 4).
Similarly, we must have 
 in this case. The comparisons between 
 and 
 and between 
 and 
 are similar to the previous case. Note that 
. Next, we will show the comparison between 
 and 
, which gives a contrary result as shown:
The equality holds only when  or . Since  and , the condition that  occurs only when  and  or 3. Since , we have that  gives fewer monochromatic edges than , and  is in the form  when . If ; both forms give the same number of monochromatic edges.
From now on, the cases will be divided by whether the hypergraph is of type A or B.
Case 4A: 
 and 
H is a type A hypergraph (See 
Table 5).
Similarly to Case 2, we have that 
 has fewer monochromatic edges than 
. Next, we will compare between colorings in the forms 
 and 
. If 
, then the forms 
 and 
 are the same. Thus,
        
The equality holds only when 
 or 
. Since 
, we have that 
 has fewer monochromatic edges than 
. Next, we will compare between colorings in the forms 
 and 
. If 
, then both forms are the same. Suppose that 
. Thus, since 
,
        
The equality only holds when 
. Since 
, we have that 
 has fewer monochromatic edges than 
. Finally, we will compare between colorings in the forms 
 and 
. Then, since 
,
        
The equality holds only when . Since ,  gives fewer monochromatic edges than , and  is in the form .
Case 5A: 
 and 
H is a type A hypergraph (See 
Table 6).
Note that this is only the case that we will consider 
. We only compare between colorings in the forms 
 and 
. Then, since 
,
        
The equality holds only when  or . Since , the condition that  occurs only when . This is impossible because . If , then both forms have the same number of monochromatic edges. However, if we relabel the names of the colors, then both forms are the same. Hence,  gives fewer monochromatic edges than , and  is in the form . Next, we will focus on the other cases of type B hypergraphs.
Case 4B: 
 and 
H is a type B hypergraph (See 
Table 7).
Similarly to Case 4A,  and  have fewer monochromatic edges than  and , respectively, and  has fewer monochromatic edges than . Next, we have to compare between  and  to determine which form  is. Due to the complexity of the comparison, we will conclude that  is in the form  or .
Case 5B: 
 and 
H is a type B hypergraph (See 
Table 8).
Similarly to Case 4A, 
 and 
 have fewer monochromatic edges than 
 and 
, respectively, and 
 has fewer monochromatic edges than 
. Next, we will compare between colorings in the forms 
 and 
. If 
, then both forms are the same. Thus,
        
The equality holds only when 
 or 
. Since 
, we have that 
 gives fewer monochromatic edges than 
. Finally, we will compare between colorings in the forms 
 and 
. If 
, then both forms are the same. We may suppose that 
. Thus, since 
,
        
The equality holds only when  or . First, if , then both forms have the same number of monochromatic edges. However, if we relabel the names of the colors, then both forms are the same. We will focus on the condition of , where  and . Suppose that .
If N is even, then . Thus, . Since , we have that , which contradicts .
If N is odd, then . Thus, . Since , we have that . Consequently, it is only possible when . Note that  and . For  to be odd,  and  must have the same parity. Thus,  and , which is a contradiction.
Now, we have that . Hence,  gives fewer monochromatic edges than , and  is in the form .
To sum up, we have already determined (as shown in 
Table 9 and 
Table 10) the canonical form 
 that has the minimum number of monochromatic edges for each condition of hypergraphs and range of the number of red vertices 
X.
Note that, in Case 3,  is only in the form  when . However, if , then  and  give the same number of monochromatic edges. Moreover, in Case 4B, we have not compared the colorings in the form  and . The uniqueness of  of the other cases will be also considered. We can see that the inequalities in some cases are equal when the sizes of some parts are equal, which means that those canonical forms are equivalent. For example, in Case 1, if ,  is equivalent to . The remaining inequalities are equal when X is equal to some certain value, such as in Case 5A and Case 5B when ; the colorings in the forms  and  are isomorphic up to a permutation of the name of colors and so are colorings in the forms  and  in Case 5B.
Hence, apart from Case 3, where , and Case 4B, a coloring with red vertices in the form, according to the previous table, has fewer monochromatic edges than other colorings with the same amount of red vertices and the uniqueness follows.
Next, we will make comparisons between colorings with different values of X. We will show that any  with  has strictly more monochromatic edges than some colorings. We, hence, would like to show that  for each . Note that, if  and  are in the same canonical form, we will consider  instead. Again, we will divide into several cases conforming to the value of X and the type of H.
Case 1: .
We have that 
 is in the form 
 with 
, 
 and 
. Then,
        
The equality holds only when , which is impossible.
Case 2: .
We have that 
 is in the form 
 with 
, 
 and 
. Then,
        
We will show that  by Proposition 1. We have ,  and . Since , we have that .
Case 3: .
We have that  is in the form  or . We will show that  for both forms. If  and  is in the form  with ,  and , then  similarly as in Case 2.
If 
 and 
 is in the form 
 with 
, 
 and 
, then
        
The equality holds only when , which is impossible.
Again, from this point, the cases will be divided by whether the hypergraph is of type A or B.
Case 4A:  and H is a type A hypergraph.
We have that 
 is in the form 
 with 
, 
 and 
. Then,
        
We will show that  by Proposition 1. We have ,  and . Since , we have that .
Case 5A:  and H is a type A hypergraph.
We have that 
 is in the form 
 with 
, 
 and 
. Then,
        
The equality holds only when , which is impossible. This yields a contrary result: The number of monochromatic edges increases when the number of red vertices increases. Hence,  gives the minimum number of monochromatic edges when  instead.
Next, we will consider the last two cases of type B hypergraphs.
Case 4B:  and H is a type B hypergraph.
We have that 
 is in the form 
 or 
. We will show that 
 for 
 and 
 for 
. If 
 is in the form 
 with 
, 
 and 
, then
        
Note that the inequality is equal when 
, which is impossible. Next, if 
 is in the form 
 with 
, 
 and 
, then
        
We will show that  by Proposition 1. We have ,  and . Since , we have that .
Case 5B:  and H is a type B hypergraph.
We have that 
 is in the form 
 with 
, 
 and 
. Then,
        
Since we cannot apply any lemmas to 
, we expand the binomial coefficient terms and see when 
 is fewer than 0. Consequently, 
 if and only if
        
Write 
 for 
. We have that the 
 has the minimum number of monochromatic edges among all colorings in the form 
, and we will show that 
.
        
Hence, we have shown all the comparisons between colorings, and we can conclude that:
If H is a type A hypergraph, then the coloring with  red vertices in the form  has the minimum number of monochromatic edges;
If H is a type B hypergraph, then the coloring with  red vertices in the form  has the minimum number of monochromatic edges.
We have already proved that those minimum colorings are the unique colorings that have the minimum number of monochromatic edges among colorings with the same, such as red, vertices. Furthermore, we have shown that  is fewer than zero when X is fewer than  in a type A hypergraph and when X is less than  in a type B hypergraph. Hence, those minimum colorings are the unique colorings that have the minimum number of monochromatic edges among all colorings.
  4.2. Hypergraphs with  or 
In this subsection, we will prove the remaining cases, which are unbalance complete tripartite hypergraphs with some classes smaller than 3. These cases are easy and straightforward but contain fuzzy details. First, we will consider an unbalanced complete tripartite 3-uniform hypergraphs with . There are three possibilities for these hypergraphs:
Case i:  and .
Since we have that the first two classes are smaller than 3, no edge can be contained in the first two classes. Thus,
        
We have that . Suppose that . Since  and , we have that  and . Since , at least three vertices are colored the same, such as red, i.e., . Then, , which implies that . Consequently, , i.e., . This means that c is a coloring such that the third class contains all red vertices and no blue vertex, and the first two classes are all blue. Hence, we have already determined the minimum coloring and showed that it is unique up to a permutation of colors and classes.
Case ii:  and .
Again, no edge can be contained in the first two classes. Thus,
        
We will show that 
. We have that 
 and 
. Since 
, at least three vertices are colored the same, such as red, i.e., 
. If 
, then 
. Suppose that 
. Then, 
. Hence, 
. Next, suppose that 
. If 
, then
        
This implies that , and so, ; moreover, . Hence, . Now, we have , i.e., . This means c is a coloring such that the third class contains no red vertices, and the first two classes are all red.
Suppose that 
. Then,
        
It is only possible when  or when c is a coloring such that the third class contains all red vertices and no blue vertex and the first two classes are all blue. Note that if we relabel the names of colors, then both colorings are the same. Hence, we have already determined the minimum coloring and showed that it is unique up to a permutation of colors and classes.
Case iii:  and .
Similarly, no edges can be contained in the first two classes. Thus,
        
We will show that 
. We have that 
 and 
. If there is a color, say red, such that all vertices of that color are only in the third class, then, we have 
 and 
. Thus,
        
The equality holds only when , i.e., . Hence, if , then c is a coloring such that the third class contains all red vertices but no blue vertex and the first two classes are all blue.
Suppose that there is no color such that all vertices of that color are only in the third class, i.e., 
 and 
. Since 
, at least four vertices are colored the same, such as red, i.e., 
. If 
, then
        
If 
, then 
 and
        
The equality holds only when  and , i.e.,  and . This means that . Hence, if , then c is a coloring of H, which has seven vertices such that the third class is all red, the second class is all blue and the first class has one red and one blue vertex. This implies that when , minimum colorings are not unique.
Finally, the last class is a hypergraph such that only the first class is smaller than 3.
Case iv:  and .
Fortunately, this case conforms to almost all cases in the previous subsection since we assume that . However, there are two points that we use the fact that . The first one is in the last part of Case 3 where we compare and determine which form of  and  has fewer monochromatic edges. Since we do not have that , it is possible that both forms have the same number of monochromatic edges. This is not problematic because both of them have strictly more monochromatic edges than some coloring according to the next comparisons. The next case is in the last part of Case 5B where we compare and determine which form of  and  has fewer monochromatic edges. Again, since we do not have that , we may have that , where  and . If this condition occurs, we will have that  and  have the same number of monochromatic edges. Since , the condition is possible only when N is even and  or N is odd and .
Suppose that N is even. If , then we have that . Since , there is no choice for . If , then we have that . Since , . However, for N to be even,  and  must have different parities, which is impossible.
Suppose that N is odd. Again, it is impossible for . Since , we have . Similarly,  and , which is odd. Consequently, the condition is possible only here and  and  have the same number of monochromatic edges. Hence, if H is a hypergraph with  and , then there are only two colorings (each unique up to a permutation of colors and classes) that have a minimum number of monochromatics, which are colorings with  in the form  and .
Now, we have determined the minimum colorings of all unbalanced complete tripartite 3-uniform hypergraphs.