thys2/Journal/Paper.tex
author Chengsong
Mon, 01 Nov 2021 10:40:21 +0000
changeset 369 e00950ba4514
child 371 f65444d29e74
permissions -rw-r--r--
added all files in Journal folder
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
369
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
     1
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
     2
\begin{isabellebody}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
     3
\setisabellecontext{Paper}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
     4
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
     5
\isadelimtheory
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
     6
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
     7
\endisadelimtheory
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
     8
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
     9
\isatagtheory
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    10
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    11
\endisatagtheory
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    12
{\isafoldtheory}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    13
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    14
\isadelimtheory
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    15
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    16
\endisadelimtheory
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    17
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    18
\isadelimproof
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    19
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    20
\endisadelimproof
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    21
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    22
\isatagproof
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    23
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    24
\endisatagproof
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    25
{\isafoldproof}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    26
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    27
\isadelimproof
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    28
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    29
\endisadelimproof
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    30
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    31
\isadelimproof
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    32
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    33
\endisadelimproof
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    34
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    35
\isatagproof
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    36
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    37
\endisatagproof
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    38
{\isafoldproof}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    39
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    40
\isadelimproof
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    41
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    42
\endisadelimproof
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    43
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    44
\isadelimdocument
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    45
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    46
\endisadelimdocument
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    47
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    48
\isatagdocument
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    49
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    50
\isamarkupsection{Introduction%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    51
}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    52
\isamarkuptrue%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    53
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    54
\endisatagdocument
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    55
{\isafolddocument}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    56
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    57
\isadelimdocument
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    58
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    59
\endisadelimdocument
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    60
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    61
\begin{isamarkuptext}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    62
This works builds on previous work by Ausaf and Urban using 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    63
regular expression'd bit-coded derivatives to do lexing that 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    64
is both fast and satisfied the POSIX specification.
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    65
In their work, a bit-coded algorithm introduced by Sulzmann and Lu
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    66
was formally verified in Isabelle, by a very clever use of
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    67
flex function and retrieve to carefully mimic the way a value is 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    68
built up by the injection funciton.
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    69
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    70
In the previous work, Ausaf and Urban established the below equality:
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    71
\begin{lemma}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    72
\isa{{\normalsize{}If\,}\ v\ {\isacharcolon}{\kern0pt}\ {\isacharparenleft}{\kern0pt}r\mbox{$^\downarrow$}{\isacharparenright}{\kern0pt}{\isacharbackslash}{\kern0pt}c\ {\normalsize \,then\,}\ retrieve\ {\isacharparenleft}{\kern0pt}r\mbox{$\bbslash$}c{\isacharparenright}{\kern0pt}\ v\ {\isacharequal}{\kern0pt}\ retrieve\ r\ {\isacharparenleft}{\kern0pt}inj\ {\isacharparenleft}{\kern0pt}r\mbox{$^\downarrow$}{\isacharparenright}{\kern0pt}\ c\ v{\isacharparenright}{\kern0pt}{\isachardot}{\kern0pt}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    73
\end{lemma}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    74
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    75
This lemma links the derivative of a bit-coded regular expression with
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    76
the regular expression itself before the derivative. 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    77
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    78
Brzozowski \cite{Brzozowski1964} introduced the notion of the {\em
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    79
derivative} \isa{r{\isacharbackslash}{\kern0pt}c} of a regular expression \isa{r} w.r.t.\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    80
a character~\isa{c}, and showed that it gave a simple solution to the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    81
problem of matching a string \isa{s} with a regular expression \isa{r}: if the derivative of \isa{r} w.r.t.\ (in succession) all the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    82
characters of the string matches the empty string, then \isa{r}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    83
matches \isa{s} (and {\em vice versa}). The derivative has the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    84
property (which may almost be regarded as its specification) that, for
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    85
every string \isa{s} and regular expression \isa{r} and character
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    86
\isa{c}, one has \isa{cs\ {\isasymin}\ L{\isacharparenleft}{\kern0pt}r{\isacharparenright}{\kern0pt}} if and only if \mbox{\isa{s\ {\isasymin}\ L{\isacharparenleft}{\kern0pt}r{\isacharbackslash}{\kern0pt}c{\isacharparenright}{\kern0pt}}}. 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    87
The beauty of Brzozowski's derivatives is that
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    88
they are neatly expressible in any functional language, and easily
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    89
definable and reasoned about in theorem provers---the definitions just
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    90
consist of inductive datatypes and simple recursive functions. A
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    91
mechanised correctness proof of Brzozowski's matcher in for example HOL4
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    92
has been mentioned by Owens and Slind~\cite{Owens2008}. Another one in
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    93
Isabelle/HOL is part of the work by Krauss and Nipkow \cite{Krauss2011}.
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    94
And another one in Coq is given by Coquand and Siles \cite{Coquand2012}.
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    95
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    96
If a regular expression matches a string, then in general there is more
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    97
than one way of how the string is matched. There are two commonly used
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    98
disambiguation strategies to generate a unique answer: one is called
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
    99
GREEDY matching \cite{Frisch2004} and the other is POSIX
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   100
matching~\cite{POSIX,Kuklewicz,OkuiSuzuki2010,Sulzmann2014,Vansummeren2006}.
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   101
For example consider the string \isa{xy} and the regular expression
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   102
\mbox{\isa{{\isacharparenleft}{\kern0pt}x\ {\isacharplus}{\kern0pt}\ y\ {\isacharplus}{\kern0pt}\ xy{\isacharparenright}{\kern0pt}\isactrlsup {\isasymstar}}}. Either the string can be
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   103
matched in two `iterations' by the single letter-regular expressions
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   104
\isa{x} and \isa{y}, or directly in one iteration by \isa{xy}. The
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   105
first case corresponds to GREEDY matching, which first matches with the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   106
left-most symbol and only matches the next symbol in case of a mismatch
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   107
(this is greedy in the sense of preferring instant gratification to
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   108
delayed repletion). The second case is POSIX matching, which prefers the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   109
longest match.
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   110
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   111
In the context of lexing, where an input string needs to be split up
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   112
into a sequence of tokens, POSIX is the more natural disambiguation
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   113
strategy for what programmers consider basic syntactic building blocks
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   114
in their programs.  These building blocks are often specified by some
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   115
regular expressions, say \isa{r\isactrlbsub key\isactrlesub } and \isa{r\isactrlbsub id\isactrlesub } for recognising keywords and identifiers,
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   116
respectively. There are a few underlying (informal) rules behind
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   117
tokenising a string in a POSIX \cite{POSIX} fashion:
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   118
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   119
\begin{itemize} 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   120
\item[$\bullet$] \emph{The Longest Match Rule} (or \emph{``{M}aximal {M}unch {R}ule''}):
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   121
The longest initial substring matched by any regular expression is taken as
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   122
next token.\smallskip
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   123
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   124
\item[$\bullet$] \emph{Priority Rule:}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   125
For a particular longest initial substring, the first (leftmost) regular expression
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   126
that can match determines the token.\smallskip
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   127
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   128
\item[$\bullet$] \emph{Star Rule:} A subexpression repeated by ${}^\star$ shall 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   129
not match an empty string unless this is the only match for the repetition.\smallskip
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   130
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   131
\item[$\bullet$] \emph{Empty String Rule:} An empty string shall be considered to 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   132
be longer than no match at all.
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   133
\end{itemize}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   134
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   135
\noindent Consider for example a regular expression \isa{r\isactrlbsub key\isactrlesub } for recognising keywords such as \isa{if},
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   136
\isa{then} and so on; and \isa{r\isactrlbsub id\isactrlesub }
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   137
recognising identifiers (say, a single character followed by
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   138
characters or numbers).  Then we can form the regular expression
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   139
\isa{{\isacharparenleft}{\kern0pt}r\isactrlbsub key\isactrlesub \ {\isacharplus}{\kern0pt}\ r\isactrlbsub id\isactrlesub {\isacharparenright}{\kern0pt}\isactrlsup {\isasymstar}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   140
and use POSIX matching to tokenise strings, say \isa{iffoo} and
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   141
\isa{if}.  For \isa{iffoo} we obtain by the Longest Match Rule
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   142
a single identifier token, not a keyword followed by an
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   143
identifier. For \isa{if} we obtain by the Priority Rule a keyword
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   144
token, not an identifier token---even if \isa{r\isactrlbsub id\isactrlesub }
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   145
matches also. By the Star Rule we know \isa{{\isacharparenleft}{\kern0pt}r\isactrlbsub key\isactrlesub \ {\isacharplus}{\kern0pt}\ r\isactrlbsub id\isactrlesub {\isacharparenright}{\kern0pt}\isactrlsup {\isasymstar}} matches \isa{iffoo},
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   146
respectively \isa{if}, in exactly one `iteration' of the star. The
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   147
Empty String Rule is for cases where, for example, the regular expression 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   148
\isa{{\isacharparenleft}{\kern0pt}a\isactrlsup {\isasymstar}{\isacharparenright}{\kern0pt}\isactrlsup {\isasymstar}} matches against the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   149
string \isa{bc}. Then the longest initial matched substring is the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   150
empty string, which is matched by both the whole regular expression
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   151
and the parenthesised subexpression.
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   152
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   153
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   154
One limitation of Brzozowski's matcher is that it only generates a
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   155
YES/NO answer for whether a string is being matched by a regular
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   156
expression.  Sulzmann and Lu~\cite{Sulzmann2014} extended this matcher
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   157
to allow generation not just of a YES/NO answer but of an actual
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   158
matching, called a [lexical] {\em value}. Assuming a regular
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   159
expression matches a string, values encode the information of
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   160
\emph{how} the string is matched by the regular expression---that is,
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   161
which part of the string is matched by which part of the regular
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   162
expression. For this consider again the string \isa{xy} and
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   163
the regular expression \mbox{\isa{{\isacharparenleft}{\kern0pt}x\ {\isacharplus}{\kern0pt}\ {\isacharparenleft}{\kern0pt}y\ {\isacharplus}{\kern0pt}\ xy{\isacharparenright}{\kern0pt}{\isacharparenright}{\kern0pt}\isactrlsup {\isasymstar}}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   164
(this time fully parenthesised). We can view this regular expression
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   165
as tree and if the string \isa{xy} is matched by two Star
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   166
`iterations', then the \isa{x} is matched by the left-most
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   167
alternative in this tree and the \isa{y} by the right-left alternative. This
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   168
suggests to record this matching as
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   169
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   170
\begin{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   171
\isa{Stars\ {\isacharbrackleft}{\kern0pt}Left\ {\isacharparenleft}{\kern0pt}Char\ x{\isacharparenright}{\kern0pt}{\isacharcomma}{\kern0pt}\ Right\ {\isacharparenleft}{\kern0pt}Left\ {\isacharparenleft}{\kern0pt}Char\ y{\isacharparenright}{\kern0pt}{\isacharparenright}{\kern0pt}{\isacharbrackright}{\kern0pt}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   172
\end{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   173
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   174
\noindent where \isa{Stars}, \isa{Left}, \isa{Right} and \isa{Char} are constructors for values. \isa{Stars} records how many
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   175
iterations were used; \isa{Left}, respectively \isa{Right}, which
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   176
alternative is used. This `tree view' leads naturally to the idea that
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   177
regular expressions act as types and values as inhabiting those types
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   178
(see, for example, \cite{HosoyaVouillonPierce2005}).  The value for
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   179
matching \isa{xy} in a single `iteration', i.e.~the POSIX value,
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   180
would look as follows
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   181
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   182
\begin{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   183
\isa{Stars\ {\isacharbrackleft}{\kern0pt}Seq\ {\isacharparenleft}{\kern0pt}Char\ x{\isacharparenright}{\kern0pt}\ {\isacharparenleft}{\kern0pt}Char\ y{\isacharparenright}{\kern0pt}{\isacharbrackright}{\kern0pt}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   184
\end{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   185
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   186
\noindent where \isa{Stars} has only a single-element list for the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   187
single iteration and \isa{Seq} indicates that \isa{xy} is matched 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   188
by a sequence regular expression.
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   189
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   190
%, which we will in what follows 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   191
%write more formally as \isa{x\ {\isasymcdot}\ y}.
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   192
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   193
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   194
Sulzmann and Lu give a simple algorithm to calculate a value that
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   195
appears to be the value associated with POSIX matching.  The challenge
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   196
then is to specify that value, in an algorithm-independent fashion,
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   197
and to show that Sulzmann and Lu's derivative-based algorithm does
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   198
indeed calculate a value that is correct according to the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   199
specification.  The answer given by Sulzmann and Lu
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   200
\cite{Sulzmann2014} is to define a relation (called an ``order
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   201
relation'') on the set of values of \isa{r}, and to show that (once
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   202
a string to be matched is chosen) there is a maximum element and that
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   203
it is computed by their derivative-based algorithm. This proof idea is
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   204
inspired by work of Frisch and Cardelli \cite{Frisch2004} on a GREEDY
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   205
regular expression matching algorithm. However, we were not able to
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   206
establish transitivity and totality for the ``order relation'' by
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   207
Sulzmann and Lu.  There are some inherent problems with their approach
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   208
(of which some of the proofs are not published in
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   209
\cite{Sulzmann2014}); perhaps more importantly, we give in this paper
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   210
a simple inductive (and algorithm-independent) definition of what we
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   211
call being a {\em POSIX value} for a regular expression \isa{r} and
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   212
a string \isa{s}; we show that the algorithm by Sulzmann and Lu
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   213
computes such a value and that such a value is unique. Our proofs are
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   214
both done by hand and checked in Isabelle/HOL.  The experience of
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   215
doing our proofs has been that this mechanical checking was absolutely
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   216
essential: this subject area has hidden snares. This was also noted by
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   217
Kuklewicz \cite{Kuklewicz} who found that nearly all POSIX matching
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   218
implementations are ``buggy'' \cite[Page 203]{Sulzmann2014} and by
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   219
Grathwohl et al \cite[Page 36]{CrashCourse2014} who wrote:
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   220
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   221
\begin{quote}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   222
\it{}``The POSIX strategy is more complicated than the greedy because of 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   223
the dependence on information about the length of matched strings in the 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   224
various subexpressions.''
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   225
\end{quote}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   226
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   227
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   228
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   229
\noindent {\bf Contributions:} We have implemented in Isabelle/HOL the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   230
derivative-based regular expression matching algorithm of
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   231
Sulzmann and Lu \cite{Sulzmann2014}. We have proved the correctness of this
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   232
algorithm according to our specification of what a POSIX value is (inspired
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   233
by work of Vansummeren \cite{Vansummeren2006}). Sulzmann
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   234
and Lu sketch in \cite{Sulzmann2014} an informal correctness proof: but to
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   235
us it contains unfillable gaps.\footnote{An extended version of
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   236
\cite{Sulzmann2014} is available at the website of its first author; this
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   237
extended version already includes remarks in the appendix that their
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   238
informal proof contains gaps, and possible fixes are not fully worked out.}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   239
Our specification of a POSIX value consists of a simple inductive definition
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   240
that given a string and a regular expression uniquely determines this value.
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   241
We also show that our definition is equivalent to an ordering 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   242
of values based on positions by Okui and Suzuki \cite{OkuiSuzuki2010}.
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   243
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   244
%Derivatives as calculated by Brzozowski's method are usually more complex
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   245
%regular expressions than the initial one; various optimisations are
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   246
%possible. We prove the correctness when simplifications of \isa{\isactrlbold {\isadigit{0}}\ {\isacharplus}{\kern0pt}\ r}, 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   247
%\isa{r\ {\isacharplus}{\kern0pt}\ \isactrlbold {\isadigit{0}}}, \isa{\isactrlbold {\isadigit{1}}\ {\isasymcdot}\ r} and \isa{r\ {\isasymcdot}\ \isactrlbold {\isadigit{1}}} to
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   248
%\isa{r} are applied. 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   249
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   250
We extend our results to ??? Bitcoded version??%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   251
\end{isamarkuptext}\isamarkuptrue%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   252
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   253
\isadelimdocument
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   254
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   255
\endisadelimdocument
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   256
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   257
\isatagdocument
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   258
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   259
\isamarkupsection{Preliminaries%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   260
}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   261
\isamarkuptrue%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   262
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   263
\endisatagdocument
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   264
{\isafolddocument}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   265
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   266
\isadelimdocument
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   267
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   268
\endisadelimdocument
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   269
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   270
\begin{isamarkuptext}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   271
\noindent Strings in Isabelle/HOL are lists of characters with
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   272
the empty string being represented by the empty list, written \isa{{\isacharbrackleft}{\kern0pt}{\isacharbrackright}{\kern0pt}}, and list-cons being written as \isa{\underline{\hspace{2mm}}\mbox{$\,$}{\isacharcolon}{\kern0pt}{\isacharcolon}{\kern0pt}\mbox{$\,$}\underline{\hspace{2mm}}}. Often
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   273
we use the usual bracket notation for lists also for strings; for
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   274
example a string consisting of just a single character \isa{c} is
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   275
written \isa{{\isacharbrackleft}{\kern0pt}c{\isacharbrackright}{\kern0pt}}. We use the usual definitions for 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   276
\emph{prefixes} and \emph{strict prefixes} of strings.  By using the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   277
type \isa{char} for characters we have a supply of finitely many
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   278
characters roughly corresponding to the ASCII character set. Regular
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   279
expressions are defined as usual as the elements of the following
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   280
inductive datatype:
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   281
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   282
  \begin{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   283
  \isa{r\ {\isacharcolon}{\kern0pt}{\isacharequal}{\kern0pt}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   284
  \isa{\isactrlbold {\isadigit{0}}} $\mid$
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   285
  \isa{\isactrlbold {\isadigit{1}}} $\mid$
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   286
  \isa{c} $\mid$
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   287
  \isa{r\isactrlsub {\isadigit{1}}\ {\isacharplus}{\kern0pt}\ r\isactrlsub {\isadigit{2}}} $\mid$
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   288
  \isa{r\isactrlsub {\isadigit{1}}\ {\isasymcdot}\ r\isactrlsub {\isadigit{2}}} $\mid$
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   289
  \isa{r\isactrlsup {\isasymstar}} 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   290
  \end{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   291
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   292
  \noindent where \isa{\isactrlbold {\isadigit{0}}} stands for the regular expression that does
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   293
  not match any string, \isa{\isactrlbold {\isadigit{1}}} for the regular expression that matches
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   294
  only the empty string and \isa{c} for matching a character literal. The
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   295
  language of a regular expression is also defined as usual by the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   296
  recursive function \isa{L} with the six clauses:
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   297
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   298
  \begin{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   299
  \begin{tabular}{l@ {\hspace{4mm}}rcl}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   300
  \textit{(1)} & \isa{L{\isacharparenleft}{\kern0pt}\isactrlbold {\isadigit{0}}{\isacharparenright}{\kern0pt}} & $\dn$ & \isa{{\isasymemptyset}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   301
  \textit{(2)} & \isa{L{\isacharparenleft}{\kern0pt}\isactrlbold {\isadigit{1}}{\isacharparenright}{\kern0pt}} & $\dn$ & \isa{{\isacharbraceleft}{\kern0pt}{\isacharbrackleft}{\kern0pt}{\isacharbrackright}{\kern0pt}{\isacharbraceright}{\kern0pt}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   302
  \textit{(3)} & \isa{L{\isacharparenleft}{\kern0pt}c{\isacharparenright}{\kern0pt}} & $\dn$ & \isa{{\isacharbraceleft}{\kern0pt}{\isacharbrackleft}{\kern0pt}c{\isacharbrackright}{\kern0pt}{\isacharbraceright}{\kern0pt}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   303
  \textit{(4)} & \isa{L{\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}\ {\isasymcdot}\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}} & $\dn$ & 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   304
        \isa{L{\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}\ {\isacharat}{\kern0pt}\ L{\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   305
  \textit{(5)} & \isa{L{\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}\ {\isacharplus}{\kern0pt}\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}} & $\dn$ & 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   306
        \isa{L{\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}\ {\isasymunion}\ L{\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   307
  \textit{(6)} & \isa{L{\isacharparenleft}{\kern0pt}r\isactrlsup {\isasymstar}{\isacharparenright}{\kern0pt}} & $\dn$ & \isa{{\isacharparenleft}{\kern0pt}L{\isacharparenleft}{\kern0pt}r{\isacharparenright}{\kern0pt}{\isacharparenright}{\kern0pt}{\isasymstar}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   308
  \end{tabular}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   309
  \end{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   310
  
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   311
  \noindent In clause \textit{(4)} we use the operation \isa{\underline{\hspace{2mm}}\ {\isacharat}{\kern0pt}\ \underline{\hspace{2mm}}} for the concatenation of two languages (it is also list-append for
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   312
  strings). We use the star-notation for regular expressions and for
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   313
  languages (in the last clause above). The star for languages is defined
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   314
  inductively by two clauses: \isa{{\isacharparenleft}{\kern0pt}i{\isacharparenright}{\kern0pt}} the empty string being in
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   315
  the star of a language and \isa{{\isacharparenleft}{\kern0pt}ii{\isacharparenright}{\kern0pt}} if \isa{s\isactrlsub {\isadigit{1}}} is in a
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   316
  language and \isa{s\isactrlsub {\isadigit{2}}} in the star of this language, then also \isa{s\isactrlsub {\isadigit{1}}\ {\isacharat}{\kern0pt}\ s\isactrlsub {\isadigit{2}}} is in the star of this language. It will also be convenient
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   317
  to use the following notion of a \emph{semantic derivative} (or \emph{left
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   318
  quotient}) of a language defined as
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   319
  %
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   320
  \begin{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   321
  \isa{Der\ c\ A\ {\isasymequiv}\ {\isacharbraceleft}{\kern0pt}s\ \mbox{\boldmath$\mid$}\ c\mbox{$\,$}{\isacharcolon}{\kern0pt}{\isacharcolon}{\kern0pt}\mbox{$\,$}s\ {\isasymin}\ A{\isacharbraceright}{\kern0pt}}\;.
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   322
  \end{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   323
 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   324
  \noindent
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   325
  For semantic derivatives we have the following equations (for example
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   326
  mechanically proved in \cite{Krauss2011}):
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   327
  %
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   328
  \begin{equation}\label{SemDer}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   329
  \begin{array}{lcl}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   330
  \isa{Der\ c\ {\isasymemptyset}}  & \dn & \isa{{\isasymemptyset}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   331
  \isa{Der\ c\ {\isacharbraceleft}{\kern0pt}{\isacharbrackleft}{\kern0pt}{\isacharbrackright}{\kern0pt}{\isacharbraceright}{\kern0pt}}  & \dn & \isa{{\isasymemptyset}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   332
  \isa{Der\ c\ {\isacharbraceleft}{\kern0pt}{\isacharbrackleft}{\kern0pt}d{\isacharbrackright}{\kern0pt}{\isacharbraceright}{\kern0pt}}  & \dn & \isa{\textrm{if}\ c\ {\isacharequal}{\kern0pt}\ d\ \textrm{then}\ {\isacharbraceleft}{\kern0pt}{\isacharbrackleft}{\kern0pt}{\isacharbrackright}{\kern0pt}{\isacharbraceright}{\kern0pt}\ \textrm{else}\ {\isasymemptyset}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   333
  \isa{Der\ c\ {\isacharparenleft}{\kern0pt}A\ {\isasymunion}\ B{\isacharparenright}{\kern0pt}}  & \dn & \isa{Der\ c\ A\ {\isasymunion}\ Der\ c\ B}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   334
  \isa{Der\ c\ {\isacharparenleft}{\kern0pt}A\ {\isacharat}{\kern0pt}\ B{\isacharparenright}{\kern0pt}}  & \dn & \isa{{\isacharparenleft}{\kern0pt}Der\ c\ A\ {\isacharat}{\kern0pt}\ B{\isacharparenright}{\kern0pt}\ {\isasymunion}\ {\isacharparenleft}{\kern0pt}\textrm{if}\ {\isacharbrackleft}{\kern0pt}{\isacharbrackright}{\kern0pt}\ {\isasymin}\ A\ \textrm{then}\ Der\ c\ B\ \textrm{else}\ {\isasymemptyset}{\isacharparenright}{\kern0pt}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   335
  \isa{Der\ c\ {\isacharparenleft}{\kern0pt}A{\isasymstar}{\isacharparenright}{\kern0pt}}  & \dn & \isa{Der\ c\ A\ {\isacharat}{\kern0pt}\ A{\isasymstar}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   336
  \end{array}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   337
  \end{equation}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   338
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   339
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   340
  \noindent \emph{\Brz's derivatives} of regular expressions
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   341
  \cite{Brzozowski1964} can be easily defined by two recursive functions:
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   342
  the first is from regular expressions to booleans (implementing a test
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   343
  when a regular expression can match the empty string), and the second
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   344
  takes a regular expression and a character to a (derivative) regular
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   345
  expression:
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   346
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   347
  \begin{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   348
  \begin{tabular}{lcl}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   349
  \isa{nullable\ {\isacharparenleft}{\kern0pt}\isactrlbold {\isadigit{0}}{\isacharparenright}{\kern0pt}} & $\dn$ & \isa{False}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   350
  \isa{nullable\ {\isacharparenleft}{\kern0pt}\isactrlbold {\isadigit{1}}{\isacharparenright}{\kern0pt}} & $\dn$ & \isa{True}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   351
  \isa{nullable\ {\isacharparenleft}{\kern0pt}c{\isacharparenright}{\kern0pt}} & $\dn$ & \isa{False}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   352
  \isa{nullable\ {\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}\ {\isacharplus}{\kern0pt}\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}} & $\dn$ & \isa{nullable\ r\isactrlsub {\isadigit{1}}\ {\isasymor}\ nullable\ r\isactrlsub {\isadigit{2}}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   353
  \isa{nullable\ {\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}\ {\isasymcdot}\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}} & $\dn$ & \isa{nullable\ r\isactrlsub {\isadigit{1}}\ {\isasymand}\ nullable\ r\isactrlsub {\isadigit{2}}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   354
  \isa{nullable\ {\isacharparenleft}{\kern0pt}r\isactrlsup {\isasymstar}{\isacharparenright}{\kern0pt}} & $\dn$ & \isa{True}\medskip\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   355
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   356
%  \end{tabular}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   357
%  \end{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   358
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   359
%  \begin{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   360
%  \begin{tabular}{lcl}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   361
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   362
  \isa{\isactrlbold {\isadigit{0}}{\isacharbackslash}{\kern0pt}c} & $\dn$ & \isa{\isactrlbold {\isadigit{0}}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   363
  \isa{\isactrlbold {\isadigit{1}}{\isacharbackslash}{\kern0pt}c} & $\dn$ & \isa{\isactrlbold {\isadigit{0}}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   364
  \isa{d{\isacharbackslash}{\kern0pt}c} & $\dn$ & \isa{\textrm{if}\ c\ {\isacharequal}{\kern0pt}\ d\ \textrm{then}\ \isactrlbold {\isadigit{1}}\ \textrm{else}\ \isactrlbold {\isadigit{0}}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   365
  \isa{{\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}\ {\isacharplus}{\kern0pt}\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}{\isacharbackslash}{\kern0pt}c} & $\dn$ & \isa{{\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}{\isacharbackslash}{\kern0pt}c{\isacharparenright}{\kern0pt}\ {\isacharplus}{\kern0pt}\ {\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{2}}{\isacharbackslash}{\kern0pt}c{\isacharparenright}{\kern0pt}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   366
  \isa{{\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}\ {\isasymcdot}\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}{\isacharbackslash}{\kern0pt}c} & $\dn$ & \isa{\textrm{if}\ nullable\ r\isactrlsub {\isadigit{1}}\ \textrm{then}\ {\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}{\isacharbackslash}{\kern0pt}c{\isacharparenright}{\kern0pt}\ {\isasymcdot}\ r\isactrlsub {\isadigit{2}}\ {\isacharplus}{\kern0pt}\ {\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{2}}{\isacharbackslash}{\kern0pt}c{\isacharparenright}{\kern0pt}\ \textrm{else}\ {\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}{\isacharbackslash}{\kern0pt}c{\isacharparenright}{\kern0pt}\ {\isasymcdot}\ r\isactrlsub {\isadigit{2}}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   367
  \isa{{\isacharparenleft}{\kern0pt}r\isactrlsup {\isasymstar}{\isacharparenright}{\kern0pt}{\isacharbackslash}{\kern0pt}c} & $\dn$ & \isa{{\isacharparenleft}{\kern0pt}r{\isacharbackslash}{\kern0pt}c{\isacharparenright}{\kern0pt}\ {\isasymcdot}\ r\isactrlsup {\isasymstar}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   368
  \end{tabular}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   369
  \end{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   370
 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   371
  \noindent
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   372
  We may extend this definition to give derivatives w.r.t.~strings:
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   373
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   374
  \begin{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   375
  \begin{tabular}{lcl}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   376
  \isa{r{\isacharbackslash}{\kern0pt}{\isacharbrackleft}{\kern0pt}{\isacharbrackright}{\kern0pt}} & $\dn$ & \isa{r}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   377
  \isa{r{\isacharbackslash}{\kern0pt}{\isacharparenleft}{\kern0pt}c\mbox{$\,$}{\isacharcolon}{\kern0pt}{\isacharcolon}{\kern0pt}\mbox{$\,$}s{\isacharparenright}{\kern0pt}} & $\dn$ & \isa{{\isacharparenleft}{\kern0pt}r{\isacharbackslash}{\kern0pt}c{\isacharparenright}{\kern0pt}{\isacharbackslash}{\kern0pt}s}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   378
  \end{tabular}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   379
  \end{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   380
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   381
  \noindent Given the equations in \eqref{SemDer}, it is a relatively easy
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   382
  exercise in mechanical reasoning to establish that
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   383
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   384
  \begin{proposition}\label{derprop}\mbox{}\\ 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   385
  \begin{tabular}{ll}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   386
  \textit{(1)} & \isa{nullable\ r} if and only if
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   387
  \isa{{\isacharbrackleft}{\kern0pt}{\isacharbrackright}{\kern0pt}\ {\isasymin}\ L{\isacharparenleft}{\kern0pt}r{\isacharparenright}{\kern0pt}}, and \\ 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   388
  \textit{(2)} & \isa{L{\isacharparenleft}{\kern0pt}r{\isacharbackslash}{\kern0pt}c{\isacharparenright}{\kern0pt}\ {\isacharequal}{\kern0pt}\ Der\ c\ {\isacharparenleft}{\kern0pt}L{\isacharparenleft}{\kern0pt}r{\isacharparenright}{\kern0pt}{\isacharparenright}{\kern0pt}}.
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   389
  \end{tabular}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   390
  \end{proposition}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   391
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   392
  \noindent With this in place it is also very routine to prove that the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   393
  regular expression matcher defined as
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   394
  %
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   395
  \begin{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   396
  \isa{match\ r\ s\ {\isasymequiv}\ nullable\ {\isacharparenleft}{\kern0pt}r{\isacharbackslash}{\kern0pt}s{\isacharparenright}{\kern0pt}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   397
  \end{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   398
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   399
  \noindent gives a positive answer if and only if \isa{s\ {\isasymin}\ L{\isacharparenleft}{\kern0pt}r{\isacharparenright}{\kern0pt}}.
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   400
  Consequently, this regular expression matching algorithm satisfies the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   401
  usual specification for regular expression matching. While the matcher
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   402
  above calculates a provably correct YES/NO answer for whether a regular
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   403
  expression matches a string or not, the novel idea of Sulzmann and Lu
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   404
  \cite{Sulzmann2014} is to append another phase to this algorithm in order
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   405
  to calculate a [lexical] value. We will explain the details next.%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   406
\end{isamarkuptext}\isamarkuptrue%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   407
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   408
\isadelimdocument
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   409
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   410
\endisadelimdocument
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   411
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   412
\isatagdocument
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   413
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   414
\isamarkupsection{POSIX Regular Expression Matching\label{posixsec}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   415
}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   416
\isamarkuptrue%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   417
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   418
\endisatagdocument
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   419
{\isafolddocument}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   420
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   421
\isadelimdocument
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   422
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   423
\endisadelimdocument
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   424
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   425
\begin{isamarkuptext}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   426
There have been many previous works that use values for encoding 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   427
  \emph{how} a regular expression matches a string.
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   428
  The clever idea by Sulzmann and Lu \cite{Sulzmann2014} is to 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   429
  define a function on values that mirrors (but inverts) the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   430
  construction of the derivative on regular expressions. \emph{Values}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   431
  are defined as the inductive datatype
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   432
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   433
  \begin{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   434
  \isa{v\ {\isacharcolon}{\kern0pt}{\isacharequal}{\kern0pt}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   435
  \isa{Empty} $\mid$
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   436
  \isa{Char\ c} $\mid$
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   437
  \isa{Left\ v} $\mid$
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   438
  \isa{Right\ v} $\mid$
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   439
  \isa{Seq\ v\isactrlsub {\isadigit{1}}\ v\isactrlsub {\isadigit{2}}} $\mid$ 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   440
  \isa{Stars\ vs} 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   441
  \end{center}  
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   442
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   443
  \noindent where we use \isa{vs} to stand for a list of
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   444
  values. (This is similar to the approach taken by Frisch and
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   445
  Cardelli for GREEDY matching \cite{Frisch2004}, and Sulzmann and Lu
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   446
  for POSIX matching \cite{Sulzmann2014}). The string underlying a
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   447
  value can be calculated by the \isa{flat} function, written
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   448
  \isa{{\isacharbar}{\kern0pt}\underline{\hspace{2mm}}{\isacharbar}{\kern0pt}} and defined as:
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   449
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   450
  \begin{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   451
  \begin{tabular}[t]{lcl}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   452
  \isa{{\isacharbar}{\kern0pt}Empty{\isacharbar}{\kern0pt}} & $\dn$ & \isa{{\isacharbrackleft}{\kern0pt}{\isacharbrackright}{\kern0pt}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   453
  \isa{{\isacharbar}{\kern0pt}Char\ c{\isacharbar}{\kern0pt}} & $\dn$ & \isa{{\isacharbrackleft}{\kern0pt}c{\isacharbrackright}{\kern0pt}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   454
  \isa{{\isacharbar}{\kern0pt}Left\ v{\isacharbar}{\kern0pt}} & $\dn$ & \isa{{\isacharbar}{\kern0pt}v{\isacharbar}{\kern0pt}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   455
  \isa{{\isacharbar}{\kern0pt}Right\ v{\isacharbar}{\kern0pt}} & $\dn$ & \isa{{\isacharbar}{\kern0pt}v{\isacharbar}{\kern0pt}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   456
  \end{tabular}\hspace{14mm}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   457
  \begin{tabular}[t]{lcl}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   458
  \isa{{\isacharbar}{\kern0pt}Seq\ v\isactrlsub {\isadigit{1}}\ v\isactrlsub {\isadigit{2}}{\isacharbar}{\kern0pt}} & $\dn$ & \isa{{\isacharbar}{\kern0pt}v\isactrlsub {\isadigit{1}}{\isacharbar}{\kern0pt}\ {\isacharat}{\kern0pt}\ {\isacharbar}{\kern0pt}v\isactrlsub {\isadigit{2}}{\isacharbar}{\kern0pt}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   459
  \isa{{\isacharbar}{\kern0pt}Stars\ {\isacharbrackleft}{\kern0pt}{\isacharbrackright}{\kern0pt}{\isacharbar}{\kern0pt}} & $\dn$ & \isa{{\isacharbrackleft}{\kern0pt}{\isacharbrackright}{\kern0pt}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   460
  \isa{{\isacharbar}{\kern0pt}Stars\ {\isacharparenleft}{\kern0pt}v\mbox{$\,$}{\isacharcolon}{\kern0pt}{\isacharcolon}{\kern0pt}\mbox{$\,$}vs{\isacharparenright}{\kern0pt}{\isacharbar}{\kern0pt}} & $\dn$ & \isa{{\isacharbar}{\kern0pt}v{\isacharbar}{\kern0pt}\ {\isacharat}{\kern0pt}\ {\isacharbar}{\kern0pt}Stars\ vs{\isacharbar}{\kern0pt}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   461
  \end{tabular}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   462
  \end{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   463
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   464
  \noindent We will sometimes refer to the underlying string of a
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   465
  value as \emph{flattened value}.  We will also overload our notation and 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   466
  use \isa{{\isacharbar}{\kern0pt}vs{\isacharbar}{\kern0pt}} for flattening a list of values and concatenating
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   467
  the resulting strings.
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   468
  
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   469
  Sulzmann and Lu define
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   470
  inductively an \emph{inhabitation relation} that associates values to
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   471
  regular expressions. We define this relation as
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   472
  follows:\footnote{Note that the rule for \isa{Stars} differs from
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   473
  our earlier paper \cite{AusafDyckhoffUrban2016}. There we used the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   474
  original definition by Sulzmann and Lu which does not require that
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   475
  the values \isa{v\ {\isasymin}\ vs} flatten to a non-empty
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   476
  string. The reason for introducing the more restricted version of
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   477
  lexical values is convenience later on when reasoning about an
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   478
  ordering relation for values.}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   479
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   480
  \begin{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   481
  \begin{tabular}{c@ {\hspace{12mm}}c}\label{prfintros}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   482
  \\[-8mm]
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   483
  \isa{\mbox{}\inferrule{\mbox{}}{\mbox{Empty\ {\isacharcolon}{\kern0pt}\ \isactrlbold {\isadigit{1}}}}} & 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   484
  \isa{\mbox{}\inferrule{\mbox{}}{\mbox{Char\ c\ {\isacharcolon}{\kern0pt}\ c}}}\\[4mm]
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   485
  \isa{\mbox{}\inferrule{\mbox{v\isactrlsub {\isadigit{1}}\ {\isacharcolon}{\kern0pt}\ r\isactrlsub {\isadigit{1}}}}{\mbox{Left\ v\isactrlsub {\isadigit{1}}\ {\isacharcolon}{\kern0pt}\ r\isactrlsub {\isadigit{1}}\ {\isacharplus}{\kern0pt}\ r\isactrlsub {\isadigit{2}}}}} &
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   486
  \isa{\mbox{}\inferrule{\mbox{v\isactrlsub {\isadigit{2}}\ {\isacharcolon}{\kern0pt}\ r\isactrlsub {\isadigit{1}}}}{\mbox{Right\ v\isactrlsub {\isadigit{2}}\ {\isacharcolon}{\kern0pt}\ r\isactrlsub {\isadigit{2}}\ {\isacharplus}{\kern0pt}\ r\isactrlsub {\isadigit{1}}}}}\\[4mm]
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   487
  \isa{\mbox{}\inferrule{\mbox{v\isactrlsub {\isadigit{1}}\ {\isacharcolon}{\kern0pt}\ r\isactrlsub {\isadigit{1}}}\\\ \mbox{v\isactrlsub {\isadigit{2}}\ {\isacharcolon}{\kern0pt}\ r\isactrlsub {\isadigit{2}}}}{\mbox{Seq\ v\isactrlsub {\isadigit{1}}\ v\isactrlsub {\isadigit{2}}\ {\isacharcolon}{\kern0pt}\ r\isactrlsub {\isadigit{1}}\ {\isasymcdot}\ r\isactrlsub {\isadigit{2}}}}}  &
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   488
  \isa{\mbox{}\inferrule{\mbox{{\isasymforall}v{\isasymin}vs{\isachardot}{\kern0pt}\ v\ {\isacharcolon}{\kern0pt}\ r\ {\isasymand}\ {\isacharbar}{\kern0pt}v{\isacharbar}{\kern0pt}\ {\isasymnoteq}\ {\isacharbrackleft}{\kern0pt}{\isacharbrackright}{\kern0pt}}}{\mbox{Stars\ vs\ {\isacharcolon}{\kern0pt}\ r\isactrlsup {\isasymstar}}}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   489
  \end{tabular}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   490
  \end{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   491
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   492
  \noindent where in the clause for \isa{Stars} we use the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   493
  notation \isa{v\ {\isasymin}\ vs} for indicating that \isa{v} is a
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   494
  member in the list \isa{vs}.  We require in this rule that every
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   495
  value in \isa{vs} flattens to a non-empty string. The idea is that
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   496
  \isa{Stars}-values satisfy the informal Star Rule (see Introduction)
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   497
  where the $^\star$ does not match the empty string unless this is
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   498
  the only match for the repetition.  Note also that no values are
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   499
  associated with the regular expression \isa{\isactrlbold {\isadigit{0}}}, and that the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   500
  only value associated with the regular expression \isa{\isactrlbold {\isadigit{1}}} is
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   501
  \isa{Empty}.  It is routine to establish how values ``inhabiting''
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   502
  a regular expression correspond to the language of a regular
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   503
  expression, namely
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   504
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   505
  \begin{proposition}\label{inhabs}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   506
  \isa{L{\isacharparenleft}{\kern0pt}r{\isacharparenright}{\kern0pt}\ {\isacharequal}{\kern0pt}\ {\isacharbraceleft}{\kern0pt}{\isacharbar}{\kern0pt}v{\isacharbar}{\kern0pt}\ \mbox{\boldmath$\mid$}\ v\ {\isacharcolon}{\kern0pt}\ r{\isacharbraceright}{\kern0pt}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   507
  \end{proposition}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   508
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   509
  \noindent
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   510
  Given a regular expression \isa{r} and a string \isa{s}, we define the 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   511
  set of all \emph{Lexical Values} inhabited by \isa{r} with the underlying string 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   512
  being \isa{s}:\footnote{Okui and Suzuki refer to our lexical values 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   513
  as \emph{canonical values} in \cite{OkuiSuzuki2010}. The notion of \emph{non-problematic
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   514
  values} by Cardelli and Frisch \cite{Frisch2004} is related, but not identical
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   515
  to our lexical values.}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   516
  
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   517
  \begin{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   518
  \isa{LV\ r\ s\ {\isasymequiv}\ {\isacharbraceleft}{\kern0pt}v\ \mbox{\boldmath$\mid$}\ v\ {\isacharcolon}{\kern0pt}\ r\ {\isasymand}\ {\isacharbar}{\kern0pt}v{\isacharbar}{\kern0pt}\ {\isacharequal}{\kern0pt}\ s{\isacharbraceright}{\kern0pt}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   519
  \end{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   520
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   521
  \noindent The main property of \isa{LV\ r\ s} is that it is alway finite.
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   522
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   523
  \begin{proposition}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   524
  \isa{finite\ {\isacharparenleft}{\kern0pt}LV\ r\ s{\isacharparenright}{\kern0pt}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   525
  \end{proposition}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   526
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   527
  \noindent This finiteness property does not hold in general if we
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   528
  remove the side-condition about \isa{{\isacharbar}{\kern0pt}v{\isacharbar}{\kern0pt}\ {\isasymnoteq}\ {\isacharbrackleft}{\kern0pt}{\isacharbrackright}{\kern0pt}} in the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   529
  \isa{Stars}-rule above. For example using Sulzmann and Lu's
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   530
  less restrictive definition, \isa{LV\ {\isacharparenleft}{\kern0pt}\isactrlbold {\isadigit{1}}\isactrlsup {\isasymstar}{\isacharparenright}{\kern0pt}\ {\isacharbrackleft}{\kern0pt}{\isacharbrackright}{\kern0pt}} would contain
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   531
  infinitely many values, but according to our more restricted
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   532
  definition only a single value, namely \isa{LV\ {\isacharparenleft}{\kern0pt}\isactrlbold {\isadigit{1}}\isactrlsup {\isasymstar}{\isacharparenright}{\kern0pt}\ {\isacharbrackleft}{\kern0pt}{\isacharbrackright}{\kern0pt}\ {\isacharequal}{\kern0pt}\ {\isacharbraceleft}{\kern0pt}Stars\ {\isacharbrackleft}{\kern0pt}{\isacharbrackright}{\kern0pt}{\isacharbraceright}{\kern0pt}}.
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   533
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   534
  If a regular expression \isa{r} matches a string \isa{s}, then
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   535
  generally the set \isa{LV\ r\ s} is not just a singleton set.  In
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   536
  case of POSIX matching the problem is to calculate the unique lexical value
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   537
  that satisfies the (informal) POSIX rules from the Introduction.
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   538
  Graphically the POSIX value calculation algorithm by Sulzmann and Lu
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   539
  can be illustrated by the picture in Figure~\ref{Sulz} where the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   540
  path from the left to the right involving \isa{derivatives}/\isa{nullable} is the first phase of the algorithm
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   541
  (calculating successive \Brz's derivatives) and \isa{mkeps}/\isa{inj}, the path from right to left, the second
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   542
  phase. This picture shows the steps required when a regular
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   543
  expression, say \isa{r\isactrlsub {\isadigit{1}}}, matches the string \isa{{\isacharbrackleft}{\kern0pt}a{\isacharcomma}{\kern0pt}\ b{\isacharcomma}{\kern0pt}\ c{\isacharbrackright}{\kern0pt}}. We first build the three derivatives (according to
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   544
  \isa{a}, \isa{b} and \isa{c}). We then use \isa{nullable}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   545
  to find out whether the resulting derivative regular expression
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   546
  \isa{r\isactrlsub {\isadigit{4}}} can match the empty string. If yes, we call the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   547
  function \isa{mkeps} that produces a value \isa{v\isactrlsub {\isadigit{4}}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   548
  for how \isa{r\isactrlsub {\isadigit{4}}} can match the empty string (taking into
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   549
  account the POSIX constraints in case there are several ways). This
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   550
  function is defined by the clauses:
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   551
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   552
\begin{figure}[t]
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   553
\begin{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   554
\begin{tikzpicture}[scale=2,node distance=1.3cm,
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   555
                    every node/.style={minimum size=6mm}]
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   556
\node (r1)  {\isa{r\isactrlsub {\isadigit{1}}}};
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   557
\node (r2) [right=of r1]{\isa{r\isactrlsub {\isadigit{2}}}};
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   558
\draw[->,line width=1mm](r1)--(r2) node[above,midway] {\isa{\underline{\hspace{2mm}}{\isacharbackslash}{\kern0pt}a}};
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   559
\node (r3) [right=of r2]{\isa{r\isactrlsub {\isadigit{3}}}};
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   560
\draw[->,line width=1mm](r2)--(r3) node[above,midway] {\isa{\underline{\hspace{2mm}}{\isacharbackslash}{\kern0pt}b}};
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   561
\node (r4) [right=of r3]{\isa{r\isactrlsub {\isadigit{4}}}};
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   562
\draw[->,line width=1mm](r3)--(r4) node[above,midway] {\isa{\underline{\hspace{2mm}}{\isacharbackslash}{\kern0pt}c}};
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   563
\draw (r4) node[anchor=west] {\;\raisebox{3mm}{\isa{nullable}}};
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   564
\node (v4) [below=of r4]{\isa{v\isactrlsub {\isadigit{4}}}};
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   565
\draw[->,line width=1mm](r4) -- (v4);
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   566
\node (v3) [left=of v4] {\isa{v\isactrlsub {\isadigit{3}}}};
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   567
\draw[->,line width=1mm](v4)--(v3) node[below,midway] {\isa{inj\ r\isactrlsub {\isadigit{3}}\ c}};
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   568
\node (v2) [left=of v3]{\isa{v\isactrlsub {\isadigit{2}}}};
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   569
\draw[->,line width=1mm](v3)--(v2) node[below,midway] {\isa{inj\ r\isactrlsub {\isadigit{2}}\ b}};
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   570
\node (v1) [left=of v2] {\isa{v\isactrlsub {\isadigit{1}}}};
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   571
\draw[->,line width=1mm](v2)--(v1) node[below,midway] {\isa{inj\ r\isactrlsub {\isadigit{1}}\ a}};
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   572
\draw (r4) node[anchor=north west] {\;\raisebox{-8mm}{\isa{mkeps}}};
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   573
\end{tikzpicture}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   574
\end{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   575
\mbox{}\\[-13mm]
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   576
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   577
\caption{The two phases of the algorithm by Sulzmann \& Lu \cite{Sulzmann2014},
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   578
matching the string \isa{{\isacharbrackleft}{\kern0pt}a{\isacharcomma}{\kern0pt}\ b{\isacharcomma}{\kern0pt}\ c{\isacharbrackright}{\kern0pt}}. The first phase (the arrows from 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   579
left to right) is \Brz's matcher building successive derivatives. If the 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   580
last regular expression is \isa{nullable}, then the functions of the 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   581
second phase are called (the top-down and right-to-left arrows): first 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   582
\isa{mkeps} calculates a value \isa{v\isactrlsub {\isadigit{4}}} witnessing
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   583
how the empty string has been recognised by \isa{r\isactrlsub {\isadigit{4}}}. After
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   584
that the function \isa{inj} ``injects back'' the characters of the string into
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   585
the values.
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   586
\label{Sulz}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   587
\end{figure} 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   588
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   589
  \begin{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   590
  \begin{tabular}{lcl}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   591
  \isa{mkeps\ \isactrlbold {\isadigit{1}}} & $\dn$ & \isa{Empty}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   592
  \isa{mkeps\ {\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}\ {\isasymcdot}\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}} & $\dn$ & \isa{Seq\ {\isacharparenleft}{\kern0pt}mkeps\ r\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}\ {\isacharparenleft}{\kern0pt}mkeps\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   593
  \isa{mkeps\ {\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}\ {\isacharplus}{\kern0pt}\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}} & $\dn$ & \isa{\textrm{if}\ nullable\ r\isactrlsub {\isadigit{1}}\ \textrm{then}\ Left\ {\isacharparenleft}{\kern0pt}mkeps\ r\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}\ \textrm{else}\ Right\ {\isacharparenleft}{\kern0pt}mkeps\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   594
  \isa{mkeps\ {\isacharparenleft}{\kern0pt}r\isactrlsup {\isasymstar}{\isacharparenright}{\kern0pt}} & $\dn$ & \isa{Stars\ {\isacharbrackleft}{\kern0pt}{\isacharbrackright}{\kern0pt}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   595
  \end{tabular}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   596
  \end{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   597
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   598
  \noindent Note that this function needs only to be partially defined,
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   599
  namely only for regular expressions that are nullable. In case \isa{nullable} fails, the string \isa{{\isacharbrackleft}{\kern0pt}a{\isacharcomma}{\kern0pt}\ b{\isacharcomma}{\kern0pt}\ c{\isacharbrackright}{\kern0pt}} cannot be matched by \isa{r\isactrlsub {\isadigit{1}}} and the null value \isa{None} is returned. Note also how this function
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   600
  makes some subtle choices leading to a POSIX value: for example if an
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   601
  alternative regular expression, say \isa{r\isactrlsub {\isadigit{1}}\ {\isacharplus}{\kern0pt}\ r\isactrlsub {\isadigit{2}}}, can
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   602
  match the empty string and furthermore \isa{r\isactrlsub {\isadigit{1}}} can match the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   603
  empty string, then we return a \isa{Left}-value. The \isa{Right}-value will only be returned if \isa{r\isactrlsub {\isadigit{1}}} cannot match the empty
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   604
  string.
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   605
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   606
  The most interesting idea from Sulzmann and Lu \cite{Sulzmann2014} is
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   607
  the construction of a value for how \isa{r\isactrlsub {\isadigit{1}}} can match the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   608
  string \isa{{\isacharbrackleft}{\kern0pt}a{\isacharcomma}{\kern0pt}\ b{\isacharcomma}{\kern0pt}\ c{\isacharbrackright}{\kern0pt}} from the value how the last derivative, \isa{r\isactrlsub {\isadigit{4}}} in Fig.~\ref{Sulz}, can match the empty string. Sulzmann and
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   609
  Lu achieve this by stepwise ``injecting back'' the characters into the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   610
  values thus inverting the operation of building derivatives, but on the level
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   611
  of values. The corresponding function, called \isa{inj}, takes three
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   612
  arguments, a regular expression, a character and a value. For example in
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   613
  the first (or right-most) \isa{inj}-step in Fig.~\ref{Sulz} the regular
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   614
  expression \isa{r\isactrlsub {\isadigit{3}}}, the character \isa{c} from the last
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   615
  derivative step and \isa{v\isactrlsub {\isadigit{4}}}, which is the value corresponding
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   616
  to the derivative regular expression \isa{r\isactrlsub {\isadigit{4}}}. The result is
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   617
  the new value \isa{v\isactrlsub {\isadigit{3}}}. The final result of the algorithm is
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   618
  the value \isa{v\isactrlsub {\isadigit{1}}}. The \isa{inj} function is defined by recursion on regular
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   619
  expressions and by analysing the shape of values (corresponding to 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   620
  the derivative regular expressions).
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   621
  %
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   622
  \begin{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   623
  \begin{tabular}{l@ {\hspace{5mm}}lcl}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   624
  \textit{(1)} & \isa{inj\ d\ c\ {\isacharparenleft}{\kern0pt}Empty{\isacharparenright}{\kern0pt}} & $\dn$ & \isa{Char\ d}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   625
  \textit{(2)} & \isa{inj\ {\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}\ {\isacharplus}{\kern0pt}\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}\ c\ {\isacharparenleft}{\kern0pt}Left\ v\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}} & $\dn$ & 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   626
      \isa{Left\ {\isacharparenleft}{\kern0pt}inj\ r\isactrlsub {\isadigit{1}}\ c\ v\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   627
  \textit{(3)} & \isa{inj\ {\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}\ {\isacharplus}{\kern0pt}\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}\ c\ {\isacharparenleft}{\kern0pt}Right\ v\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}} & $\dn$ & 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   628
      \isa{Right\ {\isacharparenleft}{\kern0pt}inj\ r\isactrlsub {\isadigit{2}}\ c\ v\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   629
  \textit{(4)} & \isa{inj\ {\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}\ {\isasymcdot}\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}\ c\ {\isacharparenleft}{\kern0pt}Seq\ v\isactrlsub {\isadigit{1}}\ v\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}} & $\dn$ 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   630
      & \isa{Seq\ {\isacharparenleft}{\kern0pt}inj\ r\isactrlsub {\isadigit{1}}\ c\ v\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}\ v\isactrlsub {\isadigit{2}}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   631
  \textit{(5)} & \isa{inj\ {\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}\ {\isasymcdot}\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}\ c\ {\isacharparenleft}{\kern0pt}Left\ {\isacharparenleft}{\kern0pt}Seq\ v\isactrlsub {\isadigit{1}}\ v\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}{\isacharparenright}{\kern0pt}} & $\dn$ 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   632
      & \isa{Seq\ {\isacharparenleft}{\kern0pt}inj\ r\isactrlsub {\isadigit{1}}\ c\ v\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}\ v\isactrlsub {\isadigit{2}}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   633
  \textit{(6)} & \isa{inj\ {\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}\ {\isasymcdot}\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}\ c\ {\isacharparenleft}{\kern0pt}Right\ v\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}} & $\dn$ 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   634
      & \isa{Seq\ {\isacharparenleft}{\kern0pt}mkeps\ r\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}\ {\isacharparenleft}{\kern0pt}inj\ r\isactrlsub {\isadigit{2}}\ c\ v\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   635
  \textit{(7)} & \isa{inj\ {\isacharparenleft}{\kern0pt}r\isactrlsup {\isasymstar}{\isacharparenright}{\kern0pt}\ c\ {\isacharparenleft}{\kern0pt}Seq\ v\ {\isacharparenleft}{\kern0pt}Stars\ vs{\isacharparenright}{\kern0pt}{\isacharparenright}{\kern0pt}} & $\dn$ 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   636
      & \isa{Stars\ {\isacharparenleft}{\kern0pt}inj\ r\ c\ v\mbox{$\,$}{\isacharcolon}{\kern0pt}{\isacharcolon}{\kern0pt}\mbox{$\,$}vs{\isacharparenright}{\kern0pt}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   637
  \end{tabular}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   638
  \end{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   639
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   640
  \noindent To better understand what is going on in this definition it
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   641
  might be instructive to look first at the three sequence cases (clauses
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   642
  \textit{(4)} -- \textit{(6)}). In each case we need to construct an ``injected value'' for
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   643
  \isa{r\isactrlsub {\isadigit{1}}\ {\isasymcdot}\ r\isactrlsub {\isadigit{2}}}. This must be a value of the form \isa{Seq\ \underline{\hspace{2mm}}\ \underline{\hspace{2mm}}}\,. Recall the clause of the \isa{derivative}-function
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   644
  for sequence regular expressions:
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   645
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   646
  \begin{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   647
  \isa{{\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}\ {\isasymcdot}\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}{\isacharbackslash}{\kern0pt}c} $\dn$ \isa{\textrm{if}\ nullable\ r\isactrlsub {\isadigit{1}}\ \textrm{then}\ {\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}{\isacharbackslash}{\kern0pt}c{\isacharparenright}{\kern0pt}\ {\isasymcdot}\ r\isactrlsub {\isadigit{2}}\ {\isacharplus}{\kern0pt}\ {\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{2}}{\isacharbackslash}{\kern0pt}c{\isacharparenright}{\kern0pt}\ \textrm{else}\ {\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}{\isacharbackslash}{\kern0pt}c{\isacharparenright}{\kern0pt}\ {\isasymcdot}\ r\isactrlsub {\isadigit{2}}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   648
  \end{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   649
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   650
  \noindent Consider first the \isa{else}-branch where the derivative is \isa{{\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}{\isacharbackslash}{\kern0pt}c{\isacharparenright}{\kern0pt}\ {\isasymcdot}\ r\isactrlsub {\isadigit{2}}}. The corresponding value must therefore
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   651
  be of the form \isa{Seq\ v\isactrlsub {\isadigit{1}}\ v\isactrlsub {\isadigit{2}}}, which matches the left-hand
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   652
  side in clause~\textit{(4)} of \isa{inj}. In the \isa{if}-branch the derivative is an
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   653
  alternative, namely \isa{{\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}{\isacharbackslash}{\kern0pt}c{\isacharparenright}{\kern0pt}\ {\isasymcdot}\ r\isactrlsub {\isadigit{2}}\ {\isacharplus}{\kern0pt}\ {\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{2}}{\isacharbackslash}{\kern0pt}c{\isacharparenright}{\kern0pt}}. This means we either have to consider a \isa{Left}- or
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   654
  \isa{Right}-value. In case of the \isa{Left}-value we know further it
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   655
  must be a value for a sequence regular expression. Therefore the pattern
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   656
  we match in the clause \textit{(5)} is \isa{Left\ {\isacharparenleft}{\kern0pt}Seq\ v\isactrlsub {\isadigit{1}}\ v\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}},
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   657
  while in \textit{(6)} it is just \isa{Right\ v\isactrlsub {\isadigit{2}}}. One more interesting
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   658
  point is in the right-hand side of clause \textit{(6)}: since in this case the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   659
  regular expression \isa{r\isactrlsub {\isadigit{1}}} does not ``contribute'' to
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   660
  matching the string, that means it only matches the empty string, we need to
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   661
  call \isa{mkeps} in order to construct a value for how \isa{r\isactrlsub {\isadigit{1}}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   662
  can match this empty string. A similar argument applies for why we can
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   663
  expect in the left-hand side of clause \textit{(7)} that the value is of the form
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   664
  \isa{Seq\ v\ {\isacharparenleft}{\kern0pt}Stars\ vs{\isacharparenright}{\kern0pt}}---the derivative of a star is \isa{{\isacharparenleft}{\kern0pt}r{\isacharbackslash}{\kern0pt}c{\isacharparenright}{\kern0pt}\ {\isasymcdot}\ r\isactrlsup {\isasymstar}}. Finally, the reason for why we can ignore the second argument
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   665
  in clause \textit{(1)} of \isa{inj} is that it will only ever be called in cases
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   666
  where \isa{c\ {\isacharequal}{\kern0pt}\ d}, but the usual linearity restrictions in patterns do
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   667
  not allow us to build this constraint explicitly into our function
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   668
  definition.\footnote{Sulzmann and Lu state this clause as \isa{inj\ c\ c\ {\isacharparenleft}{\kern0pt}Empty{\isacharparenright}{\kern0pt}} $\dn$ \isa{Char\ c},
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   669
  but our deviation is harmless.}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   670
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   671
  The idea of the \isa{inj}-function to ``inject'' a character, say
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   672
  \isa{c}, into a value can be made precise by the first part of the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   673
  following lemma, which shows that the underlying string of an injected
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   674
  value has a prepended character \isa{c}; the second part shows that
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   675
  the underlying string of an \isa{mkeps}-value is always the empty
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   676
  string (given the regular expression is nullable since otherwise
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   677
  \isa{mkeps} might not be defined).
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   678
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   679
  \begin{lemma}\mbox{}\smallskip\\\label{Prf_injval_flat}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   680
  \begin{tabular}{ll}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   681
  (1) & \isa{{\normalsize{}If\,}\ v\ {\isacharcolon}{\kern0pt}\ r{\isacharbackslash}{\kern0pt}c\ {\normalsize \,then\,}\ {\isacharbar}{\kern0pt}inj\ r\ c\ v{\isacharbar}{\kern0pt}\ {\isacharequal}{\kern0pt}\ c\mbox{$\,$}{\isacharcolon}{\kern0pt}{\isacharcolon}{\kern0pt}\mbox{$\,$}{\isacharbar}{\kern0pt}v{\isacharbar}{\kern0pt}{\isachardot}{\kern0pt}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   682
  (2) & \isa{{\normalsize{}If\,}\ nullable\ r\ {\normalsize \,then\,}\ {\isacharbar}{\kern0pt}mkeps\ r{\isacharbar}{\kern0pt}\ {\isacharequal}{\kern0pt}\ {\isacharbrackleft}{\kern0pt}{\isacharbrackright}{\kern0pt}{\isachardot}{\kern0pt}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   683
  \end{tabular}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   684
  \end{lemma}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   685
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   686
  \begin{proof}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   687
  Both properties are by routine inductions: the first one can, for example,
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   688
  be proved by induction over the definition of \isa{derivatives}; the second by
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   689
  an induction on \isa{r}. There are no interesting cases.\qed
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   690
  \end{proof}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   691
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   692
  Having defined the \isa{mkeps} and \isa{inj} function we can extend
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   693
  \Brz's matcher so that a value is constructed (assuming the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   694
  regular expression matches the string). The clauses of the Sulzmann and Lu lexer are
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   695
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   696
  \begin{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   697
  \begin{tabular}{lcl}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   698
  \isa{lexer\ r\ {\isacharbrackleft}{\kern0pt}{\isacharbrackright}{\kern0pt}} & $\dn$ & \isa{\textrm{if}\ nullable\ r\ \textrm{then}\ Some\ {\isacharparenleft}{\kern0pt}mkeps\ r{\isacharparenright}{\kern0pt}\ \textrm{else}\ None}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   699
  \isa{lexer\ r\ {\isacharparenleft}{\kern0pt}c\mbox{$\,$}{\isacharcolon}{\kern0pt}{\isacharcolon}{\kern0pt}\mbox{$\,$}s{\isacharparenright}{\kern0pt}} & $\dn$ & \isa{case} \isa{lexer\ {\isacharparenleft}{\kern0pt}r{\isacharbackslash}{\kern0pt}c{\isacharparenright}{\kern0pt}\ s} \isa{of}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   700
                     & & \phantom{$|$} \isa{None}  \isa{{\isasymRightarrow}} \isa{None}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   701
                     & & $|$ \isa{Some\ v} \isa{{\isasymRightarrow}} \isa{Some\ {\isacharparenleft}{\kern0pt}inj\ r\ c\ v{\isacharparenright}{\kern0pt}}                          
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   702
  \end{tabular}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   703
  \end{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   704
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   705
  \noindent If the regular expression does not match the string, \isa{None} is
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   706
  returned. If the regular expression \emph{does}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   707
  match the string, then \isa{Some} value is returned. One important
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   708
  virtue of this algorithm is that it can be implemented with ease in any
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   709
  functional programming language and also in Isabelle/HOL. In the remaining
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   710
  part of this section we prove that this algorithm is correct.
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   711
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   712
  The well-known idea of POSIX matching is informally defined by some
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   713
  rules such as the Longest Match and Priority Rules (see
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   714
  Introduction); as correctly argued in \cite{Sulzmann2014}, this
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   715
  needs formal specification. Sulzmann and Lu define an ``ordering
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   716
  relation'' between values and argue that there is a maximum value,
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   717
  as given by the derivative-based algorithm.  In contrast, we shall
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   718
  introduce a simple inductive definition that specifies directly what
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   719
  a \emph{POSIX value} is, incorporating the POSIX-specific choices
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   720
  into the side-conditions of our rules. Our definition is inspired by
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   721
  the matching relation given by Vansummeren~\cite{Vansummeren2006}. 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   722
  The relation we define is ternary and
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   723
  written as \mbox{\isa{{\isacharparenleft}{\kern0pt}s{\isacharcomma}{\kern0pt}\ r{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ v}}, relating
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   724
  strings, regular expressions and values; the inductive rules are given in 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   725
  Figure~\ref{POSIXrules}.
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   726
  We can prove that given a string \isa{s} and regular expression \isa{r}, the POSIX value \isa{v} is uniquely determined by \isa{{\isacharparenleft}{\kern0pt}s{\isacharcomma}{\kern0pt}\ r{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ v}.
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   727
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   728
  %
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   729
  \begin{figure}[t]
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   730
  \begin{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   731
  \begin{tabular}{c}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   732
  \isa{\mbox{}\inferrule{\mbox{}}{\mbox{{\isacharparenleft}{\kern0pt}{\isacharbrackleft}{\kern0pt}{\isacharbrackright}{\kern0pt}{\isacharcomma}{\kern0pt}\ \isactrlbold {\isadigit{1}}{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ Empty}}}\isa{P}\isa{\isactrlbold {\isadigit{1}}} \qquad
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   733
  \isa{\mbox{}\inferrule{\mbox{}}{\mbox{{\isacharparenleft}{\kern0pt}{\isacharbrackleft}{\kern0pt}c{\isacharbrackright}{\kern0pt}{\isacharcomma}{\kern0pt}\ c{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ Char\ c}}}\isa{P}\isa{c}\medskip\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   734
  \isa{\mbox{}\inferrule{\mbox{{\isacharparenleft}{\kern0pt}s{\isacharcomma}{\kern0pt}\ r\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ v}}{\mbox{{\isacharparenleft}{\kern0pt}s{\isacharcomma}{\kern0pt}\ r\isactrlsub {\isadigit{1}}\ {\isacharplus}{\kern0pt}\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ Left\ v}}}\isa{P{\isacharplus}{\kern0pt}L}\qquad
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   735
  \isa{\mbox{}\inferrule{\mbox{{\isacharparenleft}{\kern0pt}s{\isacharcomma}{\kern0pt}\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ v}\\\ \mbox{s\ {\isasymnotin}\ L{\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}}}{\mbox{{\isacharparenleft}{\kern0pt}s{\isacharcomma}{\kern0pt}\ r\isactrlsub {\isadigit{1}}\ {\isacharplus}{\kern0pt}\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ Right\ v}}}\isa{P{\isacharplus}{\kern0pt}R}\medskip\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   736
  $\mprset{flushleft}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   737
   \inferrule
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   738
   {\isa{{\isacharparenleft}{\kern0pt}s\isactrlsub {\isadigit{1}}{\isacharcomma}{\kern0pt}\ r\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ v\isactrlsub {\isadigit{1}}} \qquad
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   739
    \isa{{\isacharparenleft}{\kern0pt}s\isactrlsub {\isadigit{2}}{\isacharcomma}{\kern0pt}\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ v\isactrlsub {\isadigit{2}}} \\\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   740
    \isa{{\isasymnexists}s\isactrlsub {\isadigit{3}}\ s\isactrlsub {\isadigit{4}}{\isachardot}{\kern0pt}a{\isachardot}{\kern0pt}\ s\isactrlsub {\isadigit{3}}\ {\isasymnoteq}\ {\isacharbrackleft}{\kern0pt}{\isacharbrackright}{\kern0pt}\ {\isasymand}\ s\isactrlsub {\isadigit{3}}\ {\isacharat}{\kern0pt}\ s\isactrlsub {\isadigit{4}}\ {\isacharequal}{\kern0pt}\ s\isactrlsub {\isadigit{2}}\ {\isasymand}\ s\isactrlsub {\isadigit{1}}\ {\isacharat}{\kern0pt}\ s\isactrlsub {\isadigit{3}}\ {\isasymin}\ L{\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}\ {\isasymand}\ s\isactrlsub {\isadigit{4}}\ {\isasymin}\ L{\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   741
   {\isa{{\isacharparenleft}{\kern0pt}s\isactrlsub {\isadigit{1}}\ {\isacharat}{\kern0pt}\ s\isactrlsub {\isadigit{2}}{\isacharcomma}{\kern0pt}\ r\isactrlsub {\isadigit{1}}\ {\isasymcdot}\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ Seq\ v\isactrlsub {\isadigit{1}}\ v\isactrlsub {\isadigit{2}}}}$\isa{PS}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   742
  \isa{\mbox{}\inferrule{\mbox{}}{\mbox{{\isacharparenleft}{\kern0pt}{\isacharbrackleft}{\kern0pt}{\isacharbrackright}{\kern0pt}{\isacharcomma}{\kern0pt}\ r\isactrlsup {\isasymstar}{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ Stars\ {\isacharbrackleft}{\kern0pt}{\isacharbrackright}{\kern0pt}}}}\isa{P{\isacharbrackleft}{\kern0pt}{\isacharbrackright}{\kern0pt}}\medskip\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   743
  $\mprset{flushleft}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   744
   \inferrule
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   745
   {\isa{{\isacharparenleft}{\kern0pt}s\isactrlsub {\isadigit{1}}{\isacharcomma}{\kern0pt}\ r{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ v} \qquad
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   746
    \isa{{\isacharparenleft}{\kern0pt}s\isactrlsub {\isadigit{2}}{\isacharcomma}{\kern0pt}\ r\isactrlsup {\isasymstar}{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ Stars\ vs} \qquad
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   747
    \isa{{\isacharbar}{\kern0pt}v{\isacharbar}{\kern0pt}\ {\isasymnoteq}\ {\isacharbrackleft}{\kern0pt}{\isacharbrackright}{\kern0pt}} \\\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   748
    \isa{{\isasymnexists}s\isactrlsub {\isadigit{3}}\ s\isactrlsub {\isadigit{4}}{\isachardot}{\kern0pt}a{\isachardot}{\kern0pt}\ s\isactrlsub {\isadigit{3}}\ {\isasymnoteq}\ {\isacharbrackleft}{\kern0pt}{\isacharbrackright}{\kern0pt}\ {\isasymand}\ s\isactrlsub {\isadigit{3}}\ {\isacharat}{\kern0pt}\ s\isactrlsub {\isadigit{4}}\ {\isacharequal}{\kern0pt}\ s\isactrlsub {\isadigit{2}}\ {\isasymand}\ s\isactrlsub {\isadigit{1}}\ {\isacharat}{\kern0pt}\ s\isactrlsub {\isadigit{3}}\ {\isasymin}\ L{\isacharparenleft}{\kern0pt}r{\isacharparenright}{\kern0pt}\ {\isasymand}\ s\isactrlsub {\isadigit{4}}\ {\isasymin}\ L{\isacharparenleft}{\kern0pt}r\isactrlsup {\isasymstar}{\isacharparenright}{\kern0pt}}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   749
   {\isa{{\isacharparenleft}{\kern0pt}s\isactrlsub {\isadigit{1}}\ {\isacharat}{\kern0pt}\ s\isactrlsub {\isadigit{2}}{\isacharcomma}{\kern0pt}\ r\isactrlsup {\isasymstar}{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ Stars\ {\isacharparenleft}{\kern0pt}v\mbox{$\,$}{\isacharcolon}{\kern0pt}{\isacharcolon}{\kern0pt}\mbox{$\,$}vs{\isacharparenright}{\kern0pt}}}$\isa{P{\isasymstar}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   750
  \end{tabular}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   751
  \end{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   752
  \caption{Our inductive definition of POSIX values.}\label{POSIXrules}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   753
  \end{figure}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   754
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   755
   
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   756
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   757
  \begin{theorem}\mbox{}\smallskip\\\label{posixdeterm}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   758
  \begin{tabular}{ll}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   759
  (1) & If \isa{{\isacharparenleft}{\kern0pt}s{\isacharcomma}{\kern0pt}\ r{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ v} then \isa{s\ {\isasymin}\ L{\isacharparenleft}{\kern0pt}r{\isacharparenright}{\kern0pt}} and \isa{{\isacharbar}{\kern0pt}v{\isacharbar}{\kern0pt}\ {\isacharequal}{\kern0pt}\ s}.\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   760
  (2) & \isa{{\normalsize{}If\,}\ \mbox{{\isacharparenleft}{\kern0pt}s{\isacharcomma}{\kern0pt}\ r{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ v}\ {\normalsize \,and\,}\ \mbox{{\isacharparenleft}{\kern0pt}s{\isacharcomma}{\kern0pt}\ r{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ v{\isacharprime}{\kern0pt}}\ {\normalsize \,then\,}\ v\ {\isacharequal}{\kern0pt}\ v{\isacharprime}{\kern0pt}{\isachardot}{\kern0pt}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   761
  \end{tabular}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   762
  \end{theorem}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   763
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   764
  \begin{proof} Both by induction on the definition of \isa{{\isacharparenleft}{\kern0pt}s{\isacharcomma}{\kern0pt}\ r{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ v}. 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   765
  The second parts follows by a case analysis of \isa{{\isacharparenleft}{\kern0pt}s{\isacharcomma}{\kern0pt}\ r{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ v{\isacharprime}{\kern0pt}} and
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   766
  the first part.\qed
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   767
  \end{proof}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   768
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   769
  \noindent
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   770
  We claim that our \isa{{\isacharparenleft}{\kern0pt}s{\isacharcomma}{\kern0pt}\ r{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ v} relation captures the idea behind the four
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   771
  informal POSIX rules shown in the Introduction: Consider for example the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   772
  rules \isa{P{\isacharplus}{\kern0pt}L} and \isa{P{\isacharplus}{\kern0pt}R} where the POSIX value for a string
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   773
  and an alternative regular expression, that is \isa{{\isacharparenleft}{\kern0pt}s{\isacharcomma}{\kern0pt}\ r\isactrlsub {\isadigit{1}}\ {\isacharplus}{\kern0pt}\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}},
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   774
  is specified---it is always a \isa{Left}-value, \emph{except} when the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   775
  string to be matched is not in the language of \isa{r\isactrlsub {\isadigit{1}}}; only then it
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   776
  is a \isa{Right}-value (see the side-condition in \isa{P{\isacharplus}{\kern0pt}R}).
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   777
  Interesting is also the rule for sequence regular expressions (\isa{PS}). The first two premises state that \isa{v\isactrlsub {\isadigit{1}}} and \isa{v\isactrlsub {\isadigit{2}}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   778
  are the POSIX values for \isa{{\isacharparenleft}{\kern0pt}s\isactrlsub {\isadigit{1}}{\isacharcomma}{\kern0pt}\ r\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}} and \isa{{\isacharparenleft}{\kern0pt}s\isactrlsub {\isadigit{2}}{\isacharcomma}{\kern0pt}\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   779
  respectively. Consider now the third premise and note that the POSIX value
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   780
  of this rule should match the string \mbox{\isa{s\isactrlsub {\isadigit{1}}\ {\isacharat}{\kern0pt}\ s\isactrlsub {\isadigit{2}}}}. According to the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   781
  Longest Match Rule, we want that the \isa{s\isactrlsub {\isadigit{1}}} is the longest initial
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   782
  split of \mbox{\isa{s\isactrlsub {\isadigit{1}}\ {\isacharat}{\kern0pt}\ s\isactrlsub {\isadigit{2}}}} such that \isa{s\isactrlsub {\isadigit{2}}} is still recognised
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   783
  by \isa{r\isactrlsub {\isadigit{2}}}. Let us assume, contrary to the third premise, that there
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   784
  \emph{exist} an \isa{s\isactrlsub {\isadigit{3}}} and \isa{s\isactrlsub {\isadigit{4}}} such that \isa{s\isactrlsub {\isadigit{2}}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   785
  can be split up into a non-empty string \isa{s\isactrlsub {\isadigit{3}}} and a possibly empty
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   786
  string \isa{s\isactrlsub {\isadigit{4}}}. Moreover the longer string \isa{s\isactrlsub {\isadigit{1}}\ {\isacharat}{\kern0pt}\ s\isactrlsub {\isadigit{3}}} can be
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   787
  matched by \isa{r\isactrlsub {\isadigit{1}}} and the shorter \isa{s\isactrlsub {\isadigit{4}}} can still be
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   788
  matched by \isa{r\isactrlsub {\isadigit{2}}}. In this case \isa{s\isactrlsub {\isadigit{1}}} would \emph{not} be the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   789
  longest initial split of \mbox{\isa{s\isactrlsub {\isadigit{1}}\ {\isacharat}{\kern0pt}\ s\isactrlsub {\isadigit{2}}}} and therefore \isa{Seq\ v\isactrlsub {\isadigit{1}}\ v\isactrlsub {\isadigit{2}}} cannot be a POSIX value for \isa{{\isacharparenleft}{\kern0pt}s\isactrlsub {\isadigit{1}}\ {\isacharat}{\kern0pt}\ s\isactrlsub {\isadigit{2}}{\isacharcomma}{\kern0pt}\ r\isactrlsub {\isadigit{1}}\ {\isasymcdot}\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}}. 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   790
  The main point is that our side-condition ensures the Longest 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   791
  Match Rule is satisfied.
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   792
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   793
  A similar condition is imposed on the POSIX value in the \isa{P{\isasymstar}}-rule. Also there we want that \isa{s\isactrlsub {\isadigit{1}}} is the longest initial
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   794
  split of \isa{s\isactrlsub {\isadigit{1}}\ {\isacharat}{\kern0pt}\ s\isactrlsub {\isadigit{2}}} and furthermore the corresponding value
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   795
  \isa{v} cannot be flattened to the empty string. In effect, we require
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   796
  that in each ``iteration'' of the star, some non-empty substring needs to
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   797
  be ``chipped'' away; only in case of the empty string we accept \isa{Stars\ {\isacharbrackleft}{\kern0pt}{\isacharbrackright}{\kern0pt}} as the POSIX value. Indeed we can show that our POSIX values
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   798
  are lexical values which exclude those \isa{Stars} that contain subvalues 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   799
  that flatten to the empty string.
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   800
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   801
  \begin{lemma}\label{LVposix}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   802
  \isa{{\normalsize{}If\,}\ {\isacharparenleft}{\kern0pt}s{\isacharcomma}{\kern0pt}\ r{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ v\ {\normalsize \,then\,}\ v\ {\isasymin}\ LV\ r\ s{\isachardot}{\kern0pt}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   803
  \end{lemma}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   804
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   805
  \begin{proof}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   806
  By routine induction on \isa{{\isacharparenleft}{\kern0pt}s{\isacharcomma}{\kern0pt}\ r{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ v}.\qed 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   807
  \end{proof}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   808
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   809
  \noindent
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   810
  Next is the lemma that shows the function \isa{mkeps} calculates
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   811
  the POSIX value for the empty string and a nullable regular expression.
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   812
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   813
  \begin{lemma}\label{lemmkeps}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   814
  \isa{{\normalsize{}If\,}\ nullable\ r\ {\normalsize \,then\,}\ {\isacharparenleft}{\kern0pt}{\isacharbrackleft}{\kern0pt}{\isacharbrackright}{\kern0pt}{\isacharcomma}{\kern0pt}\ r{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ mkeps\ r{\isachardot}{\kern0pt}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   815
  \end{lemma}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   816
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   817
  \begin{proof}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   818
  By routine induction on \isa{r}.\qed 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   819
  \end{proof}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   820
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   821
  \noindent
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   822
  The central lemma for our POSIX relation is that the \isa{inj}-function
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   823
  preserves POSIX values.
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   824
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   825
  \begin{lemma}\label{Posix2}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   826
  \isa{{\normalsize{}If\,}\ {\isacharparenleft}{\kern0pt}s{\isacharcomma}{\kern0pt}\ r{\isacharbackslash}{\kern0pt}c{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ v\ {\normalsize \,then\,}\ {\isacharparenleft}{\kern0pt}c\mbox{$\,$}{\isacharcolon}{\kern0pt}{\isacharcolon}{\kern0pt}\mbox{$\,$}s{\isacharcomma}{\kern0pt}\ r{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ inj\ r\ c\ v{\isachardot}{\kern0pt}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   827
  \end{lemma}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   828
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   829
  \begin{proof}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   830
  By induction on \isa{r}. We explain two cases.
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   831
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   832
  \begin{itemize}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   833
  \item[$\bullet$] Case \isa{r\ {\isacharequal}{\kern0pt}\ r\isactrlsub {\isadigit{1}}\ {\isacharplus}{\kern0pt}\ r\isactrlsub {\isadigit{2}}}. There are
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   834
  two subcases, namely \isa{{\isacharparenleft}{\kern0pt}a{\isacharparenright}{\kern0pt}} \mbox{\isa{v\ {\isacharequal}{\kern0pt}\ Left\ v{\isacharprime}{\kern0pt}}} and \isa{{\isacharparenleft}{\kern0pt}s{\isacharcomma}{\kern0pt}\ r\isactrlsub {\isadigit{1}}{\isacharbackslash}{\kern0pt}c{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ v{\isacharprime}{\kern0pt}}; and \isa{{\isacharparenleft}{\kern0pt}b{\isacharparenright}{\kern0pt}} \isa{v\ {\isacharequal}{\kern0pt}\ Right\ v{\isacharprime}{\kern0pt}}, \isa{s\ {\isasymnotin}\ L{\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}{\isacharbackslash}{\kern0pt}c{\isacharparenright}{\kern0pt}} and \isa{{\isacharparenleft}{\kern0pt}s{\isacharcomma}{\kern0pt}\ r\isactrlsub {\isadigit{2}}{\isacharbackslash}{\kern0pt}c{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ v{\isacharprime}{\kern0pt}}. In \isa{{\isacharparenleft}{\kern0pt}a{\isacharparenright}{\kern0pt}} we
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   835
  know \isa{{\isacharparenleft}{\kern0pt}s{\isacharcomma}{\kern0pt}\ r\isactrlsub {\isadigit{1}}{\isacharbackslash}{\kern0pt}c{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ v{\isacharprime}{\kern0pt}}, from which we can infer \isa{{\isacharparenleft}{\kern0pt}c\mbox{$\,$}{\isacharcolon}{\kern0pt}{\isacharcolon}{\kern0pt}\mbox{$\,$}s{\isacharcomma}{\kern0pt}\ r\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ inj\ r\isactrlsub {\isadigit{1}}\ c\ v{\isacharprime}{\kern0pt}} by induction hypothesis and hence \isa{{\isacharparenleft}{\kern0pt}c\mbox{$\,$}{\isacharcolon}{\kern0pt}{\isacharcolon}{\kern0pt}\mbox{$\,$}s{\isacharcomma}{\kern0pt}\ r\isactrlsub {\isadigit{1}}\ {\isacharplus}{\kern0pt}\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ inj\ {\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}\ {\isacharplus}{\kern0pt}\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}\ c\ {\isacharparenleft}{\kern0pt}Left\ v{\isacharprime}{\kern0pt}{\isacharparenright}{\kern0pt}} as needed. Similarly
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   836
  in subcase \isa{{\isacharparenleft}{\kern0pt}b{\isacharparenright}{\kern0pt}} where, however, in addition we have to use
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   837
  Proposition~\ref{derprop}(2) in order to infer \isa{c\mbox{$\,$}{\isacharcolon}{\kern0pt}{\isacharcolon}{\kern0pt}\mbox{$\,$}s\ {\isasymnotin}\ L{\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}} from \isa{s\ {\isasymnotin}\ L{\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}{\isacharbackslash}{\kern0pt}c{\isacharparenright}{\kern0pt}}.\smallskip
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   838
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   839
  \item[$\bullet$] Case \isa{r\ {\isacharequal}{\kern0pt}\ r\isactrlsub {\isadigit{1}}\ {\isasymcdot}\ r\isactrlsub {\isadigit{2}}}. There are three subcases:
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   840
  
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   841
  \begin{quote}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   842
  \begin{description}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   843
  \item[\isa{{\isacharparenleft}{\kern0pt}a{\isacharparenright}{\kern0pt}}] \isa{v\ {\isacharequal}{\kern0pt}\ Left\ {\isacharparenleft}{\kern0pt}Seq\ v\isactrlsub {\isadigit{1}}\ v\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}} and \isa{nullable\ r\isactrlsub {\isadigit{1}}} 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   844
  \item[\isa{{\isacharparenleft}{\kern0pt}b{\isacharparenright}{\kern0pt}}] \isa{v\ {\isacharequal}{\kern0pt}\ Right\ v\isactrlsub {\isadigit{1}}} and \isa{nullable\ r\isactrlsub {\isadigit{1}}} 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   845
  \item[\isa{{\isacharparenleft}{\kern0pt}c{\isacharparenright}{\kern0pt}}] \isa{v\ {\isacharequal}{\kern0pt}\ Seq\ v\isactrlsub {\isadigit{1}}\ v\isactrlsub {\isadigit{2}}} and \isa{{\isasymnot}\ nullable\ r\isactrlsub {\isadigit{1}}} 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   846
  \end{description}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   847
  \end{quote}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   848
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   849
  \noindent For \isa{{\isacharparenleft}{\kern0pt}a{\isacharparenright}{\kern0pt}} we know \isa{{\isacharparenleft}{\kern0pt}s\isactrlsub {\isadigit{1}}{\isacharcomma}{\kern0pt}\ r\isactrlsub {\isadigit{1}}{\isacharbackslash}{\kern0pt}c{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ v\isactrlsub {\isadigit{1}}} and
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   850
  \isa{{\isacharparenleft}{\kern0pt}s\isactrlsub {\isadigit{2}}{\isacharcomma}{\kern0pt}\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ v\isactrlsub {\isadigit{2}}} as well as
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   851
  %
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   852
  \[\isa{{\isasymnexists}s\isactrlsub {\isadigit{3}}\ s\isactrlsub {\isadigit{4}}{\isachardot}{\kern0pt}a{\isachardot}{\kern0pt}\ s\isactrlsub {\isadigit{3}}\ {\isasymnoteq}\ {\isacharbrackleft}{\kern0pt}{\isacharbrackright}{\kern0pt}\ {\isasymand}\ s\isactrlsub {\isadigit{3}}\ {\isacharat}{\kern0pt}\ s\isactrlsub {\isadigit{4}}\ {\isacharequal}{\kern0pt}\ s\isactrlsub {\isadigit{2}}\ {\isasymand}\ s\isactrlsub {\isadigit{1}}\ {\isacharat}{\kern0pt}\ s\isactrlsub {\isadigit{3}}\ {\isasymin}\ L{\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}{\isacharbackslash}{\kern0pt}c{\isacharparenright}{\kern0pt}\ {\isasymand}\ s\isactrlsub {\isadigit{4}}\ {\isasymin}\ L{\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}}\]
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   853
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   854
  \noindent From the latter we can infer by Proposition~\ref{derprop}(2):
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   855
  %
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   856
  \[\isa{{\isasymnexists}s\isactrlsub {\isadigit{3}}\ s\isactrlsub {\isadigit{4}}{\isachardot}{\kern0pt}a{\isachardot}{\kern0pt}\ s\isactrlsub {\isadigit{3}}\ {\isasymnoteq}\ {\isacharbrackleft}{\kern0pt}{\isacharbrackright}{\kern0pt}\ {\isasymand}\ s\isactrlsub {\isadigit{3}}\ {\isacharat}{\kern0pt}\ s\isactrlsub {\isadigit{4}}\ {\isacharequal}{\kern0pt}\ s\isactrlsub {\isadigit{2}}\ {\isasymand}\ c\mbox{$\,$}{\isacharcolon}{\kern0pt}{\isacharcolon}{\kern0pt}\mbox{$\,$}s\isactrlsub {\isadigit{1}}\ {\isacharat}{\kern0pt}\ s\isactrlsub {\isadigit{3}}\ {\isasymin}\ L{\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}\ {\isasymand}\ s\isactrlsub {\isadigit{4}}\ {\isasymin}\ L{\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}}\]
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   857
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   858
  \noindent We can use the induction hypothesis for \isa{r\isactrlsub {\isadigit{1}}} to obtain
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   859
  \isa{{\isacharparenleft}{\kern0pt}c\mbox{$\,$}{\isacharcolon}{\kern0pt}{\isacharcolon}{\kern0pt}\mbox{$\,$}s\isactrlsub {\isadigit{1}}{\isacharcomma}{\kern0pt}\ r\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ inj\ r\isactrlsub {\isadigit{1}}\ c\ v\isactrlsub {\isadigit{1}}}. Putting this all together allows us to infer
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   860
  \isa{{\isacharparenleft}{\kern0pt}c\mbox{$\,$}{\isacharcolon}{\kern0pt}{\isacharcolon}{\kern0pt}\mbox{$\,$}s\isactrlsub {\isadigit{1}}\ {\isacharat}{\kern0pt}\ s\isactrlsub {\isadigit{2}}{\isacharcomma}{\kern0pt}\ r\isactrlsub {\isadigit{1}}\ {\isasymcdot}\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ Seq\ {\isacharparenleft}{\kern0pt}inj\ r\isactrlsub {\isadigit{1}}\ c\ v\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}\ v\isactrlsub {\isadigit{2}}}. The case \isa{{\isacharparenleft}{\kern0pt}c{\isacharparenright}{\kern0pt}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   861
  is similar.
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   862
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   863
  For \isa{{\isacharparenleft}{\kern0pt}b{\isacharparenright}{\kern0pt}} we know \isa{{\isacharparenleft}{\kern0pt}s{\isacharcomma}{\kern0pt}\ r\isactrlsub {\isadigit{2}}{\isacharbackslash}{\kern0pt}c{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ v\isactrlsub {\isadigit{1}}} and 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   864
  \isa{s\isactrlsub {\isadigit{1}}\ {\isacharat}{\kern0pt}\ s\isactrlsub {\isadigit{2}}\ {\isasymnotin}\ L{\isacharparenleft}{\kern0pt}{\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}{\isacharbackslash}{\kern0pt}c{\isacharparenright}{\kern0pt}\ {\isasymcdot}\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}}. From the former
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   865
  we have \isa{{\isacharparenleft}{\kern0pt}c\mbox{$\,$}{\isacharcolon}{\kern0pt}{\isacharcolon}{\kern0pt}\mbox{$\,$}s{\isacharcomma}{\kern0pt}\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ inj\ r\isactrlsub {\isadigit{2}}\ c\ v\isactrlsub {\isadigit{1}}} by induction hypothesis
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   866
  for \isa{r\isactrlsub {\isadigit{2}}}. From the latter we can infer
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   867
  %
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   868
  \[\isa{{\isasymnexists}s\isactrlsub {\isadigit{3}}\ s\isactrlsub {\isadigit{4}}{\isachardot}{\kern0pt}a{\isachardot}{\kern0pt}\ s\isactrlsub {\isadigit{3}}\ {\isasymnoteq}\ {\isacharbrackleft}{\kern0pt}{\isacharbrackright}{\kern0pt}\ {\isasymand}\ s\isactrlsub {\isadigit{3}}\ {\isacharat}{\kern0pt}\ s\isactrlsub {\isadigit{4}}\ {\isacharequal}{\kern0pt}\ c\mbox{$\,$}{\isacharcolon}{\kern0pt}{\isacharcolon}{\kern0pt}\mbox{$\,$}s\ {\isasymand}\ s\isactrlsub {\isadigit{3}}\ {\isasymin}\ L{\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}\ {\isasymand}\ s\isactrlsub {\isadigit{4}}\ {\isasymin}\ L{\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}}\]
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   869
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   870
  \noindent By Lemma~\ref{lemmkeps} we know \isa{{\isacharparenleft}{\kern0pt}{\isacharbrackleft}{\kern0pt}{\isacharbrackright}{\kern0pt}{\isacharcomma}{\kern0pt}\ r\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ mkeps\ r\isactrlsub {\isadigit{1}}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   871
  holds. Putting this all together, we can conclude with \isa{{\isacharparenleft}{\kern0pt}c\mbox{$\,$}{\isacharcolon}{\kern0pt}{\isacharcolon}{\kern0pt}\mbox{$\,$}s{\isacharcomma}{\kern0pt}\ r\isactrlsub {\isadigit{1}}\ {\isasymcdot}\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ Seq\ {\isacharparenleft}{\kern0pt}mkeps\ r\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}\ {\isacharparenleft}{\kern0pt}inj\ r\isactrlsub {\isadigit{2}}\ c\ v\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}}, as required.
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   872
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   873
  Finally suppose \isa{r\ {\isacharequal}{\kern0pt}\ r\isactrlsub {\isadigit{1}}\isactrlsup {\isasymstar}}. This case is very similar to the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   874
  sequence case, except that we need to also ensure that \isa{{\isacharbar}{\kern0pt}inj\ r\isactrlsub {\isadigit{1}}\ c\ v\isactrlsub {\isadigit{1}}{\isacharbar}{\kern0pt}\ {\isasymnoteq}\ {\isacharbrackleft}{\kern0pt}{\isacharbrackright}{\kern0pt}}. This follows from \isa{{\isacharparenleft}{\kern0pt}c\mbox{$\,$}{\isacharcolon}{\kern0pt}{\isacharcolon}{\kern0pt}\mbox{$\,$}s\isactrlsub {\isadigit{1}}{\isacharcomma}{\kern0pt}\ r\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ inj\ r\isactrlsub {\isadigit{1}}\ c\ v\isactrlsub {\isadigit{1}}}  (which in turn follows from \isa{{\isacharparenleft}{\kern0pt}s\isactrlsub {\isadigit{1}}{\isacharcomma}{\kern0pt}\ r\isactrlsub {\isadigit{1}}{\isacharbackslash}{\kern0pt}c{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ v\isactrlsub {\isadigit{1}}} and the induction hypothesis).\qed
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   875
  \end{itemize}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   876
  \end{proof}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   877
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   878
  \noindent
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   879
  With Lemma~\ref{Posix2} in place, it is completely routine to establish
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   880
  that the Sulzmann and Lu lexer satisfies our specification (returning
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   881
  the null value \isa{None} iff the string is not in the language of the regular expression,
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   882
  and returning a unique POSIX value iff the string \emph{is} in the language):
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   883
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   884
  \begin{theorem}\mbox{}\smallskip\\\label{lexercorrect}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   885
  \begin{tabular}{ll}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   886
  (1) & \isa{s\ {\isasymnotin}\ L{\isacharparenleft}{\kern0pt}r{\isacharparenright}{\kern0pt}} if and only if \isa{lexer\ r\ s\ {\isacharequal}{\kern0pt}\ None}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   887
  (2) & \isa{s\ {\isasymin}\ L{\isacharparenleft}{\kern0pt}r{\isacharparenright}{\kern0pt}} if and only if \isa{{\isasymexists}v{\isachardot}{\kern0pt}\ lexer\ r\ s\ {\isacharequal}{\kern0pt}\ Some\ v\ {\isasymand}\ {\isacharparenleft}{\kern0pt}s{\isacharcomma}{\kern0pt}\ r{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ v}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   888
  \end{tabular}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   889
  \end{theorem}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   890
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   891
  \begin{proof}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   892
  By induction on \isa{s} using Lemma~\ref{lemmkeps} and \ref{Posix2}.\qed  
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   893
  \end{proof}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   894
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   895
  \noindent In \textit{(2)} we further know by Theorem~\ref{posixdeterm} that the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   896
  value returned by the lexer must be unique.   A simple corollary 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   897
  of our two theorems is:
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   898
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   899
  \begin{corollary}\mbox{}\smallskip\\\label{lexercorrectcor}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   900
  \begin{tabular}{ll}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   901
  (1) & \isa{lexer\ r\ s\ {\isacharequal}{\kern0pt}\ None} if and only if \isa{{\isasymnexists}v{\isachardot}{\kern0pt}a{\isachardot}{\kern0pt}\ {\isacharparenleft}{\kern0pt}s{\isacharcomma}{\kern0pt}\ r{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ v}\\ 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   902
  (2) & \isa{lexer\ r\ s\ {\isacharequal}{\kern0pt}\ Some\ v} if and only if \isa{{\isacharparenleft}{\kern0pt}s{\isacharcomma}{\kern0pt}\ r{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ v}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   903
  \end{tabular}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   904
  \end{corollary}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   905
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   906
  \noindent This concludes our correctness proof. Note that we have
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   907
  not changed the algorithm of Sulzmann and Lu,\footnote{All
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   908
  deviations we introduced are harmless.} but introduced our own
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   909
  specification for what a correct result---a POSIX value---should be.
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   910
  In the next section we show that our specification coincides with
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   911
  another one given by Okui and Suzuki using a different technique.%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   912
\end{isamarkuptext}\isamarkuptrue%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   913
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   914
\isadelimdocument
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   915
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   916
\endisadelimdocument
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   917
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   918
\isatagdocument
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   919
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   920
\isamarkupsection{Ordering of Values according to Okui and Suzuki%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   921
}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   922
\isamarkuptrue%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   923
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   924
\endisatagdocument
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   925
{\isafolddocument}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   926
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   927
\isadelimdocument
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   928
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   929
\endisadelimdocument
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   930
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   931
\begin{isamarkuptext}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   932
While in the previous section we have defined POSIX values directly
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   933
  in terms of a ternary relation (see inference rules in Figure~\ref{POSIXrules}),
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   934
  Sulzmann and Lu took a different approach in \cite{Sulzmann2014}:
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   935
  they introduced an ordering for values and identified POSIX values
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   936
  as the maximal elements.  An extended version of \cite{Sulzmann2014}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   937
  is available at the website of its first author; this includes more
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   938
  details of their proofs, but which are evidently not in final form
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   939
  yet. Unfortunately, we were not able to verify claims that their
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   940
  ordering has properties such as being transitive or having maximal
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   941
  elements. 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   942
 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   943
  Okui and Suzuki \cite{OkuiSuzuki2010,OkuiSuzukiTech} described
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   944
  another ordering of values, which they use to establish the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   945
  correctness of their automata-based algorithm for POSIX matching.
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   946
  Their ordering resembles some aspects of the one given by Sulzmann
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   947
  and Lu, but overall is quite different. To begin with, Okui and
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   948
  Suzuki identify POSIX values as minimal, rather than maximal,
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   949
  elements in their ordering. A more substantial difference is that
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   950
  the ordering by Okui and Suzuki uses \emph{positions} in order to
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   951
  identify and compare subvalues. Positions are lists of natural
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   952
  numbers. This allows them to quite naturally formalise the Longest
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   953
  Match and Priority rules of the informal POSIX standard.  Consider
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   954
  for example the value \isa{v}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   955
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   956
  \begin{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   957
  \isa{v\ {\isasymequiv}\ Stars\ {\isacharbrackleft}{\kern0pt}Seq\ {\isacharparenleft}{\kern0pt}Char\ x{\isacharparenright}{\kern0pt}\ {\isacharparenleft}{\kern0pt}Char\ y{\isacharparenright}{\kern0pt}{\isacharcomma}{\kern0pt}\ Char\ z{\isacharbrackright}{\kern0pt}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   958
  \end{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   959
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   960
  \noindent
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   961
  At position \isa{{\isacharbrackleft}{\kern0pt}{\isadigit{0}}{\isacharcomma}{\kern0pt}{\isadigit{1}}{\isacharbrackright}{\kern0pt}} of this value is the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   962
  subvalue \isa{Char\ y} and at position \isa{{\isacharbrackleft}{\kern0pt}{\isadigit{1}}{\isacharbrackright}{\kern0pt}} the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   963
  subvalue \isa{Char\ z}.  At the `root' position, or empty list
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   964
  \isa{{\isacharbrackleft}{\kern0pt}{\isacharbrackright}{\kern0pt}}, is the whole value \isa{v}. Positions such as \isa{{\isacharbrackleft}{\kern0pt}{\isadigit{0}}{\isacharcomma}{\kern0pt}{\isadigit{1}}{\isacharcomma}{\kern0pt}{\isadigit{0}}{\isacharbrackright}{\kern0pt}} or \isa{{\isacharbrackleft}{\kern0pt}{\isadigit{2}}{\isacharbrackright}{\kern0pt}} are outside of \isa{v}. If it exists, the subvalue of \isa{v} at a position \isa{p}, written \isa{v\mbox{$\downharpoonleft$}\isactrlbsub p\isactrlesub }, can be recursively defined by
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   965
  
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   966
  \begin{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   967
  \begin{tabular}{r@ {\hspace{0mm}}lcl}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   968
  \isa{v} &  \isa{{\isasymdownharpoonleft}\isactrlbsub {\isacharbrackleft}{\kern0pt}{\isacharbrackright}{\kern0pt}\isactrlesub } & \isa{{\isasymequiv}}& \isa{v}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   969
  \isa{Left\ v} & \isa{{\isasymdownharpoonleft}\isactrlbsub {\isadigit{0}}{\isacharcolon}{\kern0pt}{\isacharcolon}{\kern0pt}ps\isactrlesub } & \isa{{\isasymequiv}}& \isa{v\mbox{$\downharpoonleft$}\isactrlbsub ps\isactrlesub }\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   970
  \isa{Right\ v} & \isa{{\isasymdownharpoonleft}\isactrlbsub {\isadigit{1}}{\isacharcolon}{\kern0pt}{\isacharcolon}{\kern0pt}ps\isactrlesub } & \isa{{\isasymequiv}} & 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   971
  \isa{v\mbox{$\downharpoonleft$}\isactrlbsub ps\isactrlesub }\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   972
  \isa{Seq\ v\isactrlsub {\isadigit{1}}\ v\isactrlsub {\isadigit{2}}} & \isa{{\isasymdownharpoonleft}\isactrlbsub {\isadigit{0}}{\isacharcolon}{\kern0pt}{\isacharcolon}{\kern0pt}ps\isactrlesub } & \isa{{\isasymequiv}} & 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   973
  \isa{v\isactrlsub {\isadigit{1}}\mbox{$\downharpoonleft$}\isactrlbsub ps\isactrlesub } \\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   974
  \isa{Seq\ v\isactrlsub {\isadigit{1}}\ v\isactrlsub {\isadigit{2}}} & \isa{{\isasymdownharpoonleft}\isactrlbsub {\isadigit{1}}{\isacharcolon}{\kern0pt}{\isacharcolon}{\kern0pt}ps\isactrlesub }
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   975
  & \isa{{\isasymequiv}} & 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   976
  \isa{v\isactrlsub {\isadigit{2}}\mbox{$\downharpoonleft$}\isactrlbsub ps\isactrlesub } \\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   977
  \isa{Stars\ vs} & \isa{{\isasymdownharpoonleft}\isactrlbsub n{\isacharcolon}{\kern0pt}{\isacharcolon}{\kern0pt}ps\isactrlesub } & \isa{{\isasymequiv}}& \isa{vs\ensuremath{_{[\mathit{n}]}}\mbox{$\downharpoonleft$}\isactrlbsub ps\isactrlesub }\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   978
  \end{tabular} 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   979
  \end{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   980
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   981
  \noindent In the last clause we use Isabelle's notation \isa{vs\ensuremath{_{[\mathit{n}]}}} for the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   982
  \isa{n}th element in a list.  The set of positions inside a value \isa{v},
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   983
  written \isa{Pos\ v}, is given by 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   984
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   985
  \begin{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   986
  \begin{tabular}{lcl}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   987
  \isa{Pos\ {\isacharparenleft}{\kern0pt}Empty{\isacharparenright}{\kern0pt}} & \isa{{\isasymequiv}} & \isa{{\isacharbraceleft}{\kern0pt}{\isacharbrackleft}{\kern0pt}{\isacharbrackright}{\kern0pt}{\isacharbraceright}{\kern0pt}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   988
  \isa{Pos\ {\isacharparenleft}{\kern0pt}Char\ c{\isacharparenright}{\kern0pt}} & \isa{{\isasymequiv}} & \isa{{\isacharbraceleft}{\kern0pt}{\isacharbrackleft}{\kern0pt}{\isacharbrackright}{\kern0pt}{\isacharbraceright}{\kern0pt}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   989
  \isa{Pos\ {\isacharparenleft}{\kern0pt}Left\ v{\isacharparenright}{\kern0pt}} & \isa{{\isasymequiv}} & \isa{{\isacharbraceleft}{\kern0pt}{\isacharbrackleft}{\kern0pt}{\isacharbrackright}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isasymunion}\ {\isacharbraceleft}{\kern0pt}{\isadigit{0}}\mbox{$\,$}{\isacharcolon}{\kern0pt}{\isacharcolon}{\kern0pt}\mbox{$\,$}ps\ \mbox{\boldmath$\mid$}\ ps\ {\isasymin}\ Pos\ v{\isacharbraceright}{\kern0pt}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   990
  \isa{Pos\ {\isacharparenleft}{\kern0pt}Right\ v{\isacharparenright}{\kern0pt}} & \isa{{\isasymequiv}} & \isa{{\isacharbraceleft}{\kern0pt}{\isacharbrackleft}{\kern0pt}{\isacharbrackright}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isasymunion}\ {\isacharbraceleft}{\kern0pt}{\isadigit{1}}\mbox{$\,$}{\isacharcolon}{\kern0pt}{\isacharcolon}{\kern0pt}\mbox{$\,$}ps\ \mbox{\boldmath$\mid$}\ ps\ {\isasymin}\ Pos\ v{\isacharbraceright}{\kern0pt}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   991
  \isa{Pos\ {\isacharparenleft}{\kern0pt}Seq\ v\isactrlsub {\isadigit{1}}\ v\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   992
  & \isa{{\isasymequiv}} 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   993
  & \isa{{\isacharbraceleft}{\kern0pt}{\isacharbrackleft}{\kern0pt}{\isacharbrackright}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isasymunion}\ {\isacharbraceleft}{\kern0pt}{\isadigit{0}}\mbox{$\,$}{\isacharcolon}{\kern0pt}{\isacharcolon}{\kern0pt}\mbox{$\,$}ps\ \mbox{\boldmath$\mid$}\ ps\ {\isasymin}\ Pos\ v\isactrlsub {\isadigit{1}}{\isacharbraceright}{\kern0pt}\ {\isasymunion}\ {\isacharbraceleft}{\kern0pt}{\isadigit{1}}\mbox{$\,$}{\isacharcolon}{\kern0pt}{\isacharcolon}{\kern0pt}\mbox{$\,$}ps\ \mbox{\boldmath$\mid$}\ ps\ {\isasymin}\ Pos\ v\isactrlsub {\isadigit{2}}{\isacharbraceright}{\kern0pt}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   994
  \isa{Pos\ {\isacharparenleft}{\kern0pt}Stars\ vs{\isacharparenright}{\kern0pt}} & \isa{{\isasymequiv}} & \isa{{\isacharbraceleft}{\kern0pt}{\isacharbrackleft}{\kern0pt}{\isacharbrackright}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isasymunion}\ {\isacharparenleft}{\kern0pt}{\isasymUnion}n\ {\isacharless}{\kern0pt}\ len\ vs\ {\isacharbraceleft}{\kern0pt}n\mbox{$\,$}{\isacharcolon}{\kern0pt}{\isacharcolon}{\kern0pt}\mbox{$\,$}ps\ \mbox{\boldmath$\mid$}\ ps\ {\isasymin}\ Pos\ vs\ensuremath{_{[\mathit{n}]}}{\isacharbraceright}{\kern0pt}{\isacharparenright}{\kern0pt}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   995
  \end{tabular}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   996
  \end{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   997
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   998
  \noindent 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
   999
  whereby \isa{len} in the last clause stands for the length of a list. Clearly
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1000
  for every position inside a value there exists a subvalue at that position.
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1001
 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1002
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1003
  To help understanding the ordering of Okui and Suzuki, consider again 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1004
  the earlier value
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1005
  \isa{v} and compare it with the following \isa{w}:
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1006
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1007
  \begin{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1008
  \begin{tabular}{l}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1009
  \isa{v\ {\isasymequiv}\ Stars\ {\isacharbrackleft}{\kern0pt}Seq\ {\isacharparenleft}{\kern0pt}Char\ x{\isacharparenright}{\kern0pt}\ {\isacharparenleft}{\kern0pt}Char\ y{\isacharparenright}{\kern0pt}{\isacharcomma}{\kern0pt}\ Char\ z{\isacharbrackright}{\kern0pt}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1010
  \isa{w\ {\isasymequiv}\ Stars\ {\isacharbrackleft}{\kern0pt}Char\ x{\isacharcomma}{\kern0pt}\ Char\ y{\isacharcomma}{\kern0pt}\ Char\ z{\isacharbrackright}{\kern0pt}}  
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1011
  \end{tabular}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1012
  \end{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1013
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1014
  \noindent Both values match the string \isa{xyz}, that means if
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1015
  we flatten these values at their respective root position, we obtain
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1016
  \isa{xyz}. However, at position \isa{{\isacharbrackleft}{\kern0pt}{\isadigit{0}}{\isacharbrackright}{\kern0pt}}, \isa{v} matches
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1017
  \isa{xy} whereas \isa{w} matches only the shorter \isa{x}. So
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1018
  according to the Longest Match Rule, we should prefer \isa{v},
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1019
  rather than \isa{w} as POSIX value for string \isa{xyz} (and
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1020
  corresponding regular expression). In order to
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1021
  formalise this idea, Okui and Suzuki introduce a measure for
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1022
  subvalues at position \isa{p}, called the \emph{norm} of \isa{v}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1023
  at position \isa{p}. We can define this measure in Isabelle as an
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1024
  integer as follows
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1025
  
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1026
  \begin{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1027
  \isa{{\isasymparallel}v{\isasymparallel}\isactrlbsub p\isactrlesub \ {\isasymequiv}\ \textrm{if}\ p\ {\isasymin}\ Pos\ v\ \textrm{then}\ len\ {\isacharbar}{\kern0pt}v\mbox{$\downharpoonleft$}\isactrlbsub p\isactrlesub {\isacharbar}{\kern0pt}\ \textrm{else}\ {\isacharminus}{\kern0pt}\ {\isadigit{1}}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1028
  \end{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1029
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1030
  \noindent where we take the length of the flattened value at
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1031
  position \isa{p}, provided the position is inside \isa{v}; if
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1032
  not, then the norm is \isa{{\isacharminus}{\kern0pt}{\isadigit{1}}}. The default for outside
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1033
  positions is crucial for the POSIX requirement of preferring a
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1034
  \isa{Left}-value over a \isa{Right}-value (if they can match the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1035
  same string---see the Priority Rule from the Introduction). For this
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1036
  consider
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1037
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1038
  \begin{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1039
  \isa{v\ {\isasymequiv}\ Left\ {\isacharparenleft}{\kern0pt}Char\ x{\isacharparenright}{\kern0pt}} \qquad and \qquad \isa{w\ {\isasymequiv}\ Right\ {\isacharparenleft}{\kern0pt}Char\ x{\isacharparenright}{\kern0pt}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1040
  \end{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1041
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1042
  \noindent Both values match \isa{x}. At position \isa{{\isacharbrackleft}{\kern0pt}{\isadigit{0}}{\isacharbrackright}{\kern0pt}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1043
  the norm of \isa{v} is \isa{{\isadigit{1}}} (the subvalue matches \isa{x}),
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1044
  but the norm of \isa{w} is \isa{{\isacharminus}{\kern0pt}{\isadigit{1}}} (the position is outside
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1045
  \isa{w} according to how we defined the `inside' positions of
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1046
  \isa{Left}- and \isa{Right}-values).  Of course at position
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1047
  \isa{{\isacharbrackleft}{\kern0pt}{\isadigit{1}}{\isacharbrackright}{\kern0pt}}, the norms \isa{{\isasymparallel}v{\isasymparallel}\isactrlbsub {\isacharbrackleft}{\kern0pt}{\isadigit{1}}{\isacharbrackright}{\kern0pt}\isactrlesub } and \isa{{\isasymparallel}w{\isasymparallel}\isactrlbsub {\isacharbrackleft}{\kern0pt}{\isadigit{1}}{\isacharbrackright}{\kern0pt}\isactrlesub } are reversed, but the point is that subvalues
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1048
  will be analysed according to lexicographically ordered
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1049
  positions. According to this ordering, the position \isa{{\isacharbrackleft}{\kern0pt}{\isadigit{0}}{\isacharbrackright}{\kern0pt}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1050
  takes precedence over \isa{{\isacharbrackleft}{\kern0pt}{\isadigit{1}}{\isacharbrackright}{\kern0pt}} and thus also \isa{v} will be 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1051
  preferred over \isa{w}.  The lexicographic ordering of positions, written
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1052
  \isa{\underline{\hspace{2mm}}\ {\isasymprec}\isactrlbsub lex\isactrlesub \ \underline{\hspace{2mm}}}, can be conveniently formalised
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1053
  by three inference rules
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1054
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1055
  \begin{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1056
  \begin{tabular}{ccc}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1057
  \isa{\mbox{}\inferrule{\mbox{}}{\mbox{{\isacharbrackleft}{\kern0pt}{\isacharbrackright}{\kern0pt}\ {\isasymprec}\isactrlbsub lex\isactrlesub \ p\mbox{$\,$}{\isacharcolon}{\kern0pt}{\isacharcolon}{\kern0pt}\mbox{$\,$}ps}}}\hspace{1cm} &
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1058
  \isa{\mbox{}\inferrule{\mbox{p\isactrlsub {\isadigit{1}}\ {\isacharless}{\kern0pt}\ p\isactrlsub {\isadigit{2}}}}{\mbox{p\isactrlsub {\isadigit{1}}\mbox{$\,$}{\isacharcolon}{\kern0pt}{\isacharcolon}{\kern0pt}\mbox{$\,$}ps\isactrlsub {\isadigit{1}}\ {\isasymprec}\isactrlbsub lex\isactrlesub \ p\isactrlsub {\isadigit{2}}\mbox{$\,$}{\isacharcolon}{\kern0pt}{\isacharcolon}{\kern0pt}\mbox{$\,$}ps\isactrlsub {\isadigit{2}}}}}\hspace{1cm} &
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1059
  \isa{\mbox{}\inferrule{\mbox{ps\isactrlsub {\isadigit{1}}\ {\isasymprec}\isactrlbsub lex\isactrlesub \ ps\isactrlsub {\isadigit{2}}}}{\mbox{p\mbox{$\,$}{\isacharcolon}{\kern0pt}{\isacharcolon}{\kern0pt}\mbox{$\,$}ps\isactrlsub {\isadigit{1}}\ {\isasymprec}\isactrlbsub lex\isactrlesub \ p\mbox{$\,$}{\isacharcolon}{\kern0pt}{\isacharcolon}{\kern0pt}\mbox{$\,$}ps\isactrlsub {\isadigit{2}}}}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1060
  \end{tabular}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1061
  \end{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1062
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1063
  With the norm and lexicographic order in place,
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1064
  we can state the key definition of Okui and Suzuki
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1065
  \cite{OkuiSuzuki2010}: a value \isa{v\isactrlsub {\isadigit{1}}} is \emph{smaller at position \isa{p}} than
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1066
  \isa{v\isactrlsub {\isadigit{2}}}, written \isa{v\isactrlsub {\isadigit{1}}\ {\isasymprec}\isactrlbsub p\isactrlesub \ v\isactrlsub {\isadigit{2}}}, 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1067
  if and only if  $(i)$ the norm at position \isa{p} is
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1068
  greater in \isa{v\isactrlsub {\isadigit{1}}} (that is the string \isa{{\isacharbar}{\kern0pt}v\isactrlsub {\isadigit{1}}\mbox{$\downharpoonleft$}\isactrlbsub p\isactrlesub {\isacharbar}{\kern0pt}} is longer 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1069
  than \isa{{\isacharbar}{\kern0pt}v\isactrlsub {\isadigit{2}}\mbox{$\downharpoonleft$}\isactrlbsub p\isactrlesub {\isacharbar}{\kern0pt}}) and $(ii)$ all subvalues at 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1070
  positions that are inside \isa{v\isactrlsub {\isadigit{1}}} or \isa{v\isactrlsub {\isadigit{2}}} and that are
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1071
  lexicographically smaller than \isa{p}, we have the same norm, namely
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1072
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1073
 \begin{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1074
 \begin{tabular}{c}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1075
 \isa{v\isactrlsub {\isadigit{1}}\ {\isasymprec}\isactrlbsub p\isactrlesub \ v\isactrlsub {\isadigit{2}}} 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1076
 \isa{{\isasymequiv}} 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1077
 $\begin{cases}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1078
 (i) & \isa{{\isasymparallel}v\isactrlsub {\isadigit{2}}{\isasymparallel}\isactrlbsub p\isactrlesub \ {\isacharless}{\kern0pt}\ {\isasymparallel}v\isactrlsub {\isadigit{1}}{\isasymparallel}\isactrlbsub p\isactrlesub }   \quad\text{and}\smallskip \\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1079
 (ii) & \isa{{\isasymforall}q{\isasymin}Pos\ v\isactrlsub {\isadigit{1}}\ {\isasymunion}\ Pos\ v\isactrlsub {\isadigit{2}}{\isachardot}{\kern0pt}\ q\ {\isasymprec}\isactrlbsub lex\isactrlesub \ p\ {\isasymlongrightarrow}\ {\isasymparallel}v\isactrlsub {\isadigit{1}}{\isasymparallel}\isactrlbsub q\isactrlesub \ {\isacharequal}{\kern0pt}\ {\isasymparallel}v\isactrlsub {\isadigit{2}}{\isasymparallel}\isactrlbsub q\isactrlesub }
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1080
 \end{cases}$
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1081
 \end{tabular}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1082
 \end{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1083
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1084
 \noindent The position \isa{p} in this definition acts as the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1085
  \emph{first distinct position} of \isa{v\isactrlsub {\isadigit{1}}} and \isa{v\isactrlsub {\isadigit{2}}}, where both values match strings of different length
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1086
  \cite{OkuiSuzuki2010}.  Since at \isa{p} the values \isa{v\isactrlsub {\isadigit{1}}} and \isa{v\isactrlsub {\isadigit{2}}} match different strings, the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1087
  ordering is irreflexive. Derived from the definition above
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1088
  are the following two orderings:
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1089
  
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1090
  \begin{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1091
  \begin{tabular}{l}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1092
  \isa{v\isactrlsub {\isadigit{1}}\ {\isasymprec}\ v\isactrlsub {\isadigit{2}}\ {\isasymequiv}\ {\isasymexists}p{\isachardot}{\kern0pt}\ v\isactrlsub {\isadigit{1}}\ {\isasymprec}\isactrlbsub p\isactrlesub \ v\isactrlsub {\isadigit{2}}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1093
  \isa{v\isactrlsub {\isadigit{1}}\ \mbox{$\preccurlyeq$}\ v\isactrlsub {\isadigit{2}}\ {\isasymequiv}\ v\isactrlsub {\isadigit{1}}\ {\isasymprec}\ v\isactrlsub {\isadigit{2}}\ {\isasymor}\ v\isactrlsub {\isadigit{1}}\ {\isacharequal}{\kern0pt}\ v\isactrlsub {\isadigit{2}}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1094
  \end{tabular}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1095
  \end{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1096
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1097
 While we encountered a number of obstacles for establishing properties like
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1098
 transitivity for the ordering of Sulzmann and Lu (and which we failed
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1099
 to overcome), it is relatively straightforward to establish this
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1100
 property for the orderings
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1101
 \isa{\underline{\hspace{2mm}}\ {\isasymprec}\ \underline{\hspace{2mm}}} and \isa{\underline{\hspace{2mm}}\ \mbox{$\preccurlyeq$}\ \underline{\hspace{2mm}}}  
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1102
 by Okui and Suzuki.
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1103
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1104
 \begin{lemma}[Transitivity]\label{transitivity}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1105
 \isa{{\normalsize{}If\,}\ \mbox{v\isactrlsub {\isadigit{1}}\ {\isasymprec}\ v\isactrlsub {\isadigit{2}}}\ {\normalsize \,and\,}\ \mbox{v\isactrlsub {\isadigit{2}}\ {\isasymprec}\ v\isactrlsub {\isadigit{3}}}\ {\normalsize \,then\,}\ v\isactrlsub {\isadigit{1}}\ {\isasymprec}\ v\isactrlsub {\isadigit{3}}{\isachardot}{\kern0pt}} 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1106
 \end{lemma}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1107
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1108
 \begin{proof} From the assumption we obtain two positions \isa{p}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1109
 and \isa{q}, where the values \isa{v\isactrlsub {\isadigit{1}}} and \isa{v\isactrlsub {\isadigit{2}}} (respectively \isa{v\isactrlsub {\isadigit{2}}} and \isa{v\isactrlsub {\isadigit{3}}}) are `distinct'.  Since \isa{{\isasymprec}\isactrlbsub lex\isactrlesub } is trichotomous, we need to consider
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1110
 three cases, namely \isa{p\ {\isacharequal}{\kern0pt}\ q}, \isa{p\ {\isasymprec}\isactrlbsub lex\isactrlesub \ q} and
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1111
 \isa{q\ {\isasymprec}\isactrlbsub lex\isactrlesub \ p}. Let us look at the first case.  Clearly
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1112
 \isa{{\isasymparallel}v\isactrlsub {\isadigit{2}}{\isasymparallel}\isactrlbsub p\isactrlesub \ {\isacharless}{\kern0pt}\ {\isasymparallel}v\isactrlsub {\isadigit{1}}{\isasymparallel}\isactrlbsub p\isactrlesub } and \isa{{\isasymparallel}v\isactrlsub {\isadigit{3}}{\isasymparallel}\isactrlbsub p\isactrlesub \ {\isacharless}{\kern0pt}\ {\isasymparallel}v\isactrlsub {\isadigit{2}}{\isasymparallel}\isactrlbsub p\isactrlesub } imply \isa{{\isasymparallel}v\isactrlsub {\isadigit{3}}{\isasymparallel}\isactrlbsub p\isactrlesub \ {\isacharless}{\kern0pt}\ {\isasymparallel}v\isactrlsub {\isadigit{1}}{\isasymparallel}\isactrlbsub p\isactrlesub }.  It remains to show
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1113
 that for a \isa{p{\isacharprime}{\kern0pt}\ {\isasymin}\ Pos\ v\isactrlsub {\isadigit{1}}\ {\isasymunion}\ Pos\ v\isactrlsub {\isadigit{3}}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1114
 with \isa{p{\isacharprime}{\kern0pt}\ {\isasymprec}\isactrlbsub lex\isactrlesub \ p} that \isa{{\isasymparallel}v\isactrlsub {\isadigit{1}}{\isasymparallel}\isactrlbsub p{\isacharprime}{\kern0pt}\isactrlesub \ {\isacharequal}{\kern0pt}\ {\isasymparallel}v\isactrlsub {\isadigit{3}}{\isasymparallel}\isactrlbsub p{\isacharprime}{\kern0pt}\isactrlesub } holds.  Suppose \isa{p{\isacharprime}{\kern0pt}\ {\isasymin}\ Pos\ v\isactrlsub {\isadigit{1}}}, then we can infer from the first assumption that \isa{{\isasymparallel}v\isactrlsub {\isadigit{1}}{\isasymparallel}\isactrlbsub p{\isacharprime}{\kern0pt}\isactrlesub \ {\isacharequal}{\kern0pt}\ {\isasymparallel}v\isactrlsub {\isadigit{2}}{\isasymparallel}\isactrlbsub p{\isacharprime}{\kern0pt}\isactrlesub }.  But this means
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1115
 that \isa{p{\isacharprime}{\kern0pt}} must be in \isa{Pos\ v\isactrlsub {\isadigit{2}}} too (the norm
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1116
 cannot be \isa{{\isacharminus}{\kern0pt}{\isadigit{1}}} given \isa{p{\isacharprime}{\kern0pt}\ {\isasymin}\ Pos\ v\isactrlsub {\isadigit{1}}}).  
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1117
 Hence we can use the second assumption and
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1118
 infer \isa{{\isasymparallel}v\isactrlsub {\isadigit{2}}{\isasymparallel}\isactrlbsub p{\isacharprime}{\kern0pt}\isactrlesub \ {\isacharequal}{\kern0pt}\ {\isasymparallel}v\isactrlsub {\isadigit{3}}{\isasymparallel}\isactrlbsub p{\isacharprime}{\kern0pt}\isactrlesub },
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1119
 which concludes this case with \isa{v\isactrlsub {\isadigit{1}}\ {\isasymprec}\ v\isactrlsub {\isadigit{3}}}.  The reasoning in the other cases is similar.\qed
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1120
 \end{proof}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1121
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1122
 \noindent 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1123
 The proof for $\preccurlyeq$ is similar and omitted.
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1124
 It is also straightforward to show that \isa{{\isasymprec}} and
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1125
 $\preccurlyeq$ are partial orders.  Okui and Suzuki furthermore show that they
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1126
 are linear orderings for lexical values \cite{OkuiSuzuki2010} of a given
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1127
 regular expression and given string, but we have not formalised this in Isabelle. It is
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1128
 not essential for our results. What we are going to show below is
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1129
 that for a given \isa{r} and \isa{s}, the orderings have a unique
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1130
 minimal element on the set \isa{LV\ r\ s}, which is the POSIX value
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1131
 we defined in the previous section. We start with two properties that
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1132
 show how the length of a flattened value relates to the \isa{{\isasymprec}}-ordering.
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1133
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1134
 \begin{proposition}\mbox{}\smallskip\\\label{ordlen}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1135
 \begin{tabular}{@ {}ll}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1136
 (1) &
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1137
 \isa{{\normalsize{}If\,}\ v\isactrlsub {\isadigit{1}}\ {\isasymprec}\ v\isactrlsub {\isadigit{2}}\ {\normalsize \,then\,}\ len\ {\isacharbar}{\kern0pt}v\isactrlsub {\isadigit{2}}{\isacharbar}{\kern0pt}\ {\isasymle}\ len\ {\isacharbar}{\kern0pt}v\isactrlsub {\isadigit{1}}{\isacharbar}{\kern0pt}{\isachardot}{\kern0pt}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1138
 (2) &
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1139
 \isa{{\normalsize{}If\,}\ len\ {\isacharbar}{\kern0pt}v\isactrlsub {\isadigit{2}}{\isacharbar}{\kern0pt}\ {\isacharless}{\kern0pt}\ len\ {\isacharbar}{\kern0pt}v\isactrlsub {\isadigit{1}}{\isacharbar}{\kern0pt}\ {\normalsize \,then\,}\ v\isactrlsub {\isadigit{1}}\ {\isasymprec}\ v\isactrlsub {\isadigit{2}}{\isachardot}{\kern0pt}} 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1140
 \end{tabular} 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1141
 \end{proposition}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1142
 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1143
 \noindent Both properties follow from the definition of the ordering. Note that
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1144
 \textit{(2)} entails that a value, say \isa{v\isactrlsub {\isadigit{2}}}, whose underlying 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1145
 string is a strict prefix of another flattened value, say \isa{v\isactrlsub {\isadigit{1}}}, then
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1146
 \isa{v\isactrlsub {\isadigit{1}}} must be smaller than \isa{v\isactrlsub {\isadigit{2}}}. For our proofs it
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1147
 will be useful to have the following properties---in each case the underlying strings 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1148
 of the compared values are the same: 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1149
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1150
  \begin{proposition}\mbox{}\smallskip\\\label{ordintros}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1151
  \begin{tabular}{ll}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1152
  \textit{(1)} & 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1153
  \isa{{\normalsize{}If\,}\ {\isacharbar}{\kern0pt}v\isactrlsub {\isadigit{1}}{\isacharbar}{\kern0pt}\ {\isacharequal}{\kern0pt}\ {\isacharbar}{\kern0pt}v\isactrlsub {\isadigit{2}}{\isacharbar}{\kern0pt}\ {\normalsize \,then\,}\ Left\ v\isactrlsub {\isadigit{1}}\ {\isasymprec}\ Right\ v\isactrlsub {\isadigit{2}}{\isachardot}{\kern0pt}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1154
  \textit{(2)} & If
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1155
  \isa{{\isacharbar}{\kern0pt}v\isactrlsub {\isadigit{1}}{\isacharbar}{\kern0pt}\ {\isacharequal}{\kern0pt}\ {\isacharbar}{\kern0pt}v\isactrlsub {\isadigit{2}}{\isacharbar}{\kern0pt}} \;then\;
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1156
  \isa{Left\ v\isactrlsub {\isadigit{1}}\ {\isasymprec}\ Left\ v\isactrlsub {\isadigit{2}}} \;iff\;
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1157
  \isa{v\isactrlsub {\isadigit{1}}\ {\isasymprec}\ v\isactrlsub {\isadigit{2}}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1158
  \textit{(3)} & If
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1159
  \isa{{\isacharbar}{\kern0pt}v\isactrlsub {\isadigit{1}}{\isacharbar}{\kern0pt}\ {\isacharequal}{\kern0pt}\ {\isacharbar}{\kern0pt}v\isactrlsub {\isadigit{2}}{\isacharbar}{\kern0pt}} \;then\;
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1160
  \isa{Right\ v\isactrlsub {\isadigit{1}}\ {\isasymprec}\ Right\ v\isactrlsub {\isadigit{2}}} \;iff\;
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1161
  \isa{v\isactrlsub {\isadigit{1}}\ {\isasymprec}\ v\isactrlsub {\isadigit{2}}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1162
  \textit{(4)} & If
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1163
  \isa{{\isacharbar}{\kern0pt}v\isactrlsub {\isadigit{2}}{\isacharbar}{\kern0pt}\ {\isacharequal}{\kern0pt}\ {\isacharbar}{\kern0pt}w\isactrlsub {\isadigit{2}}{\isacharbar}{\kern0pt}} \;then\;
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1164
  \isa{Seq\ v\ v\isactrlsub {\isadigit{2}}\ {\isasymprec}\ Seq\ v\ w\isactrlsub {\isadigit{2}}} \;iff\;
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1165
  \isa{v\isactrlsub {\isadigit{2}}\ {\isasymprec}\ w\isactrlsub {\isadigit{2}}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1166
  \textit{(5)} & If
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1167
  \isa{{\isacharbar}{\kern0pt}v\isactrlsub {\isadigit{1}}{\isacharbar}{\kern0pt}\ {\isacharat}{\kern0pt}\ {\isacharbar}{\kern0pt}v\isactrlsub {\isadigit{2}}{\isacharbar}{\kern0pt}\ {\isacharequal}{\kern0pt}\ {\isacharbar}{\kern0pt}w\isactrlsub {\isadigit{1}}{\isacharbar}{\kern0pt}\ {\isacharat}{\kern0pt}\ {\isacharbar}{\kern0pt}w\isactrlsub {\isadigit{2}}{\isacharbar}{\kern0pt}} \;and\;
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1168
  \isa{v\isactrlsub {\isadigit{1}}\ {\isasymprec}\ w\isactrlsub {\isadigit{1}}} \;then\;
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1169
  \isa{Seq\ v\isactrlsub {\isadigit{1}}\ v\isactrlsub {\isadigit{2}}\ {\isasymprec}\ Seq\ w\isactrlsub {\isadigit{1}}\ w\isactrlsub {\isadigit{2}}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1170
  \textit{(6)} & If
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1171
  \isa{{\isacharbar}{\kern0pt}vs\isactrlsub {\isadigit{1}}{\isacharbar}{\kern0pt}\ {\isacharequal}{\kern0pt}\ {\isacharbar}{\kern0pt}vs\isactrlsub {\isadigit{2}}{\isacharbar}{\kern0pt}} \;then\;
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1172
  \isa{Stars\ {\isacharparenleft}{\kern0pt}vs\ {\isacharat}{\kern0pt}\ vs\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}\ {\isasymprec}\ Stars\ {\isacharparenleft}{\kern0pt}vs\ {\isacharat}{\kern0pt}\ vs\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}} \;iff\;
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1173
  \isa{Stars\ vs\isactrlsub {\isadigit{1}}\ {\isasymprec}\ Stars\ vs\isactrlsub {\isadigit{2}}}\\  
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1174
  
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1175
  \textit{(7)} & If
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1176
  \isa{{\isacharbar}{\kern0pt}v\isactrlsub {\isadigit{1}}\mbox{$\,$}{\isacharcolon}{\kern0pt}{\isacharcolon}{\kern0pt}\mbox{$\,$}vs\isactrlsub {\isadigit{1}}{\isacharbar}{\kern0pt}\ {\isacharequal}{\kern0pt}\ {\isacharbar}{\kern0pt}v\isactrlsub {\isadigit{2}}\mbox{$\,$}{\isacharcolon}{\kern0pt}{\isacharcolon}{\kern0pt}\mbox{$\,$}vs\isactrlsub {\isadigit{2}}{\isacharbar}{\kern0pt}} \;and\;
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1177
  \isa{v\isactrlsub {\isadigit{1}}\ {\isasymprec}\ v\isactrlsub {\isadigit{2}}} \;then\;
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1178
   \isa{Stars\ {\isacharparenleft}{\kern0pt}v\isactrlsub {\isadigit{1}}\mbox{$\,$}{\isacharcolon}{\kern0pt}{\isacharcolon}{\kern0pt}\mbox{$\,$}vs\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}\ {\isasymprec}\ Stars\ {\isacharparenleft}{\kern0pt}v\isactrlsub {\isadigit{2}}\mbox{$\,$}{\isacharcolon}{\kern0pt}{\isacharcolon}{\kern0pt}\mbox{$\,$}vs\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1179
  \end{tabular} 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1180
  \end{proposition}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1181
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1182
  \noindent One might prefer that statements \textit{(4)} and \textit{(5)} 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1183
  (respectively \textit{(6)} and \textit{(7)})
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1184
  are combined into a single \textit{iff}-statement (like the ones for \isa{Left} and \isa{Right}). Unfortunately this cannot be done easily: such
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1185
  a single statement would require an additional assumption about the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1186
  two values \isa{Seq\ v\isactrlsub {\isadigit{1}}\ v\isactrlsub {\isadigit{2}}} and \isa{Seq\ w\isactrlsub {\isadigit{1}}\ w\isactrlsub {\isadigit{2}}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1187
  being inhabited by the same regular expression. The
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1188
  complexity of the proofs involved seems to not justify such a
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1189
  `cleaner' single statement. The statements given are just the properties that
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1190
  allow us to establish our theorems without any difficulty. The proofs 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1191
  for Proposition~\ref{ordintros} are routine.
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1192
 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1193
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1194
  Next we establish how Okui and Suzuki's orderings relate to our
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1195
  definition of POSIX values.  Given a \isa{POSIX} value \isa{v\isactrlsub {\isadigit{1}}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1196
  for \isa{r} and \isa{s}, then any other lexical value \isa{v\isactrlsub {\isadigit{2}}} in \isa{LV\ r\ s} is greater or equal than \isa{v\isactrlsub {\isadigit{1}}}, namely:
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1197
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1198
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1199
  \begin{theorem}\label{orderone}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1200
  \isa{{\normalsize{}If\,}\ \mbox{{\isacharparenleft}{\kern0pt}s{\isacharcomma}{\kern0pt}\ r{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ v\isactrlsub {\isadigit{1}}}\ {\normalsize \,and\,}\ \mbox{v\isactrlsub {\isadigit{2}}\ {\isasymin}\ LV\ r\ s}\ {\normalsize \,then\,}\ v\isactrlsub {\isadigit{1}}\ \mbox{$\preccurlyeq$}\ v\isactrlsub {\isadigit{2}}{\isachardot}{\kern0pt}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1201
  \end{theorem}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1202
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1203
  \begin{proof} By induction on our POSIX rules. By
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1204
  Theorem~\ref{posixdeterm} and the definition of \isa{LV}, it is clear
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1205
  that \isa{v\isactrlsub {\isadigit{1}}} and \isa{v\isactrlsub {\isadigit{2}}} have the same
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1206
  underlying string \isa{s}.  The three base cases are
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1207
  straightforward: for example for \isa{v\isactrlsub {\isadigit{1}}\ {\isacharequal}{\kern0pt}\ Empty}, we have
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1208
  that \isa{v\isactrlsub {\isadigit{2}}\ {\isasymin}\ LV\ \isactrlbold {\isadigit{1}}\ {\isacharbrackleft}{\kern0pt}{\isacharbrackright}{\kern0pt}} must also be of the form
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1209
  \mbox{\isa{v\isactrlsub {\isadigit{2}}\ {\isacharequal}{\kern0pt}\ Empty}}. Therefore we have \isa{v\isactrlsub {\isadigit{1}}\ \mbox{$\preccurlyeq$}\ v\isactrlsub {\isadigit{2}}}.  The inductive cases for
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1210
  \isa{r} being of the form \isa{r\isactrlsub {\isadigit{1}}\ {\isacharplus}{\kern0pt}\ r\isactrlsub {\isadigit{2}}} and
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1211
  \isa{r\isactrlsub {\isadigit{1}}\ {\isasymcdot}\ r\isactrlsub {\isadigit{2}}} are as follows:
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1212
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1213
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1214
  \begin{itemize} 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1215
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1216
  \item[$\bullet$] Case \isa{P{\isacharplus}{\kern0pt}L} with \isa{{\isacharparenleft}{\kern0pt}s{\isacharcomma}{\kern0pt}\ r\isactrlsub {\isadigit{1}}\ {\isacharplus}{\kern0pt}\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ Left\ w\isactrlsub {\isadigit{1}}}: In this case the value 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1217
  \isa{v\isactrlsub {\isadigit{2}}} is either of the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1218
  form \isa{Left\ w\isactrlsub {\isadigit{2}}} or \isa{Right\ w\isactrlsub {\isadigit{2}}}. In the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1219
  latter case we can immediately conclude with \mbox{\isa{v\isactrlsub {\isadigit{1}}\ \mbox{$\preccurlyeq$}\ v\isactrlsub {\isadigit{2}}}} since a \isa{Left}-value with the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1220
  same underlying string \isa{s} is always smaller than a
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1221
  \isa{Right}-value by Proposition~\ref{ordintros}\textit{(1)}.  
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1222
  In the former case we have \isa{w\isactrlsub {\isadigit{2}}\ {\isasymin}\ LV\ r\isactrlsub {\isadigit{1}}\ s} and can use the induction hypothesis to infer
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1223
  \isa{w\isactrlsub {\isadigit{1}}\ \mbox{$\preccurlyeq$}\ w\isactrlsub {\isadigit{2}}}. Because \isa{w\isactrlsub {\isadigit{1}}} and \isa{w\isactrlsub {\isadigit{2}}} have the same underlying string
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1224
  \isa{s}, we can conclude with \isa{Left\ w\isactrlsub {\isadigit{1}}\ \mbox{$\preccurlyeq$}\ Left\ w\isactrlsub {\isadigit{2}}} using
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1225
  Proposition~\ref{ordintros}\textit{(2)}.\smallskip
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1226
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1227
  \item[$\bullet$] Case \isa{P{\isacharplus}{\kern0pt}R} with \isa{{\isacharparenleft}{\kern0pt}s{\isacharcomma}{\kern0pt}\ r\isactrlsub {\isadigit{1}}\ {\isacharplus}{\kern0pt}\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ Right\ w\isactrlsub {\isadigit{1}}}: This case similar to the previous
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1228
  case, except that we additionally know \isa{s\ {\isasymnotin}\ L{\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}}. This is needed when \isa{v\isactrlsub {\isadigit{2}}} is of the form
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1229
  \mbox{\isa{Left\ w\isactrlsub {\isadigit{2}}}}. Since \mbox{\isa{{\isacharbar}{\kern0pt}v\isactrlsub {\isadigit{2}}{\isacharbar}{\kern0pt}\ {\isacharequal}{\kern0pt}\ {\isacharbar}{\kern0pt}w\isactrlsub {\isadigit{2}}{\isacharbar}{\kern0pt}} \isa{{\isacharequal}{\kern0pt}\ s}} and \isa{w\isactrlsub {\isadigit{2}}\ {\isacharcolon}{\kern0pt}\ r\isactrlsub {\isadigit{1}}}, we can derive a contradiction for \mbox{\isa{s\ {\isasymnotin}\ L{\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}}} using
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1230
  Proposition~\ref{inhabs}. So also in this case \mbox{\isa{v\isactrlsub {\isadigit{1}}\ \mbox{$\preccurlyeq$}\ v\isactrlsub {\isadigit{2}}}}.\smallskip
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1231
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1232
  \item[$\bullet$] Case \isa{PS} with \isa{{\isacharparenleft}{\kern0pt}s\isactrlsub {\isadigit{1}}\ {\isacharat}{\kern0pt}\ s\isactrlsub {\isadigit{2}}{\isacharcomma}{\kern0pt}\ r\isactrlsub {\isadigit{1}}\ {\isasymcdot}\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ Seq\ w\isactrlsub {\isadigit{1}}\ w\isactrlsub {\isadigit{2}}}: We can assume \isa{v\isactrlsub {\isadigit{2}}\ {\isacharequal}{\kern0pt}\ Seq\ u\isactrlsub {\isadigit{1}}\ u\isactrlsub {\isadigit{2}}} with \isa{u\isactrlsub {\isadigit{1}}\ {\isacharcolon}{\kern0pt}\ r\isactrlsub {\isadigit{1}}} and \mbox{\isa{u\isactrlsub {\isadigit{2}}\ {\isacharcolon}{\kern0pt}\ r\isactrlsub {\isadigit{2}}}}. We have \isa{s\isactrlsub {\isadigit{1}}\ {\isacharat}{\kern0pt}\ s\isactrlsub {\isadigit{2}}\ {\isacharequal}{\kern0pt}\ {\isacharbar}{\kern0pt}u\isactrlsub {\isadigit{1}}{\isacharbar}{\kern0pt}\ {\isacharat}{\kern0pt}\ {\isacharbar}{\kern0pt}u\isactrlsub {\isadigit{2}}{\isacharbar}{\kern0pt}}.  By the side-condition of the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1233
  \isa{PS}-rule we know that either \isa{s\isactrlsub {\isadigit{1}}\ {\isacharequal}{\kern0pt}\ {\isacharbar}{\kern0pt}u\isactrlsub {\isadigit{1}}{\isacharbar}{\kern0pt}} or that \isa{{\isacharbar}{\kern0pt}u\isactrlsub {\isadigit{1}}{\isacharbar}{\kern0pt}} is a strict prefix of
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1234
  \isa{s\isactrlsub {\isadigit{1}}}. In the latter case we can infer \isa{w\isactrlsub {\isadigit{1}}\ {\isasymprec}\ u\isactrlsub {\isadigit{1}}} by
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1235
  Proposition~\ref{ordlen}\textit{(2)} and from this \isa{v\isactrlsub {\isadigit{1}}\ \mbox{$\preccurlyeq$}\ v\isactrlsub {\isadigit{2}}} by Proposition~\ref{ordintros}\textit{(5)}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1236
  (as noted above \isa{v\isactrlsub {\isadigit{1}}} and \isa{v\isactrlsub {\isadigit{2}}} must have the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1237
  same underlying string).
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1238
  In the former case we know
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1239
  \isa{u\isactrlsub {\isadigit{1}}\ {\isasymin}\ LV\ r\isactrlsub {\isadigit{1}}\ s\isactrlsub {\isadigit{1}}} and \isa{u\isactrlsub {\isadigit{2}}\ {\isasymin}\ LV\ r\isactrlsub {\isadigit{2}}\ s\isactrlsub {\isadigit{2}}}. With this we can use the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1240
  induction hypotheses to infer \isa{w\isactrlsub {\isadigit{1}}\ \mbox{$\preccurlyeq$}\ u\isactrlsub {\isadigit{1}}} and \isa{w\isactrlsub {\isadigit{2}}\ \mbox{$\preccurlyeq$}\ u\isactrlsub {\isadigit{2}}}. By
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1241
  Proposition~\ref{ordintros}\textit{(4,5)} we can again infer 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1242
  \isa{v\isactrlsub {\isadigit{1}}\ \mbox{$\preccurlyeq$}\ v\isactrlsub {\isadigit{2}}}.
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1243
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1244
  \end{itemize}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1245
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1246
  \noindent The case for \isa{P{\isasymstar}} is similar to the \isa{PS}-case and omitted.\qed
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1247
  \end{proof}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1248
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1249
  \noindent This theorem shows that our \isa{POSIX} value for a
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1250
  regular expression \isa{r} and string \isa{s} is in fact a
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1251
  minimal element of the values in \isa{LV\ r\ s}. By
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1252
  Proposition~\ref{ordlen}\textit{(2)} we also know that any value in
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1253
  \isa{LV\ r\ s{\isacharprime}{\kern0pt}}, with \isa{s{\isacharprime}{\kern0pt}} being a strict prefix, cannot be
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1254
  smaller than \isa{v\isactrlsub {\isadigit{1}}}. The next theorem shows the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1255
  opposite---namely any minimal element in \isa{LV\ r\ s} must be a
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1256
  \isa{POSIX} value. This can be established by induction on \isa{r}, but the proof can be drastically simplified by using the fact
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1257
  from the previous section about the existence of a \isa{POSIX} value
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1258
  whenever a string \isa{s\ {\isasymin}\ L{\isacharparenleft}{\kern0pt}r{\isacharparenright}{\kern0pt}}.
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1259
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1260
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1261
  \begin{theorem}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1262
  \isa{{\normalsize{}If\,}\ \mbox{v\isactrlsub {\isadigit{1}}\ {\isasymin}\ LV\ r\ s}\ {\normalsize \,and\,}\ \mbox{{\isasymforall}v\isactrlsub {\isadigit{2}}{\isasymin}LV\ r\ s{\isachardot}{\kern0pt}\ v\isactrlsub {\isadigit{2}}\ \mbox{$\not\prec$}\ v\isactrlsub {\isadigit{1}}}\ {\normalsize \,then\,}\ {\isacharparenleft}{\kern0pt}s{\isacharcomma}{\kern0pt}\ r{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ v\isactrlsub {\isadigit{1}}{\isachardot}{\kern0pt}} 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1263
  \end{theorem}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1264
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1265
  \begin{proof} 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1266
  If \isa{v\isactrlsub {\isadigit{1}}\ {\isasymin}\ LV\ r\ s} then 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1267
  \isa{s\ {\isasymin}\ L{\isacharparenleft}{\kern0pt}r{\isacharparenright}{\kern0pt}} by Proposition~\ref{inhabs}. Hence by Theorem~\ref{lexercorrect}(2) 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1268
  there exists a
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1269
  \isa{POSIX} value \isa{v\isactrlsub P} with \isa{{\isacharparenleft}{\kern0pt}s{\isacharcomma}{\kern0pt}\ r{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ v\isactrlsub P}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1270
  and by Lemma~\ref{LVposix} we also have \mbox{\isa{v\isactrlsub P\ {\isasymin}\ LV\ r\ s}}.
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1271
  By Theorem~\ref{orderone} we therefore have 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1272
  \isa{v\isactrlsub P\ \mbox{$\preccurlyeq$}\ v\isactrlsub {\isadigit{1}}}. If \isa{v\isactrlsub P\ {\isacharequal}{\kern0pt}\ v\isactrlsub {\isadigit{1}}} then
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1273
  we are done. Otherwise we have \isa{v\isactrlsub P\ {\isasymprec}\ v\isactrlsub {\isadigit{1}}}, which 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1274
  however contradicts the second assumption about \isa{v\isactrlsub {\isadigit{1}}} being the smallest
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1275
  element in \isa{LV\ r\ s}. So we are done in this case too.\qed
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1276
  \end{proof}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1277
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1278
  \noindent
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1279
  From this we can also show 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1280
  that if \isa{LV\ r\ s} is non-empty (or equivalently \isa{s\ {\isasymin}\ L{\isacharparenleft}{\kern0pt}r{\isacharparenright}{\kern0pt}}) then 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1281
  it has a unique minimal element:
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1282
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1283
  \begin{corollary}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1284
  \isa{{\normalsize{}If\,}\ LV\ r\ s\ {\isasymnoteq}\ {\isasymemptyset}\ {\normalsize \,then\,}\ {\isasymexists}{\isacharbang}{\kern0pt}vmin{\isachardot}{\kern0pt}\ vmin\ {\isasymin}\ LV\ r\ s\ {\isasymand}\ {\isacharparenleft}{\kern0pt}{\isasymforall}v{\isasymin}LV\ r\ s{\isachardot}{\kern0pt}\ vmin\ \mbox{$\preccurlyeq$}\ v{\isacharparenright}{\kern0pt}{\isachardot}{\kern0pt}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1285
  \end{corollary}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1286
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1287
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1288
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1289
  \noindent To sum up, we have shown that the (unique) minimal elements 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1290
  of the ordering by Okui and Suzuki are exactly the \isa{POSIX}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1291
  values we defined inductively in Section~\ref{posixsec}. This provides
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1292
  an independent confirmation that our ternary relation formalises the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1293
  informal POSIX rules.%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1294
\end{isamarkuptext}\isamarkuptrue%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1295
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1296
\isadelimdocument
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1297
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1298
\endisadelimdocument
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1299
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1300
\isatagdocument
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1301
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1302
\isamarkupsection{Bitcoded Lexing%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1303
}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1304
\isamarkuptrue%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1305
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1306
\endisatagdocument
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1307
{\isafolddocument}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1308
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1309
\isadelimdocument
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1310
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1311
\endisadelimdocument
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1312
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1313
\begin{isamarkuptext}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1314
Incremental calculation of the value. To simplify the proof we first define the function
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1315
\isa{flex} which calculates the ``iterated'' injection function. With this we can 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1316
rewrite the lexer as
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1317
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1318
\begin{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1319
\isa{lexer\ r\ s\ {\isacharequal}{\kern0pt}\ {\isacharparenleft}{\kern0pt}\textrm{if}\ nullable\ {\isacharparenleft}{\kern0pt}r{\isacharbackslash}{\kern0pt}s{\isacharparenright}{\kern0pt}\ \textrm{then}\ Some\ {\isacharparenleft}{\kern0pt}flex\ r\ id\ s\ {\isacharparenleft}{\kern0pt}mkeps\ {\isacharparenleft}{\kern0pt}r{\isacharbackslash}{\kern0pt}s{\isacharparenright}{\kern0pt}{\isacharparenright}{\kern0pt}{\isacharparenright}{\kern0pt}\ \textrm{else}\ None{\isacharparenright}{\kern0pt}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1320
\end{center}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1321
\end{isamarkuptext}\isamarkuptrue%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1322
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1323
\isadelimdocument
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1324
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1325
\endisadelimdocument
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1326
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1327
\isatagdocument
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1328
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1329
\isamarkupsection{Optimisations%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1330
}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1331
\isamarkuptrue%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1332
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1333
\endisatagdocument
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1334
{\isafolddocument}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1335
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1336
\isadelimdocument
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1337
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1338
\endisadelimdocument
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1339
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1340
\begin{isamarkuptext}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1341
Derivatives as calculated by \Brz's method are usually more complex
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1342
  regular expressions than the initial one; the result is that the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1343
  derivative-based matching and lexing algorithms are often abysmally slow.
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1344
  However, various optimisations are possible, such as the simplifications
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1345
  of \isa{\isactrlbold {\isadigit{0}}\ {\isacharplus}{\kern0pt}\ r}, \isa{r\ {\isacharplus}{\kern0pt}\ \isactrlbold {\isadigit{0}}}, \isa{\isactrlbold {\isadigit{1}}\ {\isasymcdot}\ r} and
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1346
  \isa{r\ {\isasymcdot}\ \isactrlbold {\isadigit{1}}} to \isa{r}. These simplifications can speed up the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1347
  algorithms considerably, as noted in \cite{Sulzmann2014}. One of the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1348
  advantages of having a simple specification and correctness proof is that
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1349
  the latter can be refined to prove the correctness of such simplification
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1350
  steps. While the simplification of regular expressions according to 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1351
  rules like
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1352
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1353
  \begin{equation}\label{Simpl}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1354
  \begin{array}{lcllcllcllcl}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1355
  \isa{\isactrlbold {\isadigit{0}}\ {\isacharplus}{\kern0pt}\ r} & \isa{{\isasymRightarrow}} & \isa{r} \hspace{8mm}%\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1356
  \isa{r\ {\isacharplus}{\kern0pt}\ \isactrlbold {\isadigit{0}}} & \isa{{\isasymRightarrow}} & \isa{r} \hspace{8mm}%\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1357
  \isa{\isactrlbold {\isadigit{1}}\ {\isasymcdot}\ r}  & \isa{{\isasymRightarrow}} & \isa{r} \hspace{8mm}%\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1358
  \isa{r\ {\isasymcdot}\ \isactrlbold {\isadigit{1}}}  & \isa{{\isasymRightarrow}} & \isa{r}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1359
  \end{array}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1360
  \end{equation}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1361
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1362
  \noindent is well understood, there is an obstacle with the POSIX value
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1363
  calculation algorithm by Sulzmann and Lu: if we build a derivative regular
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1364
  expression and then simplify it, we will calculate a POSIX value for this
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1365
  simplified derivative regular expression, \emph{not} for the original (unsimplified)
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1366
  derivative regular expression. Sulzmann and Lu \cite{Sulzmann2014} overcome this obstacle by
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1367
  not just calculating a simplified regular expression, but also calculating
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1368
  a \emph{rectification function} that ``repairs'' the incorrect value.
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1369
  
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1370
  The rectification functions can be (slightly clumsily) implemented  in
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1371
  Isabelle/HOL as follows using some auxiliary functions:
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1372
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1373
  \begin{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1374
  \begin{tabular}{lcl}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1375
  \isa{F\isactrlbsub Right\isactrlesub \ f\ v} & $\dn$ & \isa{Right\ {\isacharparenleft}{\kern0pt}f\ v{\isacharparenright}{\kern0pt}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1376
  \isa{F\isactrlbsub Left\isactrlesub \ f\ v} & $\dn$ & \isa{Left\ {\isacharparenleft}{\kern0pt}f\ v{\isacharparenright}{\kern0pt}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1377
  
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1378
  \isa{F\isactrlbsub Alt\isactrlesub \ f\isactrlsub {\isadigit{1}}\ f\isactrlsub {\isadigit{2}}\ {\isacharparenleft}{\kern0pt}Right\ v{\isacharparenright}{\kern0pt}} & $\dn$ & \isa{Right\ {\isacharparenleft}{\kern0pt}f\isactrlsub {\isadigit{2}}\ v{\isacharparenright}{\kern0pt}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1379
  \isa{F\isactrlbsub Alt\isactrlesub \ f\isactrlsub {\isadigit{1}}\ f\isactrlsub {\isadigit{2}}\ {\isacharparenleft}{\kern0pt}Left\ v{\isacharparenright}{\kern0pt}} & $\dn$ & \isa{Left\ {\isacharparenleft}{\kern0pt}f\isactrlsub {\isadigit{1}}\ v{\isacharparenright}{\kern0pt}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1380
  
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1381
  \isa{F\isactrlbsub Seq{\isadigit{1}}\isactrlesub \ f\isactrlsub {\isadigit{1}}\ f\isactrlsub {\isadigit{2}}\ v} & $\dn$ & \isa{Seq\ {\isacharparenleft}{\kern0pt}f\isactrlsub {\isadigit{1}}\ {\isacharparenleft}{\kern0pt}{\isacharparenright}{\kern0pt}{\isacharparenright}{\kern0pt}\ {\isacharparenleft}{\kern0pt}f\isactrlsub {\isadigit{2}}\ v{\isacharparenright}{\kern0pt}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1382
  \isa{F\isactrlbsub Seq{\isadigit{2}}\isactrlesub \ f\isactrlsub {\isadigit{1}}\ f\isactrlsub {\isadigit{2}}\ v} & $\dn$ & \isa{Seq\ {\isacharparenleft}{\kern0pt}f\isactrlsub {\isadigit{1}}\ v{\isacharparenright}{\kern0pt}\ {\isacharparenleft}{\kern0pt}f\isactrlsub {\isadigit{2}}\ {\isacharparenleft}{\kern0pt}{\isacharparenright}{\kern0pt}{\isacharparenright}{\kern0pt}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1383
  \isa{F\isactrlbsub Seq\isactrlesub \ f\isactrlsub {\isadigit{1}}\ f\isactrlsub {\isadigit{2}}\ {\isacharparenleft}{\kern0pt}Seq\ v\isactrlsub {\isadigit{1}}\ v\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}} & $\dn$ & \isa{Seq\ {\isacharparenleft}{\kern0pt}f\isactrlsub {\isadigit{1}}\ v\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}\ {\isacharparenleft}{\kern0pt}f\isactrlsub {\isadigit{2}}\ v\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}}\medskip\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1384
  %\end{tabular}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1385
  %
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1386
  %\begin{tabular}{lcl}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1387
  \isa{simp\isactrlbsub Alt\isactrlesub \ {\isacharparenleft}{\kern0pt}\isactrlbold {\isadigit{0}}{\isacharcomma}{\kern0pt}\ \underline{\hspace{2mm}}{\isacharparenright}{\kern0pt}\ {\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{2}}{\isacharcomma}{\kern0pt}\ f\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}} & $\dn$ & \isa{{\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{2}}{\isacharcomma}{\kern0pt}\ F\isactrlbsub Right\isactrlesub \ f\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1388
  \isa{simp\isactrlbsub Alt\isactrlesub \ {\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}{\isacharcomma}{\kern0pt}\ f\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}\ {\isacharparenleft}{\kern0pt}\isactrlbold {\isadigit{0}}{\isacharcomma}{\kern0pt}\ \underline{\hspace{2mm}}{\isacharparenright}{\kern0pt}} & $\dn$ & \isa{{\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}{\isacharcomma}{\kern0pt}\ F\isactrlbsub Left\isactrlesub \ f\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1389
  \isa{simp\isactrlbsub Alt\isactrlesub \ {\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}{\isacharcomma}{\kern0pt}\ f\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}\ {\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{2}}{\isacharcomma}{\kern0pt}\ f\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}} & $\dn$ & \isa{{\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}\ {\isacharplus}{\kern0pt}\ r\isactrlsub {\isadigit{2}}{\isacharcomma}{\kern0pt}\ F\isactrlbsub Alt\isactrlesub \ f\isactrlsub {\isadigit{1}}\ f\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1390
  \isa{simp\isactrlbsub Seq\isactrlesub \ {\isacharparenleft}{\kern0pt}\isactrlbold {\isadigit{1}}{\isacharcomma}{\kern0pt}\ f\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}\ {\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{2}}{\isacharcomma}{\kern0pt}\ f\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}} & $\dn$ & \isa{{\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{2}}{\isacharcomma}{\kern0pt}\ F\isactrlbsub Seq{\isadigit{1}}\isactrlesub \ f\isactrlsub {\isadigit{1}}\ f\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1391
  \isa{simp\isactrlbsub Seq\isactrlesub \ {\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}{\isacharcomma}{\kern0pt}\ f\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}\ {\isacharparenleft}{\kern0pt}\isactrlbold {\isadigit{1}}{\isacharcomma}{\kern0pt}\ f\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}} & $\dn$ & \isa{{\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}{\isacharcomma}{\kern0pt}\ F\isactrlbsub Seq{\isadigit{2}}\isactrlesub \ f\isactrlsub {\isadigit{1}}\ f\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1392
  \isa{simp\isactrlbsub Seq\isactrlesub \ {\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}{\isacharcomma}{\kern0pt}\ f\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}\ {\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{2}}{\isacharcomma}{\kern0pt}\ f\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}} & $\dn$ & \isa{{\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}\ {\isasymcdot}\ r\isactrlsub {\isadigit{2}}{\isacharcomma}{\kern0pt}\ F\isactrlbsub Seq\isactrlesub \ f\isactrlsub {\isadigit{1}}\ f\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1393
  \end{tabular}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1394
  \end{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1395
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1396
  \noindent
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1397
  The functions \isa{simp\isactrlbsub Alt\isactrlesub } and \isa{simp\isactrlbsub Seq\isactrlesub } encode the simplification rules
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1398
  in \eqref{Simpl} and compose the rectification functions (simplifications can occur
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1399
  deep inside the regular expression). The main simplification function is then 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1400
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1401
  \begin{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1402
  \begin{tabular}{lcl}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1403
  \isa{simp\ {\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}\ {\isacharplus}{\kern0pt}\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}} & $\dn$ & \isa{simp\isactrlbsub Alt\isactrlesub \ {\isacharparenleft}{\kern0pt}simp\ r\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}\ {\isacharparenleft}{\kern0pt}simp\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1404
  \isa{simp\ {\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}\ {\isasymcdot}\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}} & $\dn$ & \isa{simp\isactrlbsub Seq\isactrlesub \ {\isacharparenleft}{\kern0pt}simp\ r\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}\ {\isacharparenleft}{\kern0pt}simp\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1405
  \isa{simp\ r} & $\dn$ & \isa{{\isacharparenleft}{\kern0pt}r{\isacharcomma}{\kern0pt}\ id{\isacharparenright}{\kern0pt}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1406
  \end{tabular}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1407
  \end{center} 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1408
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1409
  \noindent where \isa{id} stands for the identity function. The
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1410
  function \isa{simp} returns a simplified regular expression and a corresponding
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1411
  rectification function. Note that we do not simplify under stars: this
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1412
  seems to slow down the algorithm, rather than speed it up. The optimised
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1413
  lexer is then given by the clauses:
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1414
  
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1415
  \begin{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1416
  \begin{tabular}{lcl}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1417
  \isa{lexer\isactrlsup {\isacharplus}{\kern0pt}\ r\ {\isacharbrackleft}{\kern0pt}{\isacharbrackright}{\kern0pt}} & $\dn$ & \isa{\textrm{if}\ nullable\ r\ \textrm{then}\ Some\ {\isacharparenleft}{\kern0pt}mkeps\ r{\isacharparenright}{\kern0pt}\ \textrm{else}\ None}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1418
  \isa{lexer\isactrlsup {\isacharplus}{\kern0pt}\ r\ {\isacharparenleft}{\kern0pt}c\mbox{$\,$}{\isacharcolon}{\kern0pt}{\isacharcolon}{\kern0pt}\mbox{$\,$}s{\isacharparenright}{\kern0pt}} & $\dn$ & 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1419
                         \isa{let\ {\isacharparenleft}{\kern0pt}r\isactrlsub s{\isacharcomma}{\kern0pt}\ f\isactrlsub r{\isacharparenright}{\kern0pt}\ {\isacharequal}{\kern0pt}\ simp\ {\isacharparenleft}{\kern0pt}r}$\backslash$\isa{c{\isacharparenright}{\kern0pt}\ in}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1420
                     & & \isa{case} \isa{lexer\isactrlsup {\isacharplus}{\kern0pt}\ r\isactrlsub s\ s} \isa{of}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1421
                     & & \phantom{$|$} \isa{None}  \isa{{\isasymRightarrow}} \isa{None}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1422
                     & & $|$ \isa{Some\ v} \isa{{\isasymRightarrow}} \isa{Some\ {\isacharparenleft}{\kern0pt}inj\ r\ c\ {\isacharparenleft}{\kern0pt}f\isactrlsub r\ v{\isacharparenright}{\kern0pt}{\isacharparenright}{\kern0pt}}                          
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1423
  \end{tabular}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1424
  \end{center}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1425
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1426
  \noindent
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1427
  In the second clause we first calculate the derivative \isa{r{\isacharbackslash}{\kern0pt}c}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1428
  and then simpli
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1429
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1430
text \isa{\ \ Incremental\ calculation\ of\ the\ value{\isachardot}{\kern0pt}\ To\ simplify\ the\ proof\ we\ first\ define\ the\ function\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}const\ flex{\isacharbraceright}{\kern0pt}\ which\ calculates\ the\ {\isacharbackquote}{\kern0pt}{\isacharbackquote}{\kern0pt}iterated{\isacharprime}{\kern0pt}{\isacharprime}{\kern0pt}\ injection\ function{\isachardot}{\kern0pt}\ With\ this\ we\ can\ rewrite\ the\ lexer\ as\ \ {\isacharbackslash}{\kern0pt}begin{\isacharbraceleft}{\kern0pt}center{\isacharbraceright}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ lexer{\isacharunderscore}{\kern0pt}flex{\isacharbraceright}{\kern0pt}\ {\isacharbackslash}{\kern0pt}end{\isacharbraceleft}{\kern0pt}center{\isacharbraceright}{\kern0pt}\ \ {\isacharbackslash}{\kern0pt}begin{\isacharbraceleft}{\kern0pt}center{\isacharbraceright}{\kern0pt}\ {\isacharbackslash}{\kern0pt}begin{\isacharbraceleft}{\kern0pt}tabular{\isacharbraceright}{\kern0pt}{\isacharbraceleft}{\kern0pt}lcl{\isacharbraceright}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}lhs{\isacharparenright}{\kern0pt}\ code{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{1}}{\isacharparenright}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}dn{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}rhs{\isacharparenright}{\kern0pt}\ code{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{1}}{\isacharparenright}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}lhs{\isacharparenright}{\kern0pt}\ code{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{2}}{\isacharparenright}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}dn{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}rhs{\isacharparenright}{\kern0pt}\ code{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{2}}{\isacharparenright}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}lhs{\isacharparenright}{\kern0pt}\ code{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{3}}{\isacharparenright}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}dn{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}rhs{\isacharparenright}{\kern0pt}\ code{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{3}}{\isacharparenright}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}lhs{\isacharparenright}{\kern0pt}\ code{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{4}}{\isacharparenright}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}dn{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}rhs{\isacharparenright}{\kern0pt}\ code{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{4}}{\isacharparenright}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}lhs{\isacharparenright}{\kern0pt}\ code{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{5}}{\isacharparenright}{\kern0pt}{\isacharbrackleft}{\kern0pt}of\ {\isachardoublequote}{\kern0pt}v\isactrlsub {\isadigit{1}}{\isachardoublequote}{\kern0pt}\ {\isachardoublequote}{\kern0pt}v\isactrlsub {\isadigit{2}}{\isachardoublequote}{\kern0pt}{\isacharbrackright}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}dn{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}rhs{\isacharparenright}{\kern0pt}\ code{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{5}}{\isacharparenright}{\kern0pt}{\isacharbrackleft}{\kern0pt}of\ {\isachardoublequote}{\kern0pt}v\isactrlsub {\isadigit{1}}{\isachardoublequote}{\kern0pt}\ {\isachardoublequote}{\kern0pt}v\isactrlsub {\isadigit{2}}{\isachardoublequote}{\kern0pt}{\isacharbrackright}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}lhs{\isacharparenright}{\kern0pt}\ code{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{6}}{\isacharparenright}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}dn{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}rhs{\isacharparenright}{\kern0pt}\ code{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{6}}{\isacharparenright}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}lhs{\isacharparenright}{\kern0pt}\ code{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{7}}{\isacharparenright}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}dn{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}rhs{\isacharparenright}{\kern0pt}\ code{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{7}}{\isacharparenright}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharbackslash}{\kern0pt}end{\isacharbraceleft}{\kern0pt}tabular{\isacharbraceright}{\kern0pt}\ {\isacharbackslash}{\kern0pt}end{\isacharbraceleft}{\kern0pt}center{\isacharbraceright}{\kern0pt}\ \ {\isacharbackslash}{\kern0pt}begin{\isacharbraceleft}{\kern0pt}center{\isacharbraceright}{\kern0pt}\ {\isacharbackslash}{\kern0pt}begin{\isacharbraceleft}{\kern0pt}tabular{\isacharbraceright}{\kern0pt}{\isacharbraceleft}{\kern0pt}lcl{\isacharbraceright}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ areg{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharcolon}{\kern0pt}{\isacharcolon}{\kern0pt}{\isacharequal}{\kern0pt}{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}AZERO{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}mid{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}AONE\ bs{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}mid{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}ACHAR\ bs\ c{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}mid{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}AALT\ bs\ r{\isadigit{1}}\ r{\isadigit{2}}{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}mid{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}ASEQ\ bs\ r\isactrlsub {\isadigit{1}}\ r\isactrlsub {\isadigit{2}}{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}mid{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}ASTAR\ bs\ r{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharbackslash}{\kern0pt}end{\isacharbraceleft}{\kern0pt}tabular{\isacharbraceright}{\kern0pt}\ {\isacharbackslash}{\kern0pt}end{\isacharbraceleft}{\kern0pt}center{\isacharbraceright}{\kern0pt}\ \ \ {\isacharbackslash}{\kern0pt}begin{\isacharbraceleft}{\kern0pt}center{\isacharbraceright}{\kern0pt}\ {\isacharbackslash}{\kern0pt}begin{\isacharbraceleft}{\kern0pt}tabular{\isacharbraceright}{\kern0pt}{\isacharbraceleft}{\kern0pt}lcl{\isacharbraceright}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}lhs{\isacharparenright}{\kern0pt}\ intern{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{1}}{\isacharparenright}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}dn{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}rhs{\isacharparenright}{\kern0pt}\ intern{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{1}}{\isacharparenright}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}lhs{\isacharparenright}{\kern0pt}\ intern{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{2}}{\isacharparenright}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}dn{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}rhs{\isacharparenright}{\kern0pt}\ intern{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{2}}{\isacharparenright}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}lhs{\isacharparenright}{\kern0pt}\ intern{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{3}}{\isacharparenright}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}dn{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}rhs{\isacharparenright}{\kern0pt}\ intern{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{3}}{\isacharparenright}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}lhs{\isacharparenright}{\kern0pt}\ intern{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{4}}{\isacharparenright}{\kern0pt}{\isacharbrackleft}{\kern0pt}of\ {\isachardoublequote}{\kern0pt}r\isactrlsub {\isadigit{1}}{\isachardoublequote}{\kern0pt}\ {\isachardoublequote}{\kern0pt}r\isactrlsub {\isadigit{2}}{\isachardoublequote}{\kern0pt}{\isacharbrackright}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}dn{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}rhs{\isacharparenright}{\kern0pt}\ intern{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{4}}{\isacharparenright}{\kern0pt}{\isacharbrackleft}{\kern0pt}of\ {\isachardoublequote}{\kern0pt}r\isactrlsub {\isadigit{1}}{\isachardoublequote}{\kern0pt}\ {\isachardoublequote}{\kern0pt}r\isactrlsub {\isadigit{2}}{\isachardoublequote}{\kern0pt}{\isacharbrackright}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}lhs{\isacharparenright}{\kern0pt}\ intern{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{5}}{\isacharparenright}{\kern0pt}{\isacharbrackleft}{\kern0pt}of\ {\isachardoublequote}{\kern0pt}r\isactrlsub {\isadigit{1}}{\isachardoublequote}{\kern0pt}\ {\isachardoublequote}{\kern0pt}r\isactrlsub {\isadigit{2}}{\isachardoublequote}{\kern0pt}{\isacharbrackright}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}dn{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}rhs{\isacharparenright}{\kern0pt}\ intern{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{5}}{\isacharparenright}{\kern0pt}{\isacharbrackleft}{\kern0pt}of\ {\isachardoublequote}{\kern0pt}r\isactrlsub {\isadigit{1}}{\isachardoublequote}{\kern0pt}\ {\isachardoublequote}{\kern0pt}r\isactrlsub {\isadigit{2}}{\isachardoublequote}{\kern0pt}{\isacharbrackright}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}lhs{\isacharparenright}{\kern0pt}\ intern{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{6}}{\isacharparenright}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}dn{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}rhs{\isacharparenright}{\kern0pt}\ intern{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{6}}{\isacharparenright}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharbackslash}{\kern0pt}end{\isacharbraceleft}{\kern0pt}tabular{\isacharbraceright}{\kern0pt}\ {\isacharbackslash}{\kern0pt}end{\isacharbraceleft}{\kern0pt}center{\isacharbraceright}{\kern0pt}\ \ {\isacharbackslash}{\kern0pt}begin{\isacharbraceleft}{\kern0pt}center{\isacharbraceright}{\kern0pt}\ {\isacharbackslash}{\kern0pt}begin{\isacharbraceleft}{\kern0pt}tabular{\isacharbraceright}{\kern0pt}{\isacharbraceleft}{\kern0pt}lcl{\isacharbraceright}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}lhs{\isacharparenright}{\kern0pt}\ erase{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{1}}{\isacharparenright}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}dn{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}rhs{\isacharparenright}{\kern0pt}\ erase{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{1}}{\isacharparenright}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}lhs{\isacharparenright}{\kern0pt}\ erase{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{2}}{\isacharparenright}{\kern0pt}{\isacharbrackleft}{\kern0pt}of\ bs{\isacharbrackright}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}dn{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}rhs{\isacharparenright}{\kern0pt}\ erase{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{2}}{\isacharparenright}{\kern0pt}{\isacharbrackleft}{\kern0pt}of\ bs{\isacharbrackright}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}lhs{\isacharparenright}{\kern0pt}\ erase{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{3}}{\isacharparenright}{\kern0pt}{\isacharbrackleft}{\kern0pt}of\ bs{\isacharbrackright}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}dn{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}rhs{\isacharparenright}{\kern0pt}\ erase{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{3}}{\isacharparenright}{\kern0pt}{\isacharbrackleft}{\kern0pt}of\ bs{\isacharbrackright}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}lhs{\isacharparenright}{\kern0pt}\ erase{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{4}}{\isacharparenright}{\kern0pt}{\isacharbrackleft}{\kern0pt}of\ bs\ {\isachardoublequote}{\kern0pt}r\isactrlsub {\isadigit{1}}{\isachardoublequote}{\kern0pt}\ {\isachardoublequote}{\kern0pt}r\isactrlsub {\isadigit{2}}{\isachardoublequote}{\kern0pt}{\isacharbrackright}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}dn{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}rhs{\isacharparenright}{\kern0pt}\ erase{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{4}}{\isacharparenright}{\kern0pt}{\isacharbrackleft}{\kern0pt}of\ bs\ {\isachardoublequote}{\kern0pt}r\isactrlsub {\isadigit{1}}{\isachardoublequote}{\kern0pt}\ {\isachardoublequote}{\kern0pt}r\isactrlsub {\isadigit{2}}{\isachardoublequote}{\kern0pt}{\isacharbrackright}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}lhs{\isacharparenright}{\kern0pt}\ erase{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{5}}{\isacharparenright}{\kern0pt}{\isacharbrackleft}{\kern0pt}of\ bs\ {\isachardoublequote}{\kern0pt}r\isactrlsub {\isadigit{1}}{\isachardoublequote}{\kern0pt}\ {\isachardoublequote}{\kern0pt}r\isactrlsub {\isadigit{2}}{\isachardoublequote}{\kern0pt}{\isacharbrackright}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}dn{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}rhs{\isacharparenright}{\kern0pt}\ erase{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{5}}{\isacharparenright}{\kern0pt}{\isacharbrackleft}{\kern0pt}of\ bs\ {\isachardoublequote}{\kern0pt}r\isactrlsub {\isadigit{1}}{\isachardoublequote}{\kern0pt}\ {\isachardoublequote}{\kern0pt}r\isactrlsub {\isadigit{2}}{\isachardoublequote}{\kern0pt}{\isacharbrackright}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}lhs{\isacharparenright}{\kern0pt}\ erase{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{6}}{\isacharparenright}{\kern0pt}{\isacharbrackleft}{\kern0pt}of\ bs{\isacharbrackright}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}dn{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}rhs{\isacharparenright}{\kern0pt}\ erase{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{6}}{\isacharparenright}{\kern0pt}{\isacharbrackleft}{\kern0pt}of\ bs{\isacharbrackright}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharbackslash}{\kern0pt}end{\isacharbraceleft}{\kern0pt}tabular{\isacharbraceright}{\kern0pt}\ {\isacharbackslash}{\kern0pt}end{\isacharbraceleft}{\kern0pt}center{\isacharbraceright}{\kern0pt}\ \ Some\ simple\ facts\ about\ erase\ \ {\isacharbackslash}{\kern0pt}begin{\isacharbraceleft}{\kern0pt}lemma{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}mbox{\isacharbraceleft}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ erase{\isacharunderscore}{\kern0pt}bder{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ erase{\isacharunderscore}{\kern0pt}intern{\isacharbraceright}{\kern0pt}\ {\isacharbackslash}{\kern0pt}end{\isacharbraceleft}{\kern0pt}lemma{\isacharbraceright}{\kern0pt}\ \ {\isacharbackslash}{\kern0pt}begin{\isacharbraceleft}{\kern0pt}center{\isacharbraceright}{\kern0pt}\ {\isacharbackslash}{\kern0pt}begin{\isacharbraceleft}{\kern0pt}tabular{\isacharbraceright}{\kern0pt}{\isacharbraceleft}{\kern0pt}lcl{\isacharbraceright}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}lhs{\isacharparenright}{\kern0pt}\ bnullable{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{1}}{\isacharparenright}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}dn{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}rhs{\isacharparenright}{\kern0pt}\ bnullable{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{1}}{\isacharparenright}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}lhs{\isacharparenright}{\kern0pt}\ bnullable{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{2}}{\isacharparenright}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}dn{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}rhs{\isacharparenright}{\kern0pt}\ bnullable{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{2}}{\isacharparenright}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}lhs{\isacharparenright}{\kern0pt}\ bnullable{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{3}}{\isacharparenright}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}dn{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}rhs{\isacharparenright}{\kern0pt}\ bnullable{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{3}}{\isacharparenright}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}lhs{\isacharparenright}{\kern0pt}\ bnullable{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{4}}{\isacharparenright}{\kern0pt}{\isacharbrackleft}{\kern0pt}of\ bs\ {\isachardoublequote}{\kern0pt}r\isactrlsub {\isadigit{1}}{\isachardoublequote}{\kern0pt}\ {\isachardoublequote}{\kern0pt}r\isactrlsub {\isadigit{2}}{\isachardoublequote}{\kern0pt}{\isacharbrackright}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}dn{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}rhs{\isacharparenright}{\kern0pt}\ bnullable{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{4}}{\isacharparenright}{\kern0pt}{\isacharbrackleft}{\kern0pt}of\ bs\ {\isachardoublequote}{\kern0pt}r\isactrlsub {\isadigit{1}}{\isachardoublequote}{\kern0pt}\ {\isachardoublequote}{\kern0pt}r\isactrlsub {\isadigit{2}}{\isachardoublequote}{\kern0pt}{\isacharbrackright}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}lhs{\isacharparenright}{\kern0pt}\ bnullable{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{5}}{\isacharparenright}{\kern0pt}{\isacharbrackleft}{\kern0pt}of\ bs\ {\isachardoublequote}{\kern0pt}r\isactrlsub {\isadigit{1}}{\isachardoublequote}{\kern0pt}\ {\isachardoublequote}{\kern0pt}r\isactrlsub {\isadigit{2}}{\isachardoublequote}{\kern0pt}{\isacharbrackright}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}dn{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}rhs{\isacharparenright}{\kern0pt}\ bnullable{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{5}}{\isacharparenright}{\kern0pt}{\isacharbrackleft}{\kern0pt}of\ bs\ {\isachardoublequote}{\kern0pt}r\isactrlsub {\isadigit{1}}{\isachardoublequote}{\kern0pt}\ {\isachardoublequote}{\kern0pt}r\isactrlsub {\isadigit{2}}{\isachardoublequote}{\kern0pt}{\isacharbrackright}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}lhs{\isacharparenright}{\kern0pt}\ bnullable{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{6}}{\isacharparenright}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}dn{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}rhs{\isacharparenright}{\kern0pt}\ bnullable{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{6}}{\isacharparenright}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}medskip{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ \ {\isacharpercent}{\kern0pt}\ \ {\isacharbackslash}{\kern0pt}end{\isacharbraceleft}{\kern0pt}tabular{\isacharbraceright}{\kern0pt}\ {\isacharpercent}{\kern0pt}\ \ {\isacharbackslash}{\kern0pt}end{\isacharbraceleft}{\kern0pt}center{\isacharbraceright}{\kern0pt}\ \ {\isacharpercent}{\kern0pt}\ \ {\isacharbackslash}{\kern0pt}begin{\isacharbraceleft}{\kern0pt}center{\isacharbraceright}{\kern0pt}\ {\isacharpercent}{\kern0pt}\ \ {\isacharbackslash}{\kern0pt}begin{\isacharbraceleft}{\kern0pt}tabular{\isacharbraceright}{\kern0pt}{\isacharbraceleft}{\kern0pt}lcl{\isacharbraceright}{\kern0pt}\ \ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}lhs{\isacharparenright}{\kern0pt}\ bder{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{1}}{\isacharparenright}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}dn{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}rhs{\isacharparenright}{\kern0pt}\ bder{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{1}}{\isacharparenright}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}lhs{\isacharparenright}{\kern0pt}\ bder{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{2}}{\isacharparenright}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}dn{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}rhs{\isacharparenright}{\kern0pt}\ bder{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{2}}{\isacharparenright}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}lhs{\isacharparenright}{\kern0pt}\ bder{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{3}}{\isacharparenright}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}dn{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}rhs{\isacharparenright}{\kern0pt}\ bder{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{3}}{\isacharparenright}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}lhs{\isacharparenright}{\kern0pt}\ bder{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{4}}{\isacharparenright}{\kern0pt}{\isacharbrackleft}{\kern0pt}of\ bs\ {\isachardoublequote}{\kern0pt}r\isactrlsub {\isadigit{1}}{\isachardoublequote}{\kern0pt}\ {\isachardoublequote}{\kern0pt}r\isactrlsub {\isadigit{2}}{\isachardoublequote}{\kern0pt}{\isacharbrackright}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}dn{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}rhs{\isacharparenright}{\kern0pt}\ bder{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{4}}{\isacharparenright}{\kern0pt}{\isacharbrackleft}{\kern0pt}of\ bs\ {\isachardoublequote}{\kern0pt}r\isactrlsub {\isadigit{1}}{\isachardoublequote}{\kern0pt}\ {\isachardoublequote}{\kern0pt}r\isactrlsub {\isadigit{2}}{\isachardoublequote}{\kern0pt}{\isacharbrackright}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}lhs{\isacharparenright}{\kern0pt}\ bder{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{5}}{\isacharparenright}{\kern0pt}{\isacharbrackleft}{\kern0pt}of\ bs\ {\isachardoublequote}{\kern0pt}r\isactrlsub {\isadigit{1}}{\isachardoublequote}{\kern0pt}\ {\isachardoublequote}{\kern0pt}r\isactrlsub {\isadigit{2}}{\isachardoublequote}{\kern0pt}{\isacharbrackright}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}dn{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}rhs{\isacharparenright}{\kern0pt}\ bder{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{5}}{\isacharparenright}{\kern0pt}{\isacharbrackleft}{\kern0pt}of\ bs\ {\isachardoublequote}{\kern0pt}r\isactrlsub {\isadigit{1}}{\isachardoublequote}{\kern0pt}\ {\isachardoublequote}{\kern0pt}r\isactrlsub {\isadigit{2}}{\isachardoublequote}{\kern0pt}{\isacharbrackright}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}lhs{\isacharparenright}{\kern0pt}\ bder{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{6}}{\isacharparenright}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}dn{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}rhs{\isacharparenright}{\kern0pt}\ bder{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{6}}{\isacharparenright}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharbackslash}{\kern0pt}end{\isacharbraceleft}{\kern0pt}tabular{\isacharbraceright}{\kern0pt}\ {\isacharbackslash}{\kern0pt}end{\isacharbraceleft}{\kern0pt}center{\isacharbraceright}{\kern0pt}\ \ \ {\isacharbackslash}{\kern0pt}begin{\isacharbraceleft}{\kern0pt}center{\isacharbraceright}{\kern0pt}\ {\isacharbackslash}{\kern0pt}begin{\isacharbraceleft}{\kern0pt}tabular{\isacharbraceright}{\kern0pt}{\isacharbraceleft}{\kern0pt}lcl{\isacharbraceright}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}lhs{\isacharparenright}{\kern0pt}\ bmkeps{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{1}}{\isacharparenright}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}dn{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}rhs{\isacharparenright}{\kern0pt}\ bmkeps{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{1}}{\isacharparenright}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}lhs{\isacharparenright}{\kern0pt}\ bmkeps{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{2}}{\isacharparenright}{\kern0pt}{\isacharbrackleft}{\kern0pt}of\ bs\ {\isachardoublequote}{\kern0pt}r\isactrlsub {\isadigit{1}}{\isachardoublequote}{\kern0pt}\ {\isachardoublequote}{\kern0pt}r\isactrlsub {\isadigit{2}}{\isachardoublequote}{\kern0pt}{\isacharbrackright}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}dn{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}rhs{\isacharparenright}{\kern0pt}\ bmkeps{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{2}}{\isacharparenright}{\kern0pt}{\isacharbrackleft}{\kern0pt}of\ bs\ {\isachardoublequote}{\kern0pt}r\isactrlsub {\isadigit{1}}{\isachardoublequote}{\kern0pt}\ {\isachardoublequote}{\kern0pt}r\isactrlsub {\isadigit{2}}{\isachardoublequote}{\kern0pt}{\isacharbrackright}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}lhs{\isacharparenright}{\kern0pt}\ bmkeps{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{3}}{\isacharparenright}{\kern0pt}{\isacharbrackleft}{\kern0pt}of\ bs\ {\isachardoublequote}{\kern0pt}r\isactrlsub {\isadigit{1}}{\isachardoublequote}{\kern0pt}\ {\isachardoublequote}{\kern0pt}r\isactrlsub {\isadigit{2}}{\isachardoublequote}{\kern0pt}{\isacharbrackright}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}dn{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}rhs{\isacharparenright}{\kern0pt}\ bmkeps{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{3}}{\isacharparenright}{\kern0pt}{\isacharbrackleft}{\kern0pt}of\ bs\ {\isachardoublequote}{\kern0pt}r\isactrlsub {\isadigit{1}}{\isachardoublequote}{\kern0pt}\ {\isachardoublequote}{\kern0pt}r\isactrlsub {\isadigit{2}}{\isachardoublequote}{\kern0pt}{\isacharbrackright}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}lhs{\isacharparenright}{\kern0pt}\ bmkeps{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{4}}{\isacharparenright}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}dn{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}rhs{\isacharparenright}{\kern0pt}\ bmkeps{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{4}}{\isacharparenright}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}medskip{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharbackslash}{\kern0pt}end{\isacharbraceleft}{\kern0pt}tabular{\isacharbraceright}{\kern0pt}\ {\isacharbackslash}{\kern0pt}end{\isacharbraceleft}{\kern0pt}center{\isacharbraceright}{\kern0pt}\ \ \ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharbrackleft}{\kern0pt}mode{\isacharequal}{\kern0pt}IfThen{\isacharbrackright}{\kern0pt}\ bder{\isacharunderscore}{\kern0pt}retrieve{\isacharbraceright}{\kern0pt}\ \ By\ induction\ on\ {\isasymopen}r{\isasymclose}\ \ {\isacharbackslash}{\kern0pt}begin{\isacharbraceleft}{\kern0pt}theorem{\isacharbraceright}{\kern0pt}{\isacharbrackleft}{\kern0pt}Main\ Lemma{\isacharbrackright}{\kern0pt}{\isacharbackslash}{\kern0pt}mbox{\isacharbraceleft}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharbrackleft}{\kern0pt}mode{\isacharequal}{\kern0pt}IfThen{\isacharbrackright}{\kern0pt}\ MAIN{\isacharunderscore}{\kern0pt}decode{\isacharbraceright}{\kern0pt}\ {\isacharbackslash}{\kern0pt}end{\isacharbraceleft}{\kern0pt}theorem{\isacharbraceright}{\kern0pt}\ \ {\isacharbackslash}{\kern0pt}noindent\ Definition\ of\ the\ bitcoded\ lexer\ \ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ blexer{\isacharunderscore}{\kern0pt}def{\isacharbraceright}{\kern0pt}\ \ \ {\isacharbackslash}{\kern0pt}begin{\isacharbraceleft}{\kern0pt}theorem{\isacharbraceright}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ blexer{\isacharunderscore}{\kern0pt}correctness{\isacharbraceright}{\kern0pt}\ {\isacharbackslash}{\kern0pt}end{\isacharbraceleft}{\kern0pt}theorem{\isacharbraceright}{\kern0pt}\ \ }
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1431
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1432
section \isa{Optimisations}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1433
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1434
text \isa{\ \ Derivatives\ as\ calculated\ by\ {\isacharbackslash}{\kern0pt}Brz{\isacharprime}{\kern0pt}s\ method\ are\ usually\ more\ complex\ regular\ expressions\ than\ the\ initial\ one{\isacharsemicolon}{\kern0pt}\ the\ result\ is\ that\ the\ derivative{\isacharminus}{\kern0pt}based\ matching\ and\ lexing\ algorithms\ are\ often\ abysmally\ slow{\isachardot}{\kern0pt}\ However{\isacharcomma}{\kern0pt}\ various\ optimisations\ are\ possible{\isacharcomma}{\kern0pt}\ such\ as\ the\ simplifications\ of\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}ALT\ ZERO\ r{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharcomma}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}ALT\ r\ ZERO{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharcomma}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}SEQ\ ONE\ r{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}\ and\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}SEQ\ r\ ONE{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}\ to\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ r{\isacharbraceright}{\kern0pt}{\isachardot}{\kern0pt}\ These\ simplifications\ can\ speed\ up\ the\ algorithms\ considerably{\isacharcomma}{\kern0pt}\ as\ noted\ in\ {\isacharbackslash}{\kern0pt}cite{\isacharbraceleft}{\kern0pt}Sulzmann{\isadigit{2}}{\isadigit{0}}{\isadigit{1}}{\isadigit{4}}{\isacharbraceright}{\kern0pt}{\isachardot}{\kern0pt}\ One\ of\ the\ advantages\ of\ having\ a\ simple\ specification\ and\ correctness\ proof\ is\ that\ the\ latter\ can\ be\ refined\ to\ prove\ the\ correctness\ of\ such\ simplification\ steps{\isachardot}{\kern0pt}\ While\ the\ simplification\ of\ regular\ expressions\ according\ to\ rules\ like\ \ {\isacharbackslash}{\kern0pt}begin{\isacharbraceleft}{\kern0pt}equation{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}label{\isacharbraceleft}{\kern0pt}Simpl{\isacharbraceright}{\kern0pt}\ {\isacharbackslash}{\kern0pt}begin{\isacharbraceleft}{\kern0pt}array{\isacharbraceright}{\kern0pt}{\isacharbraceleft}{\kern0pt}lcllcllcllcl{\isacharbraceright}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}ALT\ ZERO\ r{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isasymopen}{\isasymRightarrow}{\isasymclose}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ r{\isacharbraceright}{\kern0pt}\ {\isacharbackslash}{\kern0pt}hspace{\isacharbraceleft}{\kern0pt}{\isadigit{8}}mm{\isacharbraceright}{\kern0pt}{\isacharpercent}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}ALT\ r\ ZERO{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isasymopen}{\isasymRightarrow}{\isasymclose}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ r{\isacharbraceright}{\kern0pt}\ {\isacharbackslash}{\kern0pt}hspace{\isacharbraceleft}{\kern0pt}{\isadigit{8}}mm{\isacharbraceright}{\kern0pt}{\isacharpercent}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}SEQ\ ONE\ r{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}\ \ {\isacharampersand}{\kern0pt}\ {\isasymopen}{\isasymRightarrow}{\isasymclose}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ r{\isacharbraceright}{\kern0pt}\ {\isacharbackslash}{\kern0pt}hspace{\isacharbraceleft}{\kern0pt}{\isadigit{8}}mm{\isacharbraceright}{\kern0pt}{\isacharpercent}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}SEQ\ r\ ONE{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}\ \ {\isacharampersand}{\kern0pt}\ {\isasymopen}{\isasymRightarrow}{\isasymclose}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ r{\isacharbraceright}{\kern0pt}\ {\isacharbackslash}{\kern0pt}end{\isacharbraceleft}{\kern0pt}array{\isacharbraceright}{\kern0pt}\ {\isacharbackslash}{\kern0pt}end{\isacharbraceleft}{\kern0pt}equation{\isacharbraceright}{\kern0pt}\ \ {\isacharbackslash}{\kern0pt}noindent\ is\ well\ understood{\isacharcomma}{\kern0pt}\ there\ is\ an\ obstacle\ with\ the\ POSIX\ value\ calculation\ algorithm\ by\ Sulzmann\ and\ Lu{\isacharcolon}{\kern0pt}\ if\ we\ build\ a\ derivative\ regular\ expression\ and\ then\ simplify\ it{\isacharcomma}{\kern0pt}\ we\ will\ calculate\ a\ POSIX\ value\ for\ this\ simplified\ derivative\ regular\ expression{\isacharcomma}{\kern0pt}\ {\isacharbackslash}{\kern0pt}emph{\isacharbraceleft}{\kern0pt}not{\isacharbraceright}{\kern0pt}\ for\ the\ original\ {\isacharparenleft}{\kern0pt}unsimplified{\isacharparenright}{\kern0pt}\ derivative\ regular\ expression{\isachardot}{\kern0pt}\ Sulzmann\ and\ Lu\ {\isacharbackslash}{\kern0pt}cite{\isacharbraceleft}{\kern0pt}Sulzmann{\isadigit{2}}{\isadigit{0}}{\isadigit{1}}{\isadigit{4}}{\isacharbraceright}{\kern0pt}\ overcome\ this\ obstacle\ by\ not\ just\ calculating\ a\ simplified\ regular\ expression{\isacharcomma}{\kern0pt}\ but\ also\ calculating\ a\ {\isacharbackslash}{\kern0pt}emph{\isacharbraceleft}{\kern0pt}rectification\ function{\isacharbraceright}{\kern0pt}\ that\ {\isacharbackquote}{\kern0pt}{\isacharbackquote}{\kern0pt}repairs{\isacharprime}{\kern0pt}{\isacharprime}{\kern0pt}\ the\ incorrect\ value{\isachardot}{\kern0pt}\ \ The\ rectification\ functions\ can\ be\ {\isacharparenleft}{\kern0pt}slightly\ clumsily{\isacharparenright}{\kern0pt}\ implemented\ \ in\ Isabelle{\isacharslash}{\kern0pt}HOL\ as\ follows\ using\ some\ auxiliary\ functions{\isacharcolon}{\kern0pt}\ \ {\isacharbackslash}{\kern0pt}begin{\isacharbraceleft}{\kern0pt}center{\isacharbraceright}{\kern0pt}\ {\isacharbackslash}{\kern0pt}begin{\isacharbraceleft}{\kern0pt}tabular{\isacharbraceright}{\kern0pt}{\isacharbraceleft}{\kern0pt}lcl{\isacharbraceright}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}lhs{\isacharparenright}{\kern0pt}\ F{\isacharunderscore}{\kern0pt}RIGHT{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{1}}{\isacharparenright}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}dn{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isasymopen}Right\ {\isacharparenleft}{\kern0pt}f\ v{\isacharparenright}{\kern0pt}{\isasymclose}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}lhs{\isacharparenright}{\kern0pt}\ F{\isacharunderscore}{\kern0pt}LEFT{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{1}}{\isacharparenright}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}dn{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isasymopen}Left\ {\isacharparenleft}{\kern0pt}f\ v{\isacharparenright}{\kern0pt}{\isasymclose}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ \ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}lhs{\isacharparenright}{\kern0pt}\ F{\isacharunderscore}{\kern0pt}ALT{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{1}}{\isacharparenright}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}dn{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isasymopen}Right\ {\isacharparenleft}{\kern0pt}f\isactrlsub {\isadigit{2}}\ v{\isacharparenright}{\kern0pt}{\isasymclose}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}lhs{\isacharparenright}{\kern0pt}\ F{\isacharunderscore}{\kern0pt}ALT{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{2}}{\isacharparenright}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}dn{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isasymopen}Left\ {\isacharparenleft}{\kern0pt}f\isactrlsub {\isadigit{1}}\ v{\isacharparenright}{\kern0pt}{\isasymclose}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ \ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}lhs{\isacharparenright}{\kern0pt}\ F{\isacharunderscore}{\kern0pt}SEQ{\isadigit{1}}{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{1}}{\isacharparenright}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}dn{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isasymopen}Seq\ {\isacharparenleft}{\kern0pt}f\isactrlsub {\isadigit{1}}\ {\isacharparenleft}{\kern0pt}{\isacharparenright}{\kern0pt}{\isacharparenright}{\kern0pt}\ {\isacharparenleft}{\kern0pt}f\isactrlsub {\isadigit{2}}\ v{\isacharparenright}{\kern0pt}{\isasymclose}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}lhs{\isacharparenright}{\kern0pt}\ F{\isacharunderscore}{\kern0pt}SEQ{\isadigit{2}}{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{1}}{\isacharparenright}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}dn{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isasymopen}Seq\ {\isacharparenleft}{\kern0pt}f\isactrlsub {\isadigit{1}}\ v{\isacharparenright}{\kern0pt}\ {\isacharparenleft}{\kern0pt}f\isactrlsub {\isadigit{2}}\ {\isacharparenleft}{\kern0pt}{\isacharparenright}{\kern0pt}{\isacharparenright}{\kern0pt}{\isasymclose}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}lhs{\isacharparenright}{\kern0pt}\ F{\isacharunderscore}{\kern0pt}SEQ{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{1}}{\isacharparenright}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}dn{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isasymopen}Seq\ {\isacharparenleft}{\kern0pt}f\isactrlsub {\isadigit{1}}\ v\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}\ {\isacharparenleft}{\kern0pt}f\isactrlsub {\isadigit{2}}\ v\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}{\isasymclose}{\isacharbackslash}{\kern0pt}medskip{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharpercent}{\kern0pt}{\isacharbackslash}{\kern0pt}end{\isacharbraceleft}{\kern0pt}tabular{\isacharbraceright}{\kern0pt}\ {\isacharpercent}{\kern0pt}\ {\isacharpercent}{\kern0pt}{\isacharbackslash}{\kern0pt}begin{\isacharbraceleft}{\kern0pt}tabular{\isacharbraceright}{\kern0pt}{\isacharbraceleft}{\kern0pt}lcl{\isacharbraceright}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}simp{\isacharunderscore}{\kern0pt}ALT\ {\isacharparenleft}{\kern0pt}ZERO{\isacharcomma}{\kern0pt}\ DUMMY{\isacharparenright}{\kern0pt}\ {\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{2}}{\isacharcomma}{\kern0pt}\ f\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}dn{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}{\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{2}}{\isacharcomma}{\kern0pt}\ F{\isacharunderscore}{\kern0pt}RIGHT\ f\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}simp{\isacharunderscore}{\kern0pt}ALT\ {\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}{\isacharcomma}{\kern0pt}\ f\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}\ {\isacharparenleft}{\kern0pt}ZERO{\isacharcomma}{\kern0pt}\ DUMMY{\isacharparenright}{\kern0pt}{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}dn{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}{\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}{\isacharcomma}{\kern0pt}\ F{\isacharunderscore}{\kern0pt}LEFT\ f\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}simp{\isacharunderscore}{\kern0pt}ALT\ {\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}{\isacharcomma}{\kern0pt}\ f\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}\ {\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{2}}{\isacharcomma}{\kern0pt}\ f\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}dn{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}{\isacharparenleft}{\kern0pt}ALT\ r\isactrlsub {\isadigit{1}}\ r\isactrlsub {\isadigit{2}}{\isacharcomma}{\kern0pt}\ F{\isacharunderscore}{\kern0pt}ALT\ f\isactrlsub {\isadigit{1}}\ f\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}simp{\isacharunderscore}{\kern0pt}SEQ\ {\isacharparenleft}{\kern0pt}ONE{\isacharcomma}{\kern0pt}\ f\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}\ {\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{2}}{\isacharcomma}{\kern0pt}\ f\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}dn{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}{\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{2}}{\isacharcomma}{\kern0pt}\ F{\isacharunderscore}{\kern0pt}SEQ{\isadigit{1}}\ f\isactrlsub {\isadigit{1}}\ f\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}simp{\isacharunderscore}{\kern0pt}SEQ\ {\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}{\isacharcomma}{\kern0pt}\ f\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}\ {\isacharparenleft}{\kern0pt}ONE{\isacharcomma}{\kern0pt}\ f\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}dn{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}{\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}{\isacharcomma}{\kern0pt}\ F{\isacharunderscore}{\kern0pt}SEQ{\isadigit{2}}\ f\isactrlsub {\isadigit{1}}\ f\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}simp{\isacharunderscore}{\kern0pt}SEQ\ {\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}{\isacharcomma}{\kern0pt}\ f\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}\ {\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{2}}{\isacharcomma}{\kern0pt}\ f\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}dn{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}{\isacharparenleft}{\kern0pt}SEQ\ r\isactrlsub {\isadigit{1}}\ r\isactrlsub {\isadigit{2}}{\isacharcomma}{\kern0pt}\ F{\isacharunderscore}{\kern0pt}SEQ\ f\isactrlsub {\isadigit{1}}\ f\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharbackslash}{\kern0pt}end{\isacharbraceleft}{\kern0pt}tabular{\isacharbraceright}{\kern0pt}\ {\isacharbackslash}{\kern0pt}end{\isacharbraceleft}{\kern0pt}center{\isacharbraceright}{\kern0pt}\ \ {\isacharbackslash}{\kern0pt}noindent\ The\ functions\ {\isasymopen}simp\isactrlbsub Alt\isactrlesub {\isasymclose}\ and\ {\isasymopen}simp\isactrlbsub Seq\isactrlesub {\isasymclose}\ encode\ the\ simplification\ rules\ in\ {\isacharbackslash}{\kern0pt}eqref{\isacharbraceleft}{\kern0pt}Simpl{\isacharbraceright}{\kern0pt}\ and\ compose\ the\ rectification\ functions\ {\isacharparenleft}{\kern0pt}simplifications\ can\ occur\ deep\ inside\ the\ regular\ expression{\isacharparenright}{\kern0pt}{\isachardot}{\kern0pt}\ The\ main\ simplification\ function\ is\ then\ \ {\isacharbackslash}{\kern0pt}begin{\isacharbraceleft}{\kern0pt}center{\isacharbraceright}{\kern0pt}\ {\isacharbackslash}{\kern0pt}begin{\isacharbraceleft}{\kern0pt}tabular{\isacharbraceright}{\kern0pt}{\isacharbraceleft}{\kern0pt}lcl{\isacharbraceright}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}simp\ {\isacharparenleft}{\kern0pt}ALT\ r\isactrlsub {\isadigit{1}}\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}dn{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}simp{\isacharunderscore}{\kern0pt}ALT\ {\isacharparenleft}{\kern0pt}simp\ r\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}\ {\isacharparenleft}{\kern0pt}simp\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}simp\ {\isacharparenleft}{\kern0pt}SEQ\ r\isactrlsub {\isadigit{1}}\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}dn{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}simp{\isacharunderscore}{\kern0pt}SEQ\ {\isacharparenleft}{\kern0pt}simp\ r\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}\ {\isacharparenleft}{\kern0pt}simp\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}simp\ r{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}dn{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}{\isacharparenleft}{\kern0pt}r{\isacharcomma}{\kern0pt}\ id{\isacharparenright}{\kern0pt}{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharbackslash}{\kern0pt}end{\isacharbraceleft}{\kern0pt}tabular{\isacharbraceright}{\kern0pt}\ {\isacharbackslash}{\kern0pt}end{\isacharbraceleft}{\kern0pt}center{\isacharbraceright}{\kern0pt}\ \ {\isacharbackslash}{\kern0pt}noindent\ where\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}id{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}\ stands\ for\ the\ identity\ function{\isachardot}{\kern0pt}\ The\ function\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}const\ simp{\isacharbraceright}{\kern0pt}\ returns\ a\ simplified\ regular\ expression\ and\ a\ corresponding\ rectification\ function{\isachardot}{\kern0pt}\ Note\ that\ we\ do\ not\ simplify\ under\ stars{\isacharcolon}{\kern0pt}\ this\ seems\ to\ slow\ down\ the\ algorithm{\isacharcomma}{\kern0pt}\ rather\ than\ speed\ it\ up{\isachardot}{\kern0pt}\ The\ optimised\ lexer\ is\ then\ given\ by\ the\ clauses{\isacharcolon}{\kern0pt}\ \ {\isacharbackslash}{\kern0pt}begin{\isacharbraceleft}{\kern0pt}center{\isacharbraceright}{\kern0pt}\ {\isacharbackslash}{\kern0pt}begin{\isacharbraceleft}{\kern0pt}tabular{\isacharbraceright}{\kern0pt}{\isacharbraceleft}{\kern0pt}lcl{\isacharbraceright}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}lhs{\isacharparenright}{\kern0pt}\ slexer{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{1}}{\isacharparenright}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}dn{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}rhs{\isacharparenright}{\kern0pt}\ slexer{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{1}}{\isacharparenright}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ {\isacharparenleft}{\kern0pt}lhs{\isacharparenright}{\kern0pt}\ slexer{\isachardot}{\kern0pt}simps{\isacharparenleft}{\kern0pt}{\isadigit{2}}{\isacharparenright}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}dn{\isachardollar}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isasymopen}let\ {\isacharparenleft}{\kern0pt}r\isactrlsub s{\isacharcomma}{\kern0pt}\ f\isactrlsub r{\isacharparenright}{\kern0pt}\ {\isacharequal}{\kern0pt}\ simp\ {\isacharparenleft}{\kern0pt}r\ {\isasymclose}{\isachardollar}{\kern0pt}{\isacharbackslash}{\kern0pt}backslash{\isachardollar}{\kern0pt}{\isasymopen}\ c{\isacharparenright}{\kern0pt}\ in{\isasymclose}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isasymopen}case{\isasymclose}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}slexer\ r\isactrlsub s\ s{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isasymopen}of{\isasymclose}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharbackslash}{\kern0pt}phantom{\isacharbraceleft}{\kern0pt}{\isachardollar}{\kern0pt}{\isacharbar}{\kern0pt}{\isachardollar}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}None{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}\ \ {\isasymopen}{\isasymRightarrow}{\isasymclose}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ None{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isachardollar}{\kern0pt}{\isacharbar}{\kern0pt}{\isachardollar}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}Some\ v{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}\ {\isasymopen}{\isasymRightarrow}{\isasymclose}\ {\isasymopen}Some\ {\isacharparenleft}{\kern0pt}inj\ r\ c\ {\isacharparenleft}{\kern0pt}f\isactrlsub r\ v{\isacharparenright}{\kern0pt}{\isacharparenright}{\kern0pt}{\isasymclose}\ {\isacharbackslash}{\kern0pt}end{\isacharbraceleft}{\kern0pt}tabular{\isacharbraceright}{\kern0pt}\ {\isacharbackslash}{\kern0pt}end{\isacharbraceleft}{\kern0pt}center{\isacharbraceright}{\kern0pt}\ \ {\isacharbackslash}{\kern0pt}noindent\ In\ the\ second\ clause\ we\ first\ calculate\ the\ derivative\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}der\ c\ r{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}\ and\ then\ simplify\ the\ result{\isachardot}{\kern0pt}\ This\ gives\ us\ a\ simplified\ derivative\ {\isasymopen}r\isactrlsub s{\isasymclose}\ and\ a\ rectification\ function\ {\isasymopen}f\isactrlsub r{\isasymclose}{\isachardot}{\kern0pt}\ The\ lexer\ is\ then\ recursively\ called\ with\ the\ simplified\ derivative{\isacharcomma}{\kern0pt}\ but\ before\ we\ inject\ the\ character\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ c{\isacharbraceright}{\kern0pt}\ into\ the\ value\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ v{\isacharbraceright}{\kern0pt}{\isacharcomma}{\kern0pt}\ we\ need\ to\ rectify\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ v{\isacharbraceright}{\kern0pt}\ {\isacharparenleft}{\kern0pt}that\ is\ construct\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}f\isactrlsub r\ v{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharparenright}{\kern0pt}{\isachardot}{\kern0pt}\ Before\ we\ can\ establish\ the\ correctness\ of\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}slexer{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharcomma}{\kern0pt}\ we\ need\ to\ show\ that\ simplification\ preserves\ the\ language\ and\ simplification\ preserves\ our\ POSIX\ relation\ once\ the\ value\ is\ rectified\ {\isacharparenleft}{\kern0pt}recall\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}const\ {\isachardoublequote}{\kern0pt}simp{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}\ generates\ a\ {\isacharparenleft}{\kern0pt}regular\ expression{\isacharcomma}{\kern0pt}\ rectification\ function{\isacharparenright}{\kern0pt}\ pair{\isacharparenright}{\kern0pt}{\isacharcolon}{\kern0pt}\ \ {\isacharbackslash}{\kern0pt}begin{\isacharbraceleft}{\kern0pt}lemma{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}mbox{\isacharbraceleft}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}smallskip{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}label{\isacharbraceleft}{\kern0pt}slexeraux{\isacharbraceright}{\kern0pt}\ {\isacharbackslash}{\kern0pt}begin{\isacharbraceleft}{\kern0pt}tabular{\isacharbraceright}{\kern0pt}{\isacharbraceleft}{\kern0pt}ll{\isacharbraceright}{\kern0pt}\ {\isacharparenleft}{\kern0pt}{\isadigit{1}}{\isacharparenright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ L{\isacharunderscore}{\kern0pt}fst{\isacharunderscore}{\kern0pt}simp{\isacharbrackleft}{\kern0pt}symmetric{\isacharbrackright}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharbackslash}{\kern0pt}{\isacharbackslash}{\kern0pt}\ {\isacharparenleft}{\kern0pt}{\isadigit{2}}{\isacharparenright}{\kern0pt}\ {\isacharampersand}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm{\isacharbrackleft}{\kern0pt}mode{\isacharequal}{\kern0pt}IfThen{\isacharbrackright}{\kern0pt}\ Posix{\isacharunderscore}{\kern0pt}simp{\isacharbraceright}{\kern0pt}\ {\isacharbackslash}{\kern0pt}end{\isacharbraceleft}{\kern0pt}tabular{\isacharbraceright}{\kern0pt}\ {\isacharbackslash}{\kern0pt}end{\isacharbraceleft}{\kern0pt}lemma{\isacharbraceright}{\kern0pt}\ \ {\isacharbackslash}{\kern0pt}begin{\isacharbraceleft}{\kern0pt}proof{\isacharbraceright}{\kern0pt}\ Both\ are\ by\ induction\ on\ {\isasymopen}r{\isasymclose}{\isachardot}{\kern0pt}\ There\ is\ no\ interesting\ case\ for\ the\ first\ statement{\isachardot}{\kern0pt}\ For\ the\ second\ statement{\isacharcomma}{\kern0pt}\ of\ interest\ are\ the\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}r\ {\isacharequal}{\kern0pt}\ ALT\ r\isactrlsub {\isadigit{1}}\ r\isactrlsub {\isadigit{2}}{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}\ and\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}r\ {\isacharequal}{\kern0pt}\ SEQ\ r\isactrlsub {\isadigit{1}}\ r\isactrlsub {\isadigit{2}}{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}\ cases{\isachardot}{\kern0pt}\ In\ each\ case\ we\ have\ to\ analyse\ four\ subcases\ whether\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}fst\ {\isacharparenleft}{\kern0pt}simp\ r\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}\ and\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}fst\ {\isacharparenleft}{\kern0pt}simp\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}\ equals\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}const\ ZERO{\isacharbraceright}{\kern0pt}\ {\isacharparenleft}{\kern0pt}respectively\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}const\ ONE{\isacharbraceright}{\kern0pt}{\isacharparenright}{\kern0pt}{\isachardot}{\kern0pt}\ For\ example\ for\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}r\ {\isacharequal}{\kern0pt}\ ALT\ r\isactrlsub {\isadigit{1}}\ r\isactrlsub {\isadigit{2}}{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharcomma}{\kern0pt}\ consider\ the\ subcase\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}fst\ {\isacharparenleft}{\kern0pt}simp\ r\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}\ {\isacharequal}{\kern0pt}\ ZERO{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}\ and\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}fst\ {\isacharparenleft}{\kern0pt}simp\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}\ {\isasymnoteq}\ ZERO{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isachardot}{\kern0pt}\ By\ assumption\ we\ know\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}s\ {\isasymin}\ fst\ {\isacharparenleft}{\kern0pt}simp\ {\isacharparenleft}{\kern0pt}ALT\ r\isactrlsub {\isadigit{1}}\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ v{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isachardot}{\kern0pt}\ From\ this\ we\ can\ infer\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}s\ {\isasymin}\ fst\ {\isacharparenleft}{\kern0pt}simp\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ v{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}\ and\ by\ IH\ also\ {\isacharparenleft}{\kern0pt}{\isacharasterisk}{\kern0pt}{\isacharparenright}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}s\ {\isasymin}\ r\isactrlsub {\isadigit{2}}\ {\isasymrightarrow}\ {\isacharparenleft}{\kern0pt}snd\ {\isacharparenleft}{\kern0pt}simp\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}\ v{\isacharparenright}{\kern0pt}{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isachardot}{\kern0pt}\ Given\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}fst\ {\isacharparenleft}{\kern0pt}simp\ r\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}\ {\isacharequal}{\kern0pt}\ ZERO{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}\ we\ know\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}L\ {\isacharparenleft}{\kern0pt}fst\ {\isacharparenleft}{\kern0pt}simp\ r\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}{\isacharparenright}{\kern0pt}\ {\isacharequal}{\kern0pt}\ {\isacharbraceleft}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isachardot}{\kern0pt}\ By\ the\ first\ statement\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}L\ r\isactrlsub {\isadigit{1}}{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}\ is\ the\ empty\ set{\isacharcomma}{\kern0pt}\ meaning\ {\isacharparenleft}{\kern0pt}{\isacharasterisk}{\kern0pt}{\isacharasterisk}{\kern0pt}{\isacharparenright}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}s\ {\isasymnotin}\ L\ r\isactrlsub {\isadigit{1}}{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isachardot}{\kern0pt}\ Taking\ {\isacharparenleft}{\kern0pt}{\isacharasterisk}{\kern0pt}{\isacharparenright}{\kern0pt}\ and\ {\isacharparenleft}{\kern0pt}{\isacharasterisk}{\kern0pt}{\isacharasterisk}{\kern0pt}{\isacharparenright}{\kern0pt}\ together\ gives\ by\ the\ {\isacharbackslash}{\kern0pt}mbox{\isacharbraceleft}{\kern0pt}{\isasymopen}P{\isacharplus}{\kern0pt}R{\isasymclose}{\isacharbraceright}{\kern0pt}{\isacharminus}{\kern0pt}rule\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}s\ {\isasymin}\ ALT\ r\isactrlsub {\isadigit{1}}\ r\isactrlsub {\isadigit{2}}\ {\isasymrightarrow}\ Right\ {\isacharparenleft}{\kern0pt}snd\ {\isacharparenleft}{\kern0pt}simp\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}\ v{\isacharparenright}{\kern0pt}{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isachardot}{\kern0pt}\ In\ turn\ this\ gives\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}s\ {\isasymin}\ ALT\ r\isactrlsub {\isadigit{1}}\ r\isactrlsub {\isadigit{2}}\ {\isasymrightarrow}\ snd\ {\isacharparenleft}{\kern0pt}simp\ {\isacharparenleft}{\kern0pt}ALT\ r\isactrlsub {\isadigit{1}}\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}{\isacharparenright}{\kern0pt}\ v{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}\ as\ we\ need\ to\ show{\isachardot}{\kern0pt}\ The\ other\ cases\ are\ similar{\isachardot}{\kern0pt}{\isacharbackslash}{\kern0pt}qed\ {\isacharbackslash}{\kern0pt}end{\isacharbraceleft}{\kern0pt}proof{\isacharbraceright}{\kern0pt}\ \ {\isacharbackslash}{\kern0pt}noindent\ We\ can\ now\ prove\ relatively\ straightforwardly\ that\ the\ optimised\ lexer\ produces\ the\ expected\ result{\isacharcolon}{\kern0pt}\ \ {\isacharbackslash}{\kern0pt}begin{\isacharbraceleft}{\kern0pt}theorem{\isacharbraceright}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}thm\ slexer{\isacharunderscore}{\kern0pt}correctness{\isacharbraceright}{\kern0pt}\ {\isacharbackslash}{\kern0pt}end{\isacharbraceleft}{\kern0pt}theorem{\isacharbraceright}{\kern0pt}\ \ {\isacharbackslash}{\kern0pt}begin{\isacharbraceleft}{\kern0pt}proof{\isacharbraceright}{\kern0pt}\ By\ induction\ on\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ s{\isacharbraceright}{\kern0pt}\ generalising\ over\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ r{\isacharbraceright}{\kern0pt}{\isachardot}{\kern0pt}\ The\ case\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}{\isacharbrackleft}{\kern0pt}{\isacharbrackright}{\kern0pt}{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}\ is\ trivial{\isachardot}{\kern0pt}\ For\ the\ cons{\isacharminus}{\kern0pt}case\ suppose\ the\ string\ is\ of\ the\ form\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}c\ {\isacharhash}{\kern0pt}\ s{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isachardot}{\kern0pt}\ By\ induction\ hypothesis\ we\ know\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}slexer\ r\ s\ {\isacharequal}{\kern0pt}\ lexer\ r\ s{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}\ holds\ for\ all\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ r{\isacharbraceright}{\kern0pt}\ {\isacharparenleft}{\kern0pt}in\ particular\ for\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}r{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}\ being\ the\ derivative\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}der\ c\ r{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharparenright}{\kern0pt}{\isachardot}{\kern0pt}\ Let\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}r\isactrlsub s{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}\ be\ the\ simplified\ derivative\ regular\ expression{\isacharcomma}{\kern0pt}\ that\ is\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}fst\ {\isacharparenleft}{\kern0pt}simp\ {\isacharparenleft}{\kern0pt}der\ c\ r{\isacharparenright}{\kern0pt}{\isacharparenright}{\kern0pt}{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharcomma}{\kern0pt}\ and\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}f\isactrlsub r{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}\ be\ the\ rectification\ function{\isacharcomma}{\kern0pt}\ that\ is\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}snd\ {\isacharparenleft}{\kern0pt}simp\ {\isacharparenleft}{\kern0pt}der\ c\ r{\isacharparenright}{\kern0pt}{\isacharparenright}{\kern0pt}{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isachardot}{\kern0pt}\ \ We\ distinguish\ the\ cases\ whether\ {\isacharparenleft}{\kern0pt}{\isacharasterisk}{\kern0pt}{\isacharparenright}{\kern0pt}\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}s\ {\isasymin}\ L\ {\isacharparenleft}{\kern0pt}der\ c\ r{\isacharparenright}{\kern0pt}{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}\ or\ not{\isachardot}{\kern0pt}\ In\ the\ first\ case\ we\ have\ by\ Theorem{\isachartilde}{\kern0pt}{\isacharbackslash}{\kern0pt}ref{\isacharbraceleft}{\kern0pt}lexercorrect{\isacharbraceright}{\kern0pt}{\isacharparenleft}{\kern0pt}{\isadigit{2}}{\isacharparenright}{\kern0pt}\ a\ value\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}v{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}\ so\ that\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}lexer\ {\isacharparenleft}{\kern0pt}der\ c\ r{\isacharparenright}{\kern0pt}\ s\ {\isacharequal}{\kern0pt}\ Some\ v{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}\ and\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}s\ {\isasymin}\ der\ c\ r\ {\isasymrightarrow}\ v{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}\ hold{\isachardot}{\kern0pt}\ By\ Lemma{\isachartilde}{\kern0pt}{\isacharbackslash}{\kern0pt}ref{\isacharbraceleft}{\kern0pt}slexeraux{\isacharbraceright}{\kern0pt}{\isacharparenleft}{\kern0pt}{\isadigit{1}}{\isacharparenright}{\kern0pt}\ we\ can\ also\ infer\ from{\isachartilde}{\kern0pt}{\isacharparenleft}{\kern0pt}{\isacharasterisk}{\kern0pt}{\isacharparenright}{\kern0pt}\ that\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}s\ {\isasymin}\ L\ r\isactrlsub s{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}\ holds{\isachardot}{\kern0pt}\ \ Hence\ we\ know\ by\ Theorem{\isachartilde}{\kern0pt}{\isacharbackslash}{\kern0pt}ref{\isacharbraceleft}{\kern0pt}lexercorrect{\isacharbraceright}{\kern0pt}{\isacharparenleft}{\kern0pt}{\isadigit{2}}{\isacharparenright}{\kern0pt}\ that\ there\ exists\ a\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}v{\isacharprime}{\kern0pt}{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}\ with\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}lexer\ r\isactrlsub s\ s\ {\isacharequal}{\kern0pt}\ Some\ v{\isacharprime}{\kern0pt}{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}\ and\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}s\ {\isasymin}\ r\isactrlsub s\ {\isasymrightarrow}\ v{\isacharprime}{\kern0pt}{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isachardot}{\kern0pt}\ From\ the\ latter\ we\ know\ by\ Lemma{\isachartilde}{\kern0pt}{\isacharbackslash}{\kern0pt}ref{\isacharbraceleft}{\kern0pt}slexeraux{\isacharbraceright}{\kern0pt}{\isacharparenleft}{\kern0pt}{\isadigit{2}}{\isacharparenright}{\kern0pt}\ that\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}s\ {\isasymin}\ der\ c\ r\ {\isasymrightarrow}\ {\isacharparenleft}{\kern0pt}f\isactrlsub r\ v{\isacharprime}{\kern0pt}{\isacharparenright}{\kern0pt}{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}\ holds{\isachardot}{\kern0pt}\ By\ the\ uniqueness\ of\ the\ POSIX\ relation\ {\isacharparenleft}{\kern0pt}Theorem{\isachartilde}{\kern0pt}{\isacharbackslash}{\kern0pt}ref{\isacharbraceleft}{\kern0pt}posixdeterm{\isacharbraceright}{\kern0pt}{\isacharparenright}{\kern0pt}\ we\ can\ infer\ that\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ v{\isacharbraceright}{\kern0pt}\ is\ equal\ to\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}f\isactrlsub r\ v{\isacharprime}{\kern0pt}{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isacharminus}{\kern0pt}{\isacharminus}{\kern0pt}{\isacharminus}{\kern0pt}that\ is\ the\ rectification\ function\ applied\ to\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}v{\isacharprime}{\kern0pt}{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}\ produces\ the\ original\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}v{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isachardot}{\kern0pt}\ \ Now\ the\ case\ follows\ by\ the\ definitions\ of\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}const\ lexer{\isacharbraceright}{\kern0pt}\ and\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}const\ slexer{\isacharbraceright}{\kern0pt}{\isachardot}{\kern0pt}\ \ In\ the\ second\ case\ where\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}s\ {\isasymnotin}\ L\ {\isacharparenleft}{\kern0pt}der\ c\ r{\isacharparenright}{\kern0pt}{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}\ we\ have\ that\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}lexer\ {\isacharparenleft}{\kern0pt}der\ c\ r{\isacharparenright}{\kern0pt}\ s\ {\isacharequal}{\kern0pt}\ None{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}\ by\ Theorem{\isachartilde}{\kern0pt}{\isacharbackslash}{\kern0pt}ref{\isacharbraceleft}{\kern0pt}lexercorrect{\isacharbraceright}{\kern0pt}{\isacharparenleft}{\kern0pt}{\isadigit{1}}{\isacharparenright}{\kern0pt}{\isachardot}{\kern0pt}\ \ We\ also\ know\ by\ Lemma{\isachartilde}{\kern0pt}{\isacharbackslash}{\kern0pt}ref{\isacharbraceleft}{\kern0pt}slexeraux{\isacharbraceright}{\kern0pt}{\isacharparenleft}{\kern0pt}{\isadigit{1}}{\isacharparenright}{\kern0pt}\ that\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}s\ {\isasymnotin}\ L\ r\isactrlsub s{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isachardot}{\kern0pt}\ Hence\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}lexer\ r\isactrlsub s\ s\ {\isacharequal}{\kern0pt}\ None{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}\ by\ Theorem{\isachartilde}{\kern0pt}{\isacharbackslash}{\kern0pt}ref{\isacharbraceleft}{\kern0pt}lexercorrect{\isacharbraceright}{\kern0pt}{\isacharparenleft}{\kern0pt}{\isadigit{1}}{\isacharparenright}{\kern0pt}\ and\ by\ IH\ then\ also\ {\isacharat}{\kern0pt}{\isacharbraceleft}{\kern0pt}term\ {\isachardoublequote}{\kern0pt}slexer\ r\isactrlsub s\ s\ {\isacharequal}{\kern0pt}\ None{\isachardoublequote}{\kern0pt}{\isacharbraceright}{\kern0pt}{\isachardot}{\kern0pt}\ With\ this\ we\ can\ conclude\ in\ this\ case\ too{\isachardot}{\kern0pt}{\isacharbackslash}{\kern0pt}qed\ \ {\isacharbackslash}{\kern0pt}end{\isacharbraceleft}{\kern0pt}proof{\isacharbraceright}{\kern0pt}\ \ }
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1435
fy the result. This gives us a simplified derivative
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1436
  \isa{r\isactrlsub s} and a rectification function \isa{f\isactrlsub r}. The lexer
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1437
  is then recursively called with the simplified derivative, but before
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1438
  we inject the character \isa{c} into the value \isa{v}, we need to rectify
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1439
  \isa{v} (that is construct \isa{f\isactrlsub r\ v}). Before we can establish the correctness
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1440
  of \isa{lexer\isactrlsup {\isacharplus}{\kern0pt}}, we need to show that simplification preserves the language
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1441
  and simplification preserves our POSIX relation once the value is rectified
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1442
  (recall \isa{simp} generates a (regular expression, rectification function) pair):
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1443
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1444
  \begin{lemma}\mbox{}\smallskip\\\label{slexeraux}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1445
  \begin{tabular}{ll}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1446
  (1) & \isa{L{\isacharparenleft}{\kern0pt}fst\ {\isacharparenleft}{\kern0pt}simp\ r{\isacharparenright}{\kern0pt}{\isacharparenright}{\kern0pt}\ {\isacharequal}{\kern0pt}\ L{\isacharparenleft}{\kern0pt}r{\isacharparenright}{\kern0pt}}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1447
  (2) & \isa{{\normalsize{}If\,}\ {\isacharparenleft}{\kern0pt}s{\isacharcomma}{\kern0pt}\ fst\ {\isacharparenleft}{\kern0pt}simp\ r{\isacharparenright}{\kern0pt}{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ v\ {\normalsize \,then\,}\ {\isacharparenleft}{\kern0pt}s{\isacharcomma}{\kern0pt}\ r{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ snd\ {\isacharparenleft}{\kern0pt}simp\ r{\isacharparenright}{\kern0pt}\ v{\isachardot}{\kern0pt}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1448
  \end{tabular}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1449
  \end{lemma}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1450
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1451
  \begin{proof} Both are by induction on \isa{r}. There is no
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1452
  interesting case for the first statement. For the second statement,
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1453
  of interest are the \isa{r\ {\isacharequal}{\kern0pt}\ r\isactrlsub {\isadigit{1}}\ {\isacharplus}{\kern0pt}\ r\isactrlsub {\isadigit{2}}} and \isa{r\ {\isacharequal}{\kern0pt}\ r\isactrlsub {\isadigit{1}}\ {\isasymcdot}\ r\isactrlsub {\isadigit{2}}} cases. In each case we have to analyse four subcases whether
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1454
  \isa{fst\ {\isacharparenleft}{\kern0pt}simp\ r\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}} and \isa{fst\ {\isacharparenleft}{\kern0pt}simp\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}} equals \isa{\isactrlbold {\isadigit{0}}} (respectively \isa{\isactrlbold {\isadigit{1}}}). For example for \isa{r\ {\isacharequal}{\kern0pt}\ r\isactrlsub {\isadigit{1}}\ {\isacharplus}{\kern0pt}\ r\isactrlsub {\isadigit{2}}}, consider the subcase \isa{fst\ {\isacharparenleft}{\kern0pt}simp\ r\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}\ {\isacharequal}{\kern0pt}\ \isactrlbold {\isadigit{0}}} and
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1455
  \isa{fst\ {\isacharparenleft}{\kern0pt}simp\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}\ {\isasymnoteq}\ \isactrlbold {\isadigit{0}}}. By assumption we know \isa{{\isacharparenleft}{\kern0pt}s{\isacharcomma}{\kern0pt}\ fst\ {\isacharparenleft}{\kern0pt}simp\ {\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}\ {\isacharplus}{\kern0pt}\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}{\isacharparenright}{\kern0pt}{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ v}. From this we can infer \isa{{\isacharparenleft}{\kern0pt}s{\isacharcomma}{\kern0pt}\ fst\ {\isacharparenleft}{\kern0pt}simp\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ v}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1456
  and by IH also (*) \isa{{\isacharparenleft}{\kern0pt}s{\isacharcomma}{\kern0pt}\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ snd\ {\isacharparenleft}{\kern0pt}simp\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}\ v}. Given \isa{fst\ {\isacharparenleft}{\kern0pt}simp\ r\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}\ {\isacharequal}{\kern0pt}\ \isactrlbold {\isadigit{0}}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1457
  we know \isa{L{\isacharparenleft}{\kern0pt}fst\ {\isacharparenleft}{\kern0pt}simp\ r\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}{\isacharparenright}{\kern0pt}\ {\isacharequal}{\kern0pt}\ {\isasymemptyset}}. By the first statement
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1458
  \isa{L{\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}} is the empty set, meaning (**) \isa{s\ {\isasymnotin}\ L{\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}{\isacharparenright}{\kern0pt}}.
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1459
  Taking (*) and (**) together gives by the \mbox{\isa{P{\isacharplus}{\kern0pt}R}}-rule 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1460
  \isa{{\isacharparenleft}{\kern0pt}s{\isacharcomma}{\kern0pt}\ r\isactrlsub {\isadigit{1}}\ {\isacharplus}{\kern0pt}\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ Right\ {\isacharparenleft}{\kern0pt}snd\ {\isacharparenleft}{\kern0pt}simp\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}\ v{\isacharparenright}{\kern0pt}}. In turn this
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1461
  gives \isa{{\isacharparenleft}{\kern0pt}s{\isacharcomma}{\kern0pt}\ r\isactrlsub {\isadigit{1}}\ {\isacharplus}{\kern0pt}\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ snd\ {\isacharparenleft}{\kern0pt}simp\ {\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}\ {\isacharplus}{\kern0pt}\ r\isactrlsub {\isadigit{2}}{\isacharparenright}{\kern0pt}{\isacharparenright}{\kern0pt}\ v} as we need to show.
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1462
  The other cases are similar.\qed
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1463
  \end{proof}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1464
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1465
  \noindent We can now prove relatively straightforwardly that the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1466
  optimised lexer produces the expected result:
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1467
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1468
  \begin{theorem}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1469
  \isa{lexer\isactrlsup {\isacharplus}{\kern0pt}\ r\ s\ {\isacharequal}{\kern0pt}\ lexer\ r\ s}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1470
  \end{theorem}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1471
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1472
  \begin{proof} By induction on \isa{s} generalising over \isa{r}. The case \isa{{\isacharbrackleft}{\kern0pt}{\isacharbrackright}{\kern0pt}} is trivial. For the cons-case suppose the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1473
  string is of the form \isa{c\mbox{$\,$}{\isacharcolon}{\kern0pt}{\isacharcolon}{\kern0pt}\mbox{$\,$}s}. By induction hypothesis we
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1474
  know \isa{lexer\isactrlsup {\isacharplus}{\kern0pt}\ r\ s\ {\isacharequal}{\kern0pt}\ lexer\ r\ s} holds for all \isa{r} (in
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1475
  particular for \isa{r} being the derivative \isa{r{\isacharbackslash}{\kern0pt}c}). Let \isa{r\isactrlsub s} be the simplified derivative regular expression, that is \isa{fst\ {\isacharparenleft}{\kern0pt}simp\ {\isacharparenleft}{\kern0pt}r{\isacharbackslash}{\kern0pt}c{\isacharparenright}{\kern0pt}{\isacharparenright}{\kern0pt}}, and \isa{f\isactrlsub r} be the rectification
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1476
  function, that is \isa{snd\ {\isacharparenleft}{\kern0pt}simp\ {\isacharparenleft}{\kern0pt}r{\isacharbackslash}{\kern0pt}c{\isacharparenright}{\kern0pt}{\isacharparenright}{\kern0pt}}.  We distinguish the cases
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1477
  whether (*) \isa{s\ {\isasymin}\ L{\isacharparenleft}{\kern0pt}r{\isacharbackslash}{\kern0pt}c{\isacharparenright}{\kern0pt}} or not. In the first case we
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1478
  have by Theorem~\ref{lexercorrect}(2) a value \isa{v} so that \isa{lexer\ {\isacharparenleft}{\kern0pt}r{\isacharbackslash}{\kern0pt}c{\isacharparenright}{\kern0pt}\ s\ {\isacharequal}{\kern0pt}\ Some\ v} and \isa{{\isacharparenleft}{\kern0pt}s{\isacharcomma}{\kern0pt}\ r{\isacharbackslash}{\kern0pt}c{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ v} hold.
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1479
  By Lemma~\ref{slexeraux}(1) we can also infer from~(*) that \isa{s\ {\isasymin}\ L{\isacharparenleft}{\kern0pt}r\isactrlsub s{\isacharparenright}{\kern0pt}} holds.  Hence we know by Theorem~\ref{lexercorrect}(2) that
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1480
  there exists a \isa{v{\isacharprime}{\kern0pt}} with \isa{lexer\ r\isactrlsub s\ s\ {\isacharequal}{\kern0pt}\ Some\ v{\isacharprime}{\kern0pt}} and
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1481
  \isa{{\isacharparenleft}{\kern0pt}s{\isacharcomma}{\kern0pt}\ r\isactrlsub s{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ v{\isacharprime}{\kern0pt}}. From the latter we know by
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1482
  Lemma~\ref{slexeraux}(2) that \isa{{\isacharparenleft}{\kern0pt}s{\isacharcomma}{\kern0pt}\ r{\isacharbackslash}{\kern0pt}c{\isacharparenright}{\kern0pt}\ {\isasymrightarrow}\ f\isactrlsub r\ v{\isacharprime}{\kern0pt}} holds.
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1483
  By the uniqueness of the POSIX relation (Theorem~\ref{posixdeterm}) we
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1484
  can infer that \isa{v} is equal to \isa{f\isactrlsub r\ v{\isacharprime}{\kern0pt}}---that is the 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1485
  rectification function applied to \isa{v{\isacharprime}{\kern0pt}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1486
  produces the original \isa{v}.  Now the case follows by the
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1487
  definitions of \isa{lexer} and \isa{lexer\isactrlsup {\isacharplus}{\kern0pt}}.
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1488
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1489
  In the second case where \isa{s\ {\isasymnotin}\ L{\isacharparenleft}{\kern0pt}r{\isacharbackslash}{\kern0pt}c{\isacharparenright}{\kern0pt}} we have that
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1490
  \isa{lexer\ {\isacharparenleft}{\kern0pt}r{\isacharbackslash}{\kern0pt}c{\isacharparenright}{\kern0pt}\ s\ {\isacharequal}{\kern0pt}\ None} by Theorem~\ref{lexercorrect}(1).  We
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1491
  also know by Lemma~\ref{slexeraux}(1) that \isa{s\ {\isasymnotin}\ L{\isacharparenleft}{\kern0pt}r\isactrlsub s{\isacharparenright}{\kern0pt}}. Hence
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1492
  \isa{lexer\ r\isactrlsub s\ s\ {\isacharequal}{\kern0pt}\ None} by Theorem~\ref{lexercorrect}(1) and
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1493
  by IH then also \isa{lexer\isactrlsup {\isacharplus}{\kern0pt}\ r\isactrlsub s\ s\ {\isacharequal}{\kern0pt}\ None}. With this we can
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1494
  conclude in this case too.\qed   
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1495
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1496
  \end{proof}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1497
\end{isamarkuptext}\isamarkuptrue%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1498
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1499
\isadelimdocument
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1500
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1501
\endisadelimdocument
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1502
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1503
\isatagdocument
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1504
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1505
\isamarkupsection{HERE%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1506
}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1507
\isamarkuptrue%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1508
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1509
\endisatagdocument
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1510
{\isafolddocument}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1511
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1512
\isadelimdocument
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1513
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1514
\endisadelimdocument
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1515
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1516
\begin{isamarkuptext}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1517
\begin{lemma}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1518
  \isa{{\normalsize{}If\,}\ v\ {\isacharcolon}{\kern0pt}\ {\isacharparenleft}{\kern0pt}r\mbox{$^\downarrow$}{\isacharparenright}{\kern0pt}{\isacharbackslash}{\kern0pt}c\ {\normalsize \,then\,}\ retrieve\ {\isacharparenleft}{\kern0pt}r\mbox{$\bbslash$}c{\isacharparenright}{\kern0pt}\ v\ {\isacharequal}{\kern0pt}\ retrieve\ r\ {\isacharparenleft}{\kern0pt}inj\ {\isacharparenleft}{\kern0pt}r\mbox{$^\downarrow$}{\isacharparenright}{\kern0pt}\ c\ v{\isacharparenright}{\kern0pt}{\isachardot}{\kern0pt}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1519
  \end{lemma}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1520
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1521
  \begin{proof}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1522
  By induction on the definition of \isa{r\mbox{$^\downarrow$}}. The cases for rule 1) and 2) are
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1523
  straightforward as \isa{\isactrlbold {\isadigit{0}}{\isacharbackslash}{\kern0pt}c} and \isa{\isactrlbold {\isadigit{1}}{\isacharbackslash}{\kern0pt}c} are both equal to 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1524
  \isa{\isactrlbold {\isadigit{0}}}. This means \isa{v\ {\isacharcolon}{\kern0pt}\ \isactrlbold {\isadigit{0}}} cannot hold. Similarly in case of rule 3)
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1525
  where \isa{r} is of the form \isa{ACHAR\ d} with \isa{c\ {\isacharequal}{\kern0pt}\ d}. Then by assumption
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1526
  we know \isa{v\ {\isacharcolon}{\kern0pt}\ \isactrlbold {\isadigit{1}}}, which implies \isa{v\ {\isacharequal}{\kern0pt}\ Empty}. The equation follows by 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1527
  simplification of left- and right-hand side. In  case \isa{c\ {\isasymnoteq}\ d} we have again
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1528
  \isa{v\ {\isacharcolon}{\kern0pt}\ \isactrlbold {\isadigit{0}}}, which cannot  hold. 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1529
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1530
  For rule 4a) we have again \isa{v\ {\isacharcolon}{\kern0pt}\ \isactrlbold {\isadigit{0}}}. The property holds by IH for rule 4b).
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1531
  The  induction hypothesis is 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1532
  \[
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1533
  \isa{retrieve\ {\isacharparenleft}{\kern0pt}r\mbox{$\bbslash$}c{\isacharparenright}{\kern0pt}\ v\ {\isacharequal}{\kern0pt}\ retrieve\ r\ {\isacharparenleft}{\kern0pt}inj\ {\isacharparenleft}{\kern0pt}r\mbox{$^\downarrow$}{\isacharparenright}{\kern0pt}\ c\ v{\isacharparenright}{\kern0pt}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1534
  \]
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1535
  which is what left- and right-hand side simplify to.  The slightly more interesting case
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1536
  is for 4c). By assumption  we have 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1537
  \isa{v\ {\isacharcolon}{\kern0pt}\ {\isacharparenleft}{\kern0pt}{\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}\mbox{$^\downarrow$}{\isacharparenright}{\kern0pt}{\isacharbackslash}{\kern0pt}c{\isacharparenright}{\kern0pt}\ {\isacharplus}{\kern0pt}\ {\isacharparenleft}{\kern0pt}{\isacharparenleft}{\kern0pt}{\isacharparenleft}{\kern0pt}AALTs\ bs\ {\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{2}}\mbox{$\,$}{\isacharcolon}{\kern0pt}{\isacharcolon}{\kern0pt}\mbox{$\,$}rs{\isacharparenright}{\kern0pt}{\isacharparenright}{\kern0pt}\mbox{$^\downarrow$}{\isacharparenright}{\kern0pt}{\isacharbackslash}{\kern0pt}c{\isacharparenright}{\kern0pt}}. This means we 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1538
  have either (*) \isa{v{\isadigit{1}}\ {\isacharcolon}{\kern0pt}\ {\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{1}}\mbox{$^\downarrow$}{\isacharparenright}{\kern0pt}{\isacharbackslash}{\kern0pt}c} with \isa{v\ {\isacharequal}{\kern0pt}\ Left\ v{\isadigit{1}}} or
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1539
  (**) \isa{v{\isadigit{2}}\ {\isacharcolon}{\kern0pt}\ {\isacharparenleft}{\kern0pt}{\isacharparenleft}{\kern0pt}AALTs\ bs\ {\isacharparenleft}{\kern0pt}r\isactrlsub {\isadigit{2}}\mbox{$\,$}{\isacharcolon}{\kern0pt}{\isacharcolon}{\kern0pt}\mbox{$\,$}rs{\isacharparenright}{\kern0pt}{\isacharparenright}{\kern0pt}\mbox{$^\downarrow$}{\isacharparenright}{\kern0pt}{\isacharbackslash}{\kern0pt}c} with \isa{v\ {\isacharequal}{\kern0pt}\ Right\ v{\isadigit{2}}}.
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1540
  The former  case is straightforward by simplification. The second case is \ldots TBD.
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1541
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1542
  Rule 5) TBD.
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1543
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1544
  Finally for rule 6) the reasoning is as follows:   By assumption we  have
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1545
  \isa{v\ {\isacharcolon}{\kern0pt}\ {\isacharparenleft}{\kern0pt}{\isacharparenleft}{\kern0pt}r\mbox{$^\downarrow$}{\isacharparenright}{\kern0pt}{\isacharbackslash}{\kern0pt}c{\isacharparenright}{\kern0pt}\ {\isasymcdot}\ {\isacharparenleft}{\kern0pt}r\mbox{$^\downarrow$}{\isacharparenright}{\kern0pt}\isactrlsup {\isasymstar}}. This means we also have
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1546
  \isa{v\ {\isacharequal}{\kern0pt}\ Seq\ v{\isadigit{1}}\ v{\isadigit{2}}}, \isa{v{\isadigit{1}}\ {\isacharcolon}{\kern0pt}\ {\isacharparenleft}{\kern0pt}r\mbox{$^\downarrow$}{\isacharparenright}{\kern0pt}{\isacharbackslash}{\kern0pt}c}  and \isa{v{\isadigit{2}}\ {\isacharequal}{\kern0pt}\ Stars\ vs}.
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1547
  We want to prove
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1548
  \begin{align}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1549
  & \isa{retrieve\ {\isacharparenleft}{\kern0pt}ASEQ\ bs\ {\isacharparenleft}{\kern0pt}fuse\ {\isacharbrackleft}{\kern0pt}Z{\isacharbrackright}{\kern0pt}\ {\isacharparenleft}{\kern0pt}r\mbox{$\bbslash$}c{\isacharparenright}{\kern0pt}{\isacharparenright}{\kern0pt}\ {\isacharparenleft}{\kern0pt}ASTAR\ {\isacharbrackleft}{\kern0pt}{\isacharbrackright}{\kern0pt}\ r{\isacharparenright}{\kern0pt}{\isacharparenright}{\kern0pt}\ v}\\
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1550
  &= \isa{retrieve\ {\isacharparenleft}{\kern0pt}ASTAR\ bs\ r{\isacharparenright}{\kern0pt}\ {\isacharparenleft}{\kern0pt}inj\ {\isacharparenleft}{\kern0pt}{\isacharparenleft}{\kern0pt}r\mbox{$^\downarrow$}{\isacharparenright}{\kern0pt}\isactrlsup {\isasymstar}{\isacharparenright}{\kern0pt}\ c\ v{\isacharparenright}{\kern0pt}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1551
  \end{align}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1552
  The right-hand side \isa{inj}-expression is equal to 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1553
  \isa{Stars\ {\isacharparenleft}{\kern0pt}inj\ {\isacharparenleft}{\kern0pt}r\mbox{$^\downarrow$}{\isacharparenright}{\kern0pt}\ c\ v{\isadigit{1}}\mbox{$\,$}{\isacharcolon}{\kern0pt}{\isacharcolon}{\kern0pt}\mbox{$\,$}vs{\isacharparenright}{\kern0pt}}, which means the \isa{retrieve}-expression
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1554
  simplifies to 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1555
  \[
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1556
  \isa{bs\ {\isacharat}{\kern0pt}\ {\isacharbrackleft}{\kern0pt}Z{\isacharbrackright}{\kern0pt}\ {\isacharat}{\kern0pt}\ retrieve\ r\ {\isacharparenleft}{\kern0pt}inj\ {\isacharparenleft}{\kern0pt}r\mbox{$^\downarrow$}{\isacharparenright}{\kern0pt}\ c\ v{\isadigit{1}}{\isacharparenright}{\kern0pt}\ {\isacharat}{\kern0pt}\ retrieve\ {\isacharparenleft}{\kern0pt}ASTAR\ {\isacharbrackleft}{\kern0pt}{\isacharbrackright}{\kern0pt}\ r{\isacharparenright}{\kern0pt}\ {\isacharparenleft}{\kern0pt}Stars\ vs{\isacharparenright}{\kern0pt}}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1557
  \]
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1558
  The left-hand side (3) above simplifies to 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1559
  \[
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1560
  \isa{bs\ {\isacharat}{\kern0pt}\ retrieve\ {\isacharparenleft}{\kern0pt}fuse\ {\isacharbrackleft}{\kern0pt}Z{\isacharbrackright}{\kern0pt}\ {\isacharparenleft}{\kern0pt}r\mbox{$\bbslash$}c{\isacharparenright}{\kern0pt}{\isacharparenright}{\kern0pt}\ v{\isadigit{1}}\ {\isacharat}{\kern0pt}\ retrieve\ {\isacharparenleft}{\kern0pt}ASTAR\ {\isacharbrackleft}{\kern0pt}{\isacharbrackright}{\kern0pt}\ r{\isacharparenright}{\kern0pt}\ {\isacharparenleft}{\kern0pt}Stars\ vs{\isacharparenright}{\kern0pt}} 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1561
  \]
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1562
  We can move out the \isa{fuse\ {\isacharbrackleft}{\kern0pt}Z{\isacharbrackright}{\kern0pt}} and then use the IH to show that left-hand side
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1563
  and right-hand side are equal. This completes the proof. 
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1564
  \end{proof}   
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1565
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1566
   
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1567
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1568
  \bibliographystyle{plain}
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1569
  \bibliography{root}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1570
\end{isamarkuptext}\isamarkuptrue%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1571
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1572
\isadelimtheory
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1573
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1574
\endisadelimtheory
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1575
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1576
\isatagtheory
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1577
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1578
\endisatagtheory
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1579
{\isafoldtheory}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1580
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1581
\isadelimtheory
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1582
\isanewline
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1583
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1584
\endisadelimtheory
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1585
%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1586
\end{isabellebody}%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1587
\endinput
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1588
%:%file=~/Dropbox/Workspace/journalpaper/lexing/thys2/Journal/Paper.thy%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1589
%:%50=136%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1590
%:%62=141%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1591
%:%63=142%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1592
%:%64=143%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1593
%:%65=144%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1594
%:%66=145%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1595
%:%67=146%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1596
%:%68=147%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1597
%:%69=148%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1598
%:%70=149%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1599
%:%71=150%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1600
%:%72=151%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1601
%:%73=152%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1602
%:%74=153%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1603
%:%75=154%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1604
%:%76=155%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1605
%:%77=156%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1606
%:%78=157%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1607
%:%79=158%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1608
%:%80=159%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1609
%:%81=160%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1610
%:%81=161%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1611
%:%82=162%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1612
%:%83=163%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1613
%:%84=164%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1614
%:%85=165%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1615
%:%86=166%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1616
%:%87=167%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1617
%:%88=168%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1618
%:%89=169%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1619
%:%90=170%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1620
%:%91=171%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1621
%:%92=172%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1622
%:%93=173%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1623
%:%94=174%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1624
%:%95=175%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1625
%:%96=176%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1626
%:%97=177%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1627
%:%98=178%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1628
%:%99=179%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1629
%:%100=180%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1630
%:%101=181%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1631
%:%102=182%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1632
%:%103=183%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1633
%:%104=184%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1634
%:%105=185%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1635
%:%106=186%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1636
%:%107=187%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1637
%:%108=188%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1638
%:%109=189%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1639
%:%110=190%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1640
%:%111=191%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1641
%:%112=192%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1642
%:%113=193%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1643
%:%114=194%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1644
%:%115=195%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1645
%:%116=196%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1646
%:%117=197%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1647
%:%118=198%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1648
%:%119=199%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1649
%:%120=200%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1650
%:%121=201%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1651
%:%122=202%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1652
%:%123=203%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1653
%:%124=204%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1654
%:%125=205%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1655
%:%126=206%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1656
%:%127=207%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1657
%:%128=208%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1658
%:%129=209%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1659
%:%130=210%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1660
%:%131=211%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1661
%:%132=212%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1662
%:%133=213%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1663
%:%134=214%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1664
%:%135=215%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1665
%:%136=216%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1666
%:%137=217%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1667
%:%138=218%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1668
%:%139=219%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1669
%:%140=220%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1670
%:%141=221%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1671
%:%142=222%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1672
%:%143=223%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1673
%:%144=224%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1674
%:%145=225%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1675
%:%145=226%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1676
%:%146=227%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1677
%:%147=228%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1678
%:%148=229%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1679
%:%149=230%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1680
%:%150=231%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1681
%:%151=232%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1682
%:%152=233%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1683
%:%153=234%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1684
%:%154=235%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1685
%:%155=236%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1686
%:%156=237%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1687
%:%157=238%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1688
%:%158=239%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1689
%:%159=240%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1690
%:%160=241%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1691
%:%161=242%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1692
%:%162=243%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1693
%:%163=244%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1694
%:%164=245%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1695
%:%165=246%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1696
%:%166=247%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1697
%:%167=248%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1698
%:%168=249%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1699
%:%169=250%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1700
%:%170=251%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1701
%:%171=252%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1702
%:%172=253%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1703
%:%173=254%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1704
%:%174=255%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1705
%:%175=256%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1706
%:%176=257%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1707
%:%177=258%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1708
%:%178=259%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1709
%:%179=260%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1710
%:%180=261%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1711
%:%181=262%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1712
%:%182=263%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1713
%:%183=264%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1714
%:%184=265%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1715
%:%185=266%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1716
%:%186=267%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1717
%:%187=268%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1718
%:%188=269%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1719
%:%189=270%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1720
%:%190=271%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1721
%:%191=272%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1722
%:%192=273%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1723
%:%193=274%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1724
%:%194=275%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1725
%:%195=276%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1726
%:%196=277%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1727
%:%197=278%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1728
%:%198=279%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1729
%:%199=280%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1730
%:%200=281%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1731
%:%201=282%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1732
%:%202=283%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1733
%:%203=284%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1734
%:%204=285%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1735
%:%205=286%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1736
%:%206=287%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1737
%:%207=288%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1738
%:%208=289%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1739
%:%209=290%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1740
%:%210=291%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1741
%:%211=292%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1742
%:%212=293%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1743
%:%213=294%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1744
%:%214=295%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1745
%:%215=296%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1746
%:%216=297%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1747
%:%217=298%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1748
%:%218=299%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1749
%:%219=300%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1750
%:%220=301%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1751
%:%221=302%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1752
%:%222=303%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1753
%:%223=304%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1754
%:%224=305%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1755
%:%225=306%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1756
%:%226=307%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1757
%:%227=308%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1758
%:%228=309%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1759
%:%229=310%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1760
%:%230=311%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1761
%:%231=312%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1762
%:%232=313%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1763
%:%233=314%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1764
%:%234=315%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1765
%:%235=316%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1766
%:%236=317%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1767
%:%237=318%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1768
%:%238=319%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1769
%:%239=320%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1770
%:%240=321%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1771
%:%241=322%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1772
%:%242=323%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1773
%:%243=324%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1774
%:%244=325%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1775
%:%245=326%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1776
%:%246=327%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1777
%:%247=328%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1778
%:%248=329%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1779
%:%249=330%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1780
%:%250=331%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1781
%:%259=335%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1782
%:%271=337%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1783
%:%272=338%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1784
%:%272=339%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1785
%:%273=340%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1786
%:%274=341%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1787
%:%275=342%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1788
%:%276=343%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1789
%:%277=344%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1790
%:%278=345%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1791
%:%279=346%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1792
%:%280=347%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1793
%:%281=348%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1794
%:%282=349%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1795
%:%283=350%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1796
%:%284=351%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1797
%:%285=352%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1798
%:%286=353%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1799
%:%287=354%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1800
%:%288=355%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1801
%:%289=356%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1802
%:%290=357%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1803
%:%291=358%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1804
%:%292=359%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1805
%:%293=360%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1806
%:%294=361%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1807
%:%295=362%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1808
%:%296=363%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1809
%:%297=364%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1810
%:%298=365%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1811
%:%299=366%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1812
%:%300=367%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1813
%:%301=368%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1814
%:%302=369%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1815
%:%303=370%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1816
%:%304=371%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1817
%:%305=372%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1818
%:%306=373%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1819
%:%307=374%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1820
%:%308=375%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1821
%:%309=376%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1822
%:%310=377%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1823
%:%311=378%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1824
%:%311=379%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1825
%:%312=380%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1826
%:%313=381%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1827
%:%314=382%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1828
%:%315=383%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1829
%:%316=384%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1830
%:%316=385%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1831
%:%317=386%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1832
%:%318=387%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1833
%:%319=388%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1834
%:%320=389%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1835
%:%321=390%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1836
%:%322=391%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1837
%:%323=392%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1838
%:%324=393%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1839
%:%325=394%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1840
%:%326=395%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1841
%:%327=396%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1842
%:%328=397%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1843
%:%329=398%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1844
%:%330=399%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1845
%:%331=400%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1846
%:%332=401%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1847
%:%333=402%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1848
%:%334=403%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1849
%:%335=404%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1850
%:%336=405%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1851
%:%337=406%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1852
%:%338=407%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1853
%:%339=408%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1854
%:%340=409%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1855
%:%341=410%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1856
%:%342=411%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1857
%:%343=412%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1858
%:%344=413%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1859
%:%345=414%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1860
%:%346=415%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1861
%:%347=416%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1862
%:%348=417%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1863
%:%349=418%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1864
%:%350=419%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1865
%:%351=420%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1866
%:%352=421%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1867
%:%353=422%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1868
%:%354=423%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1869
%:%355=424%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1870
%:%356=425%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1871
%:%357=426%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1872
%:%358=427%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1873
%:%359=428%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1874
%:%360=429%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1875
%:%361=430%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1876
%:%362=431%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1877
%:%363=432%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1878
%:%364=433%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1879
%:%365=434%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1880
%:%366=435%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1881
%:%367=436%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1882
%:%368=437%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1883
%:%369=438%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1884
%:%370=439%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1885
%:%371=440%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1886
%:%372=441%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1887
%:%373=442%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1888
%:%374=443%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1889
%:%375=444%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1890
%:%376=445%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1891
%:%377=446%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1892
%:%378=447%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1893
%:%379=448%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1894
%:%380=449%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1895
%:%381=450%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1896
%:%382=451%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1897
%:%383=452%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1898
%:%384=453%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1899
%:%385=454%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1900
%:%386=455%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1901
%:%387=456%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1902
%:%388=457%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1903
%:%389=458%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1904
%:%390=459%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1905
%:%391=460%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1906
%:%392=461%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1907
%:%393=462%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1908
%:%394=463%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1909
%:%395=464%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1910
%:%396=465%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1911
%:%397=466%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1912
%:%398=467%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1913
%:%399=468%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1914
%:%400=469%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1915
%:%401=470%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1916
%:%402=471%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1917
%:%403=472%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1918
%:%404=473%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1919
%:%405=474%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1920
%:%414=478%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1921
%:%426=482%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1922
%:%427=483%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1923
%:%428=484%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1924
%:%429=485%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1925
%:%430=486%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1926
%:%431=487%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1927
%:%432=488%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1928
%:%433=489%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1929
%:%434=490%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1930
%:%435=491%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1931
%:%436=492%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1932
%:%437=493%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1933
%:%438=494%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1934
%:%439=495%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1935
%:%440=496%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1936
%:%441=497%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1937
%:%442=498%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1938
%:%443=499%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1939
%:%444=500%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1940
%:%445=501%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1941
%:%446=502%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1942
%:%447=503%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1943
%:%448=504%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1944
%:%449=505%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1945
%:%450=506%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1946
%:%451=507%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1947
%:%452=508%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1948
%:%453=509%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1949
%:%454=510%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1950
%:%455=511%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1951
%:%456=512%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1952
%:%457=513%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1953
%:%458=514%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1954
%:%459=515%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1955
%:%460=516%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1956
%:%461=517%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1957
%:%462=518%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1958
%:%463=519%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1959
%:%464=520%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1960
%:%465=521%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1961
%:%466=522%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1962
%:%467=523%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1963
%:%468=524%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1964
%:%469=525%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1965
%:%470=526%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1966
%:%471=527%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1967
%:%472=528%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1968
%:%473=529%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1969
%:%474=530%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1970
%:%475=531%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1971
%:%476=532%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1972
%:%477=533%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1973
%:%478=534%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1974
%:%479=535%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1975
%:%480=536%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1976
%:%481=537%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1977
%:%482=538%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1978
%:%483=539%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1979
%:%484=540%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1980
%:%485=541%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1981
%:%486=542%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1982
%:%487=543%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1983
%:%488=544%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1984
%:%489=545%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1985
%:%490=546%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1986
%:%491=547%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1987
%:%492=548%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1988
%:%493=549%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1989
%:%494=550%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1990
%:%495=551%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1991
%:%496=552%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1992
%:%497=553%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1993
%:%498=554%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1994
%:%499=555%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1995
%:%500=556%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1996
%:%501=557%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1997
%:%502=558%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1998
%:%503=559%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  1999
%:%504=560%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2000
%:%505=561%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2001
%:%506=562%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2002
%:%507=563%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2003
%:%508=564%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2004
%:%509=565%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2005
%:%510=566%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2006
%:%511=567%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2007
%:%512=568%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2008
%:%513=569%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2009
%:%514=570%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2010
%:%515=571%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2011
%:%516=572%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2012
%:%517=573%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2013
%:%518=574%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2014
%:%519=575%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2015
%:%520=576%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2016
%:%521=577%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2017
%:%522=578%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2018
%:%523=579%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2019
%:%524=580%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2020
%:%525=581%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2021
%:%526=582%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2022
%:%527=583%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2023
%:%528=584%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2024
%:%529=585%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2025
%:%530=586%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2026
%:%531=587%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2027
%:%532=588%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2028
%:%533=589%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2029
%:%534=590%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2030
%:%535=591%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2031
%:%536=592%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2032
%:%537=593%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2033
%:%538=594%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2034
%:%539=595%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2035
%:%540=596%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2036
%:%540=597%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2037
%:%541=598%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2038
%:%541=599%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2039
%:%542=600%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2040
%:%543=601%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2041
%:%543=602%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2042
%:%544=603%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2043
%:%545=604%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2044
%:%546=605%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2045
%:%547=606%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2046
%:%548=607%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2047
%:%549=608%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2048
%:%550=609%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2049
%:%551=610%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2050
%:%552=611%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2051
%:%553=612%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2052
%:%554=613%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2053
%:%555=614%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2054
%:%556=615%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2055
%:%557=616%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2056
%:%558=617%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2057
%:%559=618%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2058
%:%560=619%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2059
%:%561=620%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2060
%:%562=621%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2061
%:%563=622%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2062
%:%564=623%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2063
%:%565=624%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2064
%:%566=625%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2065
%:%567=626%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2066
%:%568=627%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2067
%:%569=628%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2068
%:%570=629%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2069
%:%571=630%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2070
%:%572=631%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2071
%:%573=632%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2072
%:%574=633%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2073
%:%575=634%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2074
%:%576=635%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2075
%:%577=636%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2076
%:%578=637%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2077
%:%579=638%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2078
%:%580=639%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2079
%:%581=640%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2080
%:%582=641%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2081
%:%583=642%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2082
%:%584=643%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2083
%:%585=644%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2084
%:%586=645%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2085
%:%587=646%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2086
%:%588=647%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2087
%:%589=648%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2088
%:%590=649%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2089
%:%591=650%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2090
%:%592=651%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2091
%:%593=652%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2092
%:%594=653%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2093
%:%595=654%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2094
%:%596=655%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2095
%:%597=656%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2096
%:%598=657%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2097
%:%599=658%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2098
%:%599=659%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2099
%:%599=660%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2100
%:%600=661%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2101
%:%601=662%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2102
%:%602=663%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2103
%:%603=664%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2104
%:%604=665%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2105
%:%605=666%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2106
%:%606=667%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2107
%:%607=668%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2108
%:%608=669%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2109
%:%608=670%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2110
%:%609=671%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2111
%:%610=672%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2112
%:%611=673%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2113
%:%612=674%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2114
%:%613=675%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2115
%:%614=676%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2116
%:%615=677%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2117
%:%616=678%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2118
%:%617=679%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2119
%:%618=680%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2120
%:%619=681%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2121
%:%620=682%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2122
%:%621=683%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2123
%:%622=684%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2124
%:%623=685%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2125
%:%624=686%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2126
%:%625=687%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2127
%:%626=688%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2128
%:%627=689%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2129
%:%628=690%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2130
%:%629=691%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2131
%:%630=692%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2132
%:%631=693%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2133
%:%632=694%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2134
%:%633=695%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2135
%:%634=696%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2136
%:%635=697%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2137
%:%636=698%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2138
%:%637=699%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2139
%:%638=700%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2140
%:%639=701%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2141
%:%640=702%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2142
%:%641=703%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2143
%:%642=704%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2144
%:%643=705%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2145
%:%643=706%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2146
%:%644=707%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2147
%:%645=708%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2148
%:%646=709%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2149
%:%647=710%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2150
%:%648=711%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2151
%:%649=712%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2152
%:%650=713%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2153
%:%650=714%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2154
%:%651=715%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2155
%:%652=716%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2156
%:%653=717%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2157
%:%653=718%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2158
%:%654=719%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2159
%:%655=720%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2160
%:%656=721%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2161
%:%657=722%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2162
%:%658=723%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2163
%:%659=724%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2164
%:%660=725%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2165
%:%661=726%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2166
%:%662=727%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2167
%:%663=728%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2168
%:%664=729%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2169
%:%664=730%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2170
%:%665=731%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2171
%:%666=732%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2172
%:%667=733%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2173
%:%668=734%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2174
%:%668=735%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2175
%:%669=736%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2176
%:%670=737%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2177
%:%671=738%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2178
%:%672=739%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2179
%:%673=740%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2180
%:%674=741%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2181
%:%675=742%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2182
%:%676=743%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2183
%:%677=744%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2184
%:%678=745%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2185
%:%679=746%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2186
%:%680=747%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2187
%:%681=748%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2188
%:%682=749%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2189
%:%683=750%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2190
%:%684=751%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2191
%:%685=752%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2192
%:%686=753%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2193
%:%687=754%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2194
%:%688=755%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2195
%:%689=756%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2196
%:%690=757%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2197
%:%691=758%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2198
%:%692=759%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2199
%:%693=760%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2200
%:%694=761%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2201
%:%695=762%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2202
%:%696=763%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2203
%:%697=764%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2204
%:%698=765%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2205
%:%699=766%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2206
%:%700=767%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2207
%:%701=768%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2208
%:%702=769%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2209
%:%703=770%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2210
%:%704=771%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2211
%:%705=772%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2212
%:%706=773%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2213
%:%707=774%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2214
%:%708=775%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2215
%:%709=776%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2216
%:%710=777%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2217
%:%711=778%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2218
%:%712=779%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2219
%:%713=780%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2220
%:%714=781%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2221
%:%715=782%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2222
%:%716=783%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2223
%:%717=784%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2224
%:%718=785%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2225
%:%719=786%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2226
%:%720=787%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2227
%:%721=788%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2228
%:%722=789%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2229
%:%723=790%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2230
%:%724=791%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2231
%:%725=792%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2232
%:%726=793%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2233
%:%726=794%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2234
%:%727=795%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2235
%:%728=796%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2236
%:%729=797%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2237
%:%730=798%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2238
%:%731=799%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2239
%:%732=800%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2240
%:%733=801%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2241
%:%734=802%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2242
%:%735=803%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2243
%:%736=804%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2244
%:%737=805%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2245
%:%738=806%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2246
%:%739=807%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2247
%:%740=808%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2248
%:%741=809%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2249
%:%742=810%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2250
%:%743=811%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2251
%:%744=812%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2252
%:%745=813%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2253
%:%746=814%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2254
%:%747=815%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2255
%:%748=816%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2256
%:%749=817%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2257
%:%750=818%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2258
%:%751=819%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2259
%:%752=820%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2260
%:%753=821%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2261
%:%754=822%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2262
%:%755=823%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2263
%:%756=824%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2264
%:%757=825%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2265
%:%758=826%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2266
%:%759=827%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2267
%:%759=828%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2268
%:%760=829%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2269
%:%761=830%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2270
%:%762=831%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2271
%:%763=832%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2272
%:%764=833%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2273
%:%765=834%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2274
%:%766=835%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2275
%:%767=836%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2276
%:%768=837%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2277
%:%769=838%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2278
%:%770=839%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2279
%:%771=840%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2280
%:%772=841%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2281
%:%773=842%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2282
%:%774=843%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2283
%:%775=844%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2284
%:%776=845%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2285
%:%777=846%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2286
%:%778=847%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2287
%:%779=848%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2288
%:%780=849%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2289
%:%781=850%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2290
%:%782=851%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2291
%:%783=852%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2292
%:%784=853%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2293
%:%785=854%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2294
%:%786=855%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2295
%:%787=856%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2296
%:%788=857%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2297
%:%789=858%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2298
%:%789=859%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2299
%:%790=860%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2300
%:%791=861%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2301
%:%792=862%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2302
%:%793=863%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2303
%:%794=864%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2304
%:%795=865%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2305
%:%796=866%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2306
%:%797=867%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2307
%:%797=868%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2308
%:%798=869%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2309
%:%799=870%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2310
%:%800=871%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2311
%:%801=872%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2312
%:%802=873%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2313
%:%803=874%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2314
%:%804=875%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2315
%:%805=876%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2316
%:%806=877%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2317
%:%807=878%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2318
%:%808=879%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2319
%:%809=880%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2320
%:%810=881%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2321
%:%811=882%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2322
%:%812=883%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2323
%:%813=884%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2324
%:%814=885%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2325
%:%815=886%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2326
%:%816=887%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2327
%:%817=888%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2328
%:%818=889%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2329
%:%819=890%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2330
%:%820=891%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2331
%:%821=892%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2332
%:%822=893%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2333
%:%823=894%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2334
%:%824=895%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2335
%:%825=896%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2336
%:%826=897%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2337
%:%827=898%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2338
%:%828=899%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2339
%:%829=900%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2340
%:%830=901%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2341
%:%831=902%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2342
%:%832=903%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2343
%:%833=904%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2344
%:%834=905%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2345
%:%834=906%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2346
%:%834=907%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2347
%:%835=908%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2348
%:%835=909%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2349
%:%835=910%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2350
%:%836=911%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2351
%:%837=912%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2352
%:%837=913%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2353
%:%838=914%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2354
%:%839=915%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2355
%:%840=916%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2356
%:%841=917%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2357
%:%842=918%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2358
%:%843=919%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2359
%:%844=920%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2360
%:%845=921%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2361
%:%846=922%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2362
%:%847=923%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2363
%:%848=924%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2364
%:%849=925%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2365
%:%850=926%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2366
%:%851=927%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2367
%:%852=928%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2368
%:%853=929%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2369
%:%854=930%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2370
%:%855=931%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2371
%:%856=932%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2372
%:%857=933%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2373
%:%858=934%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2374
%:%859=935%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2375
%:%860=936%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2376
%:%861=937%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2377
%:%862=938%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2378
%:%863=939%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2379
%:%864=940%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2380
%:%865=941%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2381
%:%866=942%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2382
%:%867=943%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2383
%:%868=944%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2384
%:%869=945%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2385
%:%870=946%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2386
%:%871=947%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2387
%:%871=948%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2388
%:%872=949%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2389
%:%873=950%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2390
%:%874=951%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2391
%:%874=952%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2392
%:%874=953%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2393
%:%874=954%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2394
%:%875=955%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2395
%:%876=956%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2396
%:%877=957%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2397
%:%878=958%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2398
%:%879=959%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2399
%:%880=960%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2400
%:%881=961%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2401
%:%882=962%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2402
%:%883=963%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2403
%:%884=964%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2404
%:%885=965%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2405
%:%886=966%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2406
%:%887=967%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2407
%:%888=968%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2408
%:%889=969%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2409
%:%890=970%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2410
%:%891=971%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2411
%:%892=972%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2412
%:%893=973%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2413
%:%894=974%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2414
%:%895=975%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2415
%:%896=976%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2416
%:%897=977%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2417
%:%898=978%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2418
%:%899=979%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2419
%:%900=980%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2420
%:%901=981%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2421
%:%902=982%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2422
%:%903=983%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2423
%:%904=984%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2424
%:%905=985%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2425
%:%906=986%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2426
%:%907=987%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2427
%:%908=988%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2428
%:%909=989%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2429
%:%910=990%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2430
%:%911=991%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2431
%:%920=995%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2432
%:%932=999%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2433
%:%933=1000%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2434
%:%934=1001%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2435
%:%935=1002%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2436
%:%936=1003%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2437
%:%937=1004%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2438
%:%938=1005%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2439
%:%939=1006%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2440
%:%940=1007%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2441
%:%941=1008%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2442
%:%942=1009%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2443
%:%943=1010%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2444
%:%944=1011%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2445
%:%945=1012%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2446
%:%946=1013%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2447
%:%947=1014%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2448
%:%948=1015%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2449
%:%949=1016%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2450
%:%950=1017%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2451
%:%951=1018%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2452
%:%952=1019%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2453
%:%953=1020%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2454
%:%954=1021%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2455
%:%955=1022%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2456
%:%956=1023%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2457
%:%957=1024%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2458
%:%958=1025%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2459
%:%959=1026%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2460
%:%960=1027%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2461
%:%961=1028%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2462
%:%962=1029%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2463
%:%963=1030%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2464
%:%964=1031%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2465
%:%965=1032%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2466
%:%966=1033%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2467
%:%967=1034%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2468
%:%968=1035%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2469
%:%969=1036%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2470
%:%970=1037%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2471
%:%971=1038%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2472
%:%972=1039%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2473
%:%973=1040%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2474
%:%974=1041%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2475
%:%975=1042%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2476
%:%976=1043%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2477
%:%977=1044%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2478
%:%978=1045%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2479
%:%979=1046%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2480
%:%980=1047%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2481
%:%981=1048%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2482
%:%982=1049%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2483
%:%983=1050%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2484
%:%984=1051%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2485
%:%985=1052%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2486
%:%986=1053%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2487
%:%987=1054%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2488
%:%988=1055%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2489
%:%989=1056%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2490
%:%990=1057%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2491
%:%991=1058%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2492
%:%992=1059%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2493
%:%993=1060%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2494
%:%994=1061%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2495
%:%995=1062%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2496
%:%996=1063%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2497
%:%997=1064%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2498
%:%998=1065%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2499
%:%999=1066%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2500
%:%1000=1067%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2501
%:%1001=1068%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2502
%:%1002=1069%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2503
%:%1003=1070%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2504
%:%1004=1071%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2505
%:%1005=1072%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2506
%:%1006=1073%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2507
%:%1007=1074%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2508
%:%1008=1075%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2509
%:%1009=1076%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2510
%:%1010=1077%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2511
%:%1011=1078%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2512
%:%1012=1079%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2513
%:%1013=1080%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2514
%:%1014=1081%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2515
%:%1015=1082%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2516
%:%1016=1083%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2517
%:%1017=1084%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2518
%:%1018=1085%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2519
%:%1019=1086%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2520
%:%1020=1087%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2521
%:%1021=1088%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2522
%:%1022=1089%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2523
%:%1023=1090%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2524
%:%1024=1091%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2525
%:%1025=1092%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2526
%:%1026=1093%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2527
%:%1027=1094%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2528
%:%1028=1095%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2529
%:%1029=1096%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2530
%:%1030=1097%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2531
%:%1031=1098%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2532
%:%1032=1099%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2533
%:%1033=1100%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2534
%:%1034=1101%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2535
%:%1035=1102%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2536
%:%1036=1103%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2537
%:%1037=1104%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2538
%:%1038=1105%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2539
%:%1039=1106%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2540
%:%1040=1107%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2541
%:%1041=1108%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2542
%:%1042=1109%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2543
%:%1043=1110%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2544
%:%1044=1111%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2545
%:%1045=1112%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2546
%:%1046=1113%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2547
%:%1047=1114%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2548
%:%1047=1115%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2549
%:%1048=1116%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2550
%:%1049=1117%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2551
%:%1050=1118%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2552
%:%1051=1119%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2553
%:%1052=1120%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2554
%:%1053=1121%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2555
%:%1054=1122%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2556
%:%1055=1123%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2557
%:%1056=1124%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2558
%:%1057=1125%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2559
%:%1058=1126%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2560
%:%1058=1127%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2561
%:%1059=1128%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2562
%:%1060=1129%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2563
%:%1061=1130%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2564
%:%1062=1131%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2565
%:%1063=1132%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2566
%:%1064=1133%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2567
%:%1065=1134%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2568
%:%1066=1135%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2569
%:%1067=1136%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2570
%:%1068=1137%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2571
%:%1069=1138%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2572
%:%1070=1139%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2573
%:%1071=1140%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2574
%:%1072=1141%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2575
%:%1073=1142%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2576
%:%1074=1143%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2577
%:%1075=1144%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2578
%:%1076=1145%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2579
%:%1077=1146%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2580
%:%1078=1147%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2581
%:%1079=1148%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2582
%:%1080=1149%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2583
%:%1081=1150%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2584
%:%1082=1151%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2585
%:%1083=1152%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2586
%:%1084=1153%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2587
%:%1085=1154%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2588
%:%1086=1155%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2589
%:%1087=1156%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2590
%:%1088=1157%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2591
%:%1089=1158%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2592
%:%1090=1159%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2593
%:%1091=1160%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2594
%:%1092=1161%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2595
%:%1093=1162%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2596
%:%1094=1163%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2597
%:%1095=1164%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2598
%:%1096=1165%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2599
%:%1097=1166%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2600
%:%1098=1167%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2601
%:%1099=1168%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2602
%:%1100=1169%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2603
%:%1101=1170%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2604
%:%1102=1171%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2605
%:%1103=1172%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2606
%:%1104=1173%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2607
%:%1105=1174%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2608
%:%1106=1175%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2609
%:%1107=1176%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2610
%:%1108=1177%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2611
%:%1109=1178%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2612
%:%1110=1179%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2613
%:%1111=1180%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2614
%:%1112=1181%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2615
%:%1112=1182%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2616
%:%1112=1183%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2617
%:%1113=1184%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2618
%:%1114=1185%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2619
%:%1114=1186%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2620
%:%1114=1187%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2621
%:%1114=1188%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2622
%:%1115=1189%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2623
%:%1116=1190%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2624
%:%1117=1191%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2625
%:%1118=1192%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2626
%:%1119=1193%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2627
%:%1119=1194%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2628
%:%1120=1195%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2629
%:%1121=1196%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2630
%:%1122=1197%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2631
%:%1123=1198%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2632
%:%1124=1199%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2633
%:%1125=1200%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2634
%:%1126=1201%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2635
%:%1127=1202%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2636
%:%1128=1203%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2637
%:%1129=1204%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2638
%:%1130=1205%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2639
%:%1131=1206%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2640
%:%1132=1207%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2641
%:%1133=1208%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2642
%:%1134=1209%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2643
%:%1135=1210%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2644
%:%1136=1211%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2645
%:%1137=1212%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2646
%:%1138=1213%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2647
%:%1139=1214%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2648
%:%1140=1215%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2649
%:%1141=1216%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2650
%:%1142=1217%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2651
%:%1143=1218%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2652
%:%1144=1219%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2653
%:%1145=1220%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2654
%:%1146=1221%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2655
%:%1147=1222%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2656
%:%1148=1223%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2657
%:%1149=1224%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2658
%:%1150=1225%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2659
%:%1151=1226%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2660
%:%1152=1227%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2661
%:%1153=1228%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2662
%:%1154=1229%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2663
%:%1155=1230%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2664
%:%1156=1231%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2665
%:%1157=1232%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2666
%:%1158=1233%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2667
%:%1159=1234%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2668
%:%1160=1235%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2669
%:%1161=1236%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2670
%:%1162=1237%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2671
%:%1163=1238%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2672
%:%1164=1239%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2673
%:%1165=1240%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2674
%:%1166=1241%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2675
%:%1167=1242%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2676
%:%1167=1243%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2677
%:%1168=1244%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2678
%:%1168=1245%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2679
%:%1169=1246%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2680
%:%1169=1247%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2681
%:%1170=1248%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2682
%:%1171=1249%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2683
%:%1172=1250%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2684
%:%1173=1251%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2685
%:%1174=1252%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2686
%:%1175=1253%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2687
%:%1176=1254%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2688
%:%1176=1255%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2689
%:%1177=1256%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2690
%:%1177=1257%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2691
%:%1178=1258%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2692
%:%1178=1259%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2693
%:%1179=1260%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2694
%:%1180=1261%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2695
%:%1181=1262%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2696
%:%1182=1263%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2697
%:%1183=1264%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2698
%:%1184=1265%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2699
%:%1185=1266%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2700
%:%1186=1267%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2701
%:%1187=1268%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2702
%:%1188=1269%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2703
%:%1189=1270%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2704
%:%1190=1271%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2705
%:%1191=1272%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2706
%:%1192=1273%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2707
%:%1193=1274%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2708
%:%1194=1275%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2709
%:%1195=1276%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2710
%:%1196=1277%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2711
%:%1197=1278%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2712
%:%1198=1279%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2713
%:%1199=1280%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2714
%:%1200=1281%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2715
%:%1201=1282%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2716
%:%1202=1283%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2717
%:%1203=1284%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2718
%:%1204=1285%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2719
%:%1205=1286%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2720
%:%1206=1287%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2721
%:%1207=1288%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2722
%:%1208=1289%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2723
%:%1209=1290%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2724
%:%1209=1291%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2725
%:%1210=1292%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2726
%:%1211=1293%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2727
%:%1212=1294%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2728
%:%1213=1295%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2729
%:%1214=1296%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2730
%:%1215=1297%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2731
%:%1216=1298%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2732
%:%1216=1299%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2733
%:%1217=1300%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2734
%:%1218=1301%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2735
%:%1219=1302%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2736
%:%1219=1303%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2737
%:%1220=1304%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2738
%:%1221=1305%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2739
%:%1222=1306%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2740
%:%1222=1307%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2741
%:%1223=1308%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2742
%:%1223=1309%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2743
%:%1224=1310%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2744
%:%1224=1311%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2745
%:%1225=1312%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2746
%:%1226=1313%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2747
%:%1227=1314%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2748
%:%1227=1315%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2749
%:%1228=1316%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2750
%:%1228=1317%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2751
%:%1229=1318%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2752
%:%1229=1319%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2753
%:%1229=1320%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2754
%:%1229=1321%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2755
%:%1230=1322%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2756
%:%1230=1323%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2757
%:%1231=1324%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2758
%:%1232=1325%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2759
%:%1232=1327%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2760
%:%1232=1328%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2761
%:%1232=1329%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2762
%:%1232=1330%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2763
%:%1232=1331%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2764
%:%1233=1332%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2765
%:%1233=1333%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2766
%:%1234=1334%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2767
%:%1234=1335%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2768
%:%1235=1336%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2769
%:%1235=1337%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2770
%:%1236=1338%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2771
%:%1237=1339%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2772
%:%1238=1340%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2773
%:%1239=1341%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2774
%:%1239=1342%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2775
%:%1240=1343%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2776
%:%1240=1344%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2777
%:%1241=1345%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2778
%:%1242=1346%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2779
%:%1242=1347%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2780
%:%1243=1348%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2781
%:%1244=1349%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2782
%:%1245=1350%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2783
%:%1246=1351%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2784
%:%1247=1352%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2785
%:%1248=1353%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2786
%:%1249=1354%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2787
%:%1250=1355%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2788
%:%1251=1356%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2789
%:%1252=1357%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2790
%:%1253=1358%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2791
%:%1254=1359%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2792
%:%1255=1360%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2793
%:%1256=1361%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2794
%:%1257=1362%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2795
%:%1258=1363%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2796
%:%1259=1364%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2797
%:%1260=1365%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2798
%:%1261=1366%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2799
%:%1262=1367%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2800
%:%1263=1368%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2801
%:%1264=1369%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2802
%:%1265=1370%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2803
%:%1266=1371%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2804
%:%1267=1372%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2805
%:%1268=1373%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2806
%:%1269=1374%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2807
%:%1270=1375%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2808
%:%1271=1376%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2809
%:%1272=1377%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2810
%:%1273=1378%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2811
%:%1274=1379%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2812
%:%1275=1380%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2813
%:%1276=1381%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2814
%:%1277=1382%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2815
%:%1278=1383%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2816
%:%1279=1384%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2817
%:%1280=1385%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2818
%:%1281=1386%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2819
%:%1282=1387%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2820
%:%1283=1388%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2821
%:%1284=1389%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2822
%:%1285=1390%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2823
%:%1286=1391%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2824
%:%1287=1392%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2825
%:%1288=1393%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2826
%:%1289=1394%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2827
%:%1290=1395%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2828
%:%1291=1396%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2829
%:%1292=1397%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2830
%:%1293=1398%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2831
%:%1302=1402%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2832
%:%1314=1409%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2833
%:%1315=1410%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2834
%:%1316=1411%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2835
%:%1317=1412%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2836
%:%1318=1413%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2837
%:%1319=1414%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2838
%:%1320=1415%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2839
%:%1329=1420%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2840
%:%1341=1424%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2841
%:%1342=1425%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2842
%:%1343=1426%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2843
%:%1344=1427%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2844
%:%1345=1428%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2845
%:%1346=1429%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2846
%:%1347=1430%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2847
%:%1348=1431%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2848
%:%1349=1432%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2849
%:%1350=1433%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2850
%:%1351=1434%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2851
%:%1352=1435%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2852
%:%1353=1436%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2853
%:%1354=1437%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2854
%:%1355=1438%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2855
%:%1356=1439%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2856
%:%1357=1440%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2857
%:%1358=1441%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2858
%:%1359=1442%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2859
%:%1360=1443%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2860
%:%1361=1444%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2861
%:%1362=1445%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2862
%:%1363=1446%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2863
%:%1364=1447%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2864
%:%1365=1448%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2865
%:%1366=1449%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2866
%:%1367=1450%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2867
%:%1368=1451%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2868
%:%1369=1452%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2869
%:%1370=1453%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2870
%:%1371=1454%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2871
%:%1372=1455%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2872
%:%1373=1456%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2873
%:%1374=1457%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2874
%:%1375=1458%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2875
%:%1376=1459%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2876
%:%1377=1460%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2877
%:%1378=1461%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2878
%:%1379=1462%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2879
%:%1380=1463%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2880
%:%1381=1464%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2881
%:%1382=1465%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2882
%:%1383=1466%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2883
%:%1384=1467%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2884
%:%1385=1468%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2885
%:%1386=1469%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2886
%:%1387=1470%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2887
%:%1388=1471%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2888
%:%1389=1472%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2889
%:%1390=1473%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2890
%:%1391=1474%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2891
%:%1392=1475%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2892
%:%1393=1476%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2893
%:%1394=1477%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2894
%:%1395=1478%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2895
%:%1396=1479%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2896
%:%1397=1480%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2897
%:%1398=1481%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2898
%:%1399=1482%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2899
%:%1400=1483%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2900
%:%1401=1484%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2901
%:%1402=1485%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2902
%:%1403=1486%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2903
%:%1404=1487%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2904
%:%1405=1488%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2905
%:%1406=1489%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2906
%:%1407=1490%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2907
%:%1408=1491%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2908
%:%1409=1492%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2909
%:%1410=1493%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2910
%:%1411=1494%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2911
%:%1412=1495%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2912
%:%1413=1496%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2913
%:%1414=1497%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2914
%:%1415=1498%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2915
%:%1416=1499%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2916
%:%1417=1500%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2917
%:%1418=1501%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2918
%:%1419=1502%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2919
%:%1420=1503%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2920
%:%1421=1504%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2921
%:%1422=1505%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2922
%:%1423=1506%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2923
%:%1424=1507%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2924
%:%1425=1508%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2925
%:%1426=1509%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2926
%:%1427=1510%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2927
%:%1428=1511%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2928
%:%1429=1512%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2929
%:%1430=1513%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2930
%:%1430=1629%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2931
%:%1431=1630%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2932
%:%1432=1631%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2933
%:%1433=1632%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2934
%:%1434=1633%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2935
%:%1434=1794%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2936
%:%1435=1795%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2937
%:%1436=1796%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2938
%:%1437=1797%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2939
%:%1438=1798%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2940
%:%1439=1799%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2941
%:%1440=1800%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2942
%:%1441=1801%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2943
%:%1442=1802%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2944
%:%1443=1803%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2945
%:%1444=1804%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2946
%:%1445=1805%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2947
%:%1446=1806%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2948
%:%1447=1807%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2949
%:%1448=1808%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2950
%:%1449=1809%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2951
%:%1450=1810%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2952
%:%1451=1811%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2953
%:%1452=1812%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2954
%:%1453=1813%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2955
%:%1453=1814%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2956
%:%1454=1815%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2957
%:%1454=1816%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2958
%:%1454=1817%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2959
%:%1455=1818%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2960
%:%1455=1819%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2961
%:%1456=1820%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2962
%:%1457=1821%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2963
%:%1458=1822%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2964
%:%1459=1823%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2965
%:%1460=1824%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2966
%:%1461=1825%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2967
%:%1462=1826%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2968
%:%1463=1827%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2969
%:%1464=1828%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2970
%:%1465=1829%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2971
%:%1466=1830%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2972
%:%1467=1831%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2973
%:%1468=1832%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2974
%:%1469=1833%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2975
%:%1470=1834%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2976
%:%1471=1835%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2977
%:%1472=1836%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2978
%:%1472=1837%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2979
%:%1473=1838%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2980
%:%1474=1839%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2981
%:%1475=1840%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2982
%:%1475=1841%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2983
%:%1475=1842%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2984
%:%1476=1843%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2985
%:%1477=1844%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2986
%:%1478=1845%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2987
%:%1478=1846%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2988
%:%1479=1847%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2989
%:%1479=1848%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2990
%:%1480=1849%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2991
%:%1481=1850%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2992
%:%1482=1851%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2993
%:%1483=1852%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2994
%:%1484=1853%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2995
%:%1485=1854%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2996
%:%1486=1855%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2997
%:%1487=1856%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2998
%:%1488=1857%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  2999
%:%1489=1858%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3000
%:%1490=1859%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3001
%:%1491=1860%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3002
%:%1492=1861%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3003
%:%1493=1862%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3004
%:%1494=1863%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3005
%:%1495=1864%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3006
%:%1496=1865%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3007
%:%1505=1870%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3008
%:%1517=1874%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3009
%:%1518=1875%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3010
%:%1519=1876%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3011
%:%1520=1877%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3012
%:%1521=1878%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3013
%:%1522=1879%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3014
%:%1523=1880%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3015
%:%1524=1881%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3016
%:%1525=1882%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3017
%:%1526=1883%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3018
%:%1527=1884%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3019
%:%1528=1885%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3020
%:%1529=1886%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3021
%:%1530=1887%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3022
%:%1531=1888%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3023
%:%1532=1889%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3024
%:%1533=1890%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3025
%:%1534=1891%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3026
%:%1535=1892%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3027
%:%1536=1893%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3028
%:%1537=1894%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3029
%:%1538=1895%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3030
%:%1539=1896%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3031
%:%1540=1897%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3032
%:%1541=1898%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3033
%:%1542=1899%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3034
%:%1543=1900%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3035
%:%1544=1901%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3036
%:%1545=1902%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3037
%:%1546=1903%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3038
%:%1547=1904%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3039
%:%1548=1905%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3040
%:%1549=1906%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3041
%:%1550=1907%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3042
%:%1551=1908%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3043
%:%1552=1909%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3044
%:%1553=1910%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3045
%:%1554=1911%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3046
%:%1555=1912%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3047
%:%1556=1913%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3048
%:%1557=1914%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3049
%:%1558=1915%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3050
%:%1559=1916%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3051
%:%1560=1917%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3052
%:%1561=1918%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3053
%:%1562=1919%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3054
%:%1563=1920%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3055
%:%1564=1921%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3056
%:%1565=1922%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3057
%:%1566=1923%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3058
%:%1567=1924%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3059
%:%1568=1925%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3060
%:%1569=1926%:%
e00950ba4514 added all files in Journal folder
Chengsong
parents:
diff changeset
  3061
%:%1582=1932%:%