File:Example for syntactic unification without occurs check leading to infinite tree.pdf

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file(583 × 1,452 pixels, file size: 15 KB, MIME type: application/pdf)

Captions

Captions

Add a one-line explanation of what this file represents

Summary[edit]

Description
English: An example run of the algorithm from en:Unification (computer science)#A_unification_algorithm, however without ist 6th rule (occurs check rule), leading to a circular tree, i.e. an infinite term.
Date
Source Own work
Author Jochen Burghardt
Other versions File:Example for syntactic unification without occurs check leading to infinite tree svg.svg
LaTeX source code
 \documentclass[12pt]{article}
 \usepackage[pdftex]{color}
 \usepackage[paperwidth=99mm,paperheight=246mm]{geometry}
 \setlength{\topmargin}{-36mm}
 \setlength{\textwidth}{100mm}
 \setlength{\textheight}{260mm}
 \setlength{\evensidemargin}{0cm}
 \setlength{\oddsidemargin}{-23mm}
 \setlength{\parindent}{0cm}
 \setlength{\parskip}{1ex}
 \setlength{\unitlength}{1mm}
 \sloppy


 \begin{document}

 % foreground
 \definecolor{cL}       {rgb}{0.00,0.40,0.00}   % left branch
 \definecolor{cR}       {rgb}{0.00,0.00,0.40}   % right
 \definecolor{cT}       {rgb}{0.40,0.40,0.40}   % tree tip
 \definecolor{cM}       {rgb}{0.00,0.00,0.00}   % meta symbols

 % background
 \definecolor{cEB}      {rgb}{0.95,0.95,0.95}   % eqn
 \definecolor{cLB}      {rgb}{0.90,0.99,0.90}   % left branch
 \definecolor{cRB}      {rgb}{0.90,0.90,0.99}   % right
 %\definecolor{cTB}     {rgb}{0.30,0.30,0.30}   % tree tip

 \begin{picture}(90,240)

 \thicklines

 \textcolor{cEB}{\put(-2,242){\makebox(0,0)[tl]{\rule{95mm}{65mm}}}}%
 \textcolor{cM}{\put(30,230){\makebox(0,0){$\stackrel{?}{=}$}}}%
 % lhs
 \textcolor{cT}{\put(10,240){\makebox(0,0){cons}}}%
 \textcolor{cL}{\put( 0,220){\makebox(0,0){x}}}%
 \textcolor{cR}{\put(20,220){\makebox(0,0){y}}}%
 \textcolor{cL}{\put( 9,238){\vector(-1,-2){8}}}%
 \textcolor{cR}{\put(11,238){\vector( 1,-2){8}}}%
 % rhs level 0-1
 \textcolor{cT}{\put(50,240){\makebox(0,0){cons}}}%
 \textcolor{cL}{\put(40,220){\makebox(0,0){1}}}%
 \textcolor{cR}{\put(60,220){\makebox(0,0){cons}}}%
 \textcolor{cL}{\put(49,238){\vector(-1,-2){8}}}%
 \textcolor{cR}{\put(51,238){\vector( 1,-2){8}}}%
 % rhs level 1-2
 \textcolor{cR}{\put(50,200){\makebox(0,0){x}}}%
 \textcolor{cR}{\put(70,200){\makebox(0,0){cons}}}%
 \textcolor{cR}{\put(59,218){\vector(-1,-2){8}}}%
 \textcolor{cR}{\put(61,218){\vector( 1,-2){8}}}%
 % rhs level 2-3
 \textcolor{cR}{\put(60,180){\makebox(0,0){2}}}%
 \textcolor{cR}{\put(80,180){\makebox(0,0){y}}}%
 \textcolor{cR}{\put(69,198){\vector(-1,-2){8}}}%
 \textcolor{cR}{\put(71,198){\vector( 1,-2){8}}}%

 \textcolor{cM}{\put(30,170){\makebox(0,0){$\Downarrow$}}}%

 \textcolor{cEB}{\put(-2,162){\makebox(0,0)[tl]{\rule{25mm}{05mm}}}}%
 \textcolor{cM}{\put(10,160){\makebox(0,0){$\stackrel{?}{=}$}}}%
 \textcolor{cL}{\put( 0,160){\makebox(0,0){x}}}%
 \textcolor{cL}{\put(20,160){\makebox(0,0){1}}}%

 \textcolor{cM}{\put(30,160){\makebox(0,0){\&}}}%

 \textcolor{cEB}{\put(38,162){\makebox(0,0)[tl]{\rule{45mm}{45mm}}}}%
 \textcolor{cM}{\put(50,160){\makebox(0,0){$\stackrel{?}{=}$}}}%
 \textcolor{cR}{\put(40,160){\makebox(0,0){y}}}%
 \textcolor{cR}{\put(60,160){\makebox(0,0){cons}}}%
 % rhs level 1-2
 \textcolor{cR}{\put(50,140){\makebox(0,0){x}}}%
 \textcolor{cR}{\put(70,140){\makebox(0,0){cons}}}%
 \textcolor{cR}{\put(59,158){\vector(-1,-2){8}}}%
 \textcolor{cR}{\put(61,158){\vector( 1,-2){8}}}%
 % rhs level 2-3
 \textcolor{cR}{\put(60,120){\makebox(0,0){2}}}%
 \textcolor{cR}{\put(80,120){\makebox(0,0){y}}}%
 \textcolor{cR}{\put(69,138){\vector(-1,-2){8}}}%
 \textcolor{cR}{\put(71,138){\vector( 1,-2){8}}}%

 \textcolor{cM}{\put(30,110){\makebox(0,0){$\Downarrow$}}}%

 \textcolor{cEB}{\put(-2,102){\makebox(0,0)[tl]{\rule{25mm}{05mm}}}}%
 \textcolor{cM}{\put(10,100){\makebox(0,0){$\stackrel{?}{=}$}}}%
 \textcolor{cL}{\put( 0,100){\makebox(0,0){x}}}%
 \textcolor{cL}{\put(20,100){\makebox(0,0){1}}}%

 \textcolor{cM}{\put(30,100){\makebox(0,0){\&}}}%

 \textcolor{cEB}{\put(38,102){\makebox(0,0)[tl]{\rule{45mm}{45mm}}}}%
 \textcolor{cM}{\put(50,100){\makebox(0,0){$\stackrel{?}{=}$}}}%
 \textcolor{cR}{\put(40,100){\makebox(0,0){y}}}%
 \textcolor{cR}{\put(60,100){\makebox(0,0){cons}}}%
 % rhs level 1-2
 \textcolor{cLB}{\put(50,80){\makebox(0,0){\rule{1em}{3ex}}}}%
 \textcolor{cR}{\put(50,80){\makebox(0,0){1}}}%
 \textcolor{cR}{\put(70,80){\makebox(0,0){cons}}}%
 \textcolor{cR}{\put(59,98){\vector(-1,-2){8}}}%
 \textcolor{cR}{\put(61,98){\vector( 1,-2){8}}}%
 % rhs level 2-3
 \textcolor{cR}{\put(60,60){\makebox(0,0){2}}}%
 \textcolor{cR}{\put(80,60){\makebox(0,0){y}}}%
 \textcolor{cR}{\put(69,78){\vector(-1,-2){8}}}%
 \textcolor{cR}{\put(71,78){\vector( 1,-2){8}}}%

 \textcolor{cM}{\put(30,50){\makebox(0,0){$\Downarrow$}}}%

 \textcolor{cEB}{\put(-2,42){\makebox(0,0)[tl]{\rule{25mm}{05mm}}}}%
 \textcolor{cM}{\put(10,40){\makebox(0,0){$\stackrel{?}{=}$}}}%
 \textcolor{cL}{\put( 0,40){\makebox(0,0){x}}}%
 \textcolor{cL}{\put(20,40){\makebox(0,0){1}}}%

 \textcolor{cM}{\put(30,40){\makebox(0,0){\&}}}%

 \textcolor{cEB}{\put(38,42){\makebox(0,0)[tl]{\rule{58mm}{45mm}}}}%
 \textcolor{cM}{\put(50,40){\makebox(0,0){$\stackrel{?}{=}$}}}%
 \textcolor{cR}{\put(40,40){\makebox(0,0){y}}}%
 \textcolor{cR}{\put(60,40){\makebox(0,0){cons}}}%
 % rhs level 1-2
 \textcolor{cR}{\put(50,20){\makebox(0,0){1}}}%
 \textcolor{cR}{\put(70,20){\makebox(0,0){cons}}}%
 \textcolor{cR}{\put(59,38){\vector(-1,-2){8}}}%
 \textcolor{cR}{\put(61,38){\vector( 1,-2){8}}}%
 % rhs level 2-3
 \textcolor{cR}{\put(60,0){\makebox(0,0){2}}}%
 \textcolor{cR}{\put(69,18){\vector(-1,-2){8}}}%
 \textcolor{cR}{\put(71,18){\line( 1,-2){7}}}%
 \textcolor{cR}{\put(78,4){\line( 2,-1){6}}}%
 \textcolor{cR}{\put(84,21){\oval(20,40)[r]}}%
 \textcolor{cR}{\put(84,41){\vector(-1,0){18}}}%

 \end{picture}

 \end{document}

Licensing[edit]

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current18:11, 7 November 2013Thumbnail for version as of 18:11, 7 November 2013583 × 1,452 (15 KB)Jochen Burghardt (talk | contribs)User created page with UploadWizard

There are no pages that use this file.

Metadata