Manuscript Offprint
arXiv:2608.22424Preorder Preservation versus Congruence Preservation
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Looking at some monoids and (semi)rings (natural numbers, integers and p-adic integers), and more generally, residually finite algebras (in a strong sense), we prove the equivalence of two ways for a function f on such an algebra to behave like the operations of the algebra. The first way is to preserve congruences or stable preorders. The second way is to demand that, for any (recognizable) set L, a suitably chosen lattice (or Boolean algebra) generated by L be closed under preimages by the function f.
Keywords: Congruence, Lattice, Recognizable set.
1 Motivation and overview of the paper
In [5], we proved the following result.
Theorem A. If is non-decreasing then conditions (1) and (2) are equivalent
(1) (a) for all , divides , and
(b) for all , ,
(2) every lattice of regular subsets of which is closed under , i.e., implies , is also closed under , i.e., for every , .
The aim of this paper is to tackle the following question.
Question 1.1. Is it possible to view Theorem A as an instance of a result about general algebraic structures and not only the particular semiring ?
Emeritus at LACL, EA 4219, Université Paris-Est Créteil, IUT Sénart-Fontainebleau, France cegielski@u-pec.fr
IRIF, UMR 8243, Université Paris 7 Denis Diderot, France FirstName.LastName@irif.fr
Emeritus at Sorbonne-Université, corresponding author.
Observe first that, if is any one of the algebraic structures , or the semiring , or the semigroup , we have:
-
condition (1)(a) of Theorem A just tells that the function is congruence preserving in (cf. Definition 2.3, Corollary 4.2, Theorem 4.9).
-
Kleene's celebrated theorem insures that the notion of regular subset of language theory coincides with the algebraic notion of recognizable subset in (cf. Definition 2.13, Proposition 4.14). This allows to restate condition (2) of Theorem A in terms of recognizability.
Theorem A above can thus be reformulated as follows.
Theorem 1.2. Let be , or the semigroup or the semiring . If is non decreasing then conditions (1') and (2') below are equivalent:
(1') is -congruence preserving and, for all , ,
(2') for every -recognizable subset of , the smallest lattice of subsets of containing and closed under is also closed under .
Observe next that in Theorem 1.2 (1') we assume to be non decreasing and such that : so we have to study what is relevant to the order on , hence we will also consider preorder preserving functions. Observe finally that Theorem 1.2 (2') must be modified if is not recognizable. Consider the free monoid , , : is congruence preserving and . The preimages of under division by words of consist of: for , , , and the singletons , . We cannot get by finite unions and intersections of those: this leads to consider infinite unions and complete lattices. It turns out, that, for general algebras, preservation of preorders by is related to closure of some lattices by while congruence preservation is related to closure of some boolean algebras by . Figure 1 gives a short summary of our results: , , and , respectively denote the smallest 1) complete lattice, 2) complete Boolean algebra, 3) bounded lattice and 4) Boolean algebra which contain the subset of and are closed under preimage by the unary functions derived from the operations of the algebra (cf. Definition 2.5).
| f preserves | preorders | congruences | finite index preorders | finite index congruences |
|---|---|---|---|---|
| recognizable |
Figure 1: How to read the table: e.g., the rightmost bottom entry means “ preserves finite index congruences if and only if for every recognizable , ”.
In Section 3 we will state precisely and prove the results sketched in Figure 1. We will also show that, for some algebras, stronger results hold: e.g., in the free
Regular subsets of an algebra A with a binary operation are defined as the least family of subsets containing the singletons and closed under union and the Kleene star (iteration on the binary operation).
monoid, congruence preservation coincides with preorder preservation cf. Theorem 3.4). Stronger results also hold for some residually finite algebras and groups.
Section 4, revisits the above results: for algebras of non negative integers, (or ), functions preserving stable preorders coincide with non decreasing congruence preserving functions (Theorem 4.13). In Sections 5 and 6 we study the cases of integers and p-adic integers.
2.1 Congruence and stable (pre)order preservation
Notation 2.1. We denote the consisting of the nonempty carrier set together with a set of operations , each being a mapping where is the arity of .
Definition 2.2. Let be an algebra.
- Let be a function . A binary relation on is said to be compatible with if, for all elements in , we have
- A binary relation on is said to be if it is compatible with each operation . i.e., (1) holds with in place of for every .
As is usual, an equivalence relation on is called an .
The substitution property, introduced by Grätzer, 1962 [8] has since been renamed congruence preservation in the literature. We shall also use extensions dealing with preorders (cf. §3.1) instead of congruences.
Definition 2.3. Let be an algebra.
- A function is if all -congruences are compatible with , i.e., for every congruence on and all elements , in ,
- A function is (resp. ) preserving if all -stable preorders (resp. orders) are compatible with , i.e., for every stable preorder (resp. order) on and all elements in ,
When the algebra A is clear from the context, f is simply said to be (resp. (resp. ) ).
Remark 2.4. Functions preserving stable preorders also preserve congruences; the converse is false: stable preorder preservation is strictly stronger than congruence preservation. Indeed, Theorem 4.13 and Proposition 4.11 show that in there are functions which preserve congruences but not stable preorders.
2.2 Reducing arity n to arity one: 1-freezifications
Congruence preservation of a function f of arbitrary arity can be characterized via congruence preservation of suitably chosen unary restrictions of the function f. Reducing to unary functions will enable us to simplify some proofs; it will also be a key point in the definition of recognizability, syntactic congruences and syntactic preorders for general algebras.
The following notion goes back to Slomiński, 1974, cf. Definition 1 in [23].
Definition 2.5. 1. The 1-freezifications of , are equal to if , and if , they are the unary functions for ,
where , i.e., all but one argument of are frozen. The set of 1-freezifications of is denoted .
- If is a family of operations over a set with arbitrary arities, the 1-freezification of is the family of 1-freezifications of all operations in and the closure under composition of is denoted by . By convention, the identity belongs to . In particular, if is an algebra, we shall consider two related algebras:
Over N
Over
Figure 2: Examples of Frz( ), Frz ( )
1-freezifications are clearly linear polynomials defined by affine terms, see Schneider and Zumbrägel (2017) [21].
Example 2.6. Figure 2 gives examples of algebras Frz(A) and Frz*(A), for some algebras with carrier set N and for the free monoid with concatenation ·. In general, neither Frz(A) nor Frz*(A) coincide with what are usually called “affine” or “polynomial” functions of the algebra (and should more adequately be called “term” functions). For instance, with , and the usual “affine” or “polynomial” functions are respectively the usual affine functions, monomial functions and the polynomial functions in N[x]. With the usual “polynomial” functions are of the form , the 's being arbitrary words: the function is neither in Frz( ) nor in Frz*( ).
The following result is the core of Theorem 1 in Slomiński [23] (trivially extended from equivalences to preorders).
Lemma 2.7. A preorder on A is compatible with if and only if it is compatible with all n of its 1-freezifications.
Proof. The left to right implication is a trivial use of the reflexivity of . The right to left implication uses the transitivity of . Indeed, if is compatible with the n 1-freezifications
and if we have
hence is compatible with .
2.3 Syntactic congruence and syntactic preorder
Using the above notion of -freezification, we recall the classical notions of and associated to a subset L of an arbitrary algebra. This first appeared in Schützenberger, 1956 [22] p.10 (see also Almeida [1], Mezei & Wright, 1967 [15], Pin, 2022 [18], Slomiński [23]).
Definition 2.8. Let be an algebra. With any are associated two syntactic relations and respectively called and associated with .
Example 2.9. Let , let be the usual order on , let and for let . Then
From now on, preorders other than the syntactic ones will be denoted .
Lemma 2.10. Relations and are a stable preorder and a congruence.
The proof of the above Lemma along with the material of the next section 2.4 can be found in textbooks on algebraic language theory, for instance Almeida's book [1] Sections 0.2, 3.1, or in Pin's lectures [18], chap.IV, Sections 4.1, 5.3.
Definition 2.11. 1) A set is said to be if it is a union of equivalence classes.
- A set is said to be an initial segment for a preorder if whenever and then .
2.4 Recognizability
We recall the notion of recognizability in general algebra, which goes back to Mezei & Wright, 1967 [15]. First, let us recall another classical notion.
Definition 2.12. A congruence on with finitely many equivalence classes is said to have . Similarly, an -stable preorder has if the largest congruence included in (where is ) has .
Definition 2.13 (Recognizability). Given an algebra , a subset of is said to be -recognizable if there exists a finite algebra with the same signature as and a surjective morphism such that , i.e., for some subset of .
Recognizability is related to congruences by Lemma 2.14, Almeida[1], p.4, Pin[18].
Lemma 2.14. Let L be a subset of A. The following are equivalent:
-
L is A-recognizable,
-
L is saturated with respect to some finite index congruence of A,
-
the syntactic congruence of has finite index.
2.5 Lattices and Boolean algebras of subsets closed under preimage
We denote by the class of subsets of X.
Definition 2.15. 1. A bounded lattice (resp. complete lattice) of subsets of a set is a family of subsets of , containing and , and such that and are in whenever (resp. such that any union or intersection of subsets in is in ). We will say lattice instead of bounded lattice to shorten names.
-
A Boolean algebra (resp. complete Boolean algebra) of subsets of a set E is a lattice (resp. complete lattice) closed under complementation.
-
For , a lattice (resp. Boolean algebra ) of subsets of is under preimage by if whenever (resp. whenever ).
-
For an algebra, and , let
be respectively the smallest lattice, Boolean algebra, complete lattice and complete Boolean algebra of subsets of which contain the particular subset of and are closed under preimage by *-freezifications of operations of , i.e., by the maps for . Such maps are called cancellations in [1], Section 3.1, p.55. See Figure 3.
| with | ||||
|---|---|---|---|---|
| with | ||||
| with | ||||
| with |
Figure 3: Examples of maps for
Lemma 2.16 (Disjunctive Normal Form). 1) Every set in (resp. ) is of the form where the 's are subsets of (resp. with and the 's finite).
- Every set in (resp. ) is of the form where is either or its complement , and the 's are as above.
Proof. 1) As and distribute over each other , and , and similarly for , every arbitrary (resp. finite) combination of the 's, , can be put in a disjunctive normal form of the mentioned type. A similar argument proves 2).
Lemma 2.17. Let be an algebra and be a subset of .
-
Let be an -congruence. If is -saturated then so is every set in .
-
Let be an -stable preorder. If is a -initial segment then so is every set in .
Proof. 1) The family of -saturated subsets of is closed under arbitrary unions, under complementation and under preimage by congruence preserving maps from into , in particular, maps in , hence it contains .
To prove 2), substitute “-initial segments” for “-saturated subsets” in the proof of 1). As every set in (resp. ) is of the form , it suffices to prove that intersections, unions and preimages by of initial segments are again initial segments. Intersections: let and , as for all , is an initial segment and , we have: for all , hence . Same for unions. Preimages: let and , then, as is a stable preorder and is defined using operations of the algebra, ; which is an initial segment, hence also and .
Lemma 2.18. If is -recognizable then the four families in (6) are finite hence
3 Preservation of stable preorders or congruences
We first prove a variant of Theorem 1.2 for general algebras, where congruence preservation is replaced by the stronger condition of stable preorder preservation.
Complete distributivity of intersection over union needs the axiom of choice see https://math.stackexchange.com/questions/1092831/general-distributive-law-and-axiom-of-choice
We then extend Theorem 1.2 to the free monoid and to residually finite algebras (in a strong sense) admitting a group operation.
3.1 Stable preorder preservation and complete lattices
We prove Theorem 3.3, a variant of Theorem 1.2, where stable preorders, complete lattices and arbitrary subsets replace congruences, lattices and recognizable subsets respectively.
Lemma 3.1. Let . Given a subset , if preserves the syntactic preorder then and we have
Proof. For each let . The proof of (7) splits into three cases.
If , the right end side of (7) is the union of an empty family of sets, hence it is the empty set, and (7) holds.
If there exists an such that for all in , , then, as the intersection of an empty family of sets is the maximum element , we have and (7) becomes . In that case, for every and every , we have , since the premise is false. Hence . As preserves , we also have , thus for every , we have . In particular for , as , we obtain hence . Thus and (7) holds.
Otherwise, and there exists no such that: , is not in . Then if and only if for all , we have . Thus, by definition of the syntactic preorder , we have . Since we have hence . Conversely, for every we have and, as preserves , we also have hence, as by equation (7) , then also . Thus, . This proves (7) which implies that .
Remark 3.2. All our lattices must be bounded to take care of empty unions and intersections.
Figure 4: Examples of the formula in equation (7)
Theorem 3.3. [Stable preorder preservation and lattices] Let be an algebra and be a mapping.
- Conditions (i) and (ii) below are equivalent
(i) : f is stable preorder preserving,
(ii) (P): for every subset , is in the complete lattice .
- Conditions (i') and (ii') are equivalent:
(i') : f preserves the stable preorders which have finite index,
(ii') : for every -recognizable subset , is in the bounded lattice .
Proof. 1) : follows from Lemma 3.1.
(ii) (i): Assume that is in for all . Let be an -stable preorder and : let , is a -initial segment (by transitivity of ). Condition ensures that is in . As is a -initial segment so is also every set in (by Lemma 2.17). In particular, is a -initial segment. By reflexivity of , hence ; as is a -initial segment, we deduce that if then hence and therefore . This shows that preserves the stable preorder .
- follows from Lemma 3.1 and Lemma 2.18 for recognizable).
. Let be a stable preorder with finite index associated congruence. Observe that the initial segment is -recognizable. As is saturated for the congruence associated to and, as has finite index, we can apply Lemma 2.14. Using again Lemma 2.18, follow the proof of .
The upper half of Figure 5 illustrates Theorem 3.3, which differs in three ways from Theorem 1.2: 1) the set is arbitrary, 2) the lattice is complete, 3) the function is stable preorder preserving. In the next subsections, we will get results closer to Theorem 1.2 by assuming that some of the below conditions (1), (2) or (3) hold.
(1) The algebra is the free monoid, §3.2.
(2) The algebra satisfies a suitably chosen residual finiteness property (Definition 3.7) §3.4.
(3) The algebra has a Malcev term, §3.5: then finite index congruence preservation is equivalent to finite index stable preorder preservation.
3.2 Free monoids and affine complete algebras
Theorem 3.4. Assume , then on ,
-
is congruence preserving if and only if preserves stable preorders,
-
if is congruence preserving then for any recognizable (resp. for any ), (resp. ).
Proof. 1) As stable preorder preservation implies congruence preservation (congruences are preorders), we only need to prove the converse. When has at least two letters, we proved in [2] that all congruence preserving functions on are polynomial. Let be a polynomial function of the form ; it is said to have degree if there are occurrences of . By induction on we prove that every polynomial function is stable preorder preserving. Let be a stable preorder and . If , then is constant, hence . If , then , hence is in , and as is stable, . Assume that any polynomial with degree preserves , and let be a degree polynomial defined by , where has degree and let us prove that . By the induction hypothesis, ; as is stable, it is compatible with the operation of the algebra, hence and . Whence 1).
- By Lemma 3.1, 1) implies . Applying 1) and Theorem 3.3 2), for any recognizable , . Whence 2).
Theorem 3.4 can be used in the study of varieties of regular languages. Recall [10] that an algebra is said to be if all congruence preserving functions are polynomial. We can extend Theorem 3.4 to all affine complete algebras. The proof is analogous to the one for the free monoid, with heavier notations.
3.3 Congruence preservation and Boolean algebras of subsets
Congruence preservation for arbitrary algebras can be characterized using Boolean algebras instead of lattices. First adapt Lemma 3.1 for congruence preservation.
Lemma 3.5. Let , let be a subset of and . If preserves the syntactic congruence then . More precisely,
Proof. Letting , we argue as in the proof of Lemma 3.1. Observe that if and only if, for all , we have . Thus, by definition of the syntactic congruence , we have . Since we have hence . Conversely, for every we have and, as preserves , we also have , hence, if then . We thus have: . This proves (8).
Theorem 3.6. [Congruence preservation and Boolean algebras] Let A be an algebra and .
- Conditions (i) and (ii) are equivalent:
(i)(C): f is A-congruence preserving,
(ii) : for every subset , is in the complete Boolean algebra .
- Conditions and are equivalent:
(i') (Cfi): f preserves the A-congruences which have finite index,
(ii') (Cfi) for every A-recognizable subset , is in the finite Boolean algebra .
Proof. 1) : follows from Lemma 3.5.
(ii) (i). Assume that is in for all . Let be an -congruence and and consider the -class of . The assumed condition ensures that is in . Since is -saturated so is also every set in (by Lemma 2.17). In particular, is -saturated. As is the class of , ; as is -saturated, if then hence and therefore ( is the class of ). This shows that preserves the congruence .
- . If is recognizable then has finite index and hypothesis ensures that preserves . Applying Lemma 3.5 and Lemma 2.18 we see that .
. Let be a congruence with finite index, let and consider the -class of . By Lemma 2.14 the set is -recognizable. By condition , is in . As is -saturated so is also every set in (Lemma 2.17). In particular, is -saturated. Conclude as in the proof given for 1).
The lower half of Figure 5 illustrates Theorem 3.6.

