File:Triangle diagram of rewrite rule application.pdf
From Wikimedia Commons, the free media repository
Jump to navigation
Jump to search
Size of this JPG preview of this PDF file: 800 × 366 pixels. Other resolutions: 320 × 147 pixels | 640 × 293 pixels | 1,068 × 489 pixels.
Original file (1,068 × 489 pixels, file size: 13 KB, MIME type: application/pdf)
File information
Structured data
Captions
Summary[edit]
DescriptionTriangle diagram of rewrite rule application.pdf |
English: Schematic triangle diagram of application of a rewrite rule l->r at position p in a term, with matching substitution sigma; shown before (left) and after application (right). |
Date | |
Source | Own work |
Author | Jochen Burghardt |
Other versions | File:Triangle diagram of rewrite rule application svg.svg |
LaTeX source code |
---|
\documentclass[12pt]{article}
\usepackage[pdftex]{color}
\usepackage[paperwidth=181mm,paperheight=83mm]{geometry}
\setlength{\topmargin}{-36mm}
\setlength{\textwidth}{30cm}
\setlength{\textheight}{26cm}
\setlength{\evensidemargin}{-2.7cm}
\setlength{\oddsidemargin}{-2.5cm}
\setlength{\parindent}{0cm}
\setlength{\parskip}{1ex}
\setlength{\unitlength}{1mm}
\sloppy
\definecolor{cLhs} {rgb}{0.50,0.00,0.00}
\definecolor{cRhs} {rgb}{0.00,0.50,0.00}
\definecolor{cPath} {rgb}{0.50,0.50,0.90}
\definecolor{cSbs} {rgb}{0.00,0.00,0.50}
\definecolor{cSubj} {rgb}{0.00,0.00,0.00}
\begin{document}
\begin{picture}(180,80)
% subject term
\thicklines
\color{cSubj}
\put(70,30){\makebox(0,0){$s$}}
\put(00,00){\line(+1,+0){80}}
\put(00,00){\line(+1,+2){40}}
\put(40,80){\line(+1,-2){40}}
% redex
\color{cLhs}
\put(35,30){\makebox(0,0){$l$}}
\put(20,20){\line(+1,+0){30}}
\put(20,20){\line(+1,+2){15}}
\put(35,50){\line(+1,-2){15}}
% matching subst
\color{cSbs}
\put(35,10){\makebox(0,0){$\sigma$}}
\put(20,19){\line(+1,+0){30}}
\put(20,19){\line(-1,-2){09}}
\put(50,19){\line(+1,-2){09}}
\put(11,01){\line(+1,+0){48}}
% path
\thinlines
\color{cPath}
\put(38,60){\makebox(0,0){$p$}}
\put(40,80){\line(-1,-6){2}}
\put(38,68){\line(+2,-5){4}}
\put(42,58){\line(-5,-3){5}}
\put(37,55){\line(-2,-5){2}}
%%%%%%%%%%%%
% subject term
\thicklines
\color{cSubj}
\put(170,30){\makebox(0,0){$t$}}
\put(100,00){\line(+1,+0){80}}
\put(100,00){\line(+1,+2){40}}
\put(140,80){\line(+1,-2){40}}
% rhs
\color{cRhs}
\put(135,30){\makebox(0,0){$r$}}
\put(120,20){\line(+1,+0){30}}
\put(120,20){\line(+1,+2){15}}
\put(135,50){\line(+1,-2){15}}
% matching subst
\color{cSbs}
\put(135,10){\makebox(0,0){$\sigma$}}
\put(120,19){\line(+1,+0){30}}
\put(120,19){\line(-1,-2){09}}
\put(150,19){\line(+1,-2){09}}
\put(111,01){\line(+1,+0){48}}
% path
\thinlines
\color{cPath}
\put(138,60){\makebox(0,0){$p$}}
\put(140,80){\line(-1,-6){2}}
\put(138,68){\line(+2,-5){4}}
\put(142,58){\line(-5,-3){5}}
\put(137,55){\line(-2,-5){2}}
%%%%%%%%%%%%
\end{picture}
\end{document}
|
Licensing[edit]
I, the copyright holder of this work, hereby publish it under the following license:
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.
Original upload log[edit]
The original description page was here. All following user names refer to en.wikipedia.
- 08:55, June 15, 2013 Jochen Burghardt (381 bytes) (+381) . . (Uploading a self-made file using File Upload Wizard)
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 18:39, 4 June 2014 | 1,068 × 489 (13 KB) | Jochen Burghardt (talk | contribs) | added name ''s'' and ''t'' for left and right enclosing term, respectively | |
18:11, 7 November 2013 | No thumbnail | 0 × 0 (12 KB) | Jochen Burghardt (talk | contribs) | User created page with UploadWizard |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.
Metadata
This file contains additional information such as Exif metadata which may have been added by the digital camera, scanner, or software program used to create or digitize it. If the file has been modified from its original state, some details such as the timestamp may not fully reflect those of the original file. The timestamp is only as accurate as the clock in the camera, and it may be completely wrong.
Software used | TeX |
---|---|
Conversion program | pdfTeX-1.40.3 |
Encrypted | no |
Page size | 513.071 x 235.276 pts |
Version of PDF format | 1.4 |