twtsevms/twtsevms.tex
author Chengsong
Thu, 16 Apr 2020 09:14:15 +0100
changeset 149 6c5920fd02a7
parent 148 c8ef391dd6f7
permissions -rw-r--r--
before changes to bsimp2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
146
676440e0a233 daily little report
Chengsong
parents:
diff changeset
     1
\documentclass[a4paper,UKenglish]{lipics}
148
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
     2
\usepackage{data}
146
676440e0a233 daily little report
Chengsong
parents:
diff changeset
     3
\usepackage{graphic}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
     4
\usepackage{tikz-cd}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
     5
\usepackage{tikz}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
     6
676440e0a233 daily little report
Chengsong
parents:
diff changeset
     7
%\usetikzlibrary{graphs}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
     8
%\usetikzlibrary{graphdrawing}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
     9
%\usegdlibrary{trees}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    10
%\usepackage{algorithm}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    11
\usepackage{amsmath}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    12
\usepackage{xcolor}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    13
\usepackage[noend]{algpseudocode}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    14
\usepackage{enumitem}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    15
\usepackage{nccmath}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    16
\usepackage{soul}
148
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
    17
%works?
146
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    18
\definecolor{darkblue}{rgb}{0,0,0.6}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    19
\hypersetup{colorlinks=true,allcolors=darkblue}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    20
\newcommand{\comment}[1]%
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    21
{{\color{red}$\Rightarrow$}\marginpar{\raggedright\small{\bf\color{red}#1}}}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    22
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    23
% \documentclass{article}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    24
%\usepackage[utf8]{inputenc}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    25
%\usepackage[english]{babel}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    26
%\usepackage{listings}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    27
% \usepackage{amsthm}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    28
%\usepackage{hyperref}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    29
% \usepackage[margin=0.5in]{geometry}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    30
%\usepackage{pmboxdraw}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    31
 
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    32
\title{POSIX Regular Expression Matching and Lexing}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    33
\author{Chengsong Tan}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    34
\affil{King's College London\\
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    35
London, UK\\
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    36
\texttt{chengsong.tan@kcl.ac.uk}}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    37
\authorrunning{Chengsong Tan}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    38
\Copyright{Chengsong Tan}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    39
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    40
\newcommand{\dn}{\stackrel{\mbox{\scriptsize def}}{=}}%
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    41
\newcommand{\ZERO}{\mbox{\bf 0}}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    42
\newcommand{\ONE}{\mbox{\bf 1}}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    43
\def\erase{\textit{erase}}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    44
\def\bders{\textit{bders}}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    45
\def\lexer{\mathit{lexer}}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    46
\def\blexer{\textit{blexer}}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    47
\def\fuse{\textit{fuse}}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    48
\def\flatten{\textit{flatten}}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    49
\def\map{\textit{map}}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    50
\def\blexers{\mathit{blexer\_simp}}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    51
\def\simp{\mathit{simp}}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    52
\def\mkeps{\mathit{mkeps}}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    53
\def\bmkeps{\textit{bmkeps}}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    54
\def\inj{\mathit{inj}}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    55
\def\Empty{\mathit{Empty}}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    56
\def\Left{\mathit{Left}}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    57
\def\Right{\mathit{Right}}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    58
\def\Stars{\mathit{Stars}}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    59
\def\Char{\mathit{Char}}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    60
\def\Seq{\mathit{Seq}}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    61
\def\Der{\mathit{Der}}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    62
\def\nullable{\mathit{nullable}}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    63
\def\Z{\mathit{Z}}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    64
\def\S{\mathit{S}}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    65
\def\flex{\textit{flex}}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    66
\def\rup{r^\uparrow}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    67
\def\retrieve{\textit{retrieve}}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    68
\def\AALTS{\textit{AALTS}}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    69
\def\AONE{\textit{AONE}}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    70
%\theoremstyle{theorem}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    71
%\newtheorem{theorem}{Theorem}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    72
%\theoremstyle{lemma}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    73
%\newtheorem{lemma}{Lemma}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    74
%\newcommand{\lemmaautorefname}{Lemma}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    75
%\theoremstyle{definition}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    76
%\newtheorem{definition}{Definition}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    77
\algnewcommand\algorithmicswitch{\textbf{switch}}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    78
\algnewcommand\algorithmiccase{\textbf{case}}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    79
\algnewcommand\algorithmicassert{\texttt{assert}}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    80
\algnewcommand\Assert[1]{\State \algorithmicassert(#1)}%
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    81
% New "environments"
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    82
\algdef{SE}[SWITCH]{Switch}{EndSwitch}[1]{\algorithmicswitch\ #1\ \algorithmicdo}{\algorithmicend\ \algorithmicswitch}%
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    83
\algdef{SE}[CASE]{Case}{EndCase}[1]{\algorithmiccase\ #1}{\algorithmicend\ \algorithmiccase}%
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    84
\algtext*{EndSwitch}%
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    85
\algtext*{EndCase}%
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    86
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    87
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    88
\begin{document}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    89
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    90
\maketitle
147
dfcf3fa58d7f nteresting
Chengsong
parents: 146
diff changeset
    91
Suppose (basic) regular expressions are given by the following grammar:
146
676440e0a233 daily little report
Chengsong
parents:
diff changeset
    92
147
dfcf3fa58d7f nteresting
Chengsong
parents: 146
diff changeset
    93
\[			r ::=   \ZERO \mid  \ONE
dfcf3fa58d7f nteresting
Chengsong
parents: 146
diff changeset
    94
			 \mid  c  
dfcf3fa58d7f nteresting
Chengsong
parents: 146
diff changeset
    95
			 \mid  r_1 \cdot r_2
dfcf3fa58d7f nteresting
Chengsong
parents: 146
diff changeset
    96
			 \mid  r_1 + r_2   
dfcf3fa58d7f nteresting
Chengsong
parents: 146
diff changeset
    97
			 \mid r^*         
dfcf3fa58d7f nteresting
Chengsong
parents: 146
diff changeset
    98
\]
dfcf3fa58d7f nteresting
Chengsong
parents: 146
diff changeset
    99
dfcf3fa58d7f nteresting
Chengsong
parents: 146
diff changeset
   100
dfcf3fa58d7f nteresting
Chengsong
parents: 146
diff changeset
   101
If we let the alphabet
dfcf3fa58d7f nteresting
Chengsong
parents: 146
diff changeset
   102
where $c$ is selected from
dfcf3fa58d7f nteresting
Chengsong
parents: 146
diff changeset
   103
be $\sum = \{0,1\}$,
148
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   104
then we can define the regular expression 
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   105
style bitcodes:
147
dfcf3fa58d7f nteresting
Chengsong
parents: 146
diff changeset
   106
dfcf3fa58d7f nteresting
Chengsong
parents: 146
diff changeset
   107
148
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   108
\[			 rbs ::=   \ZERO \mid  \ONE
147
dfcf3fa58d7f nteresting
Chengsong
parents: 146
diff changeset
   109
			 \mid  1
dfcf3fa58d7f nteresting
Chengsong
parents: 146
diff changeset
   110
			 \mid  0  
148
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   111
			 \mid  rbs_1 \cdot rbs_2
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   112
			 \mid  \sum{rbs_{list}}
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   113
			 \mid rbs^*         
147
dfcf3fa58d7f nteresting
Chengsong
parents: 146
diff changeset
   114
\]
dfcf3fa58d7f nteresting
Chengsong
parents: 146
diff changeset
   115
148
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   116
This is our list definition of bitcodes:
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   117
\begin{center}
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   118
$b ::=   1 \mid  0 \qquad
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   119
bs ::= [] \mid b::bs    $
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   120
\end{center}
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   121
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   122
Define an isomorphism between bitcodes based on lists
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   123
and bitcodes based on regular expressions:
146
676440e0a233 daily little report
Chengsong
parents:
diff changeset
   124
\begin{center}
148
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   125
\begin{tabular}{lcl}
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   126
$\sigma: bit \; list$ & $\Rightarrow$ & $bit \; regex$\\
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   127
$\delta: bit$ & $\Rightarrow$ & $bit \; regex$\\
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   128
$\sigma([])$ & $=$ & $ \ONE$\\
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   129
$\sigma(b::bs)$ & $=$ & $\delta(b) \cdot \sigma(bs)$\\
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   130
$\delta(b) $ & $=$ & $b\; as \;a \;regex$
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   131
\end{tabular}
147
dfcf3fa58d7f nteresting
Chengsong
parents: 146
diff changeset
   132
\end{center}
dfcf3fa58d7f nteresting
Chengsong
parents: 146
diff changeset
   133
dfcf3fa58d7f nteresting
Chengsong
parents: 146
diff changeset
   134
\emph{Annotated regular expressions} can be defined by the following
148
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   135
grammar using the  list definition of $bs$ :
147
dfcf3fa58d7f nteresting
Chengsong
parents: 146
diff changeset
   136
dfcf3fa58d7f nteresting
Chengsong
parents: 146
diff changeset
   137
\begin{center}
dfcf3fa58d7f nteresting
Chengsong
parents: 146
diff changeset
   138
\begin{tabular}{lcl}
dfcf3fa58d7f nteresting
Chengsong
parents: 146
diff changeset
   139
  $\textit{a}$ & $::=$  & $\ZERO$\\
dfcf3fa58d7f nteresting
Chengsong
parents: 146
diff changeset
   140
                  & $\mid$ & $_{bs}\ONE$\\
dfcf3fa58d7f nteresting
Chengsong
parents: 146
diff changeset
   141
                  & $\mid$ & $_{bs}{\bf c}$\\
dfcf3fa58d7f nteresting
Chengsong
parents: 146
diff changeset
   142
                  & $\mid$ & $_{bs}\sum\,as$\\
dfcf3fa58d7f nteresting
Chengsong
parents: 146
diff changeset
   143
                  & $\mid$ & $_{bs}a_1\cdot a_2$\\
dfcf3fa58d7f nteresting
Chengsong
parents: 146
diff changeset
   144
                  & $\mid$ & $_{bs}a^*$
dfcf3fa58d7f nteresting
Chengsong
parents: 146
diff changeset
   145
\end{tabular}    
dfcf3fa58d7f nteresting
Chengsong
parents: 146
diff changeset
   146
\end{center}  
148
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   147
%Let the set of all bitcoded regular expressions be $\textit{BS}$.
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   148
%Let the set of all annotated regular expression be $\textit{AR}$.
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   149
Let us play with the function $f: \textit{annotated}\; \textit{regex} \Rightarrow \textit{bit}\; \textit{regex}$ on annotated regular expressions:
147
dfcf3fa58d7f nteresting
Chengsong
parents: 146
diff changeset
   150
\begin{center}
148
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   151
\begin{tabular}{lcl}
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   152
$f(\ZERO)$ & $=$ & $\ZERO$\\
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   153
$f(_{bs}\ONE)$ & $=$ & $\sigma(\textit{bs})$\\
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   154
$f(_{bs}a)$ & $=$ & $\sigma(\textit{bs}) $\\
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   155
$f(_{bs}r_1\cdot r_2)$ & $=$ & $\sigma(\textit{bs}) \cdot( f(r_1) \cdot f(r_2))$\\
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   156
$f(_{bs}\sum{rs})$ & $=$ & $\sigma(\textit{bs}) \cdot \sum\limits_{r \in rs}{f(\textit{r})}$\\
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   157
$f(_{bs}r^*)$ & $=$ & $\sigma(\textit{bs}) \cdot((0 \cdot f(r))^*\cdot 1) $
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   158
\end{tabular}
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   159
\end{center}
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   160
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   161
Now define function $L: bit\;regex \Rightarrow set \; bs$ as follows:
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   162
\begin{center}
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   163
\begin{tabular}{lcl}
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   164
$L(\ZERO)$ & $=$ & $\emptyset$\\
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   165
$L(\ONE) $ & $= $ & $\{[]\}$\\
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   166
$L(b\;as \; a\;regex) $ & $=$ & $\{b\; as \; a \; bit\}$\\
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   167
$L(bs_1 \cdot bs_2)$ & $=$ & $L(bs_1) \times L(bs_2)$\\
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   168
$L(\sum bss) $ & $=$ &$\bigcup\limits_{bs \in bss}{L(bs)}$\\
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   169
$L(bs^*)$ & $= $ & $\bigcup\limits_{0 \leq n}{(L(bs))^n}$
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   170
\end{tabular}
146
676440e0a233 daily little report
Chengsong
parents:
diff changeset
   171
\end{center}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
   172
147
dfcf3fa58d7f nteresting
Chengsong
parents: 146
diff changeset
   173
We claim that:
dfcf3fa58d7f nteresting
Chengsong
parents: 146
diff changeset
   174
\begin{center}
148
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   175
$L(f(a) )= \{bs \mid a \gg bs\}$.
147
dfcf3fa58d7f nteresting
Chengsong
parents: 146
diff changeset
   176
\end{center}
146
676440e0a233 daily little report
Chengsong
parents:
diff changeset
   177
148
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   178
where contains is defined this way:
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   179
\begin{center}
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   180
\begin{tabular}{llclll}
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   181
& & & $_{bs}\ONE$ & $\gg$ & $\textit{bs}$\\
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   182
& & & $_{bs}{\bf c}$ & $\gg$ & $\textit{bs}$\\
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   183
$\textit{if} \; r_1 \gg \textit{bs}_1$ & $r_2 \; \gg \textit{bs}_2$
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   184
& $\textit{then}$  &
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   185
 $_{bs}{r_1 \cdot r_2}$ &
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   186
 $\gg$ &
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   187
 $\textit{bs} @ \textit{bs}_1 @ \textit{bs}_2$\\
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   188
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   189
 $\textit{if} \; r \gg \textit{bs}_1$ &  & $\textit{then}$  &
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   190
 $_{bs}{\sum(r :: \textit{rs}})$ &
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   191
 $\gg$ &
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   192
 $\textit{bs} @ \textit{bs}_1 $\\
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   193
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   194
 $\textit{if} \; _{bs}(\sum \textit{rs}) \gg \textit{bs} @ \textit{bs}_1$ &  & $\textit{then}$  &
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   195
 $_{bs}{\sum(r :: \textit{rs}})$ &
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   196
 $\gg$ &
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   197
 $\textit{bs} @ \textit{bs}_1 $\\
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   198
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   199
 $\textit{if} \; r \gg \textit{bs}_1\; \textit{and}$ &  $_{bs}r^* \gg \textit{bs} @ \textit{bs}_2$ & $\textit{then}$  &
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   200
 $_{bs}r^* $ &
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   201
 $\gg$ &
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   202
 $\textit{bs} @ [0] @ \textit{bs}_1@ \textit{bs}_2 $\\
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   203
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   204
 & & & $_{bs}r^*$ & $\gg$ & $\textit{bs} @ [1]$\\
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   205
\end{tabular}
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   206
\end{center}
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   207
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   208
Moreover, we claim the fact that
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   209
\begin{center}
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   210
	$L(f(a^*)) != L(f(a^* \backslash a))$
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   211
\end{center}
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   212
This is by $\exists bs \in f(a^*), s.t. bs \notin f(a^* \backslash a)$.
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   213
Proof for the fact
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   214
$L(f(a) )= \{bs \mid a \gg bs\}$:
c8ef391dd6f7 vunsimp
Chengsong
parents: 147
diff changeset
   215
146
676440e0a233 daily little report
Chengsong
parents:
diff changeset
   216
\bibliographystyle{plain}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
   217
\bibliography{root}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
   218
676440e0a233 daily little report
Chengsong
parents:
diff changeset
   219
676440e0a233 daily little report
Chengsong
parents:
diff changeset
   220
\end{document}
676440e0a233 daily little report
Chengsong
parents:
diff changeset
   221