56 2. Mutual Invertibility and Search
Corollary 2.2.2. If M is a weak inverse with delay τ and the input alphabet
and the output alphabet of M have the same size, then there exists a finite
subautomaton of M which is weakly invertible with delay τ and has the same
input alphabet and the same output alphabet with M.
Lemma 2.2.2. Let M
= Y,X,S
,δ
,λ
be a weak inverse with delay τ of
M = X, Y, S, δ,λ and |X| = |Y |.IfM
is strongly connected, then M is a
weak inverse with delay τ of M
.
Proof. From Theorem 2.2.1 and its proof, it is enough to prove S
= S
.
Take s ∈ S with |W
M
τ+1,s
| = w
τ+1,M
.SinceM
is a weak inverse with
delay τ of M, we can find s
∈ S
such that s
τ-matches s. Take arbitrary
α
0
∈ X
∗
of length τ .Letβ
0
= λ(s, α
0
)ands
1
= δ
(s
,β
0
). For any s
2
∈ S
,
since M
is strongly connected, there exists β
1
∈ Y
∗
such that s
2
= δ
(s
1
,β
1
).
It follows that s
2
= δ
(s
,β
0
β
1
). Since β
0
∈ W
M
τ,s
,wehaveβ
0
β
1
∈ W
M
τ,s
Y
∗
.
From (2.7), it follows that s
2
∈ S
s
. From the arbitrariness of s
2
,weobtain
S
⊆ S
s
. This deduces S
⊆ S
. On the other hand, it is evident that S
⊆ S
.
Therefore, S
= S
.
Theorem 2.2.2. Let M
= Y,X,S
,δ
,λ
be strongly connected and |X| =
|Y |.ThenM
is weakly invertible with delay τ if and only if M
is a weak
inverse with delay τ.
Proof. only if : This is immediate from Corollary 2.2.1.
if : Suppose that M
is a weak inverse with delay τ. Then there exists
M = X, Y, S, δ, λ such that M
is a weak inverse with delay τ of M.Using
Lemma 2.2.2, M is a weak inverse with delay τ of M
. Therefore, M
is weakly
invertible with delay τ .
2.3 Find Input by Search
2.3.1 On Output Set and Input Tree
For a weakly invertible finite automaton M with delay τ, an approach to
finding x
0
...x
l−τ
from s and λ(s, x
0
...x
l
) is guessing a value x
0
...x
l
and comparing λ(s, x
0
...x
l
)withλ(s, x
0
...x
l
). As soon as λ(s, x
0
...x
l
)=
λ(s, x
0
...x
l
), we obtain x
0
...x
l−τ
= x
0
...x
l−τ
. This is so-called “search”.
To evaluate the complexity of exhausting search or the successful probability
of stochastic search, we need to know input-trees or input sets of M.
In this section, we suppose |X| = |Y | = |Z| = q, |F | = p and q = p
m
.Let
M = X, Y, S, δ, λ be a finite automaton.
In this section, we also use F
n
to denote the set of all column vectors of
dimension n over F for any set F and any nonnegative integer n. In the case