232021216890
The algebra of binary trees is affine complete
Abstract
A function on an algebra is congruence preserving if, for any congruence, it maps pairs of congruent elements onto pairs of congruent elements. We show that on the algebra of binary trees whose leaves are labeled by letters of an alphabet containing at least three letters, a function is congruence preserving if and only if it is a polynomial function, thus exhibiting the first example of a non commutative and non associative affine complete algebra.
keywords:
algebras, trees, congruencesMerci à Maurice pour nombre de discussions algébriques passionnantes
1 Introduction
A function on an algebra is congruence preserving if, for any congruence, it maps pairs of congruent elements onto pairs of congruent elements.
A polynomial function on an algebra is a function defined by a term of the algebra using variables, constants and the operations of the algebra. Obviously, every polynomial function is congruence preserving.
Algebras where all congruence preserving functions are polynomial functions are called affine complete in the terminology introduced by Werner (1971). They are extensively studied in the book by Kaarli and Pixley (2001).
In the commutative case, many algebras have been shown to be affine complete: Boolean algebras (Grätzer, 1962), -rings with unit (Iskander, 1972). For distributive lattices, Ploščica and Haviar (2008) described congruence preserving functions, and Grätzer (1964) determined which distributive lattices are affine complete. Affine completenes is an intrinsic property of an algebra, which fails to hold even for very simple algebras: e.g., in , the function defined by
has been proved to be congruence preserving (Cégielski et al., 2015), but it is not a polynomial function because its power series is infinite. Hence is not affine complete.
In the non commutative case, very little is known about affine complete algebras. We proved in Arnold et al. (2020) that the free monoid is an associative non commutative affine complete algebra if has at least three letters, and we proved in Arnold et al. (2020) a partial result concerning a non commutative and non associative algebra: every unary congruence preserving function is a polynomial function, where is the algebra of full binary trees with leaves labelled by letters of an alphabet having at least three letters. We here generalize this result proving that a congruence preserving function of any arity is a polynomial function, where is the algebra of arbitrary (possibly non full) binary trees with labelled leaves. This generalization is twofold: (1) non full binary trees are allowed in , and (2) congruence preserving functions of arbitrary arity are allowed. This exhibits an example of a non commutative and non associative affine complete algebra. Non commutative and non associative algebras are of constant use in Computer Science, and congruences are also very often used, whence the potential usefulness of our result.
We first define binary trees and their congruences, we then study conditions which will enable us to prove that every congruence preserving function is a polynomial function, and to finally prove the affine completeness of .
2 The algebra of binary trees
2.1 Trees, congruences
For an algebra with domain , a congruence on is an equivalence relation on which is compatible with the operations of . We state the characterization of congruences by kernels of homomorphisms.
Lemma 2.1.
Let be an algebra with a binary operation . An equivalence on is a congruence iff there exists an algebra with a binary operation and there exists a homomorphism such that coincides with the kernel congruence of , defined by iff .
Let be an alphabet not containing . We shall represent the algebra of binary trees over , i.e., trees with leaves labeled by letters of , as a set of words on the alphabet , together with the binary product operation .
Definition 2.2.
The algebra of binary trees over is defined as follows.
-
•
A binary tree over is a finite set of words such that: For any , if then is not a prefix of and is not a prefix of . The carrier set is the set of all binary trees. The empty set is a binary tree denoted by .
-
•
The binary product operation is defined by: for , . In particular, .
When the alphabet is clear, we will denote by the set of all binary trees. Trees are generated by and the operation .
An essential property of this algebra is that its elements are uniquely decomposable.
Lemma 2.3 (Unicity of decomposition).
If is a tree not in then there exists a unique ordered pair in such that .
This property allows us to associate with each its size (number of nodes)
– , and for all , ,
– if then , and .
If then there exist with such that . Trees , , are trees whose root has two sons, a single right son, a single left son, respectively. See Figure 1.
2.2 Homomorphisms, graftings
Lemma 2.4.
Let be an algebra with a binary operation . Every mapping can be uniquely extended to a homomorphism .
Remark 2.5.
1) Because of the universal property of Lemma 2.4, homomorphisms are (uniquely) defined by giving their values on .
2) For every endomorphism, . Otherwise, as , ; if with then implies , a contradiction.
Definition 2.6.
For a given , let be the endomorphism sending onto . If for some , , trees and are said to be similar, which is denoted by .
Note that the congruence does not depend on the choice of the letter since . From an intuitive viewpoint, means that and have the same skeleton, i.e., they are identical except for the leaf labels. See Figure 1.
Other congruences fundamental for our proof are the kernels of the grafting endomorphisms, defined below.
Definition 2.7 (Grafting).
Let and . Then the grafting is the endomorphism defined by its restriction on
In other words, for any and any , is the endomorphism sending the letter on and each other letter on itself.
An endomorphism of is idempotent if for every , . By Lemma 2.4, is idempotent iff for every , . For instance if does not occur in then is idempotent.
Proposition 2.8.
Let , let , and let be two letters in . If for , then .
Proof.
By induction on .
Basis Case 0: If then one of is , say . If then contains at least one occurrence of some letter . As , we have , which implies (because was supposed) that . Then implies that all leaves of are equal to both and , a contradiction. Hence and .
Basis Case 1: If then or is a letter, say , and there is one , say , such that , thus .
-
•
If is a letter , then . If then . Since , we have that , a contradiction. If and , a contradiction. Hence .
-
•
If then , and which can be only of size 0 or , contradicting . this case is excluded.
Induction: If then and with , for . By Lemma 2.3, implies , for . By the induction hypothesis , hence . ∎
Proposition 2.9.
Let us fix , with , such that .
(1) If, for some of size , , then .
(2) If, for all , , , then .
Proof.
Both (1) and (2) are proved by induction on , and in both cases, the result obviously holds if .
Basis: If .
(1) We assume that .
(i) If then , a contradiction.
(ii) Otherwise, , e.g., , then and , hence , which contradicts .
(2) We assume that .
(i) The case yields a contradiction as in case (1).
(ii) Otherwise, e.g., , there exists , and we get and , contradicting .
Induction: As in Proposition 2.8 in both cases: since and are similar, and with similar to and . ∎
2.3 Congruence preserving functions on trees
Definition 2.10.
A function is congruence preserving (abbreviated into CP) if for all congruences on , for all in , for all , implies .
Remark 2.11.
(1) It follows from Lemma 2.1 that CP functions are characterized by the fact that for all homomorphisms from to any algebra , for all , implies .
(2) If is CP and endomorphism is idempotent then . Indeed, let be the congruence associated with , for , we have , hence , whence the result.
We will show that congruence preserving functions on the algebra are polynomial functions. Let us first formally define polynomials on trees.
Definition 2.12.
Let be called variables. A polynomial is a tree on the alphabet .
With every polynomial we will associate a polynomial function defined by: for any ,
Obviously, every polynomial function is CP. Our goal is to prove the converse, namely
Theorem 2.13.
Let . If is CP then there exists a polynomial such that .
3 Equality of CP functions
Notation 3.1.
For any , we denote by its restriction to .
In this section we prove that if and are two CP functions, then implies , provided that contains at least three letters.
Lemma 3.2.
Suppose has at least three letters. If and are unary CP functions on such that for all , then for all , and are similar.
Proof.
We have to show that for some and for all . As is idempotent and is CP, by Remark 2.11 (2), , and similarly for . Hence it suffices to prove . Let such that are pairwise distinct. As is idempotent, by Remark 2.11 (2), we have . The same holds for , i.e., . From , we deduce that . This equality holds for , thus Proposition 2.8 implies that . ∎
The following proposition shows that a unary CP function is completely determined by its values on .
Proposition 3.3.
Suppose has at least three letters. If and are unary CP functions on such that for all , then for all , .
Proof.
Let be a letter that occurs in . For any other letter , the endomorphisms and are idempotent, where . Thus by Remark 2.11 (2), , and . As we have . By Lemma 3.2, and are similar, and by Proposition 2.9 (1) .
On the other hand, as and are CP and , we get and , hence . As this is true for all , we have by Proposition 2.9 (2), . ∎
Proposition 3.3 now can be generalized.
Notation 3.4.
For any function , any , and , we define
(1) a -ary function obtained by “freezing” the (n+1)th argument to the value , and defined by: for all , ,
(2) a unary function obtained by “freezing” the first arguments to the value , and defined by: for all , .
Proposition 3.5.
Let and be n-ary CP functions on such that for all , then for all , .
4 The algebra of binary trees is affine complete
To prove that any CP function is a polynomial function, as a consequence of Proposition 3.5 and of the fact that a polynomial function is CP, it is enough to show that the restriction of to is equal to the restriction of a -ary polynomial function. For such restricted functions we introduce a weakened version WCP of the CP condition, namely,
Definition 4.1.
Function is said to be WCP iff for any idempotent mapping , , , where for , denotes .
Every CP function is clearly WCP.
Lemma 4.2.
If is WCP then for all , and are similar.
Proof.
As for all and is WCP, . ∎
We often use a different form of the condition WCP, which deals only with alphabetic graftings.
Proposition 4.3.
A function is WCP if and only if
(GCP) (G for graftings) for all , and , .
Proof.
Since , clearly WCP implies GCP. The proof of the converse is by induction on . It is obviously true for .
Otherwise, let be a mapping and let such that , and let such that . By (GCP), we have , hence .
But hence . Therefore , and by the induction applied to , . ∎
Let us first study unary WCP functions whose restriction to takes its values in .
Proposition 4.4.
Assume . Let be WCP and such that . Then is (1) either a constant function (2) or the identity.
Proof.
If is not the identity there exist , with and . As , we get .
For , implies . It remains to prove that . From , we deduce that , hence , which concludes the proof. ∎
Proposition 4.5.
Assume . If is WCP and such that , then is (1) either a constant function (2) or a projection .
Proof.
The proof is by induction on . By Proposition 4.4 it is true for . If is of arity then, by induction hypothesis, for any , the function of arity is either a constant or a projection . We first show that these functions are all equal to a given , or all equal to a same constant, or every is the constant function .
Let us assume that . Let and with pairwise disjoint, so that for any , and . It follows from the GCP condition that and , which is impossible if is either a constant or a projection with . Hence all are equal to , implying .
Assume now all the are constant. For every , we have . We choose an arbitrary which will be fixed. By the induction hypothesis is either (1) the identity, or (2) a constant . In case (1), for all , and . In case (2), for all , and is a constant. ∎
As CP functions are WCP, for a CP function such that for some , , we have shown that there exists a polynomial , which is either a constant or an , such that . We will now extend to the case when .
Proposition 4.6.
Assume that . Let be WCP. Then there exists a polynomial such that .
Proof.
Let be the common size of all the . The proof is by induction on .
Basis: If then . If then and the result is proved in Proposition 4.5.
Induction: If there exists two functions for such that for all , , with . It remains to show that both and are WCP. Let be such that for some mapping . Extend as an endomorphism by Lemma 2.4, then . Similarly, . As is WCP and , we have . Then by Lemma 2.3 (unique decomposition) we get for . This is true for any , thus and are WCP. By the induction hypothesis there exists such , hence . ∎
Theorem 4.7.
If is CP then there exists a polynomial such that .
Proof.
Since is CP, also is WCP. By the previous proposition, there exists such that , and by Proposition 3.5, . ∎
5 Conclusion
We proved that, when has at least three letters, the algebra of arbitrary binary trees with leaves labeled by letters of is an affine complete algebra (non commutative and non associative).
Acknowledgements.
We thanks the referees for comments which helped to improve the paper.References
- Arnold et al. (2020) Arnold A., Cégielski P., Grigorieff S., Guessarian I.: Affine completeness of the algebra of full binary trees. Algebra Universalis, Springer Verlag, 81, Article 55, https://doi.org/10.1007/s00012-020-00690-681:55 (2020)
- Cégielski et al. (2015) Cégielski, P., Grigorieff S., Guessarian I.: Newton representation of functions over natural integers having integral difference ratios. Int. J. Number Theory, 11, 2109 – 2139 (2015)
- Grätzer (1962) Grätzer G.: On Boolean functions (notes on lattice theory. II). Rev. Math. Pures Appl. (Académie de la République Populaire Roumaine) 7, 693 – 697 (1962)
- Grätzer (1964) Grätzer G.: Boolean functions on distributive lattices. Acta Math. Hungar. 15,193 – 201 (1964)
- Iskander (1972) Iskander A.: Algebraic functions on -rings. Colloq. Math. 25, 37 – 41 (1972)
- Kaarli and Pixley (2001) Kaarli K., Pixley A.F.: Polynomial Completeness in Algebraic Systems. Chapman & Hall/CRC (2001)
- Ploščica and Haviar (2008) Ploščica M., Haviar M.: Congruence-preserving functions on distributive lattices. Algebra Universalis, 59, 179 – 196 (2008)
- Werner (1971) Werner H.: Produkte von KongruenzenKlassengeometrien universeller Algebren. Math. Z. 121, 111 – 140 (1971)