1. Introduction
The classical coding theory pays attention to substitution errors
occurring when the messages are communicated through the transmission
channel. In [1], an
abstract channel with combinations of substitutions, deletions and
insertions and its properties are discussed. Moreover, the authors [2] provide the concepts of
singleton-detecting and -detecting codes which can
detect both synchronous and asynchronous errors when the finite-length
messages are communicated through the transmission channel. Some
concepts related to the error detecting property have been studied in
[3],[4]. In this project, we first
study the concept of -detecting codes which are applied
for the infinite-length messages communicated in the transmission
channel. Furthermore we consider some properties of -detecting codes. Next, we
investigate some properties of the codes of the form with for the transmission channel and propose one method to
construct -detecting
code. Some properties of the special channel code named -srp code are studied in the
final section. We also find the maximal -srp code on specific domains
.
2. Preliminaries
Let be a finite alphabet and
let be the free monoid
generated by The set of natural
numbers is denoted by . Any
element of is called a
word. The length of a word is denoted by Any subset of is called a
language. Let where is the empty word. The
concatenation of two words and
over is denoted by . For each positive integer and , the notation . Let . Then . The
set consisting of all infinite sequences of nonempty words of is denoted by . Let , where Note that .
Let . If , then a factorization of
over is an element of the
countably infinite Cartesian product of , denoted by , for which . If , then a factorization of over with order is an ordered -tuple such that , and . A factorization of
over is a factorization of over with some order .
A channel over is a subset of the Cartesian product
. An
element
means that for an input , the
channel could output . A
channel is noiseless if . Otherwise, it is noisy. Denote
by the projection onto the
second coordinate, which is defined by for every . For , this notation can be extended to
. Thus
is the
set of all possible outputs of with respect to the input . Given a subset of , we define to be the -spanned set of .
Three basic error types , and indicate
substitutions, insertions, and deletions, respectively. For a natural
number and a nonnegative integer
with ,
denotes that at most errors of
type can occur in any
consecutive symbols in a channel,
where may be , or their
combinations. Note that (see [5]) for a nonempty word with where , For instance, and . Items not defined in
this project can be found in ([6],[5]).
Definition 1. Let be a channel. A code is detecting for or -detecting, if the following
condition is satisfied : for all , .
From the above definition of the channel detecting code, we have that
if the code is called channel
detecting, then for all with , for channel . For instance, let , . It is
clear that , but where because can be obtained from
after deleting the underlined symbols. Then is not -detecting code.
3. Properties of Channel
Detecting Codes
In this section, the channel with deletion errors is considered. We
consider the case where . The case where is omitted because there does not
exist such a -detecting code.
First, we study the sufficient conditions of -detecting code. For instance, let
, and . Let and . Then for . We have .
This implies that is not -detecting.
Proof. Suppose that
is -detecting. Let for some
. Then . Since , by the definition of
channel detecting code, , a contradiction. Thus is not -detecting. 
Proof. Let be a -detecting code. Suppose that there
exist such that for some with . Since , we
have . This contradicts that is a -detecting code. 
Lemma 1. Let and , where and . Let where and .
Then if and only if .
Proof. Let ,
where and . Let .
Then It follows that . We have , where for .
First, we consider to delete
digits from whenever . Then the total
digits are deleted from .
Secondly, the digits are deleted from . Thus for any word with , the condition implies that . By an analogous proof, the condition , implies that . 
Corollary 1. Let where . Then with
for some and if and only if where
.
We study the relationship between words which have the form with and words which have the form with where
for the channel
where . For instance, let
. Then . It is clear that
.
Lemma 2. Let and , , where and . Let where . If
and , then .
Proof. Let where and . We
consider and . As , by
Lemma 1, we have . Since , by Lemma 1 again, we have
. It follows that .
Thus . We
have . There are the
following cases:
. By corollary 1, we
have and where . It follows that , a contradiction.
and .
As , the proof is
similar to case (1). It follows that , a contradiction. From case (1) and case (2), we have
. 
Lemma 3. Let and , where and . Let where and .
Then the following statements are true:
when .
when .
Proof. Let ,
where and . Let .
Then . It follows that Let .
We consider the following cases:
. Since , we have . It
follows that This in conjunction with yields that
. By Eq. (1), we have . Thus . This in conjunction with
yields that
; hence . By Lemma 1, we want to show
that . It will imply that . We
consider the following subcases:
(1-1). We have
. This in
conjunction with Eq. (2) yields that .
(1-2). We have
. From Eq. (1), we have
. It follows
that whenever . If , then . This
in conjunction with yields that .
Therefore, we showed that . Thus .
. From Eq. (2), we have . This in conjunction
with
yields that . Thus . By Lemma 1, we
want to show that . We consider the following
subcases:
(2-1). We have
. This
implies that . Since , we have . This in conjunction with
yields that . From Eq. (2), we
have .
Hence .
(2-2). Since
, this in
conjunction with Eq. (1) which yields that . Note that . This implies that . Since , we have and . It follows that . If , then . From Eq. (2), . We have . If , then
.
Since , we have .
Therefore, we showed that . Thus .

