From subtractive ideals of semirings to deductive and inductive sets in general algebras Elena Caviglia, Amartya Goswami, Zurab Janelidze, Luca Mesiti, Vaino T. Shaumbwa Abstract . In this paper we extend the characterisation of kernels in semirings as subtractive ideals to general algebras. We then analyse the counterparts of “subtractive” and “ideal” in several different algebraic settings. 1991 Mathematics Subject Classification 16Y60, 08A30, 08B05, 08B99 1. Introduction In the theory of semirings, ideals play a role analogous to that of ideals in rings; however, their structural behavior exhibits essential differences. The absence of additive inverses in semirings prevents many fundamental results for ring ideals from extending to this setting. To compensate for this lack of subtractivity, Henriksen [ 6 ] introduced the notion of a k -ideal (also known as subtractive ideal ), providing an analogue that retains several desirable closure properties of ring ideals. Since its introduction, the concept of k -ideals has been the subject of extensive investigation, and numerous contributions have developed its theory and applications (see, for example, [ 2 , 4 , 5 , 7 , 8 , 9 , 10 , 11 , 12 , 14 , 3 ] ). Kernels of semiring homomorphisms are well known to be characterised as subtractive ideals, i.e., ideals I having an additional property that x+y\in I and y\in I together must imply x\in I . Does this fact have a counterpart in a general universal algebra? The idea in the general case is to describe congruence classes containing a given constant \ast (which in the case of semirings would be the additive identity \ast=0 ). Such sets in an algebra A are typically called \ast -normal sets (or \ast -kernels ). Is there a way to decompose the concept of a \ast -normal set into two concepts that mimics the characterisation of kernels in semirings as subtractive ideals? It turns out that we can arrive at such decomposition naturally, by carefully analysing the process of generating a congruence. Consider an algebra A with a distinguished point \ast\in A (need not be a term, just any element). Let I be a set of elements in A . Extending the concept above, we say that I is \ast -normal when I is the congruence class of \ast , i.e., I=[\ast]_{C} for some congruence C on A . This is equivalent to requiring that I=[\ast]_{C} for the congruence C generated by I\times\{\ast\} . Now, if I is \ast -normal, then I=R\ast=\{x\in A\mid xR\ast\}, where R is a semicongruence on A (i.e., a reflexive relation on A which is a subalgebra of A\times A ) generated by I\times\{\ast\} . This is a consequence of I\times\{\ast\}\subseteq R\subseteq C . Following the terminology of [ 1 ] , we call such I a \ast -clot . Notice that C can be built from R by taking a directed union of subalgebras (1.1) C=R\cup R^{\mathsf{\circ}}R\cup RR^{\mathsf{\circ}}R\cup R^{\mathsf{\circ}}RR^{\mathsf{\circ}}R\cup\cdots, of A , where R^{\circ} denotes the opposite relation of R . This easily implies that for the \ast -clot I to be \ast -normal it is necessary and sufficient that RI=\{x\in A\mid\exists_{y\in I}[xRy]\}\subseteq I\quad\textrm{ and }\quad IR=\{x\in A\mid\exists_{y\in I}[yRx]\}\subseteq I, where R is as above. In fact, each of these inclusions hold for this R as soon as they hold for some semicongruence S on A such that I\subseteq S\ast . Indeed, I\subseteq S\ast implies I\times\{\ast\}\subseteq S, and hence R\subseteq S. Furthermore, it is sufficient that they hold for possibly different such R ’s. So two classes of sets can be identified: (I) I is \ast -inductive when RI\subseteq I for some semicongruence R on A such that I\subseteq R\ast ; (D) I is \ast -deductive when IR\subseteq I for some semicongruence R on A such that I\subseteq R\ast . We then have: a \ast -clot I is \ast -normal if and only if it is both \ast -inductive and \ast -deductive. Notice however that condition (D) forces \ast\in I as soon as I\neq\varnothing and with this, condition (I) forces I to be a \ast -clot, since then RI\subseteq I implies R\ast\subseteq I . This gives the following stronger result: a non-empty set I is \ast -normal if and only if it is both \ast -inductive and \ast -deductive . In this paper we show that this result can be viewed as an extension of the characterisation of kernels in semirings as subtractive ideals to arbitrary universal algebras, by giving explicit characterisations of 0 -inductive and 0 -deductive sets in semirings and demonstrating their close link with ideals and sets satisfying the subtractive property in semirings (see Theorem 3.11 ). We then go one step further and introduce a way to rank the “goodness” of inductive and deductive sets. For a variety V of universal algebras and a chosen constant \ast in the algebraic theory of the variety, we define its “ \ast -inductive rank” to represent the minimal number of closure steps required to generate a \ast -inductive set from a given arbitrary set. The notion of a “ \ast -deductive rank” is defined similarly. In many “nice” varieties, like modules over a ring and commutative rings, for instance, both of these ranks are equal to the reasonable minimum 1 . This seems to be largely due to the presence of an operation of subtraction. In fact, we show that in all 0 -subtractive varieties in the sense of [ 13 ] the rank cannot exceed 2 , while in all Mal’tsev varieties, it cannot exceed 1 . Surprisingly, in the variety of commutative monoids, where there is no operation of subtraction, the rank for induction is still 1 . However, the rank for deduction is \infty . Even more surprisingly, we find that in the variety of semirings, which does not have an operation of subtraction either, both ranks are equal to 1 . 2. Induction and deduction of sets Definition 2.1 . For a set I of elements in an algebra A , its \ast -induction is the set \mathcal{I}_{\ast}(I)=RI=\{x\in A\mid\exists_{y\in I}[xRy]\}, where R is the semicongruence generated by I\times\{\ast\} . We say that I is \ast -inductive when \mathcal{I}_{\ast}(I)\subseteq I . By reflexivity of R , we always have I\subseteq\mathcal{I}_{\ast}(I) , which gives the following. Lemma 2.1 . I is \ast -inductive if and only if I=\mathcal{I}_{\ast}(I) . The notion of \ast -deduction is defined similarly, as follows. Definition 2.2 . For a set I of elements in an algebra A , its \ast -deduction is \mathcal{D}_{\ast}(I)=IR=\{x\in A\mid\exists_{y\in I}[yRx]\}, where R is the semicongruence generated by I\times\{\ast\} . We say that I is \ast -deductive when \mathcal{D}_{\ast}(I)\subseteq I . We again have I\subseteq\mathcal{D}_{\ast}(I) for any I , yielding the following. Lemma 2.2 . I is \ast -deductive if and only if I=\mathcal{D}_{\ast}(I) . Next, we give term-based constructions of \mathcal{D}_{\ast}(I) and \mathcal{I}_{\ast}(I) . The smallest semicongruence R containing I\times\{\ast\} consists of all pairs (a,b) where a=t(x_{1},\dots x_{n},y_{1},\dots,y_{m}) for some term t , where x_{1},\dots x_{n}\in A while y_{1},\dots,y_{m}\in I , and b=t(x_{1},\dots x_{n},\ast,\dots,\ast). We can thus write R=\{(t(\vec{x},\vec{y}),t(\vec{x},\vec{\ast}))\mid\vec{y}\in I\}. We then obtain the following construction of the smallest \ast -clot containing I : \mathcal{C}_{\ast}(I)=R\ast=\{t(\vec{x},\vec{y})\mid\vec{y}\in I,t(\vec{x},\vec{\ast})=\ast\}. Similarly, we get the following constructions of \mathcal{I}_{\ast}(I) and \mathcal{D}_{\ast}(I) . Lemma 2.3 . \mathcal{I}_{\ast}(I)=\{t(\vec{x},\vec{y})\mid\vec{y}\in I,t(\vec{x},\vec{\ast})\in I\}. Lemma 2.4 . \mathcal{D}_{\ast}(I)=\{t(\vec{x},\vec{\ast})\mid t(\vec{x},\vec{y})\in I\textrm{ where }\vec{y}\in I\}. While \mathcal{C}_{\ast}(I)=\mathcal{C}_{\ast}(\mathcal{C}_{\ast}(I)) holds for all I , we get, in general, an infinite chain of inductions \mathcal{I}^{0}_{\ast}(I)=I\subseteq\mathcal{I}^{1}_{\ast}(I)=\mathcal{I}_{\ast}(I)\subseteq\mathcal{I}^{2}_{\ast}(I)=\mathcal{I}_{\ast}(\mathcal{I}_{\ast}(I))\subseteq\mathcal{I}^{3}_{\ast}(I)=\mathcal{I}_{\ast}(\mathcal{I}_{\ast}(\mathcal{I}_{\ast}(I)))\subseteq\cdots The union of these inductions, \mathcal{I}^{\infty}_{\ast}(I) , results in the smallest \ast -inductive subset of A containing I . In particular, \mathcal{I}_{\ast}(\mathcal{I}^{\infty}_{\ast}(I))=\mathcal{I}^{\infty}_{\ast}(I) . Similarly, the union \mathcal{D}^{\infty}_{\ast}(I) of the chain of deductions \mathcal{D}^{0}_{\ast}(I)=I\subseteq\mathcal{D}^{1}_{\ast}(I)=\mathcal{D}_{\ast}(I)\subseteq\mathcal{D}^{2}_{\ast}(I)=\mathcal{D}_{\ast}(\mathcal{D}_{\ast}(I))\subseteq\mathcal{D}^{3}_{\ast}(I)=\mathcal{D}_{\ast}(\mathcal{D}_{\ast}(\mathcal{D}_{\ast}(I)))\subseteq\cdots is the smallest \ast -deductive subset of A containing I and we therefore have \mathcal{D}_{\ast}(\mathcal{D}^{\infty}_{\ast}(I))=\mathcal{D}^{\infty}_{\ast}(I) . Theorem 2.5 . Let I be a set in an algebra A , let \ast\in A , and let R be a semicongruence on A generated by I\times\{\ast\} . Then \mathcal{I}^{\infty}_{\ast}(I)=I\cup RI\cup R^{2}I\cup R^{3}I\cup\cdots and \mathcal{D}^{\infty}_{\ast}(I)=I\cup IR\cup IR^{2}\cup IR^{3}\cup\cdots . Furthermore, for each n\geqslant 0 , R^{n}I\subseteq\mathcal{I}^{n}_{\ast}(I)\subseteq R^{2^{n}-1}I,\quad IR^{n}\subseteq\mathcal{D}^{n}_{\ast}(I)\subseteq IR^{2^{n}-1}. Proof. We prove the first two inclusions involving \mathcal{I}^{n}_{\ast}(I) by induction on n . They easily imply the required decomposition of \mathcal{I}^{\infty}_{\ast}(I) . We prove by induction on n . The case n=0 holds since I\subseteq I\subseteq I . Assume for n . We have \mathcal{I}^{n+1}_{\ast}(I)=R_{n}\mathcal{I}^{n}_{\ast}(I)\subseteq R_{n}R^{2^{n}-1}I, where R_{n} denotes a semicongruence generated by \mathcal{I}^{n}_{\ast}(I)\times\{\ast\} . But \mathcal{I}^{n}_{\ast}(I)\times\{\ast\}\subseteq R^{2^{n}-1}I\times\{\ast\}\subseteq R^{2^{n}} and R^{2^{n}} is a semicongruence. So R_{n}\subseteq R^{2^{n}} , which gives \mathcal{I}^{n+1}_{\ast}(I)\subseteq R^{2^{n}}R^{2^{n}-1}I=R^{2^{n+1}-1}I. Furthermore, R^{n+1}I=RR^{n}I\subseteq R\mathcal{I}^{n}_{\ast}(I)=\mathcal{I}^{n+1}_{\ast}(I) . The proof by induction is now complete. The proofs of the statements about deduction are similar. ∎ Theorem 2.6 . A non-empty set I in an algebra A containing an element \ast is \ast -normal if and only if it is both \ast -inductive and \ast -deductive. Proof. The proof was already sketched in the Introduction. If I is a congruence class of \ast , then this congruence contains the semicongruence R generated by I\times\{\ast\} . Then I is both \ast -inductive and \ast -deductive, as both \ast -induction and \ast -deduction close I under related suitably related elements: if I is a congruence class, it is already closed under all related elements. Conversely, suppose I is \ast -inductive and \ast -deductive. Let R be as above. We can generate a congruence C from I\times\{\ast\} as shown in ( 1.1 ). We have I\times\{\ast\}\subseteq R\subseteq C . Conversely, for each (x,\ast)\in C , we have a zigzag x=x_{n}R^{\circ}x_{n-1}Rx_{n-2}R^{\circ}x_{n-3}Rx_{n-4}R^{\circ}x_{n-5}\dots x_{1}Rx_{0}=\ast. Since I is non-empty, it contains some element y\in I . Then (y,\ast)\in R and hence x_{0}=\ast\in\mathcal{D}_{\ast}(I)=I . This implies that x_{1}\in\mathcal{I}_{\ast}(I)=I . Then x_{2}\in\mathcal{D}_{\ast}(I)=I , and so on, eventually giving x\in I . Thus I=[\ast]_{C} . ∎ Here is another consequence of Lemma 2.3 . Theorem 2.7 . A non-empty set I in an algebra A contains the subalgebra of A generated by \{\ast\} if and only if \mathcal{I}_{\ast}(I) contains the subalgebra of A generated by I . Proof. Consider any t(\vec{y}) where \vec{y}\in I . Then t(\vec{\ast})\in I and so by Lemma 2.3 , t(\vec{y})\in\mathcal{I}_{\ast}(I) . Clearly, if t(\vec{y})\in\mathcal{I}_{\ast}(I) where \vec{y}\in I , then t(\vec{\ast})\in I . ∎ 3. Inductive and deductive ranks of varieties Definition 3.1 . Consider a variety V of algebras over the same signature, and a constant \ast in this signature. We say that V has \ast -induction rank n when n is the smallest natural number such that \mathcal{I}^{n}_{\ast}(I)=\mathcal{I}^{n+1}_{\ast}(I) for every non-empty set I in every algebra A of the variety. When such n does not exist, we say that the variety has \ast -induction rank of \infty . The notion of \ast -deduction rank is defined similarly. In what follows we describe induction and deduction ranks for different varieties of algebras, and in some cases also characterise inductive and deductive sets. Recall that a submonoid I of a monoid M is said to be subtractive when x+y\in I and y\in I together always imply x\in I . Theorem 3.1 . Let V be the variety of additive commutative monoids. Then the 0 -inductive rank of V is 1 , while the 0 -deductive rank of V is \infty . Furthermore, 0 -inductive sets are precisely the subsemigroups, while 0 -deductive submonoids are precisely the subtractive submonoids. Proof. Consider a commutative monoid M and let \ast=0 be the identity element of M . For a non-empty set I in M , we have: \displaystyle\mathcal{I}_{\ast}(I) \displaystyle=\{x_{1}+\dots+x_{n}+y_{1}+\dots+y_{m}\mid y_{1},\dots,y_{m}\in I\textrm{ and }x_{1}+\dots+x_{n}\in I\} \displaystyle=\{x+y_{1}+\dots+y_{m}\mid y_{1},\dots,y_{m}\in I\textrm{ and }x\in I\} So, \mathcal{I}_{\ast}(I) is the subsemigroup of M generated by I and hence \mathcal{I}_{\ast}(I)=\mathcal{I}_{\ast}(\mathcal{I}_{\ast}(I)) . This shows that I is \ast -inductive if and only if it is a subsemigroup of M . It also shows that the \ast -inductive rank of V is 1 . For any non-empty set I in M , we have: \displaystyle\mathcal{D}_{\ast}(I) \displaystyle=\{x_{1}+\dots+x_{n}\mid x_{1}+\dots+x_{n}+y_{1}+\dots+y_{m}\in I\textrm{ where }y_{1},\dots,y_{m}\in I\} \displaystyle=\{x\mid x+y_{1}+\dots+y_{m}\in I\textrm{ where }y_{1},\dots,y_{m}\in I\}. We furthermore have: \displaystyle\mathcal{D}_{\ast}(\mathcal{I}_{\ast}(I)) \displaystyle=\{x\mid x+y_{1}+\dots+y_{m}\in\mathcal{I}_{\ast}(I)\textrm{ where }y_{1},\dots,y_{m}\in\mathcal{I}_{\ast}(I)\} \displaystyle=\{x\mid x+y\in{\mathcal{I}_{\ast}(I)}\textrm{ where }y\in\mathcal{I}_{\ast}(I)\}\cup\mathcal{I}_{\ast}(I). In particular, when I is a submonoid of M , \mathcal{D}_{\ast}(I)=\{x\mid x+y\in I\textrm{ where }y\in I\}, and therefore \mathcal{D}_{\ast}(\mathcal{D}_{\ast}(I))=\mathcal{D}_{\ast}(I). So I is \ast -deductive if and only if it is a subtractive submonoid of M . In the multiplicative monoid \mathbb{N} of natural numbers, consider \ast=1 and I=\{p_{k}p_{k+1}\mid k\in\mathbb{N}\} where p_{0}=1 and p_{1},p_{2},\dots are distinct prime numbers. Then \displaystyle\mathcal{D}^{n}_{\ast}(I) \displaystyle=\{p_{0},\dots,p_{n+1}\}\cup I. So the 0 -deductive rank of V is \infty . ∎ When the algebraic theory of a variety V of algebras has a unique constant 0 , kernels in the corresponding pointed category are given by 0 -normal subalgebras. The theorem above together with Theorem 2.6 recovers the following well-known characterisation of kernels in the category of commutative monoids. Corollary 3.2 . Kernels in the category of commutative monoids are given by subtractive submonoids. Recall that a variety having a constant 0 is 0 -subtractive if there is a binary term s satisfying s(x,x)=0 and s(x,0)=0 . By a non-trivial variety we mean a variety that contains algebras having 2 or more elements. Theorem 3.3 . A 0 -subtractive variety has 0 -inductive rank at most 2 and 0 -deductive rank at most 2 . Moreover, 0 -inductive sets are the same as 0 -deductive sets and the non-empty ones are the same as 0 -clots. Proof. The empty set is both 0 -inductive and 0 -deductive. Suppose I is not empty. Let R denote the semicongruence generated by I\times\{\ast\} . Let x\in RRRI . Then xRyRzRt,\quad t\in I. Subtracting (t,\ast)\in R from (t,t) gives (\ast,t)\in R . Subtracting this from (z,t)\in R gives (z,\ast)\in R . Subtracting this from (z,z)\in R gives (\ast,z)\in R . Continuing this way we eventually get (x,\ast)\in R . Since (\ast,t)\in R , we get (x,t)\in RR and hence x\in RRI . So RRRI\subseteq RRI . This implies that R^{n}I\subseteq RRI for any n . Then, by Theorem 2.5 , \mathcal{I}^{3}_{\ast}(I)\subseteq R^{7}I\subseteq RRI\subseteq\mathcal{I}^{2}_{\ast}(I) and hence \mathcal{I}^{2}_{\ast}(I)=\mathcal{I}^{3}_{\ast}(I)=RRI . So the 0 -inductive rank is at most 2 and RRI is the smallest 0 -inductive set containing I . Now let t\in IRRR . Then xRyRzRt,\quad x\in I. Subtracting (x,\ast)\in R from (x,y)\in R we get (\ast,y)\in R . This implies (y,\ast)\in R . Continuing this way we eventually get (\ast,t)\in R . Since we also have (x,\ast)\in R , where x\in I , we obtain t\in IRR . As before, this implies \mathcal{D}^{2}_{\ast}(I)=\mathcal{D}^{3}_{\ast}(I)=IRR . So the 0 -deductive rank is at most 2 and IRR is the smallest 0 -deductive set containing I . Now let x\in RRI . Then xRyRz, where z\in I. By successive subtraction as before, we get x\in R\ast . Conversely, if x\in R\ast , then we can deduce x\in RRI by the fact that I is non-empty. So RRI=R\ast . We can similarly show that IRR=R\ast . Note that R\ast is the smallest clot containing I . So smallest 0 -inductive set containing non-empty I is the same as smallest 0 -deductive set containing 0 and the same as smallest clot containing 0 . This proves the second part of the theorem. ∎ The well known fact that in a 0 -subtractive variety 0 -clots coincide with 0 -normal subalgebras follows from the previous theorem and Theorem 2.6 . Corollary 3.4 . In a 0 -subtractive variety, the following four classes of sets are the same: non-empty 0 -inductive sets, non-empty 0 -deductive sets, 0 -normal subalgebras, 0 -clots. Next, we look at certain particular 0 -subtractive varieties. In the case of the variety of modules over a ring, where \ast=0 , we already know from the corollary above that 0 -inductive/deductive sets will be precisely submodules (any submodule is 0 -normal). We do get better ranks in this case than in the general 0 -subtractive case. Theorem 3.5 . Let R be a ring with identity. The variety V of R -modules has 0 -inductive as well as 0 -deductive rank 1 . Non-empty sets in R -modules are 0 -inductive/deductive precisely when they are submodules. Proof. For a non-empty set I in an R -module A and \ast=0 , we have: \displaystyle\mathcal{I}_{\ast}(I) \displaystyle=\{x+r_{1}y_{1}+\dots+r_{m}y_{m}\mid y_{1},\dots,y_{m}\in I,r_{1},\dots,r_{m}\in R,\textrm{ and }x\in I\}. \mathcal{I}_{\ast}(I) is clearly contained in the submodule of A generated by I . Conversely, for any y_{1},\dots,y_{m}\in I,r_{1},\dots,r_{m}\in R that create an element a=r_{1}y_{1}+\dots+r_{m}y_{m} in the submodule generated by I , we can express the same element as a=x+(-1)x+r_{1}y_{1}+\dots+r_{m}y_{m} where x is any element of I . This shows that a\in\mathcal{I}_{\ast}(I) . So \mathcal{I}_{\ast}(I) is the submodule of A generated by I and hence 0 -inductive rank of V is 1 . Next, \displaystyle\mathcal{D}_{\ast}(I) \displaystyle=\{x\mid x+r_{1}y_{1}+\dots+r_{m}y_{m}\in I,\textrm{ where }y_{1},\dots,y_{m}\in I,r_{1},\dots,r_{m}\in R\}. If x\in\mathcal{D}_{\ast}(I) , then x=(x+r_{1}y_{1}+\dots r_{m}y_{m})-(r_{1}y_{1}+\cdots+r_{m}y_{m}), where both terms on the right hand side of the equality belong to the submodule generated by I , and so x belongs to it too. Conversely, consider an element a as above. Then a+(-1)r_{1}y_{1}+\dots+(-1)r_{m}y_{m}+1x\in I where x is any element of I . This shows that a\in\mathcal{D}_{\ast}(I) . So \mathcal{D}_{\ast}(I) is the submodule of A generated by I and hence 0 -deductive rank of V is 1 . ∎ Once again, from the previous corollary, we already know that in the variety of rings with identity 0 -inductive/deductive sets are the same as ideals. Let us see what are inductive/deductive ranks in this case. Theorem 3.6 . The variety V of commutative rings with identity has 0 -inductive as well as 0 -deductive rank equal to 1 . In this variety, non-empty 0 -inductive as well as non-empty 0 -deductive sets are the same as ideals. Proof. For a non-empty set I in a ring R with identity, we have: \displaystyle\mathcal{I}_{\ast}(I) \displaystyle=\{x+\sum_{i=1}^{n}x_{i}y_{i,1}\dots y_{i,{m_{i}}}\mid \displaystyle y_{i,1},\dots,y_{i,{m_{i}}}\in I\textrm{ with $m_{i}>0$ for each }i\in\{1,\dots,n\},\textrm{ and }x\in I,x_{1},\dots,x_{n}\in R\}. \mathcal{I}_{\ast}(I) is clearly contained in the ideal generated by I . Conversely, each element a of the ideal generated by I can be written in the form a=\sum_{i=1}^{n}x_{i}y_{i,1}\dots y_{i,{m_{i}}} where y_{i,1},\dots,y_{i,{m_{i}}}\in I\textrm{ with $m_{i}>0$ for each }i\in\{1,\dots,n\} . Now, for an element x\in I we can rewrite a as a=x+(-1)x+\sum_{i=1}^{n}x_{i}y_{i,1}\dots y_{i,{m_{i}}}. This shows that a\in\mathcal{I}_{\ast}(I) . So \mathcal{I}_{\ast}(I) is indeed the ideal generated by I and the 0 -inductive rank of V is 1 . Next, \displaystyle\mathcal{D}_{\ast}(I) \displaystyle=\{x\mid x+\sum_{i=1}^{n}x_{i}y_{i,1}\dots y_{i,{m_{i}}}\in I, \displaystyle\textrm{ where }x_{i}\in R,y_{i,1},\dots,y_{i,{m_{i}}}\in I\textrm{ with $m_{i}>0$ for each }i\in\{1,\dots,n\}\}. If x\in\mathcal{D}_{\ast}(I) , then x=(x+\sum_{i=1}^{n}x_{i}y_{i,1}\dots y_{i,{m_{i}}})-\sum_{i=1}^{n}x_{i}y_{i,1}\dots y_{i,{m_{i}}}, where both terms on the right hand side of the equality belong to the ideal generated by I , and so x belongs to it too. Conversely, consider an element a as before. Then a+\sum_{i=1}^{n}(-x_{i})y_{i,1}\dots y_{i,{m_{i}}}+1x\in I, where x is any element of I . This shows that a\in\mathcal{D}_{\ast}(I) . So \mathcal{D}_{\ast}(I) is the ideal of A generated by I and hence 0 -deductive rank of V is 1 . ∎ A similar result holds also for non-commutative rings. The proof is identical, except that the terms x_{i}y_{i,1}\dots y_{i,m_{i}} should now include a mix of several x_{i} and y_{i} terms (due to commutativity it was possible to group all the x terms into a single x_{i} term). In a related result further on, we present the proof in the non-commutative case. Theorem 3.7 . The variety V of rings with identity has 0 -inductive as well as 0 -deductive rank equal to 1 . In this variety, non-empty 0 -inductive as well as non-empty 0 -deductive sets are the same as ideals. In fact, the previous three theorems are immediate consequences of the following result along with Corollary 3.4 . Theorem 3.8 . Consider an algebra A containing a Mal’tsev operation, i.e., an operation p such that the identities p(x,y,y)=x and p(x,x,y)=y hold in the algebra. Then for any set I\subseteq A and any element \ast\in A , we have \mathcal{I}_{\ast}(I)=\mathcal{D}_{\ast}(I) and this set is simultaneously the smallest \ast -inductive set containing I and the smallest \ast -deductive set containing I . Proof. It is well known that the presence of Mal’tsev operation in an algebra forces every reflexive compatible relation on that algebra to be a congruence. Then, by Theorem 2.5 , \mathcal{I}^{\infty}_{\ast}(I)=I\cup RI=RI=IR=I\cup IR=\mathcal{D}^{\infty}_{\ast}(I), which completes the proof since RI=\mathcal{I}_{\ast}(I) and IR=\mathcal{D}_{\ast}(I) . ∎ Recall that a Mal’tsev variety is one where there is a ternary term p satisfying p(x,y,y)=x and p(x,x,y)=y . This is in fact equivalent to every reflexive compatible relation being a congruence. Corollary 3.9 . A Mal’tsev variety has \ast -inductive rank as well as \ast -deductive rank equal to at most 1 , for any constant \ast . The following four classes of sets are the same in such variety: non-empty \ast -inductive sets, non-empty \ast -deductive sets, \ast -normal subalgebras. Note that a Mal’tsev variety with a constant \ast is always \ast -subtractive: we can define subtraction by setting s(x,y)=p(x,y,\ast) . We can also define a Jónsson–Tarski operation for \ast : setting u(x,y)=p(x,\ast,y) , we get u(x,\ast)=x=u(\ast,x) . The corollary above in fact generalises to any variety having both of these operations. Theorem 3.10 . Consider a 0 -subtractive variety V having a Jónsson–Tarski term for 0 . Then V has 0 -inductive rank as well as 0 -deductive rank equal to at most 1 . The following three classes of sets are the same in such variety: non-empty 0 -inductive sets, non-empty 0 -deductive sets, and 0 -normal subalgebras. Proof. Suppose I is not empty. Let R denote the semicongruence generated by I\times\{\ast\}, where \ast=0 . Let x\in RRI . Then xRyRt,\quad t\in I. Subtracting (t,\ast)\in R from (t,t) gives (\ast,t)\in R . Subtracting this from (y,t)\in R gives (y,\ast)\in R . Continuing in this manner, we eventually obtain (x,\ast)\in R . Since V has a Jónsson–Tarski term for 0 , and (\ast,t),(x,\ast)\in R , it follows that (x,t)\in R, and therefore x\in RI . So \mathcal{I}^{2}_{\ast}(I)\subseteq\mathcal{I}_{\ast}(I) and this means that 0 -inductive rank of V is at most 1 . Now let t\in IRR . Then xRyRt,\quad x\in I. By successive subtraction as above, we obtain (\ast,t)\in R. But since (x,\ast)\in R , again using the existence of a Jónsson–Tarski term for 0 , we conclude that (x,t)\in R , which implies t\in IR . Therefore \mathcal{D}^{2}_{\ast}(I)\subseteq\mathcal{D}_{\ast}(I) , and so 0 -deductive rank of V is at most 1 . The second part of the theorem follows from Corollary 3.4 . ∎ Recall that a semiring is a ring without the requirement of the existence of additive inverses, but retaining the law 0x=0 . The variety of semirings is no longer 0 -subtractive, so we do not expect 0 -inductive sets to coincide with 0 -deductive sets. Recall that an ideal of a semiring R is an additive submonoid I of R such that xy\in I for all y\in I and x\in R . An ideal is said to be subtractive when x+y\in I and y\in I always imply x\in I . Theorem 3.11 . The variety V of semirings has 0 -inductive rank equal to 1 and 0 -deductive rank equal to 1 . In this variety, 0 -inductive sets containing 0 are precisely the ideals, while 0 -inductive sets not containing 0 are precisely sets of the form I+\overline{I} , where 0\notin I\cup I+\overline{I} and \overline{I} is the ideal generated by I . 0 -deductive sets are those sets I where x+y\in I and y\in\overline{I} together always imply x\in I . A nonempty set is both 0 -inductive and 0 -deductive if and only if it is a subtractive ideal. Proof. For a semiring R and a natural number i , let us write [\vec{x_{i}},\vec{y_{i}}] for a product involving elements x_{i,1},\dots,x_{i,u_{i}} and y_{i,1},\dots,y_{i,v_{i}} in any order, where u_{i}\geqslant 0 and v_{i}>0 . For a non-empty set I in a semiring R , we have, just as in the case when R is a ring, \displaystyle\mathcal{I}_{\ast}(I) \displaystyle=\{x+\sum_{i=1}^{n}[\vec{x_{i}},\vec{y_{i}}]\mid x\in I\textrm{ and }\vec{y_{i}}\in I,\vec{x_{i}}\in R\textrm{ for each }i\in\{1,\dots,n\}\}. Let \overline{I} denote the ideal generated by I , \overline{I}=\{\sum_{i=1}^{n}[\vec{x_{i}},\vec{y_{i}}]\mid\vec{y_{i}}\in I,\vec{x_{i}}\in R\textrm{ for each }i\in\{1,\dots,n\}\}. It is then obvious that \mathcal{I}_{\ast}(I)=I+\overline{I} . We first claim that when J\subseteq K , necessarily \overline{J+K}\subseteq\overline{K} . Indeed, an element of \overline{J+K} is given by \sum_{i=1}^{n}[\vec{x_{i}},\vec{z_{i}}], where \vec{z_{i}}\in J+K,\vec{x_{i}}\in R\textrm{ for each }i\in\{1,\dots,n\} . Multiplying out each term in the sum we obtain an expression that qualifies to be in \overline{K} . Using this general principle, we get: \mathcal{I}^{2}_{\ast}(I)=I+\overline{I}+\overline{I+\overline{I}}\subseteq I+\overline{I}+\overline{I}=I+\overline{I}=\mathcal{I}_{\ast}(I). So, V has 0 -inductive rank 1 . Note that I+\overline{I}\subseteq\overline{I} . When 0\in I , we have \overline{I}\subseteq I+\overline{I} and so in this case \mathcal{I}_{\ast}(I)=\overline{I} . Thus, all ideals are 0 -inductive sets. In fact, already when 0\in I+\overline{I} , we have 0=x+y where y\in\overline{I} and so for any y^{\prime}\in\overline{I} we can write y^{\prime}=0+y^{\prime}=x+y+y^{\prime} , thus showing that y^{\prime}\in I+\overline{I} , i.e., I+\overline{I}=\overline{I} is an ideal. There are thus two disjoint classes of 0 -inductive sets: ideals and sets of the form I+\overline{I} where 0\notin I\cup I+\overline{I} . Next, \displaystyle\mathcal{D}_{\ast}(I) \displaystyle=\{x\mid x+\sum_{i=1}^{n}[\vec{x_{i}},\vec{y_{i}}]\in I\textrm{ where }\vec{x_{i}}\in R,\vec{y_{i}}\in I\textrm{ for each }i\in\{1,\dots,n\}\} \displaystyle=\{x\mid x+y\in I\textrm{ where }y\in\overline{I}\}. Let R denote the semicongruence generated by I\times\{0\} . Then R=\{(t(\vec{x},\vec{y}),t(\vec{x},\vec{\ast}))\mid\vec{y}\in I\}=\{(x+y,x)\mid y\in\overline{I}\}. This gives \displaystyle RR \displaystyle=\{(x+y,x^{\prime})\mid x=x^{\prime}+y^{\prime}\textrm{ where }y,y^{\prime}\in\overline{I}\} \displaystyle=\{(x^{\prime}+y^{\prime}+y,x^{\prime})\mid y,y^{\prime}\in\overline{I}\} \displaystyle=R. So R is transitive. Then by Theorem 2.5 , \mathcal{D}^{2}_{\ast}(I)=\mathcal{D}_{\ast}(I) and so V has 0 -deductive rank 1 . In the case when I is an ideal, \mathcal{D}_{\ast}(I)=\{x\mid x+y\in I\textrm{ where }y\in I\} is precisely the subtractive ideal generated by I . In the case when 0\notin I and I is 0 -inductive, I cannot be 0 -deductive unless I is empty. Indeed, if y\in I then 0+y\in I with y\in\overline{I} , and so 0\in\mathcal{D}_{\ast}(I) . Since 0\notin I we can see that I cannot be 0 -deductive. So the only nonempty 0 -inductive 0 -deductive sets are subtractive ideals. ∎ Together with Theorem 2.6 the result above recovers the following well known fact. Corollary 3.12 . 0 -normal sets in a semiring are precisely the subtractive ideals. In all of the results above where we established that inductive/deductive rank was 1 , we should have confirmed that the rank cannot be 0 . The following result clarifies why this would not be possible. Theorem 3.13 . A variety V with a constant \ast has a \ast -inductive rank equal to 0 if and only if all non-projection terms in this variety are constants. V has \ast -deductive rank equal to 0 if and only if it is a trivial variety, i.e., every algebra has at most one element. In this case, \ast -inductive rank equals 0 . Finally, V has \ast -deductive rank 1 and \ast -inductive rank 0 if and only if it is a non-trivial variety where all non-projection terms are constants. Proof. If all non-projection terms are constants, then the semicongruence R on an algebra A generated by I\times\{\ast\} , where I\subseteq A , is just R=(I\times\{\ast\})\cup\{(a,a)\mid a\in A\}. It is now clear that RI=I , so V has \ast -inductive rank equal to 0 . Note that IR=I\cup\{0\} and so V has \ast -deductive rank at most 1 . Conversely, suppose V has \ast -inductive rank equal to 0 . Consider any term t(x_{1},\dots,x_{n}) . Let A be the free algebra over the set \{x_{1},\dots,x_{n}\} . Let I=\{x_{1},\dots,x_{n}\}\cup\{t(\ast,\dots,\ast)\} . Since V has \ast -inductive rank equal to 0 , \mathcal{I}_{\ast}(I)=I . But t(x_{1},\dots,x_{n})\in\mathcal{I}_{\ast}(I) (apply Lemma 2.3 ). So either t(x_{1},\dots,x_{n})=x_{i} for some i or t(x_{1},\dots,x_{n})=t(\ast,\dots,\ast) , i.e., the term t is either a projection or a constant term. It is clear that the \ast -deductive rank is 0 when V is a trivial variety. Conversely, suppose this rank is 0 and consider any element x\in A in an algebra A . Take the set I=\{x\} . Then \ast\in\mathcal{D}_{\ast}(I) , so \ast=x . This shows that the variety is trivial. The last statement in the theorem follows from all that we have shown above. ∎