Weak subsumption Constraints for Type Diagnosis: An Incremental Algorithm
Extracted source text ยท arXiv cmp-lg/9506002
%Paper: cmp-lg/9506002
%From: Martin Mueller <mmueller@dfki.uni-sb.de>
%Date: Fri, 2 Jun 1995 11:22:18 +0200
%Date (revised): Mon, 20 Nov 1995 08:34:57 +0100
\documentstyle[12pt,pstricks]{article}
\parindent=0pt
\parskip=4pt
\oddsidemargin0in
\advance\textwidth1in
\renewcommand{\textfraction}{0.0}
\setcounter{totalnumber}{5}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% strange things from Berny
\def\boxtype{\makebox}
\newcommand{\picturebox}[1]{{\boxtype[\textwidth]{#1}}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% be generous
\tolerance 10000
\hfuzz=1pt
\vfuzz=1pt
\showboxdepth=0
\showboxbreadth=0
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Allow for hyphenations in
%%citations
\def\@citex[#1]#2{\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi
\def\@citea{}\@cite{\@for\@citeb:=#2\do
{\@citea\def\@citea{,\space }\@ifundefined
{b@\@citeb}{{\bf ?}\@warning
{Citation `\@citeb' on page \thepage \space undefined}}%
{\csname b@\@citeb\endcsname}}}{#1}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% fonts
%\let\oldem=\em
%\renewcommand{\em}{\bf}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% standard vskips and hskips
\newskip\smallskipamount \smallskipamount=3.6pt plus 1.2pt minus 1.2pt
\newskip\medskipamount \medskipamount=7.2pt plus 2.4pt minus 2.4pt
\newskip\bigskipamount \bigskipamount=14.4pt plus 4.8pt minus 4.8pt
\def\smallskip{\vskip\smallskipamount}
\def\medskip{\vskip\medskipamount}
\def\bigskip{\vskip\bigskipamount}
\def\nl{\hfill\break}
\def\indent{\hskip1.5em\relax}
\def\quad{\hskip1em\relax}
\def\qquad{\hskip2em\relax}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% theorems etc
\newtheorem{theorem}{Theorem}[section] %theorems
\newtheorem{lemma}[theorem]{Lemma} %lemmas
\newtheorem{observation}[theorem]{Observation} %observations
\newtheorem{proposition}[theorem]{Proposition} %propositions
\newtheorem{definition}[theorem]{Definition} %definitions
\newtheorem{algorithm}[theorem]{Algorithm} %algorithms
\newtheorem{corollary}[theorem]{Corollary} %corollaries
\newenvironment{example}{\begin{eexample}\rm}{\hfill$\Box$\end{eexample}}
\newtheorem{eexample}[theorem]{Example} %examples
\newtheorem{conjecture}[theorem]{Conjecture} %conjecture
\newtheorem{openproblem}[theorem]{Open Problem} %Open Problem
\newenvironment{proof}{\noindent{\bf Proof.}}%
{\hfill$\Box$\par\addvspace{\bigskipamount}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Equations
\def\beq{\begin{eqnarray*}}
\def\eeq{\end{eqnarray*}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% opearators and arrows
\def\asp{\hskip2pt} %arrow space, put before and after arrows
\def\osp{\hskip1pt} %operator space, put before and after operators
\def\arrowsp#1{{\asp#1\asp\allowbreak}}
\def\operatorsp#1{{\osp#1\osp}}
\def\myarrow#1#2{\arrowsp{{\vbox{\normalbaselines
\hbox{\hskip5pt${}_{\rm #1}$}\vskip-7pt
\hbox{$\longrightarrow$}}}_{#2}}\allowbreak}
\def\myarrows#1#2{\arrowsp{{\vbox{\normalbaselines
\hbox{\hskip5pt${}_{\rm #1}$}\vskip-7pt
\hbox{$\longrightarrow$}}}_{#2}^\ast}\allowbreak}
\def\myarrowp#1#2{\arrowsp{{\vbox{\normalbaselines
\hbox{\hskip5pt${}_{\rm #1}$}\vskip-7pt
\hbox{$\longrightarrow$}}}_{#2}^+}\allowbreak}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% symbols
\def\A{{\cal A}} \def\B{{\cal B}} \def\C{{\cal C}} \def\D{{\cal D}}
\def\E{{\cal E}} \def\F{{\cal F}} \def\G{{\cal G}} \def\H{{\cal H}}
\def\I{{\cal I}} \def\J{{\cal J}} \def\K{{\cal K}} \def\L{{\cal L}}
\def\M{{\cal M}} \def\N{{\cal N}} \def\O{{\cal O}} \def\P{{\cal P}}
\def\Q{{\cal Q}} \def\R{{\cal R}} \def\S{{\cal S}} \def\T{{\cal T}}
\def\U{{\cal U}} \def\V{{\cal V}} \def\W{{\cal W}} \def\X{{\cal X}}
\def\Y{{\cal Y}} \def\Z{{\cal Z}}
\def\too{\longrightarrow}
\def\eset{\emptyset}
\def\incl{\subseteq}
\def\col{\colon}
\def\imp{\Rightarrow}
\def\ldb{[\![} %left denotational bracket
\def\rdb{]\!]} %right denotational bracket
\def\den#1{\ldb#1\rdb}
\def\con{\land}
\def\scon{\ \land\ }
\def\deq{\doteq}
\def\res#1{|_{#1}} %function restricted to
\def\impl{\Rightarrow}
\def\diff{:\!\iff} %:<==>
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% abbreviations
\def\st{such that}
\def\wrt{with respect to}
\def\byio{by induction on}
\def\byiwrt{by induction \wrt}
\def\byih{by the induction hypothesis}
\def\Byih{By the induction hypothesis}
\def\wlogen{without loss of generality}
\def\Wlog{Without loss of generality}
\def\pwd{pairwise distinct}
\def\hom{homomorphism}
\def\rws{rewrite system}
\def\subst{substitution}
\def\istst{it suffices to show that}
\def\Istst{It suffices to show that}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% other stuff
\def\cld{,\ldots,} %comma lower dots
\def\ol#1{\overline{#1}} %overline
\def\dd#1#2{#1_1,\ldots,#1_{#2}} %da da, makes x1,...,xn
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%macros.tex%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% pi-calculus %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\MathCm{5em}
\def\bang{!\hspace{.04cm}}
\def\piabstr#1#2#3#4{\bang\piget{#1}{#2}{#3}\pidot#4}
\def\piget#1#2#3{#1(#2\hspace{.07cm}#3)}
\def\piput#1#2#3{\piappl{#1}{#2}{#3}}
\def\pigeteins#1#2{#1(#2)}
\def\piputeins#1#2{\ol{#1}\langle #2 \rangle}
\def\piappl#1#2#3{\ol{#1}
\langle #2\hspace{.07cm}#3\rangle}
\def\pidot{\hspace{.07cm}.\hspace{.07cm}}
\def\piaex#1#2{(\nu#1)\:#2}
\def\piaexaex#1#2#3{(\nu#1)(\nu#2)\:#3}
\def\piNull{\Vnull}
\def\Piabstr#1#2#3{\bang\Piget{#1}{#2}\pidot#3}
\def\Piget#1#2{#1(#2)}
\def\Piput#1#2{\Piappl{#1}{#2}}
\def\Piappl#1#2{\ol{#1}
\langle {#2}\rangle}
\def\Piaex#1#2{(\nu#1)\:#2}
\def\Piaexaex#1#2#3{(\nu#1)(\nu#2)\:#3}
\def\PiNull{\Vnull}
%%% 0z expressions %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\OzSpace{.25}
\def\okf#1{{\ozkeyfont{#1}}}
\def\OzIf#1#2#3{\okf{if}
\Space{#1}{\OzSpace}
\okf{then}
\Space{#2}{\OzSpace}
\okf{else}
\Space{#3}{\OzSpace}
\okf{fi}}
\def\OzCase#1#2#3{\okf{case}
\Space{#1}{\OzSpace} \okf{of}
{#2} \okf{else}
\Space{#3}{\OzSpace} \okf{end}}
\def\OzThen#1#2{\Space{#1}{\OzSpace}
\okf{then}
{\Space{#2}{\OzSpace}}}
\def\OzAbstr#1#2#3{{#1} \OzPC\gleich\OzPC
\okf{proc} \{{#2}\}
\Space{#3}{\OzSpace}
\okf{end}}
\def\OzLift#1#2#3{{#1} \OzPC\gleich\OzPC
\okf{open}\{{#2}\}
\Space{#3}{\OzSpace}
\okf{end}}
\def\OzFun#1#2#3{{#1} \OzPC\gleich\OzPC
\okf{fun}\{{#2}\}
\Space{#3}{\OzSpace}
\okf{end}}
\def\OzPC{\hspace{\OzSpace\MathCm}}
\def\OzAppl#1#2{\{{#1}\OzPC{#2}\}}
\def\OzLocal#1#2{\okf{local}\Space{#1}{\OzSpace}
\okf{in}\Space{#2}{\OzSpace}
\okf{end}}
\def\babstr#1#2#3{\OzAbstr{#1}{#2}{#3}}
\def\bappl#1{\OzAppl{#1}{}}
\def\local#1#2{\OzLocal{#1}{#2}}
\def\blift#1#2#3{\OzLift{#1}{#2}{#3}}
%%% lambda-calculus %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\letexpr#1#2#3{\af{let}\MyExSp % let expression
{\Space{{#1}{\mathbin=}{#2}}{.12}}
{\mathbin{\Space{\af{in}}{.2}}} {#3}}
\def\letrecexpr#1#2#3{\af{let rec}\MyExSp % letrec expression
{{#1}{\mathbin=}{#2}}
{\mathrel{\Space{\af{in}}{.15}}} {#3}}
\def\MyIf#1#2#3{\af{if}\:
{#1} \Space{\af{then}} {.2}{#2}
\Space{\af{else}} {.2}{#3}\:\af{fi}}
\def\MyIfFi#1#2{\af{if}\:
{#1} \Space{\af{then}} {.2}{#2}\:\af{fi}}
\def\MyCase#1#2#3#4{\af{case}\:
{#1}\Space{\af{of}} {.2}{#2} \Space{\af{then}} {.2}{#3}}
\def\VI{\Space{\af{I}}{.03}} % identity
\def\eagerred{\orelat{}{e}{*}} % eager reduction
\def\betar#1#2{#1\,\rightarrow\,#2} % beta reduction
\def\alam#1#2{\lambda{#1}.{#2}} % lambda abstraction
\def\alamwb#1#2{\alam{#1}{(#2)}}
\def\alamlam#1#2#3{\lambda{#1}.\lambda{#2}.\hspace{1mm}{#3}}
\def\Var{\mbox{$\af{Var}$} }
\def\Nam{\mbox{$\af{Nam}$} }
\def\EVar{\mbox{$\af{TVar}$} }
\def\eager#1#2#3{\Arrow{e}{#2}{#3}{\rightarrow}}
\def\eag{\eager{}{}{}}
%%% delta-calculus %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\apc {\mathrel{\wedge}} % parallel composition
\def\aor {\mathrel{\vee}}
\def\MyExSp{\mathpunct{\hspace{1mm}}}
\def\d={\mathop{:=}}
\def\Plus{\mathop{+}}
%\def\gleich{\mathop{\doteq}} % = mit Punkt
\def\gleich{\MetaGleich}
\def\MySlash{\hspace{.1ex}\mathpunct/\hspace{-.15ex}}
\def\MyDP{\mathpunct:\hspace{.1ex}}
\def\MyDDP{\mathpunct{::}\hspace{.1ex}}
\def\aex#1#2{\exists{#1}\hspace{.15ex}{#2}}
\def\aexaex#1#2#3{\exists{#1}\aex{#2}{#3}}
\def\aexaexaex#1#2#3#4{\exists{#1}\aexaex{#2}{#3}{#4}}
\def\aexaexaexaex#1#2#3#4{\exists{#1}\aexaexaex{#2}{#3}{#4}}
\def\aexwb#1#2{\aex{#1}{(#2)}}
\def\aexaexwb#1#2#3{\aexaex{#1}{#2}{(#3)}}
\def\aexaexaexwb#1#2#3#4{\aexaexaex{#1}{#2}{#3}{(#4)}}
\def\aexaexaexaexwb#1#2#3#4#5{\aexaexaexaex{#1}{#2}{#3}{#4}{(#5)}}
\def\dle{\stackrel{.}{\le}} % <= mit Punkt
\def\dnot={\stackrel{.}{\not=}} % nicht = mit Punkt
%%%%%%%%%%%%% Abstraktionen %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\gAbstr#1#2#3#4#5{{#1}{#5}{#2}{#4}{#3}}
% allgemeine Abstraction
\def\Abstr#1#2#3{\gAbstr{#1}{#2}{#3}{\MySlash}{\MyDP}}
% einstellige Abstraktion
\def\abstr#1#2#3#4{\Abstr{#1}{{#2}\EMM{#3}}{#4}}
% zweistellige Abstraktion
\def\abstrthree#1#2#3#4#5{\Abstr{#1}{{#2}\EMM{#3}\EMM{#4}}{#5}}
% dreistellige Abstraktion
\def\abstrfour#1#2#3#4#5#6{\Abstr{#1}{{#2}\EMM{#3}\EMM{#4}\EMM{#5}}{#6}}
% vierstellige Abstraction
\def\labstr#1#2#3#4{\gAbstr{#1}{{#2}\EMM{#3}}{#4}{\DoubleSlash}}
% lift-Abstraktion
\def\Einmal#1#2#3{\gAbstr{#1}{#2}{#3}{\MySlash}{\MyDDP}}
% einmal-Abstraktion
\def\AbRestEins#1#2{{#1}\MySlash{#2}}
% einstellige Abstraktion ohne Namen
\def\AbRest#1#2#3{\AbRestEins{{#1}\EMM{#2}}{#3}}
% zweistellige Abstraktion ohne Namen
\def\AbRestDrei#1#2#3#4{\AbRest{{#1}\EMM{#2}}{#3}{#4}}
% zweistellige Abstraktion ohne Namen
\def\gAbstrwb#1#2#3#4#5{\gAbstr{#1}{#2}{(#3)}{#4}{#5}}
% allgemeinen Abstraction mit Klammern
\def\Abstrwb#1#2#3#4{\abstr{#1}{#2}{(#4)}}
% einst. Abstraktion mit Klammern
\def\Abstrwb#1#2#3#4{\abstr{#1}{#2}{#3}{(#4)}}
% zweist. Abstraktion mit Klammern
\def\abstrthreewb#1#2#3#4#5{\abstrthree{#1}{#2}{#3}{#4}{(#5)}}
% dreist. Abstraktion mit Klammern
\def\labstrwb#1#2#3#4{\labstr{#1}{#2}{#3}{(#4)}}
% lift-Abstraction mit Klammern
\def\lift#1#2#3#4{{{{\cal{O}}_{#1}\MyDP{#2}
\hspace{.2mm}{#3}}\DoubleSlash{#4}}} % lift
\def\liftwb#1#2#3#4{\lift{#1}{#2}{#3}{(#4)}}
\def\EMM{\hspace{.65mm}}
%%%%%%%%%%%%%% DeltaReport %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\prod#1{{#1}^{+}} % producer
\def\cons#1{#1^{-}} % consumer
\def\Calculus{\mbox{$\delta$-Calculus} } % kalkuename
\def\terms{\mbox{$\delta$-terms} } % terme im Kalkuel
\def\term{\mbox{$\delta$-term} } % term im Kalkuel
\def\Prod#1{{\cal{P}}(#1)} % Menge der freien
% Produzenten
\def\Cons#1{{\cal{C}}(#1)} % Menge der freien
% Consumenten
\def\astand#1{#1\in\DeltaA} % alpha standardization
\def\Ex{\exists}
\def\Dexp#1#2{#1\;#2} % Q M
\def\Dexpr#1#2{#1\;#2} % Q M
\def\Dterms{\mbox{$D$-terms} } % terme im \DKalkuel
\def\Dterm{\mbox{$D$-term} } % term im \DKalkuel
\def\AxFix{{\af{Ax}}} % identity
\def\Chem{C}
\def\Prenex{D}
\def\pnf{\mbox{${\cal{S}}$} }
\def\PNF#1#2{\mbox{${\cal{S}}(#1$, $#2)$}}
\def\Mol{B}
%%% Substitutions %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\SRepl#1#2{\langle{#1}\MySlash {#2}\rangle}
\def\repl#1#2{[#1/#2]} % substitutions
\def\repleins#1{\MetaRepl{#1}{}}
\def\MRepl#1{\repleins{#1}}
\def\PRepl#1{{\DoubleOBracket}#1{\DoubleSlash}\star{\DoubleCBracket}}
\def\replzwei#1{\MetaRepl{#1}{}}
\def\Conc#1#2#3{\mbox{$#1#3#2$}}
\def\DoubleOBracket{{\Conc{[} {[} {\hspace{-.9mm}}}}
\def\DoubleCBracket{{\Conc{]} {]} {\hspace{-.9mm}}}}
\def\DoubleSlash{{ \Conc{/} {/} {\hspace{-1.8mm}}}}
%\def\MetaRepl#1#2{{\DoubleOBracket}#1{\DoubleSlash}#2{\DoubleCBracket}}
\def\MetaRepl#1#2{{\DoubleOBracket}#1{\DoubleCBracket}}
%%% logical symbols %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\entails {\mbox{$\,\models\,$}} % |= entails
\def\And{\land}
\def\Or{\lor}
\def\relsimp#1{\stackrel{#1}{\rightarrow}}
%%% Rho Calculus %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\hred{\Sp{\red}}
\def\addlist{\mbox{\sl Addlist1}}
\def\addlistzwei{\mbox{\sl Addlist2}}
\def\newname{\mbox{\sl newname}}
\def\hcc{\Def{$\rho$}-calculus}
\def\cc{\Def{cc}}
\def\CLP{\Def{CLP}}
\def\CON{\af{Con}}
\def\FO#1{#1}
\def\ACON{\xi}
\def\Names#1#2{\mbox{$\N(#1$, $#2)$}}
\def\rlmodels{\mathrel{\hbox{$\models\kern-.47\MathCm|$}}} % "Aquivalenz
\def\AxiomCenter#1{
\begin{Absatz}
$\hspace{-1.8mm}\BLS{1.8}
\begin{array}{c}
#1
\end{array}$
\end{Absatz} % Erlaubt mehrere Zeilen Axiome der
\BLS{1}} % mit grossen Zeilenabstand der Form:
%
% SPD: & E = GFFE & if u not in z
\def\AN{\mbox{$\cal{AN}$}} % AN abstraction names
\def\UNP#1{\mbox{${\cal{UNP}}(#1)$}} % UNP(#1) unique name
\def\OzT{\mbox{\sl Oz-terms}}
\def\rtstrich{\orela{-}{R_{t}^{'}}}
\def\Rt{\orela{-}{R_{t}}}
\def\Mit{\orela{-}{t}}
\def\rtstrichstar{\orelat{-}{R_{t}^{'}}{\,*}}
\def\alphatstrichstar{\orelat{-}{\alpha_{t}^{'}}{\,*}}
\def\Motstrichstar{\orelat{-}{Mo_{t}^{'}}{\,*}}
\def\Rtstar{\orelat{-}{R_{t}}{\,*}}
\def\Mitstar{\orelat{-}{t}{\,*}}
\def\invrtstrich{\invorela{R_{t}^{'}}{-}}
\def\invRt{\invorela{R_{t}}{-}}
\def\invMit{\invorela{t}{-}}
\def\invrtstrichstar{\invorelat{R_{t}^{'}}{\hspace{2mm}*}{-}}
\def\invalphatstrichstar{\invorelat{\alpha_{t}^{'}}{\hspace{2mm}*}{-}}
\def\invMotstrichstar{\invorelat{Mo_{t}^{'}}{\hspace{2mm}*}{-}}
\def\invRtstar{\invorelat{R_{t}}{\hspace{2mm}*}{-}}
\def\invMitstar{\invorelat{t}{\hspace{2mm}*}{-}}
\def\invMA#1{\invorela{{#1}}{-}}
\def\MA#1{\orela{-}{{#1}}}
\def\kand{\mathrel{\&}} % Kaufmanns-und &
\def\Con#1#2{{\C}(#1,\:#2)}
\def\Equivt{\Equiv{t}}
\def\nf{{\sl Nf}}
\def\pr{{\sl Nf}}
\def\adi{\vee}
\def\aif#1#2{\Space{{\bf if}\hspace{1mm}
[\Space{#1\Space{|}{.11}#2}{.06}]}{.06}} % if[#1|#2]
\def\aclok#1#2{#1\Space{
\mbox{\bf then}}{.13}#2} % (E then E')
\def\acl#1#2{(\Space{\aclok{#1}{#2}}{.02})} % E then E' ohne Klammern
\def\sabstr#1#2{#1\Space{\mbox{:}}{.02}#2}
% short abstraction
%%% Oz Calculus %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\disjoint{\parallel}
\def\trans#1#2{{#2 \MetaGleich #1}}
\newcommand{\tl}[1]{[\! [ #1 ]\! ]}
\newcommand{\tlwb}[1]{\tl{#1}}
\def\Def#1{{\af{#1}}}
\def\Notice#1{{\em{#1}}}
\def\strich{\,\_\,}
\def\cond#1#2#3{\langle #1\,;\,#2\,;\,#3\rangle} %if-then-else-fi
\def\acond#1#2{\langle #1\,;\,#2\rangle} %if-then-fi
\def\amatch#1#2{\langle #1\,;\,#2\rangle} %if-then-fi
\def\aput#1#2{#1\,!\,#2}
\def\sput#1#2#3{\ol{#2}\,#1\,.\,#3}
\def\wput#1#2{\ol{#2}\,#1}
\def\aget#1#2{#1\,?\,#2}
\def\sget#1#2#3{#2(#1)\,.\,#3}
\def\wget#1#2#3{#2(#1)\,._{w}\,#3}
\def\Encode#1#2{\denterm{#1}{}{#2}}
\newcommand{\denterm}[3]{[\![#1]\!]^{#2}_{#3}} % Denotation eines Terms
%%% Zeichen in besonderen Fonds %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\V{{\cal{V}}}
\def\Ueins{\frak{A}}
\def\Uzwei{\frak{B}}
\def\Udrei{\frak{C}}
\def\ueins{\frak{a}}
\def\uzwei{\frak{b}}
\def\udrei{\frak{c}}
%%% Pfeile %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Universelle Pfeile %%%%
\def\UArrow#1#2#3#4#5{\,\mbox{$\hspace{.28\MathCm}^{#5}\hspace{-.28\MathCm}
\stackrel{\hspace{-.03\MathCm}{#1}\hspace{.03\MathCm}} {#4}
\hspace{-.07\MathCm}_{#2}^{#3}\hspace{.07\MathCm}$}\:}
\def\InvUArrow#1#2#3#4#5{\hspace{.1\MathCm}\mbox{$_{#2}^{#3}
\hspace{-.07\MathCm}{\stackrel
{\hspace{.08\MathCm}{#1}\hspace{-.08\MathCm}}
{#4}}^{#5}$}\,}
\def\Arrow#1#2#3#4{\mathrel{\stackrel % -#1->_#2^#3
{\hspace{-.03\MathCm}{#1}\hspace{.03\MathCm}}{#4}
\hspace{-.37\MathCm}_{#2}^{#3}}}
\def\InvArrow#1#2#3#4{\mathrel{\hspace{.07\MathCm}_{#2}^{#3} % _#2^#3<-#1-
\hspace{-.07\MathCm}{\stackrel
{\hspace{.08\MathCm}{#1}\hspace{-.08\MathCm}}{#4}}}}
%%% einfach Vorw"artsPfeile %%%
\def\orelat#1#2#3{\Arrow{#1}{#2}{#3} % -#1->_#2^#3
{\rightarrow}}
\def\orela#1#2{\orelat{#1}{#2}{}} % -#1->_#2
\def\rela#1{\orela{}{#1}} % ->_#1
\def\relat#1#2{\orelat{}{#1}{#2}}
\def\orel#1{\orela{#1}{}} % -#1->
\def\rel{\rela{}} % ->
\def\relnull{\rela{0}} % ->_0
\def\relstar{\orelat{}{}{*}} % ->^*
\def\relalpha{\rela{\alpha}} % ->_alpha
\def\releins{\orel{1}} % ->_1
\def\relzwei{\orel{2}} % ->_2
\def\releps{\orelat{}{}{\epsilon}} % -eps->
\def\relnullminus{\orela{-}{0}} % -minus->_0
\def\relminus{\orela{-}{}} % -minus->
\def\relnulleps{\orelat{}{0}{\epsilon}} % ->_0^eps
\def\relA{\rela{A}}
\def\relU{\rela{U}}
\def\relB{\rela{B}}
\def\relC{\rela{C}}
\def\relM{\rela{M}}
\def\releinsstar{\orelat{}{1}{*}} % ->_1^*
\def\relalphastar{\orelat{}{\alpha}{*}} % ->_alpha^*
\def\worelat#1#2#3{\Arrow{#1}{#2}{#3}
{\rightharpoonup}}
\def\invworelat#1#2#3{\InvArrow{#1}{#2}{#3}
{\leftharpoonup}}
\def\wrela#1{\worelat{}{#1}{}}
\def\worela#1#2{\worelat{#1}{#2}{}}
\def\worel#1{\worelat{#1}{}{}}
\def\wrel{\worelat{}{}{}}
\def\invwrela#1{\invworelat{}{#1}{}}
\def\invworel#1{\invworelat{#1}{}{}}
\def\invworela#1#2{\invworelat{#1}{#2}{}}
\def\invwrel{\invworelat{}{}{}}
\def\relt{\worel{t}}
%%%% extra lange Pfeile %%%%%
\def\longlongrightarrow{\relbar\joinrel
\relbar\joinrel\relbar\joinrel\rightarrow} % --->
\def\depend#1{\stackrel{#1}
{\longlongrightarrow}} % --#1-->
%%% einfach R"uckw"artspfeile %%%
\def\invorelat#1#2#3{\InvArrow{#1}{#2}{#3} % _#2^#3<-#1-
{\leftarrow}}
\def\invorela#1#2{\invorelat{#1}{#2}{}} % _#2<-#1-
\def\invrelat#1#2{\invorelat{}{#1}{#2}}
\def\invrela#1{\invorela{}{#1}} % _#1<-
\def\invrel{\invrela{}} % <-
\def\invrelstar{\invorelat{}{}{*}} % ^*<-
\def\invrelminus{\invorela{-}{}} % <-minus-
\def\invreleins{\invrela{1}} % _1<-
\def\invreleinsstar{\invorelat{1}{}{*}} % _1^*<-
\def\invrelalpha{\invorela{\alpha}} % _alpha<-
\def\invrelalphastar{\invorelat{}{\alpha}{*}} % _alpha^*<-
\def\invreleps{\invorelat{}{}{\epsilon}} % ^eps<-
\def\invrelnullminus{\invorela{-}{0}} % _0<-minus-
\def\invrelnulleps{\invorelat{}{0}{\epsilon}} % ^eps_0<-
\def\invrelnull{\invrela{0}} % _0<-
%%% FunktionsPfeile %%%
\def\invmapsto{\leftarrow\!\mapstochar} % <-|
%%% DreiecksPfeile %%%
\def\srrl{\mbox{$\triangleleft\hspace*{-.18cm}
\sim\hspace*{-.17cm}\triangleright$}} % PfeilSchlange <|~|>
\def\sr{\mbox{$\,\mbox{$\sim\hspace*{-.17cm}
\triangleright$}\,$}} % Structurel Reduction ~|>
\def\srzwei{\Arrow{}{2}{}{\sr}} % Structurel Reduction ~|>_2
\def\srStar{\Arrow{}{}{*}{\sr}} % Structurel Reduction Star ~|>*
%%% Doppelte Pfeile %%%%%%%%%
\def\reduct#1#2#3{\Arrow{#1}{#2}{#3}{\Rightarrow}} % =#1=>_#2^#3
\def\reduc#1#2{\reduct{#1}{#2}{}}
\def\ored#1{\reduc{#1}{}}
\def\oredu#1#2{\reduct{#1}{#2}{}}
\def\invoredu#1#2{\invreduct{#1}{#2}{}}
\def\redu#1{\reduc{}{#1}}
\def\red{\redu{}}
\def\redstar{\reduct{}{}{*}}
\def\redalpha{\redu{\alpha}}
\def\redalphastar{\reduct{}{\alpha}{*}}
\def\invreduct#1#2#3{\InvArrow{#1}{#2}{#3} % ^#3_#2<=#1=
{\Leftarrow}}
\def\invreduc#1#2{\invreduct{#1}{#2}{}}
\def\invored#1{\invreduc{#1}{}}
\def\invredu#1{\invreduc{}{#1}}
\def\invredalpha{\invredu{\alpha}}
\def\invredalphastar{\invreduct{}{\alpha}{*}}
\def\invred{\invredu{}}
\def\invredstar{\invreduct{}{}{*}}
%%% Doppelte SchlangenPfeile
%\def\sRightarrow{\approx\joinrel>}
%\def\sLeftarrow{<\joinrel\approx}
\def\sreduc#1#2{\Arrow{s}{#1}{#2}{\Rightarrow}} % =s=>_#1^#2
\def\sredu#1{\sreduc{#1}{}}
\def\sred{\sredu{}}
\def\sredstar{\sreduc{}{*}}
\def\sredalpha{\sredu{\alpha}}
\def\sredalphastar{\sreduc{\alpha}{*}}
\def\invsreduc#1#2{\InvArrow{s}{#1}{#2} % ^#2_#1<=s=
{\Leftarrow}}
\def\invsredu#1{\invsreduc{#1}{}}
\def\invsred{\invsredu{}}
\def\invsredstar{\invsreduc{}{*}}
\def\invsredalpha{\invsredu{\alpha}}
\def\invsredalphastar{\invsreduc{\alpha}{*}}
%%% symmetrischen Relationssymbole %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Kongruenzen %%%%%
\def\Equiv#1{\approx_{#1}}
\def\InvEquiv#1{\InvArrow{}{#1}{}{\approx}}
\def\Equ{\Equiv{}}
\def\congrue#1#2#3{\Arrow{#1}{#2}{#3}{\equiv}}
\def\congr#1{\mathrel{\equiv_{#1}}}
\def\con{\congr{}}
\def\coneins{\congr{1}}
\def\conzwei{\congr{2}}
\def\conalpha{\congr{\alpha}}
\def\cont{\congr{t}}
\def\sconnull{\congr{0}}
\def\wcon{\sim} % weak congruece
\def\mcon{\approx} % medium congruent
\def\scon{\con} % strong congruence
%%% Schlangen %%%%%%%%
\def\simeins{\,\mbox{${\relsim\hspace{-.8mm}}_1$}\:}
\def\simzwei{\,\mbox{${\relsim\hspace{-.8mm}}_2$}\:}
\def\relsimeq{\mbox{$\,\mbox{$\simeq$}\,$}} %simeq
%%% Ausdruecke der Kalkuele %%%%
\def\ul#1{\underline#1\,}
\def\ol#1{\hspace{.25mm}
\overline{\hspace{-.25mm}#1\hspace{-.15mm}}
\hspace{.15mm}}
\def\F{{\cal{F}}}
\def\I{{\cal{I}}} % identifiers
%%% Abstand %%%
\def\Space#1#2{\hspace{#2\MathCm}#1\hspace{#2\MathCm}} % Space Relation
\def\Sp#1{\Space{#1}{.3}}
\def\hcon{\Space{\con}{.3}}
\def\hrel{\Space{\rightarrow}{.3}}
\def\hozr{\Space{\ozr}{.3}}
\def\hozrstar{\Space{\ozrstar}{.3}}
\def\hmid{\Space{\mid}{.15}}
\def\heagerred{\Sp{\eagerred}}
\def\Spand{\Space{\mbox{and}}{.8}}
\def\Spiff{\Space{\mbox{iff}}{.8}}
%%% Sonstiges %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\BLS#1{\renewcommand{\baselinestretch}{#1}\large\normalsize}
\newenvironment{Absatz}{\par\vspace{2mm}}
{\vspace{3.5mm}\mbox{ }\par}
\def\Axiom#1{\AxiomStretch{1.2}{#1}}
\def\AxiomStretch#1#2{
\begin{Absatz}
$\BLS{#1}
\begin{array}{l}
\begin{array}{@{\sl}l@{\quad}l@{\qquad}ll}#2\end{array}\\
\end{array}
\hfill$
\end{Absatz}
\BLS{1}}
\def\Disp{\displaystyle} % Displaystyle
\def\ignore#1{}
\def\ms#1{\{|\,#1\,|\}} % multiset
\def\msu{\sqcup} % multiset union
\def\Rule#1#2{
\mbox{$\frac{\;\mbox{$#1$}\;}{\;\mbox{$#2$}\;}$ } }
\def\rulebox#1{
\framebox[\textwidth]{$
\begin{array}{lrcllrcl}
#1
\end{array}
$} %framebox
}
\def\RuleBox#1{
\framebox[\textwidth]{$
\begin{array}{l@{\:}ll}
#1
\end{array}
$} %framebox
}
%\def\ule{\le_{u}} % <=u
%\def\uge{\ge_{u}} % >=u
%\def\Q{{\cal{B}}}
\def\Ru#1{\[ \begin{array}{rcl@{\qquad}l}#1\end{array}\]}
\def\DC#1{\mbox{Derived conditions:} #1}
\def\SC#1{{with $\conzwei$-congruent and
$\alpha$-standardized left hand sides and }#1}
\def\RR#1{{Hence}
\[\begin{array}{rcll}#1\end{array}\]}
\def\RRR#1{\[\begin{array}{rcll}#1\end{array}\]}
%%% Axiomennamen %%%%%
\def\AxText#1{{({#1})}}
\def\Ax#1{(\mbox{#1})}
\def\AxA{\Ax{A}}
\def\AxB{\Ax{B}}
\def\AxU{\Ax{U}}
\def\AxC{\Ax{C}}
\def\AxM{\Ax{M}}
%%% Atomfonts %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\atft}{\sf} % Font f"ur Atome
\newcommand{\af}[1]{{\sf #1}} % Font f"ur Atome, Pr"afixform
\newcommand{\strh}{\CH} % Die Struktur Herbrand
\newcommand{\VA}{\mbox{\af A} } % Konkreter Name A
\newcommand{\VB}{\mbox{\af B} } % Konkreter Name B
\newcommand{\VE}{\mbox{\af E} } % Konkreter Name E
\newcommand{\VF}{\mbox{\af F} } % Konkreter Name F
\newcommand{\VId}{\mbox{\af Id} } % Konkreter Name Id
\newcommand{\Va}{\mbox{\af a} } % Konkreter Name a
\newcommand{\Vb}{\mbox{\af b} } % Konkreter Name b
\newcommand{\Vc}{\mbox{\af c} } % Konkreter Name c
\newcommand{\Vf}{\mbox{\af f}}
\newcommand{\Vs}{\mbox{\af s}}
\newcommand{\Vx}{\mbox{\af x}} % Konkrete Variable x
\newcommand{\Vy}{\mbox{\af y}} % Konkrete Variable y
\newcommand{\Vz}{\mbox{\af z}} % Konkrete Variable z
\newcommand{\Vu}{\mbox{\af u}} % Konkrete Variable u
\newcommand{\Vv}{\mbox{\af v}} % Konkrete Variable v
\newcommand{\Vw}{\mbox{\af w}} % Konkrete Variable w
\newcommand{\Vnull}{\af 0} % Konkrete Zahl 0
\newcommand{\Veins}{\af 1} % Konkrete Zahl 1
\newcommand{\Vzwei}{\af 2} % Konkrete Zahl 2
\newcommand{\Vdrei}{\af 3} % Konkrete Zahl 3
\newcommand{\Value}{\af V} % Konkrete Zahl 3
%%%%%%%%%%Specials %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%5
\def\CircAlpha{{\bigcirc\hspace{-.25cm}\alpha\hspace{.25cm}}}
%\def\CAM{\orelat{-}{\delta}{\CircAlpha}}
\newenvironment{MyListA}
{\newcounter{CounterA}
\begin{list}{\arabic{CounterA}.}{\usecounter{CounterA}
\labelwidth.5cm\leftmargin.35cm\labelsep.1cm}}
{\end{list}}
\newenvironment{MyListB}
{\newcounter{CounterB}
\begin{list}{(\alph{CounterB})}{\usecounter{CounterB}
\labelwidth.5cm\leftmargin.7cm\labelsep.1cm}}
{\end{list}}
\newenvironment{MyListC}
{\newcounter{CounterB}
\begin{list}{(\alph{CounterB})}{\usecounter{CounterB}
\labelwidth2cm\leftmargin2.3cm\labelsep.3cm}}
{\end{list}}
%%%%%%%%%%%%%%%%% symbols %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\A{{\cal A}} \def\B{{\cal B}} \def\C{{\cal C}} \def\D{{\cal D}}
\def\E{{\cal E}} \def\F{{\cal F}} \def\G{{\cal G}} \def\H{{\cal H}}
\def\I{{\cal I}} \def\J{{\cal J}} \def\K{{\cal K}} \def\L{{\cal L}}
\def\M{{\cal M}} \def\N{{\cal N}} \def\O{{\cal O}} \def\P{{\cal P}}
\def\Q{{\cal Q}} \def\R{{\cal R}} \def\S{{\cal S}} \def\T{{\cal T}}
\def\U{{\cal U}} \def\V{{\cal V}} \def\W{{\cal W}} \def\X{{\cal X}}
\def\Y{{\cal Y}} \def\Z{{\cal Z}}
\newenvironment{labeldproof}[1] % Proof of ...
{\noindent{\mbox{\bf Proof \mbox{#1}.}}}
{\hfill$\Box$\par\addvspace{\bigskipamount}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\abdouble#1#2{#1\MyDP#2}
\def\abslash#1#2{#1\MySlash#2}
\def\ladede#1#2#3{\Arrow{#1}{#2}{#3}{\hookrightarrow}}
\def\invladede#1#2#3{\InvArrow{#1}{#2}{#3}{\hookleftarrow}}
\def\lade{\ladede{}{}{}}
\def\invlade{\invladede{}{}{}}
\def\ladestar{\ladede{}{}{*}}
\def\invladestar{\invladede{}{}{*}}
\def\Ladede#1#2#3{\orelat{#1}{#2}{#3}}
\def\invLadede#1#2#3{\invorelat{#1}{#2}{#3}}
\def\Lade{\Ladede{}{d}{}}
\def\invLade{\invLadede{}{d}{}}
\def\Ladestar{\Ladede{}{d}{*}}
\def\invLadestar{\invLadede{}{d}{*}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\VD}[1]{\mbox{\af{#1}}}
\def\writeput#1#2{{\bf\,put\:\mbox{$#1$}\:on\:\mbox{$#2$}\,}}
\def\writeget#1#2{{\bf\,get\:\mbox{$#1$}\:from\:\mbox{$#2$}\,}}
\def\writesput#1#2#3{{\bf\,put\:\mbox{$#1$}\:on\:
\mbox{$#2$}\:wait\:\mbox{$#3$}\,}}
\def\writesget#1#2#3{{\bf \,get\:\mbox{$#1$}\:from\:
\mbox{$#2$}\:wait\:\mbox{$#3$}\,}}
\def\assign{:=}
\def\dddd{{}}
%%%%%%%%Dissertation %%%%%%%%%%%%%%%%%%%%%%%%
%\def\Lazy#1#2#3{\TImp{#1}{#2}\Sp{\mbox{\sl with}} {#3}}
\def\TImp#1#2#3#4{\admiss{#4}{\Triple{#1}{#2}{#3}}}
\def\admiss#1#2{#2\Space{\rhd}{.15}{#1}}
\def\KTA#1#2{,\hspace{1mm}{#1}\MyDP{#2}}
\def\TA#1#2{#1\MyDP#2}
\def\TLambda{\Lambda}
\def\TTripel{{\TLambda}{\TTrigger}{\TLambda}}
\def\TTrigger{t}
\def\applthree#1#2#3#4{{#1}\EMM{#2}\EMM{#3}\EMM{#4}}
\def\LTrans#1#2#3{{#1}\cdot{#2} \MetaGleich {#3}}
\def\appl#1#2#3{{#1}\EMM{#2}\EMM{#3}} % application
\def\Appl#1#2{\appl{#1}{#2}{}}
\def\Cell#1#2{{#1}\MyDP{#2}}
\def\cell#1#2{\Cell{#1}{#2}}
\ignore{\def\cell#1#2{{#1}\MyDP{{\bf cell}\langle{#2}\rangle}}}
\def\Namen#1{\mbox{\sl NF}({#1})}
\def\Auftreten#1#2{{\cal{A}}(#1,#2)}
\def\CopyP#1{\CopyF(#1)}
\def\PushP#1{\PushF(#1)}
\def\GroesseP#1{\GroesseF(#1)}
\def\CopyF{\mbox{\sl CP}}
\def\PushF{\mbox{\sl PP}}
\def\GroesseF{\mbox{\sl GP}}
\def\Triple#1#2#3{({#1},\,{#2},\,{#3})}
\def\Paar#1#2{({#1},\,{#2})}
\def\Pair#1#2{\Paar{{#1}}{{#2}}}
\def\ODelta#1{\Delta^{\hspace{-.5mm}#1}}
\def\ZuDeltaAlpha{\ODelta{b}}
\def\AnPos#1#2{{#1}\downarrow{#2}}
\def\ATiefe#1#2{\mbox{\sl AT}(#1,#2)}
\def\DeltaA{\ODelta{\alpha}}
\def\DeltaNullA{\ODelta{\alpha}_0}
\def\DeltaA{\ODelta{\alpha}}
\def\DeltaAdmClosed{\ODelta{cl}_{ad}}
\def\DeltaAdCl{\ODelta{cl}_{ad}}
\def\DeltaCl{\ODelta{cl}}
\def\DeltaAd{\ODelta{ad}}
\def\DeltaNull{\Delta_0}
\def\deltaNull{\delta_0}
\def\DeltaNullPNF{\ODelta{nf}_0}
\def\DeltaPNF{\ODelta{nf}}
\def\DeltaNF{\ODelta{nf}}
\def\deltaNullPNF{\delta^nf_0}
\def\Diff{\mbox{Diff}}
\def\ladea#1{\ladede{}{{#1}}{}}
\def\gdw{\mbox{\sl gdw.}}
\def\Spgdw{\quad\gdw\quad}
\def\QQ#1{\mbox{$[\mbox{$#1$}]$}}
\def\MyCup{\mathrel{\cup}}
\def\LT#1#2#3{\DE{#1}{#2}\MetaGleich #3}
\def\DE#1#2{#1\cdot#2}
\def\US{\:\_\:}
\def\SOS{\Value}
\def\MetaGleich{\mathbin{=}}
\def\MG{\MetaGleich}
\def\FV{\F\V}
\def\BV{\B\V}
\def\LambdaClo{\Lambda^{cl}}
\def\Kontext#1#2{\KontextO{{#1}}\MRepl{{#2}}}
\def\KontextO#1{T_{{#1}}}
\def\Folie#1{\begin{folie}\input{#1} \end{folie}}
%% FOLLOWING LINE CANNOT BE BROKEN BEFORE 80 CHAR
\newcommand{\Grey}[1]{\psframebox[linecolor=white,linewidth=0pt,fillstyle=solid,fillcolor=lightgray]{#1}}
\def\LEmb#1{\Phi_{u,r}({#1})}
\def\FuCoS#1#2#3{S_{\LTrans{{#1}}{{#2}}{{#3}}}^{{#1}'}}
\def\FuCoT#1#2#3{T_{\LTrans{{#1}}{{#2}}{{#3}}}}
\def\dotapc{\mathbin{\dot{\apc}}}
\def\LazyGleich{\gleich}
\def\SEmb#1#2{{#1}\LazyGleich_{n}{#2}}
\def\NeedEmb#1#2{{#1}\LazyGleich_{need}{#2}}
\def\Match#1#2#3{{#1}\gleich{#2}\MySlash{#3}}
\def\CoS#1#2{\{{#1}\LazyGleich{#2}\}}
\def\CoU#1#2#3#4{\{\applthree{{#2}}{{#3}}{{#4}}{{#1}}\}}
\def\CoT#1#2#3{\{{#1}\Space{.}{.2}{#2}\LazyGleich{#3}\}}
\def\CoSInv#1#2{\CoS{#2}{#1}}
\def\CoTInv#1#2#3{\CoT{#3}{#2}{#1}}
\def\CoUInv#1#2#3#4{\CoU{{#4}}{{#1}}{{#2}}{{#3}}}
\def\DA#1#2{{#1}{\leftarrow}{#2}}
\def\Loc{\bf Loc}
\def\Imp{\bf Imp}
\def\SemPair#1#2{\langle{#1},{#2}\rangle}
\def\Pow#1{\P({#1})}
\def\Bf#1{{\bf #1}}
\def\Sem#1#2#3{{#1}\EMM\Inter{#2}\EMM{#3}}
\def\SemDrei#1#2#3#4{{#1}\EMM \Inter{#2}\EMM{#3}\EMM{#4}}
\def\Av{\A\!v}\def\Bv{\B\!v}
\def\True{{\bf true}}
\def\False{{\bf false}}
\def\BF#1{{\bf #1}}
\def\Corr#1#2#3{\{{#1}\}\:{#2}\:\{{#3}\}}
\def\MyPiDot{\EEMM{\BF{.}}\EMM}
\def\Cond#1#2{{#1}\MyPiDot{#2}}
%\def\SA{{\Leftarrow}}
\def\SA{\gleich}
\def\ctype{\Trigger}
\def\itype{\af{in}}
\def\otype{\af{out}}
\def\ttype{\af{t}}
\def\mutype#1#2{\mu{#1}.{#2}}
\def\In{\:\mbox{in}\:}
\def\APaar#1#2{\langle{#1},\,{#2}\rangle}
\def\Ann#1#2{{#1}^{#2}}
\def\TJud#1#2#3{\gadmiss{#3}{{#1};\:{#2}}{}}
\def\Os#1{\O(#1)}
\def\gTypeOf#1#2#3{{#3}(#1,#2)}
\def\TypeOf#1#2{{#2}(#1)}
\def\Structure#1#2{\gTypeOf{#1}{#2}{\V}}
\def\Annotation#1#2{\gTypeOf{#1}{#2}{\M}}
\def\LengthOf#1{\af{length}(#1)}
\def\Arity#1#2{\af{arity}_{#2}(#1)}
\def\ptype#1{\DoubleRoundOBracket{#1}\DoubleRoundCBracket}
\def\DoubleRoundOBracket{{\Conc{(} {(} {\hspace{-1.1mm}}}}
\def\DoubleRoundCBracket{{\Conc{)} {)} {\hspace{-1.1mm}}}}
\def\mode{\eta}
\def\PiOf#1#2{\delta_0^{#2}(#1)}
\def\DeltaNullOf#1{\PiOf{#1}{}}
\def\RhoOf#1{\rho(#1)}
\def\Compl{\C}
\def\PiCore{\CorePi}
\def\CorePi{$\delta_{0}$ }
\def\Core{\PiCore}
\def\EleE{E}
\def\EleG{G}
\def\CalE{\E}
\def\CalG{\G}
\def\trigger#1{t_{#1}}
\def\Trigger{\BF{t}}
\def\Three#1#2#3{{#1}{#2}{#3}}
\def\MS#1#2{\MSA{#1}{}{#2}}
\def\MSA#1#2#3{\Three{#1}{{\subseteq_{{#2}}}} {#3}}
\def\GRA#1#2#3{\Three{#1}{\ge_{{#2}}} {#3}}
\def\IS#1#2{{#1}\Cap{#2}}
%\def\Boxl#1#2{\Three{#1}{\:\Box\:}{#2}}
\def\Boxl#1#2{#1}
\def\judge#1#2#3{\Boxl{\Three{{#1}}{\:\kand\:}{{#2}}}{#3}}
\def\In{\:\mbox{in}\:}
\def\notIn{\:\mbox{not in}\:}
\def\defined{\:\mbox{defined in}\:}
\def\notdefined{\:\mbox{not defined in}\:}
\def\NE#1{\mbox{\sl NE}({#1})}
\def\IsE#1{\mbox{\sl empty}({#1})}
\def\Sort#1#2{\MS{{#1}}{{#2}}}
\def\Null{{\bf 0}}
\def\One{{\bf 1}}
\def\Step#1#2#3{
\mbox{$\raisebox{0.15em}{$#1$}\over\raisebox{-0.15em}{$#2$}$}\ \mbox{#3}}
\def\Cap{{\cap}}
\def\Cup{{\cup}}
\def\gleich{{=}}
\def\Base#1{#1}
\def\Dom{{\sf dom}}
\def\Ran{{\sf rg}}
\def\Cby#1{\triangleleft_{#1}}
\def\Det#1{\D(#1)}
\def\UnDet#1{\ol{\D(#1)}}
\def\InfTermOf#1{\IT{#1}}
\def\InfTerm{{\IT{V}}}
\def\InfTree{{\I\T}}
\def\FeatTerm{{\F\T(V)}}
\def\Compl#1{{#1}^c}
\newtheorem{expl}{Example}[section]
\newenvironment{Example}{\begin{expl}\rm}{\end{expl}}
\newenvironment{ExampleOf}[1]{\begin{expl}{\bf #1}\rm}{\end{expl}}
\def\Var{V}
\def\BaseVar{BV}
\def\VarComp#1{\C(#1)}
\def\BaseVarComp#1{\B\C(#1)}
\def\VarCompIn#1#2{\C_{{#1}}({#2})}
\def\IT#1{\I\T({#1})}
\def\Def#1{{\em #1}}
\def\Pack#1{\begin{array}{l}{{#1}}\end{array}}
\def\inst#1#2{\mbox{\af{Inst}}_{{#1}}({#2})}
\def\ainst#1#2{\mbox{\af{Inst}'}_{{#1}}({#2})}
\def\CV{\C\V}
\def\BV{\B\V}
\def\IV{\I\V}
\newcommand{\bigsqcap}{\sqcap}
\newcommand{\INST}[1]{{\af Inst}(#1)}
\newcommand{\SORT}[1]{{\af Sort}(#1)}
\newcommand{\SORTATY}[1]{{\af ASort}(#1)}
\newcommand{\SORTFEAT}[1]{{\af FSort}(#1)}
\newenvironment{proofOf}[1]{\noindent{\bf Proof of #1. }} %Proof
{\hfill$\Box$\par\addvspace{\bigskipamount}}
\def\ISmodels{\mathrel{\models^I}}
\def\notISmodels{\mathrel{{\not\models}^I}}
\def\ISrlmodels{\mathrel{\rlmodels^I}}
\def\notISrlmodels{\mathrel{{\not\rlmodels}^I}}
\def\ISSol#1{\mbox{Sol}^I ({#1})}
\def\ISExt#1#2{\mbox{Ext}^I_{{#1}}({#2})}
\newcommand{\DET}{{\circ}}
\newcommand{\Less}[1]{{\le_{{#1}}}}
\newcommand{\renamed}[1]{{#1^\circ}}
\def\HasFeat#1#2{#1#2\!\downarrow\:}
\def\HasNotFeat#1#2{#1#2\!\uparrow\:}
\def\Feat#1#2{#1[#2]}
\def\Label#1#2{#1#2}
\def\AtFeat#1#2#3{#1[#2]#3}
\def\Arity#1#2{#1#2}
\def\ARITY#1{ATY(#1)}
\def\LABEL#1{LAB(#1)}
%% FOLLOWING LINE CANNOT BE BROKEN BEFORE 80 CHAR
\newcommand{\grey}[1]{\psframebox[linecolor=white,linewidth=0pt,fillstyle=solid,fillcolor=lightgray]{#1}}
\def\WhatsIt{weak subsumption\ }
%% FOLLOWING LINE CANNOT BE BROKEN BEFORE 80 CHAR
\newcommand{\weaksub}{\protect{\mbox{$\sqsupset\hspace{-1.07em}\raisebox{-0.5em}{$\sim$}$}}}
\def\TD{\T\D}
\begin{document}
\title{Weak Subsumption Constraints for Type Diagnosis:
An Incremental Algorithm\\[2mm]
\large (Extended Abstract)}
\author{Martin M\"uller \hspace{2cm} Joachim Niehren \\
\normalsize German Research Center for Artificial Intelligence (DFKI)\\
\normalsize Stuhlsatzenhausweg 3, 66123 Saarbr\"ucken, Germany\\
\normalsize \{mmueller,niehren\}@dfki.uni-sb.de\\
}
\date{}
\maketitle
\sloppy
\vspace{-1.2cm}
\begin{abstract}
We introduce constraints
necessary for type checking a higher-order concurrent
constraint language,
and solve them with an incremental algorithm.
Our constraint system extends rational unification
by constraints $\MS{x}{y}$
saying that ``$x$ has at least the structure of $y$'',
modelled by a weak instance relation between trees.
This notion of instance has been carefully chosen
to be weaker than the usual one which
renders semi-unification undecidable.
Semi-unification has more than once served to link
unification problems arising from type inference
and those considered in computational linguistics.
Just as polymorphic recursion corresponds to subsumption
through the semi-unification problem, our
type constraint problem corresponds to weak
subsumption of feature graphs in linguistics.
The decidability problem for \WhatsIt for feature
graphs has been settled by D\"orre~\cite{Doerre:WeakSubsumption:94}.
\nocite{RuppRosnerJohnson:94}
In contrast to D\"orre's, our algorithm is fully incremental
and does not refer to finite state automata.
Our algorithm also is a lot more flexible. It allows
a number of extensions (records, sorts, disjunctive types,
type declarations, and others)
which make it suitable for type inference
of a full-fledged programming language.\\[0.2em]
\noindent {\bf Keywords}: type inference, weak subsumption,
unification, constraints, constraint programming
\end{abstract}
\newpage
%%
%%
%%
\section{Introduction}
We give an algorithm which is at the heart of a type
diagnosis system for a higher-order concurrent
constraint language, viz.~the $\gamma$ calculus
\cite{Smolka:GammaCalculus:94} which is the underlying
operational model of the programming language Oz \cite{ozdoc}.
The algorithm decides satisfiability of
constraints
containing equations $x\gleich y$ and $x\gleich f(\ol{y})$,
and \WhatsIt constraints $\MS{x}{y}$ over infinite constructor
trees with free variables.
The algorithm is given fully in terms of constraint simplification.
One the one hand, this gives credit to the close
relationship between type inference and constraint solving
(e.g.,
%% FOLLOWING LINE CANNOT BE BROKEN BEFORE 80 CHAR
\cite{Wand:Simple:87,AikenWimmers:TypeInclusion:93,KozenPalsbergSchwartzbach:JCSS:94}
and many others).
On the other hand it establishes yet another correspondence
between unification problems arising from polymorphic type inference
and unification based grammar formalisms:
The most prominent one is the equivalence of
type checking polymorphic recursion \cite{Mycroft:84,Henglein:88}
with semi-unification \cite{KfouryTiurynUrz:93,DoerreRounds:LICS:90}
both of which are
undecidable in general. To avoid this undecidability,
we chose a weaker instance relation to give semantics to
$\MS{x}{y}$. For example, we allow $f(a\: b)$ as an instance
of $f(x\: x)$ even if $a\neq b$. On the type
side, this type of constraints maintains some of the polymorphic
flavour, but abandons full parametric
polymorphism~\cite{MuellerNiehren:Member:94}.
We start out from the set of
infinite constructor trees with holes (free variables).
We give a semantics which interprets the tree assigned
to a variable dually: As itself
and the set of its ``weak'' instances.
Our algorithm terminates, and can be shown to
be correct and complete under this semantics.
The decidability problem for our constraints turned out
to be equivalent to weak subsumption over feature graphs
solved by D\"orre \cite{Doerre:WeakSubsumption:94}
for
feature graphs with feature (but no arity) constraints.
However, only half of D\"orre's two-step
solution is a constraint solving
algorithm. The second step relies on the
equivalence of non-deterministic and deterministic
finite state automata. In contrast, our algorithm
decides satisfiability in a completely incremental
manner and is thus amenable to be integrated
in an concurrent constraint language like Oz~\cite{ozdoc}
or AKL~\cite{JansonHaridi:91}.
The extension of our algorithm towards
feature trees is easily possible
(see \cite{MuellerNiehren:Member:94}).
This allows to do type diagnosis for
records~\cite{SmolkaTreinen:92} and objects.
An entirely set-based semantics allows
to naturally extend the algorithm
to a full-fledged type diagnosis system,
covering -- among other aspects -- sorts, disjunctive types,
and recursive data type declarations
\cite{NiehrenPodelskiTreinen:93}.
{\paragraph{Type Diagnosis.}
As an illustrating example for the form of type diagnosis
we have in mind, consider the following $\gamma$ program:
\[
\exists x \exists y\exists z\exists p\ \
\abstr{p}{u}{v}{v\gleich cons(x\: u)} \apc
\appl{p}{y}{y} \apc x\gleich f(y\: z)
\]
This program declares four variables $x,y,z$, and $p$. It defines
a relational abstraction $p$, which states that its two arguments
$u$ and $v$ are related through the equation $v=cons(x\: u)$.\footnote{
Note that
$\abstr{p}{u}{v}{v\gleich cons(x\: u)}$ is different from a
named $\lambda$ abstraction $p = \alam{u}{cons(x\: u)}$
because it is relational rather than functional,
and also different to the Prolog program
$p(u,v)\ \mbox{:--}\ v=cons(x\: u).$,
because Prolog does not allow
variables to be global wrt.~a predicate
but rather existentially quantifies $x$.
}
Furthermore, it states the equality $x\gleich f(y\: z)$ and
applies $p$ to $yy$.
This application $\appl{p}{y}{y}$ reduces to a copy of
the abstraction $p$ with the
actual arguments $yy$ replaced for the formal ones $uv$:
\[\begin{array}{lcl}
& \exists x \exists y\exists z\exists p\ \
\abstr{p}{u}{v}{v\gleich cons(x\: u)} \apc
\appl{p}{y}{y} \apc x\gleich f(y\: z) \\
\to &
\exists x \exists y\exists z\exists p\ \
\abstr{p}{u}{v}{v\gleich cons(x\: u)} \apc
y\gleich cons(x\: y) \apc x\gleich f(y\: z)
\end{array}\]
Observe how the abstraction $p$ is defined by
reference to the global variable $x$, while
the value of $x$ is defined through an application
of $p$: $\appl{p}{y}{y} \apc x\gleich f(y\: z)$.
Such a cycle is specific to the $\gamma$ calculus
since no other language offers
explicit declaration of logic variables global to an abstraction
(be it logic, functional, or concurrent
languages, e.g., Prolog, ML \cite{HarperMacQueenMilner:86},
or Pict \cite{PierceTurner:Pict:95}).
The types of the variables involved are described by
the following constraint.\footnote{
The formal account of the derivation of type constraints from programs
will be given in \cite{Mueller:96}.
}
For ease of reading, we slightly abuse notation and pick
the type variables identical to the
corresponding object variables:
\[
p \gleich \langle u\: v\rangle \apc
v\gleich cons(x\: u) \apc
\MS{y}{u} \apc \MS{y}{v} \apc
x\gleich f(y\:z)
\]
$\langle u\: v\rangle$ is the relational type of $p$,
and the application gives rise to the constraint
$\MS{y}{u} \apc \MS{y}{v}$,
which says that $y$ is constrained by both formal arguments
of the procedure $p$.
The subconstraint
$x\gleich f(y\: z) \apc \MS{y}{v} \apc v\gleich cons(x\: u)$
reflects the cyclic dependency between $x$ and $p$. It says
that $y$ be in the set of instances of
$v$ which depends through $v\gleich cons(x\: u)$
on $x$, and at the same time that $x$ should be exactly
$f(y\: z)$.
Type diagnosis along this line
is discussed in depth in \cite{MuellerNiehren:Member:94}.
\paragraph{Related Work.}
Apart from the already mentioned work,
related work includes investigations about membership
constraints (e.g., \cite{NiehrenPodelskiTreinen:93}),
type analysis for untyped languages (Soft Typing)
\cite{AikenWimmers:TypeInclusion:93,%
CartwrightFagan:91,WrightCartwright:Scheme:93},
constraint-based program analysis
\cite{KozenPalsbergSchwartzbach:JCSS:94}
and the derivation of recursive sets from programs~\cite{Fruehwirth:91}.
For proofs and a detailed discussion of related work
see~\cite{MuellerNiehren:Member:94}.
\paragraph{Plan of the Paper.}
This paper is structured as follows. In the Section \ref{sec:notation}
below we present our constraints along with their semantics and
give necessary notation. Section \ref{sec:problem} gives a simple
algorithm which is correct but non-terminating.
Section \ref{sec:algorithm} gives the rules of the full algorithm.
Section \ref{sec:outlook} concludes and gives a brief outlook.
%%
%%
%%
\section{Constraints and Semantics}
\label{sec:notation}
We assume a signature $\Sigma$ of function
symbols with at least two elements ranged over by
$f,g,h,a,b,c$ and an infinite
set of {\em base variables\/} $\BV$ ranged over by
$\Base{\chi}$. If $V$ is a further set of variables then
$\InfTerm$ stands for the set of all finite or infinite \Def{trees}
over signature $\Sigma$ and variables $V$. Trees of $\IT{V}$
are always ranged over by $s$ and $t$. The set of variables
occurring in a tree $t$ is denoted by $\V(t)$.
Sequences of variables are written as $\ol{x}$, or $\ol{\chi}$.
We build constraints over a set of
\Def{constraint variables} ranged over by $x$, $y$,
$z$, $u$, $v$, $w$. Constraint variables must contain at least
base variables. The syntax of
our \Def{constraints} $\phi$, $\psi$ is as follows:
\[\begin{array}{rcl@{\qquad \mbox{and} \qquad}rcl}
x,y & ::= & \chi &
\phi,\psi & ::=& x\gleich y \hmid
x\gleich f(\ol{y}) \hmid \MS{x}{y} \hmid
\phi \apc \psi
\end{array}\]
As {\em atomic constraints\/} we consider equations
$x\gleich y$ or $x\gleich f(\ol{y})$ and \WhatsIt
constraints $\MS{x}{y}$. Constraints are atomic
constraints closed under conjunction. \Def{First-order
formulae} build over constraints $\phi$ are denoted by
$\Phi$. We define $\con$ to be the least binary
relation on $\phi$ such that $\apc$ is associative
and commutative. For convenience, we shall use the
following notation:
\[
\begin{array}{r@{\qquad}c@{\quad}l}
\mbox{$\phi$ in $\psi$}& \mbox{iff} &\mbox{exists $\phi'$ with
$\phi\apc\phi' \con \psi$}
\end{array}
\]
As semantic structures we pick \Def{tree-structures}
which we also call $\IT{V}$ for some set $V$. The domain of a
tree-structure $\IT{V}$ is the set of trees $\IT{V}$.
Its interpretation is defined by
$\: f^{\IT{V}}(\ol{t}) = f(\ol{t})$. We define the application
$f(\ol{T})$ of $f$ to a sequences of sets of trees $\ol{T}$
elementwise, $f(\ol{T})= \{f(\ol{t}) \mid \ol{t}\in \ol{T}\}$.
Given a tree $s\in \IT{V}$, the set $\inst{V}{s}$
of \Def{weak instances of $s$} is defined as the greatest fixed point of:
\[
\inst{V}{s} = \left\{\begin{array}{ll}
\IT{V} & \mbox{if $t = x$ for some $x$} \\
f(\ol{\inst{V}{s}}) & \mbox{if $t = f(\ol{s})$ for some $\ol{s}$}
\end{array}\right.
\]
Notice that this definition implies
$f(a\ b) \in \inst{V}{f(x\ x)}$, even if $a\not= b$.
Let $V_1$, $V_2$ be two sets whose elements we call
variables. A \Def{$V_1$-$V_2$-substitution} $\sigma$ is a
mapping from $V_1$ to $\IT{V_2}$. By homomorphic extension, every
substitution can be extended to a mapping from $\IT{V_1}$
to $\IT{V_2}$.
The set of \Def{strong instances of $s$}
is defined by
$
\ainst{V}{s} =
\{\sigma(s) \:|\: \mbox{$\sigma$ is a $\V(s)$-$V$-substitution}\}
$.
Note that $\ainst{V}{s} \subseteq \inst{V}{s}$, and that
$f(a\: b)\not\in \ainst{V}{f(x\: x)}$ if $a\neq b$.
Using $\ainst{V}{s}$ instead of $\inst{V}{s}$ would
make satisfiability of our constraints equivalent to
semi-unification and undecidable
\cite{Kfoury:SemiUnification:90,DoerreRounds:LICS:90}.
Let $\sigma$ be a $V_1$-$V_2$-substitution,
$\{x,y,\ol{z}\}\subset V_1$, and $\phi,\psi$
constraints such that $\V(\phi)\subseteq V_1$, $\V(\psi)\subseteq V_1$.
Then we define:\label{semantics}
\[\begin{array}{lcl@{\qquad\qquad} lcl}
\models_{\sigma} x\gleich y &
\mbox{iff} & \sigma(x) \gleich \sigma(y) &
\models_{\sigma} x\gleich f(\ol{z})&
\mbox{iff} & \sigma(x) \gleich f^{\IT{V_2}} (\ol{\sigma(y)}) \\
\models_{\sigma} \MS{x}{y} &
\mbox{iff} & \inst{V_2}{\sigma(x)}\subseteq \inst{V_2}{\sigma(y)} &
\models_{\sigma} \phi \wedge \psi & \mbox{iff} &
\models_{\sigma} \phi \mbox{ and } \models_{\sigma} \psi
\end{array}\]
A \Def{$V_1$-$V_2$-solution} of $\phi$ is a $V_1$-$V_2$-substitution
satisfying $\models_{\sigma} \phi$. A constraint $\phi$ is called
\Def{satisfiable}, if there exists a $V_1$-$V_2$-solution for
$\phi$. The notion of $\models_\sigma$ extends to arbitrary first-order
formulae $\Phi$ in the usual way.
We say that a formula $\Phi$ is \Def{valid}, if $\models_\sigma
\Phi$ holds for all $V_1$-$V_2$-substitutions $\sigma$ with
$\V(\Phi)\subseteq V_1$. In symbols, $\models \Phi$.
Our setting is a conservative extension of
the usual rational unification problem. This means
that free variables in the semantic domain do not affect
equality constraints. A constraint $\phi$ is \Def{satisfiable in the
tree-model $\IT{V}$}, if there
exists a $\BV$-$V$-solution of $\phi$. The trees of
$\IT{\emptyset}$ are called \Def{ground trees}.
\begin{proposition}
\label{as usual}
Suppose $\phi$ not to contain \WhatsIt constraints.
Then $\phi$ is satisfiable if and only if it is satisfiable in
the model of ground trees.
\end{proposition}
The statement would be wrong for $\phi$'s
containing weak subsumption constraints. For instance,
consider the following $\phi$ with $a\not= b$:
\[
\phi \hcon \MS{x}{z} \apc \MS{y}{z} \apc x\gleich a \apc y\gleich b\:
\]
This $\phi$ is not satisfiable in the model of ground trees,
since the set $\inst{\emptyset}{t}$ is a singleton for
all ground trees $t$, whereas any $V_1$-$V_2$-solution $\sigma$ of
$\phi$ has to satisfy
$
\{a,b\} \subseteq \inst{V_2}{\sigma(z)}
$.
However, there exists a $\{x,y,z\}$-$\{v\}$-solution
$\sigma$ of $\phi$, where $\{v\}$ is an singleton:
$
\sigma(x) \Sp{=} a\:,
\sigma(y) \Sp{=} b\:,
\sigma(z) \Sp{=} v\:
$.
\begin{proposition}\label{lemma-eq-implies-in}
For all $x$, $y$, $z$, $u$, $v$ the following statements hold:
\[ \begin{array}{ll@{\qquad}ll@{\qquad}ll}
1) &\models\: x\gleich y \rel \MS{x}{y}\:, &
2) &\models\: \MS{x}{y}\apc \MS{y}{z} \rel \MS{x}{z}\:, &
3) &\models\: x\gleich f(\ol{y}) \rel \MS{x}{f(\ol{y})}\:, \\
4) &\not\models\: \MS{x}{y} \apc \MS{y}{x} \rel x\gleich y &
5) &
\multicolumn{3}{l}{
\not\models\: x\gleich f(u\ v) \apc \MS{x}{y} \apc y\gleich f(z\ z)
\rel u\gleich v\:.
}
\end{array}\]
\end{proposition}
\paragraph{Weak Subsumption vs.~Sets of Weak Instances.}
In the remainder of this section we
compare our sets of weak instance with D\"orre's
notion of weak subsumption.
Let us consider constructor
trees as special feature trees with integer-valued features,
a distinguished feature
{\sf label}~(e.g., \cite{NiehrenPodelski:93,Backofen:94}),
and a distinguished feature {\sf arity}.
Given feature constraints $x[f]y$ saying that $x$
has direct subtree $y$ at feature $f$, the equation
$x\gleich f(y_1\dots y_n)$ can be considered
equivalent to:\footnote{
This simpler encoding of constructor trees not using arity
constraints has been suggested by one of the referees.
}
\[
x[{\sf arity}]n
\apc x[{\sf label}]f \apc x[1]y_1 \apc \dots \apc x[n]y_n.
\]
Let us write $s[f]\!\!\downarrow$ to say that
the tree $s$ has some direct subtree at $f$.
A \Def{simulation} between $\IT{V_1}$ and $\IT{V_2}$ is a relation
$\Delta \subseteq \IT{{V_1}} \times \IT{{V_2}}$ satisfying:
If $(t,s) \in \Delta$ then
\begin{center}
\begin{tabular}{lp{10cm}}
\Ax{Arity Simulation} & If $t[{\sf label}]\!\!\downarrow$
and there is an $n$ such that $t[{\sf arity}]n$,
then $s[{\sf arity}]n$.\\
\Ax{Feature Simulation} &
If $t[f]\!\!\downarrow$ and there is a tree $t'$
such that $t[f]t'$,
then
$s[f]\!\!\downarrow$, $s[f]s'$, and
$(t',s') \in \Delta$.
\end{tabular}
\end{center}
%
Now, the weak subsumption preorder $\weaksub^V$ is defined by:
\[
\mbox{$t \weaksub^V s$\qquad iff\qquad
there is a simulation $\Delta\subseteq V\times V$ such that
$(s,t)\in\Delta$}
\]
We have the following lemma:
%
\begin{lemma}
For all constructor trees $s,t$ it holds that:
$\inst{V}{s} \subseteq \inst{V}{t}$ iff $s \weaksub^V t$.
\end{lemma}
%
A similar statement can be derived for the set of strong
instances
and a strong subsumption preorder
following~\cite{Doerre:WeakSubsumption:94}.
The difference between $\weaksub^V$ and D\"orre's
notion of weak subsumption is that he does not require
\AxText{Arity Simulation}, while we naturally do
since we start
from constructor trees. For type checking, constructor
trees seem more natural: For illustration note that
the arity of a procedure is essential type information.
%%
%%
%%
\section{A Non-terminating Solution}
\label{sec:problem}
\begin{figure}[htb]
\framebox[\textwidth]{
$\begin{array}{lll}
%
\Ax{Decom}&
\Rule{x\gleich f(\ol{u}) \apc \phi}
{\ol{u}\gleich \ol{v} \apc \phi}
& \Pack{x\gleich f(\ol{v}) \In \phi.}
%
\vspace{4mm}\\
%
\Ax{Clash}&
\Rule{x\gleich f(\ol{u}) \apc \phi}
{\bot}
& \Pack{x\gleich g(\ol{v}) \In \phi,\: and\: f\not= g.}
%
\vspace{4mm}\\
%
\Ax{Elim}&
\Rule{x\gleich y \apc \phi}
{x\gleich y \apc \phi\repl{y}{x}}
& \Pack{ x\in\V(\phi),\mbox{ and } x\not= y.}
%
\vspace{4mm}\\
%
\Ax{Descend} &
\Rule{\MS{x}{y}\apc \phi} {x\gleich f(\ol{u}) \apc
\MS{\ol{u}}{\ol{z}}\apc \phi}
& \begin{array}{l}
\ol{u} \mbox{ fresh}, y\gleich f(\ol{z}) \In \phi.
\end{array}
\end{array}$
}
\caption{\label{fig:loop-algorithm}A Non-Terminating Algorithm}
\end{figure}
In order to solve our constraints one could come up
with the system
given in Figure \ref{fig:loop-algorithm}.
Besides the three usual unification rules for
rational trees, the only additional rule is (Descend).
This algorithm is correct and very likely to be complete
in that for an unsatisfiable constraint $\phi$ there is a derivation
from $\phi$ to $\bot$.
However, this intuitive algorithm loops due to the introduction
of new variables.
\[
\begin{array}{c@{\qquad}l@{\qquad}c}
\underline{\MS{x}{y} \apc y \gleich f(x)}
& \raisebox{-0.5em}{Descend} &
\underline{\MS{x}{y} \apc y \gleich f(y)}
\\
\underline{ x\gleich f(x_1)\apc \MS{x_1}{x} \apc y \gleich f(x)}
& \raisebox{-0.5em}{Descend} &
\underline{ x\gleich f(x_1)\apc \MS{x_1}{y} \apc y \gleich f(y)}
\\
\dots &&\ldots
\end{array}
\]
Note that some form of descending is necessary in order to derive the clash
from the inconsistent constraint
\mbox{$
y \gleich f(u) \apc u\gleich a \apc z \gleich f(x) \apc
\MS{x}{y} \apc \MS{x}{z} \apc \phi
$}
%%
%%
%%
\section{Algorithm}
\label{sec:algorithm}
To consider trees with free variables as set of instances
means that we need to compute intersections of such sets
and to decide their emptiness.
When we simplify $\MS{x}{y}\apc \MS{x}{z}$
in a context $\phi$, we have to compute the intersection of the
sets of instances of $y$ and $z$.
In order to avoid the introduction of new variables we
add a new class of variables to represent such intersections,
and one new constraint.
\Def{Intersection variables} are defined as nonempty
finite subsets of base variables. In order
capture the intended semantics, we
write $\chi_1\Cap\ldots\Cap \chi_n$ instead of
$\{\chi_1\}\cup \ldots \cup\{\chi_n\}$.
The equality $\con$ on intersection variables is the equality
on powersets, which satisfies:
\[
x\Cap y \con y \Cap x, \quad
(x\Cap y)\Cap z \con x\Cap (y\Cap z),\quad
x\Cap x \con x.
\]
We call an $x$ a \Def{component} of $y$, if
$y\equiv \IS{x}{z}$ for some $z$.
The set of components of a variable $x$ is denoted by
$\VarComp{x}$. Note that \mbox{$\IS{x}{y}\in \V(\phi)$} implies
$x\in\VarComp{\V(\phi)}$ but in general not $x\in\V(\phi)$.
As additional constraint we introduce $\MS{x}{f(\ol{y})}$,
with the semantics:
\[
\models \: \MS{x}{f(\ol{y})} \leftrightarrow
\aexwb{u}{\MS{x}{u}\apc u\gleich f(\ol{y})}\:.
\]
Complete semantics has to take care of
intersection variables such as $y\Cap z$.
Constraint solving will propagate intersection variables
into most constraint positions. That is, our algorithm
actually operates on the following constraints:
\[\begin{array}{rcl@{\qquad \mbox{and} \qquad}rcl}
x,y & ::= & \chi \hmid x\Cap y &
\phi,\psi & ::=& x\gleich y \hmid
x\gleich f(\ol{y}) \hmid \MS{x}{y} \hmid
\MS{x}{f(\ol{y})} \hmid
\phi \apc \psi
\end{array}
\]
However, if started with a constraint containing
only base variables, our algorithm maintains
this invariant for the equational constraints.
Let us call a variable $x$ \Def{immediately determined by f},
in $\phi$, written $x \DET f(\ol{y})$, if one of
$ x \gleich f(\ol{y}) $ or $\MS{x}{f(\ol{y})} $
is in $\phi$ for some $f(\ol{y})$.
We say that $x$ is \Def{immediately determined} in $\phi$
if it is immediately determined by some $f$ in $\phi$.
Call $x$ \Def{determined}, written
$x \Less{\phi} f(\ol{u})$ if $x$ is immediately determined
in $\phi$, or
$ \MS{x}{\IS{y}{z}}$ and $y \DET f(\ol{u})$ are in $\phi$.
Obviously, if $x\Less{\phi} f(\ol{y})$, then the top-level
constructor of $x$ must be $f$.
We define the application of an operator
$\repl{y}{x}$ to intersection variables,
only if $x$ is a base variable. If
$z \con (\chi_1\Cap \ldots \Cap \chi_n)$, then
$z\repl{y}{x}$ we define:
\[
z\repl{y}{x} \con \chi_1\repl{y}{x}\Cap\ldots\Cap\chi_n\repl{y}{x}\:.
\]
We say that $\repl{y}{x}$ applied to
intersection variables performs \Def{deep substitution}.
The following property holds for deep substitution:
\[
\C(\V(x\gleich y \apc \phi)) \Sp{=} \C(\V(x\gleich y \apc \phi[y/x]))\:.
\]
Note however that $\:\V(x\gleich y \apc \phi) \not=
\V(x\gleich y \apc \phi[y/x])$ if $\phi \con \MS{z}{x\Cap y}$.
The variable $\IS{x}{y}$ is contained in the first but not in
the second set.
We can now specify our algorithm for constraint simplification.
It is given by the rules in Figure \ref{fig:unification} and
Figure \ref{fig:algorithm}.
\begin{figure}[hbt]
\framebox[\textwidth]{
$\begin{array}{lll}
\Ax{Decom}&
\Rule{x\gleich f(\ol{u}) \apc \phi}
{\ol{u}\gleich \ol{v} \apc \phi}
& \mbox{$x\gleich f(\ol{v})$ in $\phi$.}
%
\vspace{4mm}\\
%
\Ax{Clash}&
\Rule{\phi}
{\bot}
& x\Less{\phi} f(\ol{u}),\: x\Cap y \Less{\phi} g(\ol{v}),\:
\mbox{and }f\not= g.
%
\vspace{4mm}\\
%
\Ax{Elim}&
\Rule{x\gleich y \apc \phi}
{x\gleich y \apc \phi\repl{y}{x}}
& x\in\VarComp{\V(\phi)}\cap\BV,\mbox{ and } x\not\equiv y.
%
\end{array}$
}
\caption{\label{fig:unification}Rational Tree Unification}
\end{figure}
The Rule \AxText{Decom} is known from usual unification
for rational trees. Up to the application condition
$x\in\VarComp{\V(\phi)}\cap\BV$, this also applies to rule
\AxText{Elim}. This side condition accounts for
deep substitution. The \AxText{Clash} rule contains
as special cases:
\[
\Rule{x\gleich f(\ol{y}) \apc x\gleich g(\ol{z}) \apc \phi}{\bot}
f\not= g
\qquad\mbox{and}\qquad
\Rule{\MS{x}{f(\ol{y})} \apc \MS{x}{g(\ol{z})} \apc \phi}{\bot}
f\not= g\:.
\]
Its full power comes in interaction with the rules in
Figure \ref{fig:algorithm}. Then it allows to derive a clash
if for a variable $x$ a constructor is known, and for
some variable $\IS{x}{y}$ a distinct constructor
is derivable.
\begin{figure}[htb]
\framebox[\textwidth]{
$\begin{array}{lll}
%
\Ax{Propagate1}&
\Rule{\MS{\IS{x}{y}}{z} \apc \phi}
{\MS{\IS{x}{y}}{z\Cap u} \apc\phi}
& \begin{array}{l}
\MS{x}{u}\In\phi,\:z\Cap u\not\equiv z.
\end{array}
%
\vspace{4mm}\\
%
\Ax{Propagate2}&
\Rule{\MS{\IS{x}{y}}{f(\ol{u})} \apc \phi}
{\MS{\IS{x}{y}}{f(\ol{u}\Cap\ol{v})} \apc \phi}
& \begin{array}{l}
x\Less{\phi}f(\ol{v}),\:\ol{u}\Cap\ol{v}\not\equiv \ol{u}.
\end{array}
%
\vspace{4mm}\\
%
\Ax{Collapse}&
\Rule{\MS{x}{\IS{y}{u}} \apc \phi}
{\MS{x}{\IS{y}{\IS{z}{u}}} \apc \phi}
&\begin{array}{l}
\MS{y}{z} \In \phi,
\mbox{ and $\IS{y}{\IS{z}{u}} \not\equiv \IS{y}{z}$.}
\end{array}
\ignore{
%
\vspace{4mm}\\
%
\Ax{Intersect1}&
\Rule{\MS{x}{y}\apc \MS{x}{z}\apc \phi}
{\MS{x}{\IS{y}{z}} \apc\phi}
%
\vspace{4mm}\\
%
\Ax{Intersect2}&
\Rule{\MS{x}{f(\ol{y})}\apc \MS{x}{f(\ol{z})}\apc \phi}
{\MS{x}{f(\IS{\ol{y}}{\ol{z}})} \apc\phi}
}%ignore
%
\vspace{4mm}\\
%
\Ax{Descend1}&
\Rule{x \gleich f(\ol{u}) \apc \phi}{x \gleich f(\ol{u}) \apc
\MS{\ol{u}}{\ol{v}} \apc \phi}
& \begin{array}{l}
x \Less{\phi} f(\ol{v}), \\
\MS{\ol{u}}{\IS{\ol{v}}{\ol{w}}} \mbox{ not in } \phi
\end{array}
%
\vspace{4mm}\\
%
\Ax{Descend2}&
\Rule{\phi}
{\MS{\IS{x}{y}}{f(\ol{u})} \apc \phi}
&\begin{array}{l}
\IS{x}{y}\in\V(\phi),\: x\Less{\phi} f(\ol{u}),\\
\mbox{and not }
% \IS{x}{y}\Less{\phi} {g(\ol{v})}.
\IS{x}{y}\DET g(\ol{v}) \In \phi.
\end{array}
\end{array}$
}
\caption{\label{fig:algorithm}Simplifying Membership Constraints}
\end{figure}
Rules \AxText{Propagate1} and \AxText{Propagate2}
propagate intersection variables into the right
hand side of \WhatsIt contraints. The \AxText{Collapse}
rule collapses chains of variables related via
\WhatsIt constraints. In other words, these rules propagate
lower bounds with respect to the \WhatsIt relation.
The rules \AxText{Descend1} and \AxText{Descend2} replace
\AxText{Descend} from the non-terminating algorithm
in Figure \ref{fig:loop-algorithm}. The Descend rules
are the only rules introducing new \WhatsIt constraints.
The rule \AxText{Descend2} introduces a constructor
for intersection-variables $x\Cap y$ by adding a
constraint of the form $\MS{x\Cap y}{f(\ol{u})}$.
If the rule is applied, then the intersection
of $x$ and $y$ is forced to be nonempty. Nonemptiness
is implied by $\phi$, if $\IS{x}{y}$ occurs in $\phi$
($\IS{x}{y}\in\V(\phi)$).
Note that \AxText{Descend1} and \AxText{Descend2} are
carefully equipped with side conditions for termination.
For example, the following derivations are {\bf not}
possible:
\[
\Rule{x\gleich f(u)}
{x\gleich f(u) \apc \MS{x}{f(u)}}
\qquad
\Rule{\MS{x}{y} \apc x\gleich f(x) \apc \MS{x}{f(y)}}
{\MS{x}{y} \apc \MS{x}{y} \apc x\gleich f(x) \apc \MS{x}{f(y)}}
\qquad
\Rule{x\gleich f(y)}
{\MS{y}{y} \apc x\gleich f(y)}\:.
\]
We can prove that our algorithm
performs equivalence transformations with respect to
substitutions $\sigma$ which meet the intended
semantics of intersection variables, i.e.,
\Def{intersection-correct} substitutions:
\begin{definition}[Intersection Correct]
We say that a substitution $\sigma$ is
\Def{intersection-correct for $x$ and $y$},
if it satisfies:
\[
\sigma(\IS{x}{y}) = \sigma(x) \cap \sigma(y)\:.
\]
We say that a substitution $\sigma$ is \Def{intersection-correct},
if the following properties holds for all intersection
variables $x,y$ and $z$:
\[
\begin{array}{l}
\mbox{If $x$, $y$, $\IS{x}{y}$ $\in$ $\Dom(\sigma)$,
then $\sigma$ is intersection-correct for $x$ and $y$}.\\
\mbox{If $x$, $\IS{x}{y}$ $\in$ $\Dom(\sigma)$, then $\sigma$
is intersection-correct for $\IS{x}{y}$ and $y$}.
\end{array}
\]
\end{definition}
Note that $\sigma$ is intersection-correct for $x$ and $x\Cap y$, iff
$\sigma(\IS{x}{y}) \Sp{\subseteq} \sigma(x)$.
We call a constraint $\phi$
\Def{intersection-satisfiable}, if $\phi$ has
an intersection-correct solution.
\begin{proposition}
\label{satintsat}
Let $\phi$ be a constraint only containing base variables only.
Then $\phi$ is satisfiable, if and
only if it is intersection satisfiable.
\end{proposition}
We denote the set of all intersection-correct
solutions of $\phi$ with $\ISSol{\phi}$.
Assume $\sigma$ to be a substitution. A
\Def{$V$-extension} of $\sigma$
is a substitution $\tilde{\sigma}$ such that
$\Dom{(\tilde{\sigma})} = \Dom{(\sigma)} \cup V$ such
that $\sigma$ and $\tilde{\sigma}$ coincide on $\Dom{(\sigma)}$.
We denote the set of all intersection-correct $V$-extensions
of $\sigma$ with $\ISExt{V}{\sigma}$.
Let $\phi$ and $\psi$ be constraints. We say that
$\phi$ \Def{intersection-implies} $\psi$, written
$\phi\ISmodels \psi$, if
\[
\ISExt{\V(\psi)} {\ISSol{\phi}} \Sp{\subseteq} \ISSol{\psi}
\ \ \ \mbox{ and }\ \ \
\ISSol{\phi}=\emptyset \mbox{ iff }
\ISExt{\V(\psi)}{\ISSol{\phi}}=\emptyset
\]
We call $\phi$ and $\psi$ \Def{intersection-equivalent} if
$\phi \ISmodels\psi$ and $\psi \ISmodels\phi$, and
write $\phi \ISrlmodels \psi$.
Both conditions ensure the following Lemma:
\begin{lemma}
If $\phi$ is not intersection
satisfiable, then $\phi\ISmodels\psi$ holds vacuously for all $\psi$.
Furthermore, if $\phi \ISrlmodels \psi$, then
$\phi$ is intersection satisfiable if and only if
$\psi$ is.
\end{lemma}
Given the above notions, the following two theorems
are our main results. For the proofs the reader is referred
to \cite{MuellerNiehren:Member:94}.
\begin{theorem}[Termination]
\label{Termination}
The rule system given in Figures
\ref{fig:unification} and \ref{fig:algorithm}
terminates.
\end{theorem}
\begin{theorem}[Correctness and Completeness]
\label{CorCom}
Let $\phi$ be a constraint containing base variables only.
Then the following statements are equivalent:
\begin{enumerate}
\item
$\phi$ is intersection-satisfiable.
\item
There exists an irreducible $\psi\neq \bot$ derivable
from $\phi$.
\item
There exists a irreducible $\psi\neq \bot$ that is intersection-equivalent
to $\phi$.
\item
$\bot$ cannot be derived from $\phi$.
\end{enumerate}
\end{theorem}
%%
%%
%%
\paragraph{Acknowledgements.}
We would like to thank Ralf Treinen for pointing
us to D\"orre's paper and the anonymous referees
for useful remarks.
The research reported in this paper has been supported by the
Bun\-des\-mi\-ni\-ster f\"ur Bildung, Wissenschaft, Forschung und
Technologie (FTZ-ITW-9105), the Esprit Project \hbox{ACCLAIM} (PE~7195),
the Esprit Working Group CCL (EP~6028), and a fellowship of the
Graduiertenkolleg 'Kognition' at the Universit\"at des Saarlandes
of the first author.
%%
%%
%%
\section{Outlook}
\label{sec:outlook}
\ignore{
\begin{figure}[htb]
\framebox[\textwidth]{
$\begin{array}{lll}
\Ax{FeatProp} &
\Rule{ \phi }{ \phi \apc \Feat{x}{f} } &
\begin{array}{l}
\MS{x}{y}\In \phi,
\Feat{y}{f} \In \phi \\
\Feat{x}{f} \notIn \phi
\end{array}
%
\vspace{4mm}\\
%
\Ax{FeatDecom} &
\Rule{\AtFeat{x}{f}{y} }{ y\gleich z } &
\begin{array}{l}
\AtFeat{x}{f}{z} \In \phi
\end{array}
%
\vspace{4mm}\\
%
\Ax{ArityProp} &
\Rule{ \phi }{ \phi \apc \Arity{x}{F} } &
\begin{array}{l}
\MS{x}{y},
\Arity{y}{F} \In \phi \\
\Arity{x}{F} \notIn \phi
\end{array}
%
\vspace{4mm}\\
%
\Ax{ArityDef} &
\Rule{ \phi }{ \phi \apc \Arity{x}{F} } &
\begin{array}{l}
x\DET f(a_1:x_1 \dots a_n:x_n), F=\{a_1,\dots,a_n\} \\
\Arity{x}{F} \notIn \phi
\end{array}
\end{array}$
}
\caption{\label{fig:records}Handling Records}
\end{figure}
}
We have presented an algorithm for deciding
satisfiability of \WhatsIt constraints over infinite
constructor trees with holes.
Our motivation to solve such constraints
grew out of a type inference problem. Formally,
the problem is equivalent to type checking a weak form
of polymorphic recursion. Type checking
polymorphic recursion is equivalent to
semi-unification and to subsumption of feature graphs.
All three are undecidable
\cite{Henglein:88,KfouryTiurynUrz:93,DoerreRounds:LICS:90}.
We establish a similar correspondence between
a type inference problem and
weak subsumption of feature graphs:
The latter has been investigated by D\"orre
looking for a logical treatment
of coordination phenomena in unification based
grammar formalisms \cite{Doerre:WeakSubsumption:94}.
Our starting point from the constraint language Oz however
lead us to an incremental algorithm, in contrast
to the automata based solution of D\"orre.
\begin{thebibliography}{FSVY91}
\bibitem[AW93]{AikenWimmers:TypeInclusion:93}
A.~Aiken and E.~Wimmers.
\newblock {Type Inclusion Constraints and Type Inference}.
\newblock In {\em ACM Conference on Functional Programming and Computer
Architecture}, pages 31--41, Copenhagen, Denmark, June 1993.
\bibitem[Bac94]{Backofen:94}
Rolf Backofen.
\newblock {\em {Expressivity and Decidability of First-order Languages over
Feature Trees}}.
\newblock Doctoral Dissertation. Universit\"at des Saarlandes, Technische
Fakult\"at, 66041 Saarbr\"ucken, Germany, 1994.
\bibitem[CF91]{CartwrightFagan:91}
R.~Cartwright and M.~Fagan.
\newblock {S}oft {T}yping.
\newblock In {\em ACM Conference on Programming Language Design and
Implementation}, pages 278--292, June 1991.
\bibitem[D{\"o}r94]{Doerre:WeakSubsumption:94}
Jochen D{\"o}rre.
\newblock {Feature-Logic with Weak Subsumption Constraints}.
\newblock In Rupp et~al. \cite{RuppRosnerJohnson:94}, chapter~7, pages
187--203.
\bibitem[DR90]{DoerreRounds:LICS:90}
Jochen D{\"o}rre and William~C. Rounds.
\newblock {On Subsumption and Semiunification in Feature Algebras}.
\newblock In {\em IEEE Symposium on Logic in Computer Science}, pages 300--310,
1990.
\bibitem[FSVY91]{Fruehwirth:91}
T.~Fr\"uhwirth, E.~Shapiro, M.~Y. Vardi, and E.~Yardeni.
\newblock {Logic Programs as Types for Logic Programs}.
\newblock In {\em IEEE Symposium on Logic in Computer Science}, pages 300--309,
1991.
\bibitem[Hen88]{Henglein:88}
F.~Henglein.
\newblock {T}ype {I}nference and {S}emi-{U}nification.
\newblock In {\em ACM Conference on LISP and Functional Programming}, pages
184--197, January 1988.
\bibitem[HMM86]{HarperMacQueenMilner:86}
Robert Harper, Dave MacQueen, and Robin Milner.
\newblock {Standard ML}.
\newblock Technical Report ECS-LFCS-86-2, Department of Computer Science,
University of Edinburgh, 1986.
\bibitem[JH91]{JansonHaridi:91}
Sverker Janson and Seif Haridi.
\newblock {Programming Paradigms of the Andorra Kernel Language}.
\newblock In {\em International Logic Programming Symposium}, pages 167--186,
1991.
\bibitem[KPS94]{KozenPalsbergSchwartzbach:JCSS:94}
Dexter Kozen, Jens Palsberg, and Michael~I. Schwartzbach.
\newblock {Efficient Inference of Partial Types}.
\newblock {\em Journal of Computer and System Sciences}, 49(2):306--324, 1994.
\newblock has also appared in Proc. FOCS, pp.363-371.
\bibitem[KTU90]{Kfoury:SemiUnification:90}
A.~Kfoury, J.~Tiuryn, and P.~Urzyczyn.
\newblock {T}he {U}ndecidability of the {S}emi-{U}nification {P}roblem.
\newblock In {\em ACM Symposium on Theory of Computation}, pages 468--476, May
1990.
\bibitem[KTU93]{KfouryTiurynUrz:93}
A.~J. Kfoury, J.~Tiuryn, and Urzycyn.
\newblock {Type Recursion in the Presence of Polymorphic Recursion}.
\newblock {\em ACM Transactions on Programming Languages and Systems}, pages
290--311, 1993.
\bibitem[MN95]{MuellerNiehren:Member:94}
Martin M{\"{u}}ller and Joachim Niehren.
\newblock {A Type is a Type is a Type}.
\newblock Research report, DFKI, Stuhlsatzenhausweg 3, D-66123 Saarbr{\"u}cken,
Germany, 1995.
\newblock In Preparation.
\bibitem[M{\"{u}}l96]{Mueller:96}
Martin M{\"{u}}ller.
\newblock {\em {Type Diagnosis for a Higher-Order Concurrent Constraint
Language}}.
\newblock Doctoral Dissertation. Universit\"at des Saarlandes, Technische
Fakult\"at, 66041 Saarbr\"ucken, Germany, 1996.
\newblock In Preparation.
\bibitem[Myc84]{Mycroft:84}
Alan Mycroft.
\newblock {Polymorphic Type Schemes and Recursive Definitions}.
\newblock In {\em International Symposium on Programming}, number 167 in
Lecture Notes in Computer Science, 1984.
\bibitem[NP93]{NiehrenPodelski:93}
Joachim Niehren and Andreas Podelski.
\newblock {Feature Automata and Recognizable Sets of Feature Trees}.
\newblock In {\em Tapsoft}, pages 356--375, April 1993.
\bibitem[NPT93]{NiehrenPodelskiTreinen:93}
Joachim Niehren, Andreas Podelski, and Ralf Treinen.
\newblock {E}quational and {M}embership {C}onstraints for {I}nfinite {T}rees.
\newblock In Claude Kirchner, editor, {\em Proceedings of the RTA '93}, pages
106--120, 1993.
\bibitem[PT95]{PierceTurner:Pict:95}
Benjamin~C. Pierce and David~N. Turner.
\newblock {PICT User Manual}.
\newblock Technical Report to appear, LFCS, {E}dinburgh, 1995.
\newblock Version 3.5g.
\bibitem[RRJ94]{RuppRosnerJohnson:94}
C.~J. Rupp, M.~A. Rosner, and R.~L. Johnson, editors.
\newblock {\em {Constraints, Languages, and Computation}}.
\newblock Academic Press, 1994.
\bibitem[Smo94]{Smolka:GammaCalculus:94}
Gert Smolka.
\newblock {A Foundation for Concurrent Constraint Programming}.
\newblock In Jean-Pierre Jouannaud, editor, {\em Constraints in Computational
Logics}, volume 845 of {\em Lecture Notes in Computer Science}, pages 50--72,
M\"unchen, Germany, 7--9 September 1994.
\bibitem[ST92]{SmolkaTreinen:92}
Gert Smolka and Ralf Treinen.
\newblock {Records for Logic Programming}.
\newblock In {\em International Conference and Symposium on Logic Programming},
pages 240--254, November 1992.
\newblock Has appeared in the Journal of Logic Programming, April 1994.
\bibitem[ST94]{ozdoc}
Gert Smolka and Ralf Treinen, editors.
\newblock {\em {DFKI Oz Documentation Series}}.
\newblock Stuhlsatzenhausweg 3, D-66123 Saarbr{\"u}cken, Germany, 1994.
\newblock Documentation and System available through anonymous ftp from
ps-ftp.dfki.uni-sb.de or through WWW from http://ps-www.dfki.uni-sb.de.
\bibitem[Wan87]{Wand:Simple:87}
Mitchell Wand.
\newblock {A Simple Algorithm and Proof for Type Inference}.
\newblock {\em Fundamenta Informaticae}, 10:115--122, 1987.
\bibitem[WC93]{WrightCartwright:Scheme:93}
Andrew~K. Wright and Robert Cartwright.
\newblock {A} {P}ractical {S}oft {T}ype {S}ystem for {Scheme}.
\newblock Technical Report 93-218, Rice University, December 1993.
\end{thebibliography}
\end{document}