We extend the concept of the above Lemma 2 and Lemma 3. We
have the following lemma.
Lemma 4. Let and , , where and . Let where and .
If and , then .
Proposition 1. Let , , and where . Let and . If the following conditions
hold:
for with
, ;
for with
, where ,
then is -detecting.
Proof. Assume that there exist such that . Let
and
, where and . Now
we consider the first subword
of such that where . By Lemma 3, the statement (1) implies that for some . It
follows that where . Indeed, if , then we have , a
contradiction. Therefore, implies that for all . Let and . We consider the following
cases:
.
From the definition of the channel with deletion errors, we have
and where . Thus for , we have . Note that if , then . This in conjunction with yields that .
. Let where . From the the statement (1), we
have for some . This
in conjunction with
yields that . Then we have and where . Now we consider with for all . If , then we have
. By the similar proof used in case(1), we
have . If , then we can assume that where such that
, where , and .
There are the following subcases:
(2-1) or or .
Since and where , this in conjunction with yields that . This result contradicts the statement
(2).
(2-2) and .
We have . Since
, this implies that . This result contradicts the statement
(2).
(2-3) and .
We have . Since
, this implies that . This result contradicts the statement
(2).
(2-4) and .
We have . Then .
This implies that .
(2-5) and .
We have . Since
, this implies that . This result also contradicts the statement
(2).
Therefore, we can conclude that for with , we have and
. By similar discussion, we
can conclude the results that , , . Thus implies
that and is -detecting. 
4. A Construction of
Channel Detecting Codes
Let for any
given . In this
section, we provide a method to construct -detecting code which is the subset
of .
Proposition 2. Let and where . Let where for some . Then
implies that is -detecting.
Proof. Suppose that
is not -detecting. There
exist such that . Without loss of generality, we can assume
that and such
that where and are subwords of and respectively. Now we consider . There exist and such that . Since , it follows that for some and . This in conjunction
with the definition of the transmission channel yields that . This implies that , a contradiction. Thus is -detecting. 
In the following we define a function for constructing the -detecting code where . A function is
defined as and
for .
For instance, let . Then . We have and . Note that .
Proposition 3. The code is -detecting where .
Proof. Let ,
, and . We take
and
with where . It follows . By
Lemma 3, we have . By Proposition 3, it
follows that is -detecting. 
5. A Special kind of Channel
Code
In this section, we study a special kind of channel code. Let and let
be a channel of the form
where . We consider the following
properties from [5]. For
a language , let
and A language
is called
strongly residue preventive if .
For instance, let .
Then and .
Since , is not strongly
residue preventive. A language is
an -srp code [5] if is strongly residue preventive. For
instance, let , . We take . Then . It follows that
and . Thus
. We study the
characteristic of -srp
code in the following proposition. For , and
Proposition 4. Let and where . Let . Then is an -srp code if and only if where
.
Proof. Let
and where . Let is an -srp code and . Suppose
that . There exists such that and
for some . Since , we have . It follows that
. Since , we have . Thus , a
contradiction. Conversely, suppose that is not an -srp code. There exists such that . This
implies that , a contradiction. Thus is an -srp code. 
Proposition 5. Let and where . There exist with and such that is an -srp codeword.
Proof. Let
and where . Let be an -srp code and . Suppose
that is an -srp codeword where with and . If , then we
have . This implies that , a contradiction. If , then we have . This
implies that , a contradiction. Thus is an -srp codeword with and . 
Proposition 6. Let and where . The language
is a maximal -srp code
on .
Proof. Let
and where . It is sufficient to show that
is not -srp code for any . If a word , then for some . We consider the following
cases:
. Let and .
We have . This
implies that , a contradiction.
. This case is similar
to case (1). We get where , a
contradiction.
. Let and . We have for some .
This implies that , a contradiction.
. Let and . We have for some .
This implies that , a contradiction.

Acknowledgement
The authors would like to thank the referees for their careful
reading of the manuscript and useful suggestions.
Conflict of
Interest
The authors declare no conflict of interest