In formal language theory within theoretical computer science, an infinite word is an infinite-length sequence (specifically, an ÃÂ-length sequence) of symbols, and an ÃÂ-language is a set of infinite words. Here, ÃÂ refers to the first infinite ordinal number, modeling a set of natural numbers.
Let ã be a set of symbols (not necessarily finite). Following the standard definition from formal language theory, ã<sup>*</sup> is the set of all finite words over ã. Every finite word has a length, which is a natural number. Given a word w of length n, w can be viewed as a function from the set {0,1,...,n−1} â ã, with the value at i giving the symbol at position i. The infinite words, or ÃÂ-words, can likewise be viewed as functions from to ã. The set of all infinite words over ã is denoted ã<sup>ÃÂ</sup>. The set of all finite and infinite words over ã is sometimes written ã<sup>âÂÂ</sup> or ã<sup>â¤ÃÂ</sup>.
Thus an ÃÂ-language L over ã is a subset of ã<sup>ÃÂ</sup>.
Some common operations defined on ÃÂ-languages are:
The set ã<sup>ÃÂ</sup> can be made into a metric space by definition of the metric as:
where |x| is interpreted as "the length of x" (number of symbols in x), and inf is the infimum over sets of real numbers. If then there is no longest prefix x and so . Symmetry is clear. Transitivity follows from the fact that if w and v have a maximal shared prefix of length m and v and u have a maximal shared prefix of length n then the first characters of w and u must be the same so . Hence d is a metric.
The most widely used subclass of the ÃÂ-languages is the set of ω-regular languages, which enjoy the useful property of being recognizable by Büchi automata. Thus the decision problem of ÃÂ-regular language membership is decidable using a Büchi automaton, and fairly straightforward to compute.
If the language ã is the power set of a set (called the "atomic propositions") then the ÃÂ-language is a linear time property, which are studied in model checking.