Figure 5: Some general answers to Question 1.1
3.4 Residually finite algebras, recognizability and lattices
We can obtain a general result closer to Theorem 1.2 by assuming the algebra is residually finite in some strong sense (cf. Definition 3.7): in that case preservation of arbitrary preorders coincides with finite index preorder preservation, conditions ( ) and are equivalent, and all four conditions of the topmost horizontal trapezium in Figure 5 are equivalent; similarly for the four conditions of the lowermost horizontal trapezium. We need a notion of strong residual finiteness, defined below.
Definition 3.7. 1) A congruence on an algebra A is said to be c-residually finite if it is the intersection of a family of finite index congruences.
-
A stable preorder on an algebra A is said to be sp-residually finite if it is the intersection of a family of stable preorders all of which have finite index.
-
An algebra A is c-residually finite (resp. sp-residually finite) if all congruences (resp. stable preorders) on A are c-residually finite (resp. sp-residually finite).
Remark 3.8. 1) The usual notion of residually finite algebra (see [1] page 23, [10] page 102) requires that morphisms into finite algebras separate points, i.e., if then there exists a morphism into a finite algebra such that . This notion is equivalent to the c-residual finiteness of a single congruence, the identity congruence, hence it is weaker than our notion of c-residually finite algebra. See Example 3.9 2) below.
- In the commutative case, residually finite finitely generated commutative semi-groups are also c-residually finite, see Nordahl [16, 17] for references. In view of this remark, we conjecture that our results could be generalized to finitely generated free commutative monoids and direct products thereof.
Every congruence being a preorder, Definition 3.7 gives a priori two notions of residual finiteness for a congruence. Both notions can easily be proven to coincide.
Example 3.9. 1) The free monoid is residually finite in the usual sense as equality is residually finite [20], but it is not c-residually finite as soon as (the bicyclic monoid, which is the quotient of by the congruence generated by , is not residually finite, see Lallement [11]). If then is residually finite as is is isomorphic to , see 2).
-
Integer (semi)-groups and are c-residually finite as every non-trivial congruence is of finite index (cf. Lemmata 4.1 and 5.2) and the identity congruence is the intersection of all non-trivial congruences.
-
Slightly more complex than the previous example, for , the algebra admits c-residually finite congruences having infinite index, e.g., the congruence .
-
On the algebra of integers with multiplication , there exist c-residually finite non trivial congruences with infinite index. Consider on the congruence if and only if and have the same set of prime divisors: has infinite index. For each prime number let be the congruence if and only if divides both or neither of them. Each has finite index 2 and .
-
The algebra is not even residually finite in the usual sense. The only finite index congruence on is the trivial one where for all in . Indeed, recall that congruences are in bijection with normal subgroups, and the only finite index subgroup of is , see [19]. In particular, the congruence is not c-residually finite.
Lemma 3.10. Let be an algebra and .
-
If is sp-residually finite and preserves all finite index stable preorders then is stable preorder preserving, hence, .
-
If is c-residually finite and preserves all finite index congruences then is congruence preserving, hence, .
Proof. 1) Let be a stable preorder. The hypothesis of sp-residual finiteness of ensures that is sp-residually finite: there exists a family of stable preorders with associated congruences having finite indexes, such that . Thus, if and only if, for all , . The hypothesis ensures that preserves the 's hence for all . This yields .
The proof of 2) is similar.
An immediate consequence of the above Lemma is Theorem 3.11, improving item 2) of respectively Theorem 3.3 for sp-residually finite algebras and Theorem 3.6 for c-residually finite algebras.
Theorem 3.11. 1) Let be an sp-residually finite algebra: is stable preorder preserving (i.e., property (P) holds) if and only if for every -recognizable , is in the lattice (property holds).
- Let be a c-residually finite algebra: is congruence preserving (property (C) holds) if and only if for every -recognizable , is in the Boolean algebra (property holds).
Remark 3.12. An instance of Theorem 3.11 for the sp-residually finite algebra is the characterization of congruence preservation given in Theorem 1.2. Indeed, Theorem 4.13, shows that on a function is stable preorder preserving if and only if it is monotone non decreasing and congruence preserving. Theorem 4.9 shows that a non constant congruence preserving satisfies for all . Thus on , Theorem 1.2 becomes a consequence of Theorem 3.11.
3.5 When there is a Malcev term
The existence of a Malcev term in the algebra considerably simplifies the situation. Recall that, cf. [13] 1954, cf. also [14].
Definition 3.13. Given an algebra , a term is a if it satisfies the following conditions for all :
Lemma 3.14. If algebras having the same signature all admit a Malcev term , then any direct product of such algebras also admits a Malcev term which is the product of the 's.
Proposition 3.15. Assume algebra has a Malcev term; then every -stable reflexive relation is an -congruence and every -stable preorder is an -congruence.
Proof. If is an A-stable reflexive relation then
-
is transitive. If and , because is reflexive we have , and because is -stable we have , hence .
-
is symmetric. If then as is reflexive, , and , by stability , whence symmetry.
Example 3.16. 1) Groups have a Malcev term: .
- has a Malcev term and so do its direct products.
The next Corollary is an immediate consequence of Proposition 3.15.
Corollary 3.17. Let be an algebra having a Malcev term.
-
Every stable preorder with finite index associated congruence is a congruence.
-
Every sp-residually finite preorder is a c-residually finite congruence.
-
If A is c-residually finite then it is also sp-residually finite.
-
If is recognizable then its syntactic preorder is equal to its syntactic congruence.
When there is a Malcev term in a c-residually finite algebra, Theorem 3.3 can be given a more interesting form by replacing stable preorder preservation by congruence preservation, complete lattices by bounded lattices and subsets by recognizable subsets: there is a collapse of all eight conditions in Figure 5 involving congruence preservation, stable preorder preservation, preimages of recognizable sets, lattices and Boolean algebras. The next theorem will be used in sections 5 and 6.
Theorem 3.18. Let be a c-residually finite algebra having a Malcev term. Let . The following conditions are equivalent:
(i) f is stable preorder preserving,
(ii) f preserves stable preorders having finite index associated congruences,
(iii) f is congruence preserving,
(iv) f preserves finite index congruences,
(v) is in the lattice for every -recognizable ,
(vi) is in the Boolean algebra for every -recognizable ,
(vii) is in the lattice for every ,
(viii) is in the Boolean algebra for every .
Proof. Item 3) of Corollary 3.17 ensures that is also sp-residually finite. Thus, equivalences and are given by Lemma 3.10.
Item 1) of Corollary 3.17 yields the equivalence .
Equivalences (i) ⇔ (v) and (iii) ⇔ (vi) are given by Theorem 3.11 1) and 2).
As and follow respectively from Theorem 3.3 and Theorem 3.6, all eight conditions are equivalent.
4 Case of natural integers
We now reinterpret Theorem 1.2 using the notions introduced in Section 2. Let us first recall “folk” results about congruences and recognizable sets of .
4.1 Congruences on and
Lemma 4.1. A congruence on or on is either equality, or for some , where is defined by
The congruence has finite index .
A priori, congruences and recognizability strongly depend upon the signature. However, due to the properties of addition and multiplication on the integers in N we have
Corollary 4.2. The three structures , and yield the same notions of congruence (namely, equality and the ), congruence preserving function and recognizable subset of .
Proof. Every congruence for is a fortiori a congruence for . Conversely, observe that the 's are stable under multiplication, a straightforward property of modular congruences. Using Lemma 4.1, this shows that every +-congruence is also a -congruence. The assertion about congruence preservation is a trivial consequence. For the one about recognizability, use Lemma 2.14.
Remark 4.3. For morphisms the situation is more complex: homotheties for are +-morphisms which are not -morphism as .
4.2 The “frying pan” monoids and semirings
We define canonical representations of the quotient monoids and semirings .
Definition 4.4. Let such that .
- We denote by the set of minimum representatives of the equivalence classes of and by the map such that
which can be identified with the canonical surjection .
- To any -ary operation on corresponds a unique operation making a morphism ; it is defined by . In this way, we shall consider the arithmetic operations , and on .
Definition 4.5. A monoid with unit 0 is here said to be monogenic if there exists such that every element of is a sum of some nonempty finite set of copies of . Such an element is called a generator.

