thys2/Journal/root.tex
author Chengsong
Thu, 23 Jun 2022 16:59:58 +0100
changeset 546 6e97f4aa7cd0
parent 368 56781ad291cf
permissions -rwxr-xr-x
beforeBig changes
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
368
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
     1
\documentclass[runningheads]{llncs}
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
     2
\usepackage{times}
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
     3
\usepackage{isabelle}
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
     4
\usepackage{isabellesym}
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
     5
\usepackage{amsmath}
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
     6
\usepackage{amssymb}
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
     7
\usepackage{mathpartir}
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
     8
\usepackage{tikz}
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
     9
\usepackage{pgf}
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    10
\usetikzlibrary{positioning}
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    11
\usepackage{pdfsetup}
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    12
\usepackage{stmaryrd}
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    13
\usepackage{url}
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    14
\usepackage{color}
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    15
\usepackage[safe]{tipa}
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    16
\usepackage[sc]{mathpazo}
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    17
\usepackage{fontspec}
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    18
%\setmainfont[Ligatures=TeX]{Palatino Linotype}
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    19
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    20
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    21
\titlerunning{POSIX Lexing with Derivatives of Regular Expressions}
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    22
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    23
\urlstyle{rm}
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    24
\isabellestyle{it}
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    25
\renewcommand{\isastyleminor}{\it}% 
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    26
\renewcommand{\isastyle}{\normalsize\it}%
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    27
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    28
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    29
\def\dn{\,\stackrel{\mbox{\scriptsize def}}{=}\,}
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    30
\renewcommand{\isasymequiv}{$\dn$}
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    31
\renewcommand{\isasymemptyset}{$\varnothing$}
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    32
\renewcommand{\isacharunderscore}{\mbox{$\_\!\_$}}
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    33
\renewcommand{\isasymiota}{\makebox[0mm]{${}^{\prime}$}}
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    34
\renewcommand{\isasymin}{\ensuremath{\,\in\,}}
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    35
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    36
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    37
\def\Brz{Brzozowski}
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    38
\def\der{\backslash}
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    39
\newtheorem{falsehood}{Falsehood}
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    40
\newtheorem{conject}{Conjecture}
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    41
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    42
\begin{document}
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    43
\renewcommand{\thefootnote}{$\star$} \footnotetext[1]{This paper is a
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    44
  revised and expanded version of \cite{AusafDyckhoffUrban2016}.
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    45
  Compared with that paper we give a second definition for POSIX
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    46
  values introduced by Okui Suzuki \cite{OkuiSuzuki2010,OkuiSuzukiTech}
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    47
  and prove that it is
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    48
  equivalent to our original one. This
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    49
  second definition is based on an ordering of values and very similar to,
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    50
  but not equivalent with, the
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    51
  definition given by Sulzmann and Lu~\cite{Sulzmann2014}.
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    52
  The advantage of the definition based on the
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    53
  ordering is that it implements more directly the informal rules from the
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    54
  POSIX standard.
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    55
  We also prove Sulzmann \& Lu's conjecture that their bitcoded version
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    56
  of the POSIX algorithm is correct. Furthermore we extend our results to additional constructors of regular
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    57
  expressions.}  \renewcommand{\thefootnote}{\arabic{footnote}}
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    58
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    59
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    60
\title{POSIX {L}exing with {D}erivatives of {R}egular {E}xpressions}
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    61
\author{Fahad Ausaf\inst{1} \and Roy Dyckhoff\inst{2} \and Christian Urban\inst{3}}
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    62
\institute{King's College London\\
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    63
		\email{fahad.ausaf@icloud.com}
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    64
\and University of St Andrews\\
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    65
		\email{roy.dyckhoff@st-andrews.ac.uk}
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    66
\and King's College London\\
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    67
		\email{christian.urban@kcl.ac.uk}}
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    68
\maketitle
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    69
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    70
\begin{abstract}
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    71
Brzozowski introduced the notion of derivatives for regular
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    72
expressions. They can be used for a very simple regular expression
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    73
matching algorithm.  Sulzmann and Lu cleverly extended this algorithm
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    74
in order to deal with POSIX matching, which is the underlying
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    75
disambiguation strategy for regular expressions needed in lexers.
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    76
Their algorithm generates POSIX values which encode the information of
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    77
\emph{how} a regular expression matches a string---that is, which part
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    78
of the string is matched by which part of the regular expression.  In
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    79
this paper we give our inductive definition of what a POSIX value is
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    80
and show $(i)$ that such a value is unique (for given regular
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    81
expression and string being matched) and $(ii)$ that Sulzmann and Lu's
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    82
algorithm always generates such a value (provided that the regular
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    83
expression matches the string). We show that $(iii)$ our inductive
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    84
definition of a POSIX value is equivalent to an alternative definition
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    85
by Okui and Suzuki which identifies POSIX values as least elements
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    86
according to an ordering of values.  We also prove the correctness of
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    87
Sulzmann's bitcoded version of the POSIX matching algorithm and extend the
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    88
results to additional constructors for regular expressions.  \smallskip
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    89
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    90
{\bf Keywords:} POSIX matching, Derivatives of Regular Expressions,
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    91
Isabelle/HOL
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    92
\end{abstract}
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    93
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    94
\input{session}
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    95
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    96
\end{document}
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    97
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    98
%%% Local Variables:
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
    99
%%% mode: latex
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
   100
%%% TeX-master: t
56781ad291cf added root.tex
Chengsong
parents:
diff changeset
   101
%%% End: