Proof of Basic Properties of Words: Associativity, Reversal, Finitely Many Factorisations, and Countability
lemmalem:words-finite-alphabet-basic-2026aEach property of words is checked by case analysis on empty words and componentwise index arithmetic, with finiteness of factorisation sets from a length bound and countability from unions of tuple powers.
We use the definitions Words over a Finite Alphabet: the Empty Word, Concatenation and Reversal (clauses Words over a Finite Alphabet: the Empty Word, Concatenation and Reversal §words, Words over a Finite Alphabet: the Empty Word, Concatenation and Reversal §concatenation, Words over a Finite Alphabet: the Empty Word, Concatenation and Reversal §reversal), Natural Numbers, Order on the Natural Numbers, Tuples in a Set, Finite Set, Bijection of Sets and Family and Subfamily of Subsets of a Set, and the results Arithmetic of Addition on the Natural Numbers, Properties of the Order on the Natural Numbers, Basic Properties of Initial Segments of the Natural Numbers, Inverse of a Bijection, Characteristic Property of the Ordered Pair, Basic Properties of Finite Sets, Peeling an Element off a Finite Set, and Unions of Finite Sets, Finiteness of Cartesian Products, Tuple Sets, and Permutation Sets, Sums over Finite Index Sets: Finite Unions, Disjoint Unions, Vanishing Terms, Dependent Pairs, Conjugation and the Modulus, Basic Properties of Countable Sets, Products and Powers of Countable Sets and A Countable Union of Countable Sets is Countable.
Throughout, a word of length is a map (Words over a Finite Alphabet: the Empty Word, Concatenation and Reversal §words and Tuples in a Set), so two words of the same length are equal exactly when their components , , agree; and by Words over a Finite Alphabet: the Empty Word, Concatenation and Reversal §words the empty word has no length, while every other word has exactly one length. We use freely that addition on is associative and commutative (claims 3 and 4 of Arithmetic of Addition on the Natural Numbers).
Claim 1 (monoid). Step 1. The identities and are the first two cases of Words over a Finite Alphabet: the Empty Word, Concatenation and Reversal §concatenation. If , have lengths , , then has length by the same clause.
Step 2. If , then has a length ; if then , and if has length then has the length , so . The case is symmetric. Hence only if .
Step 3 (associativity). If , both sides equal ; if , both equal ; if , both equal (Step 1). Now let have lengths . By Step 1, has length and has length , the same number. By claim 5 of Basic Properties of Initial Segments of the Natural Numbers (twice), every is of exactly one of the forms (a) , (b) with , (c) with , and , , . We compare components using Words over a Finite Alphabet: the Empty Word, Concatenation and Reversal §concatenation. (a) . (b) , and . (c) . Here , and because implies (claim 6 of Properties of the Order on the Natural Numbers); so . Hence .
Claim 2 (last letter). Let have length . By claim 5 of Properties of the Order on the Natural Numbers, , hence , and by claim 4 of Basic Properties of Initial Segments of the Natural Numbers. So the restriction of to is a map , a word of length . Let and let be the letter, the word of length with . By Claim 1, has length (identity 1 of Natural Numbers). By claim 3 of Basic Properties of Initial Segments of the Natural Numbers, . For , ; and . Hence . Finally, if has length , then (claim 2 of Basic Properties of Initial Segments of the Natural Numbers) and with , since both are maps with the same value at .
Claim 3 (reversal). For and let be the unique with (Words over a Finite Alphabet: the Empty Word, Concatenation and Reversal §reversal), so for of length .
Step 1 ( is an involution). If , then with , so by the uniqueness in Words over a Finite Alphabet: the Empty Word, Concatenation and Reversal §reversal. Thus .
Step 2 (double reversal). . If has length , then and have length , and by Step 1.
Step 3 (letters). For , and , so and ; thus .
Step 4 (reversal of a product). If , then by Claim 1 and ; the case is symmetric. Let have lengths . Then has length and has length (Claim 1). By claim 5 of Basic Properties of Initial Segments of the Natural Numbers, each satisfies either (a) or (b) with ; also . (a) Let , so and . Now , and as gives (claim 6 of Properties of the Order on the Natural Numbers); so and . (b) Let , so and . Now and , so and . Hence .
Step 5. By Step 2 the map is its own two-sided inverse, so it is a bijection of onto by claim 3 of Inverse of a Bijection; it preserves length by Words over a Finite Alphabet: the Empty Word, Concatenation and Reversal §reversal.
Claim 4 (factorisations). Step 1. , and if then by Claim 1; so , which is nonempty and finite (claim 2 of Basic Properties of Finite Sets).
Step 2. Let have length . Then by Claim 1, so . Let with , of length . If then , so by uniqueness of length. If has length , then has length (Claim 1), so and by claim 6 of Properties of the Order on the Natural Numbers. In both cases , i.e. . Symmetrically, if has length , then (if ) or and ; so .
Step 3. Let and . The set is nonempty and finite (claim 1 of Basic Properties of Initial Segments of the Natural Numbers, claim 1 of Basic Properties of Finite Sets), so each is finite by claim 3 of Finiteness of Cartesian Products, Tuple Sets, and Permutation Sets; is nonempty and finite likewise; so is finite by Sums over Finite Index Sets: Finite Unions, Disjoint Unions, Vanishing Terms, Dependent Pairs, Conjugation and the Modulus §finite-union, is finite by claim 1 of Peeling an Element off a Finite Set, and Unions of Finite Sets, and is finite by claim 1 of Finiteness of Cartesian Products, Tuple Sets, and Permutation Sets. By Step 2, , so is finite by claim 3 of Basic Properties of Finite Sets.
Claim 5 (products). Let . If or , then , which is finite. Otherwise is finite by claim 1 of Finiteness of Cartesian Products, Tuple Sets, and Permutation Sets and nonempty, so it has elements for some (Finite Set). The map , , is well defined by Characteristic Property of the Ordered Pair and surjective by the definition of ; so is finite by claim 4 of Basic Properties of Finite Sets.
Claim 6 (countability). The set is finite (as in Claim 4, Step 3), hence countable by claim 2 of Basic Properties of Countable Sets. For let ; it is countable by claim 2 (powers) of Products and Powers of Countable Sets. So is a family of countable subsets of (Family and Subfamily of Subsets of a Set), and is countable by A Countable Union of Countable Sets is Countable. By Words over a Finite Alphabet: the Empty Word, Concatenation and Reversal §words, , which is countable by claim 6 (adjoining a point) of Basic Properties of Countable Sets, applied with and .
Loading…
Prerequisites
b4abbf99-191f-42d3-9e55-f14e4e91db87