Figure 6: “Frying pan” monoid , where is represented by arrow.
Lemma 4.6. 1) is a monogenic commutative monoid (called “frying pan” monoid, cf. Figure 6) with 0 as unit.
-
Every finite monogenic monoid is isomorphic to the monoid for some .
-
For every surjective morphism onto a finite monoid , there exist and an isomorphism such that .
Follows from Lemma 4.1. The proof is classical and omitted.
Definition 4.7. A semiring is a set together with two binary operations and such that
-
is a commutative monoid with an identity element, say 0,
-
is a monoid with an identity element,
-
Multiplication by 0 annihilates for all ,
-
Multiplication left and right distributes over addition: and for all .
We use the arithmetic operations defined on , cf. Definition 4.4.
Example 4.8. The algebra is a semiring, called the “ frying pan semiring”, and is a morphism .
4.3 Congruence preservation and divisibility
Congruence preservation on can be characterized as follows
Theorem 4.9. For a map , the following conditions are equivalent:
(1) is congruence preserving on the algebra ,
(2)
Proof. (1) (2). Suppose is congruence preserving. Let and consider the congruence modulo . As we have hence divides . This proves (i). To prove (ii), we show that if condition is not satisfied then is constant. Let be least such that . Consider the frying pan (depicted in Figure 7) and the congruence . We have for all hence . As this implies
Figure 7:
. Thus, for all . Let . By condition (i) (already proved) we know that divides for all . Now, when . Thus, is divisible by all . This shows that . Summing up, we have proved that is constant with value .
(2) (1). Constant functions are trivially congruence preserving. We thus assume that is not constant, hence satisfies condition (i) and for all . Consider a congruence and suppose . If is the identity relation then hence . Else, by Lemma 4.1 the congruence is with and . In case then condition implies hence and . In case then condition implies and , hence divides . Condition (i) ensures that divides hence also divides . Also, our hypothesis yields and . As we get . Since divides we conclude that , whence (1).
Remark 4.10. We cannot withdraw the over-linearity condition in Theorem 4.9. We proved in [7] that any function satisfying (2)(i) can be lifted to a function such that satisfies (2)(i) and for , . Consider the function such that , ; is not constant, satisfies (2)(i) but is not congruence preserving as (using Theorem 4.9). In fact we can directly see that is not congruence preserving using the congruence : indeed but .
4.4 Congruence/(pre)orders preservation and monotonicity
Theorem 4.9 may induce the hope that congruence preserving functions over are monotone, but this is not the case, cf. Proposition 4.11. This does not hold as shown by the following Proposition
Proposition 4.11. There exists a non monotone function which is -congruence preserving.
Proof. Let preserves modular congruences, and also all congruences, but is non monotone.
We now show what monotonicity adds to congruence preservation in and . First, a simple observation.
Definition-Lemma 4.12. Let be a stable preorder on and, for , let and .
-
and are submonoids of .
-
If then and .
Proof. 1) Clearly, . Suppose and . By stability the first inequality yields and, by transitivity, the second inequality gives . Thus, is a submonoid. Idem with .
- If then by stability , i.e., . Thus, . Similarly, .
Theorem 4.13. Relative to the algebras and , a function is stable preorder preserving if and only if it is monotone non decreasing and congruence preserving.
Proof. If is stable preorder preserving then it is a fortiori congruence preserving. As the usual order on is stable, it is preserved by hence is monotone non decreasing.
Conversely, assume is congruence preserving and monotone nondecreasing. We prove that preserves stable preorders. The case where is constant is trivial. We now suppose is not constant hence satisfies conditions 2) (i) and (ii) in Theorem 4.9. Since the usual order on is stable, using Lemma 4.12 it suffices to show that preserves every stable order . Suppose , then
- either hence . By condition (i) we know that divides . As is a monoid, is also in . Condition (ii) ensures that hence, by Lemma 4.12, . Thus, is in implying .
• or , the proof is similar, by noting that .
4.5 Recognizable subsets of and
We recall the classical characterization of recognizability in and .
Proposition 4.14. Let L be a subset of N. The following conditions are equivalent:
(1) L is -recognizable.
(2) L is -recognizable.
(3) is of the form with , , and (possibly empty in which case is finite).
Proof. (1) (2). By Corollary 4.2.
(1) (3). By definition, a subset of is -recognizable if it is of the form for some surjective morphism onto a finite monoid and some . Using Lemma 4.6 3), we reduce to the case and
for some . Letting and , we have and and hence .
In [5] we proved a connection between recognizable subsets and functions satisfying conditions (2) (i) and (2) (ii) of Theorem 4.9. Using the equivalence given by Theorem 4.9 we now reformulate the result of [5] as the following version of Theorem 1.2.
Theorem 4.15. Let be a monotone non-decreasing function, and let . The following conditions are equivalent:
(1) The function f is N-congruence preserving on N and for all x.
(2) For every finite subset L of N, the lattice is closed under .
(3) For every recognizable subset L of N, the lattice is closed under .
Proof. The equivalence between (1) and (2) follows from Theorem 5.1 of [5]. As is c-residually finite, finite index congruence preservation coincides with congruence preservation (Lemma 3.10 2). By Theorem 4.13, on , monotone non decreasing congruence preserving functions coincide with stable preorder preserving functions. Hence by Theorem 3.3 2) and Lemma 2.18, (1) and (3) are equivalent.
4.6 Case of
We here extend Theorem 4.15 to congruence preserving functions on and explicitly characterize these functions in Theorem 4.16 (ii). We have seen that congruences and morphisms of coincide with congruences and morphisms of . The situation changes when considering the algebra . In the present section we will denote by and by . Here, -morphisms (resp. -congruences) are morphisms (resp. congruences) of .
Theorem 4.16. For a non constant function, the following conditions are equivalent:
(i) For every recognizable subset L of the lattice is closed under .
(ii) The function f is of the form for some fixed .
(iii) The function f is -congruence preserving and x divides for all x.
Before proving Theorem 4.16, we state some observations and introduce a notation.
A sharp difference between Theorem 4.16 and Theorem 4.15 is the richness of the family of involved functions. On all congruence preserving functions are polynomial, while on there are non-polynomial congruence preserving functions (cf. Section 5). This can be explained by the fact that there are many more congruences on than on . See Example 4.18.
Definition 4.17. Let be the set of prime numbers. For , the -valuation of denoted is the highest exponent of such that divides .
Example 4.18. 1) There are strictly more congruences on than on . Let be a nonempty set of prime numbers. The relation such that if for all , is a congruence for but not for . For instance for , , but .
The same phenomenon occurs for morphisms. Let be such that : is a -morphism.
There thus are uncountably many -congruences (resp. -morphisms) whereas there are only countably many -congruences (resp. -morphisms).
- Another example: the relation such that if or both are powers of 2 is a congruence for but not for since and but . A mapping can be a -morphism without being a -morphism and vice versa. Let be defined by: if and only if for some and otherwise; is a -morphism but not a -morphism because .
Lemma 4.19. 1) is the set of homotheties.
- For , is the smallest sublattice of containing and closed under exact division of sets where and . Hence if is a singleton set, all sets in are sets of divisors of .
Proof. Point 1) follows from the fact that is commutative and associative. Point 2) is a consequence of the definition of when .
Example 4.20. 1) For , we have .
- For , the set is
since the sets are given by the following table:
| a | 1 | 2 | 4 | 5 | 10 | 20 | |
|---|---|---|---|---|---|---|---|
| L/a |
Proof of Theorem 4.16. Recall that is non constant.
(i) (ii)
Fact 1. We first prove that (i) implies: divides for all . First, observe that any finite set is -recognizable. Indeed, letting and considering the map , we have . As Remark 4.8 ensures that is a -morphism, we conclude that is -recognizable.
Let , then (by Lemma 4.19) every set in is a set of divisors of . As , we conclude that is a divisor of .
Fact 2. We next prove that (i) implies: if divides then for some . The case being trivial we suppose . Let be the integer and set . This set is finite: if then hence . Being finite, is recognizable and condition (i) ensures that . Letting we see that hence . We prove that is also in . Being in , the set is of the form for some finite family of finite subsets , (cf. Lemmas 2.16 and 4.19) hence for some . In particular, to prove it suffices to prove that for all . If then for some we have . Thus, is an integer. As we have . Thus, is also an integer hence . Now, is an integer hence . This proves that is in hence , i.e., for some hence . This finishes the proof of Fact 2.
We finally prove that (i) implies: is of the form for some , i.e., . We apply Fact 2 with various pairs and write for the exponent such that . Let and be coprime.
(combine (12) and (11))
(13)
As and are coprime, comparing the exponents of in (10) and (13), we conclude that , for all coprime . Exchanging the roles of and we get . Thus, if are coprime then . Now, for every there exists coprime to both and . We then have and . Thus, . Let be the common value of the 's. Equation (11) insures that for every .
(ii) (iii). Straightforward.
(ii) (i). If is of the form given in (ii), then with . We proved (Theorem 2.2 in [5]) that any lattice closed by division is also closed by th root. As is the smallest lattice containing and closed under division, it is also closed under th root; this implies that is closed under .
(iii) (ii). For , let be the set of primes dividing . Recall that denotes the highest exponent of such that divides .
If is prime then the relation defined by if and only if is a congruence on . As is congruence preserving, we see that implies . In other words, the -valuation of depends only on that of . Thus, there is a function such that .
Consider now the ×-congruence defined by if and only if . Clearly and for all , hence and . Thus,
and , hence
(14)
this yields
where is the common value of the 's for prime , a property ensured by equation (14).
Let be the finite set of primes which divide . This set is also the set of primes such that . Using (15) we see that for every prime . In particular, if . Thus,
where the passage from (16) to (17) is justified as follows:
-
for we have hence ,
-
for we have hence .
Equation (18) is the wanted condition (ii).
5 Case of integers and
In this section we look for an extension of Theorem 4.15 to functions , for the structures and . Congruence preserving functions on can be very intricate [6]: for instance, defined by:
is congruence preserving. But the lattices for recognizable are surprisingly simple, cf. Lemma 5.8 in Section 5.4.
5.1 Congruences on and
Recall that the congruences of are the equality relation and the modular congruences for . These -congruences are also -congruences. Thus, applying item 2 of Definition 4.4, we have the following avatar of Corollary 4.2 about .
Lemma 5.1. The two structures and have the same congruences (namely, equality and the modular congruences), congruence preserving functions , morphisms and recognizable subsets of .
Hence on Z, the study of congruence-preservation and recognizability with respect to the signature + supersedes the study with respect to the signature +, ×. However congruence-preservation and recognizability with respect to the signature × yield no consequence for congruence-preservation and recognizability with respect to the signature + as not every -morphism (resp. congruence, recognizable set) is a -morphism (resp. congruence, recognizable set).
In general, congruences are kernels of morphisms into possibly infinite algebras. However, for the ring of integers (cf. Lemma 5.2), non trivial congruences coincide with kernels of morphisms onto finite structures, exactly as for the semiring of natural numbers. This allows to consider only congruences having finite index.
5.2 Congruence preservation on principal commutative rings
More generally than , we characterize congruence preservation for commutative principal rings with the signature . A ring is said to be principal if every ideal is principal.
Lemma 5.2. If A is a principal commutative ring, then
(i) any congruence is of the form for some .
(ii) a function is congruence preserving if and only if it satisfies
Proof. The hypothesis that A is principal yields condition (i).
(ii) Assume is congruence preserving. For , let be the congruence determined by the ideal . Since , congruence preservation ensures that hence divides .
Conversely, assume (19) holds and let be a congruence, which is of the form because of principality. If then divides and, by transitivity of divisibility, (19) ensures that divides , i.e., .
Remark 5.3. Otherwise stated, for principal commutative rings, congruence preservation is equivalent to condition (2)(i) of Theorem 4.9 and the over-linearity condition (2)(ii) of Theorem 4.9 is not needed.
5.3 Recognizability in and
Recall first a folk proposition.
Proposition 5.4. Let . The following conditions are equivalent:
(i) X is -recognizable,
(ii) X is -recognizable,
(iii) X is of the form with and .
Corollary 5.5. Both and are c-residually finite.
Remark 5.6. In , recognizable subsets coincide with regular subsets. In , this is no longer true. The only finite -recognizable set is the emptyset.
5.4 Lattices in and
Definition 5.7. Let be a unit (semi)ring , with 0, 1 as distinct identities for + and .
-
is the smallest sublattice of containing and closed under for all (closed under cancellations).
-
(resp. ) is the smallest (resp. complete) sublattice of containing and closed under both cancellations and (i.e., for all ).
As we work here with the ring Z for which cancellations (following Almeida's terminology [1]) coincide with translations, from now on we will write closed under translations instead of closed under cancellations. By Lemma 5.1, congruence preservation (resp. recognizability) with respect to and are equivalent. The next Lemma shows that this goes on with lattices, i.e., the lattices and coincide for any recognizable L.
Lemma 5.8 (Characterization of the lattice generated by a recognizable subset and closed under translations). Let be a nontrivial (i.e., different from and ) recognizable subset of . Let be smallest such that with . Then
If L = ∅ or L = Z (i.e., k = 0 or k = 1) then these three lattices coincide with {L}.
Proof. We first prove that and . Let and be a nonempty subset of , i.e., with and . For consider the set . Clearly, 0 is in each . We claim that . If this is clear since then every is . We now assume and . Let with . Then, there exists such that for ; hence . Since we get , and by induction, for all , . Indeed . Let . Using Bézout's identity, there are , such that and , such that . Inclusion yields hence (again by induction) . In the same way, using we get . Thus, . As divides we also have
. Thus, and since (recall and divides ) this contradicts the minimality of .
Equality implies that
From , we deduce: , belongs to . All finite unions and intersections of such also belongs to proving that for all , is in .
The converse inclusion is straightforward.
Finally, as is the smallest lattice closed under translations and divisions containing , it suffices to prove that is closed under divisions to conclude. Recall that with . For . Set , we show that . Clearly: , which implies: . Conversely, if , then , with ; letting , we have hence . This implies: and thus , whence .
Finally, the last assertion about the cases and is straightforward. ☐
Remark 5.9. Note the following immediate consequence of Lemma 5.8. For every we have as . This is different from the case of where does not necessarily belong to , for instance when is finite (hence recognizable in ) all sets in are finite.
5.5 Characterizing congruence preserving functions on
As is c-residually finite and has a Malcev term, Theorem 3.18 holds; we just state the following consequence without proof, even though we also can give a direct proof without using residual finiteness.
Theorem 5.10. A function is +-congruence preserving if and only if for every recognizable subset of the lattice is closed under .
Remark 5.11. The results of this section generalize to products of . As such products contain a Malcev term, see Example3.16 2): for the same type of reason it has been shown in Hu 1969, see [9, 4] that any congruence on a direct product of algebras is a product of congruences on .
Remark 5.12. 1) The previous result shows that the equivalence of the analogues of conditions (1) and (3) of Theorem 4.15 hold for . However, the equivalence with the analogue of condition (2) fails as shown by the counterexample exhibited in 2) below.
- It is straightforward to see that, for any finite, is the set of all finite subsets of . Consider such that for and if . As is finite for every , the preimage of any finite subset is a finite subset, and is closed under . However is not congruence preserving: for instance, does not divide .
Example 5.13. 1) A function which is congruence preserving on and takes all its values in can be non congruence preserving when restricted to . Consider defined by , being a polynomial, it is congruence preserving on , but not on : indeed, congruence is not preserved by as , but .
- Theorem 5.10 does not hold if we substitute “regular” for “recognizable”. In [3] it is shown that a regular subset of is of the form where are regular subsets of , i.e., with , , and (possibly empty). Consider the regular set ; the function defined by is congruence preserving by Lemma 5.2. The set contains infinitely many negative numbers. Each set (for ) contains only finitely many negative numbers and the same is true for any finite union of finite intersections of 's, and, in particular, for any set in . Thus, is not in .
6 Case of rings of p-adic integers
For rings of p-adic integers, the results are similar to those for the ring Z.
6.1 Basics about p-adic integers and their representations
The set of -adic integers is the projective limit relative to the projections with , such that for . Every -adic integer can be represented as an infinite sum with . Elements of are represented in by sums with an infinite tail of 's. Elements of correspond in to base representations with an infinite tail of digits all equal to . Addition is performed with carries as in the finite case (except that it goes from left to right). For instance, (writing for an infinite tail of digits all equal to ) we have, for , , and in general, .
6.2 c-Residual finiteness of rings of p-adic integers
Definition 6.1. The of is the maximum such that divides , i.e., the number of heading zeroes in the -adic representation of .
Remark 6.2. The set of invertible elements of consists of all elements with null -adic valuation, i.e., those with -adic representation such that . Thus, every element of can be written where and .
Lemma 6.3 (cf. Lenstra [12]). The ring is a principal ring, and all its ideals are of the form , with , or
Proof. Let us recall the simple proof. If is an element with minimum valuation in an ideal then for some invertible and also . Let be an inverse of . Then contains .
Corollary 6.4. The ring is c-residually finite.
Proof. By Lemma 5.2 and Lemma 6.3 a non trivial congruence on is of the form
Thus, there are equivalence classes with .
Finally, the trivial congruence if and only if is equal to the intersection of all non trivial congruences.
Lemmata 5.2 and 6.3 imply the following
Proposition 6.5. A function is congruence preserving on if and only if it is satisfies the divisibility condition (19) in Lemma 5.2.
6.3 Recognizability, lattices and congruence preservation in
We give here a simple characterization of recognizable subsets.
Proposition 6.6. Let X be a subset of . The following conditions are equivalent:
(i) X is a recognizable subset of the ring .
(ii) for some and some finite subset of .
Proof. (i) (ii). Assume (i) and let be a surjective -morphism with finite. Since is a ring so is . Let be the kernel of . is an ideal which is not reduced to , otherwise would be injective and infinite. Hence by Lemma 6.3, . As , we get . As is finite, any is a finite union . Any -recognizable subset of is thus a finite union of such , i.e., where . This proves condition (ii).
(ii) (i). It suffices to consider and the modular projection .
Theorem 3.18 and Corollary 6.4 allow to extend Theorem 5.10 to the ring .
Proposition 6.7. A function is -congruence preserving if and only if for every recognizable subset of , the lattice is closed under .
We do not know whether Proposition 6.7 extends to the ring of profinite integers . As there is no simple characterization of all the ideals of [12], our proofs of Corollary 6.5 and Proposition 6.6 which rely on c-residual finiteness do not hold for . We can however obtain Theorem 6.8, a nice generalization to of Theorem 1.2 which was the first motivation of this whole study.
As is a product of algebras with Malcev terms, it has a Malcev term, hence congruences coincide with stable preorders. Let us now restrict our attention to recognizable languages: if is recognizable, then its syntactic congruence has finite index hence its kernel is a finitely generated ideal [12] which is of the form: with for all but finitely many . Theorem 3.18 becomes for :
Theorem 6.8. Let . The following equivalences hold:
(i) (iii) (vii) (viii) and (ii) (iv) (v) (vi), where
(i) f is stable preorder preserving,
(ii) f preserves stable preorders having finite index associated congruences,
(iii) f is congruence preserving,
(iv) f preserves finite index congruences,
(v) is in the lattice for every -recognizable ,
(vi) is in the Boolean algebra for every -recognizable ,
(vii) is in the lattice for every ,
(viii) is in the Boolean algebra for every .
7 Conclusion
For an algebra A, we studied the relationships between some lattices (resp. boolean algebras) related to A on the one hand, and on the other hand functions preserving stable preorders (resp. congruences) on A: those lattices (resp. boolean algebras) are the ones generated by recognizable sets of A and closed under preimages by the “generated functions” Frz*( ) of A. We proved that, for any algebra A, a function f preserves stable preorders (resp. congruences) of A if and only if these lattices (resp. boolean algebras) are closed under preimage by f.
Surprisingly, for quite a few usual algebras , e.g., those with carriers , , , functions preserving congruences of coincide with functions preserving stable preorders. The algebra of natural integers is not among them. There is a non monotone congruence preserving function (proposition 4.11); by theorem 4.13 cannot be stable order preserving, and it cannot preserve lattices by preimages because of the equivalence of theorem 3.3.
We gratefully acknowledge the referee’s suggestion about this point and Theorem 6.8
One can ask in which other algebras this result holds: i.e., when can lattices be substituted for boolean algebras for congruence preservation.
Acknowledgments We thank the referee for careful reading and extremely useful comments.
References
[1] J. ALMEIDA, Finite Semigroups and Universal Algebra, World Scientific, 1994.
[2] A. ARNOLD, P. CÉGIELSKI, I. GUESSARIAN, Affine completeness of some free binary algebras, Fundamenta Informaticae, Vol. 186 (1-4) (2022), 27-44.
[3] M. BENOIS, Parties Rationnelles du Groupe Libre, C. R. Acad. Sci. Paris Série A, 269, 1188-1190, 1969.
[4] S. BURRIS, Remarks on the Fraser-Horn Property, Algebra Univ., 23, 19-21, 1986.
[5] P. CÉGIELSKI, S. GRIGORIEFF, I. GUESSARIAN, On Lattices of Regular Sets of Natural Integers Closed under Decrementation, IPL 114(4): 197-202, 2014.
[6] P. CÉGIELSKI, S. GRIGORIEFF, I. GUESSARIAN, Integral Difference Ratio Functions on Integers, LNCS 8808, 2014, 277-291.
[7] P. CÉGIELSKI, S. GRIGORIEFF, I. GUESSARIAN, Arithmetical Congruence Preservation: From Finite to Infinite, LNCS 9300, 2015, 210-225.
[8] G GRÄTZER, On Boolean functions (Notes on lattice theory II), Revue de Mathématiques Pures et Appliquées, 7:693-697, 1962.
[9] T.K. Hu, On the fundamental subdirect factorization theorems of primal algebras, Math. Z. 112: 154-162, 1969.
[10] K. KAARLI, A.F. PIXLEY, Polynomial completeness in algebraic systems, Chapman & Hall/CRC, 2001.
[11] G. LALLEMENT, Sur les monoïdes finiment présentés, Journées d'Algèbre, Séminaire Dubreil-Jacotin, Algèbre et théorie des nombres, Tome 25 (1971-1972) no. 2, Exposé no. J9, 1972 Paris Online version http://www.numdam.org/item/SD_1971-1972_25_2_A9_0.pdf
[12] H.W. LENSTRA, Profinite number theory, EMS Newsletter 100: 14-18 (2016).
[13] A.I. MALCEV, On the general theory of algebraic systems, Matematicheskii Sbornik. Novaya Seriya, 1954, Volume 35(77): 3-20, 1954 https://www.mathnet.ru/php/archive.phtml?wshow=paper&jrnid=sm&paperid=5264&option_lang=eng (in Russian)
[14] NLAB, Malcev variety in nLab, 2023 https://ncatlab.org/nlab/show/Malcev+variety
[15] J. MEZEI, J.B. WRIGHT, Algebraic automata and context-free sets, Information and control, 11:3-29, 1967.
[16] T. NORDAHL Finitely generated left commutative semigroups are residually finite, Semigroup Forum 28: 347-354, 1984.
[17] T. NORDAHL Residual finiteness in permutation varieties of semigroups, Semigroup Forum 31: 33-46, 1985.
[18] J.-É. PIN, Mathematical Foundations of Automata Theory, online document, 344 pages, 2022. https://www.irif.fr/~jep/PDF/MPRI/MPRI.pdf
[19] https://math.stackexchange.com/questions/182311/subgroup-of-mathbbq-with-finite-index/182315#182315
[20] https://mathoverflow.net/questions/451124/are-all-free-monoids-residually-finite
[21] F.M. SCHNEIDER, J. ZUMBRÄGEL, , Adv. Math., 305 : 661 - 681, 2017.
[22] M.P. SCHÜTZENBERGER, Une théorie algébrique du codage, Séminaire Dubreil, Algèbre et théorie des nombres, eds. P. Dubreil and C. Pisot, (Institut Henri Poincaré, Paris) 9:1-24. https://www.numdam.org/article/SD_1955-1956_9_A10_0.pdf
[23] J. SLOMIŃSKI, On the greatest congruence relation contained in an equivalence relation and its applications to the algebraic theory of machines, Colloquium Mathematicum, 29(1):31-43, 1974.