chiark / gitweb /
strategy: calculate/use \allsrcs
[topbloke-formulae.git] / article.tex
1 \documentclass[a4paper,leqno]{strayman}
2 \errorcontextlines=50
3 \let\numberwithin=\notdef
4 \usepackage{amsmath}
5 \usepackage{mathabx}
6 \usepackage{txfonts}
7 \usepackage{amsfonts}
8 \usepackage{mdwlist}
9 %\usepackage{accents}
10
11 \usepackage{fancyhdr}
12 \pagestyle{fancy}
13 \rhead[\rightmark]{}
14 \lhead[]{\rightmark}
15 \rfoot[\thepage]{\input{revid.inc}}
16 \lfoot[\input{revid.inc}]{\thepage}
17
18 \let\stdsection\section
19 \renewcommand\section{\newpage\stdsection}
20
21 \renewcommand{\ge}{\geqslant}
22 \renewcommand{\le}{\leqslant}
23 \newcommand{\nge}{\ngeqslant}
24 \newcommand{\nle}{\nleqslant}
25
26 \newcommand{\has}{\sqsupseteq}
27 \newcommand{\isin}{\sqsubseteq}
28
29 \newcommand{\nothaspatch}{\mathrel{\,\not\!\not\relax\haspatch}}
30 \newcommand{\notpatchisin}{\mathrel{\,\not\!\not\relax\patchisin}}
31 \newcommand{\haspatch}{\sqSupset}
32 \newcommand{\patchisin}{\sqSubset}
33 %\newcommand{\zhaspatch}{\mathrel{\underset{\fullmoon}\sqSupset}}
34 \newcommand{\zhaspatch}{\mathrel{\sqSupset_\varnothing\mkern-4mu}}
35
36         \newif\ifhidehack\hidehackfalse
37         \DeclareRobustCommand\hidefromedef[2]{%
38           \hidehacktrue\ifhidehack#1\else#2\fi\hidehackfalse}
39         \newcommand{\pa}[1]{\hidefromedef{\varmathbb{#1}}{#1}}
40
41 \newcommand{\set}[1]{\mathbb{#1}}
42 \newcommand{\pay}[1]{\pa{#1}^+}
43 \newcommand{\pan}[1]{\pa{#1}^-}
44
45 \newcommand{\p}{\pa{P}}
46 \newcommand{\py}{\pay{P}}
47 \newcommand{\pn}{\pan{P}}
48
49 \newcommand{\pc}{\pa{C}}
50 \newcommand{\pcy}{\pay{C}}
51 \newcommand{\pcn}{\pan{C}}
52
53 \newcommand{\pd}{\pa{D}}
54 \newcommand{\pdy}{\pay{D}}
55 \newcommand{\pdn}{\pan{D}}
56
57 \newcommand{\pl}{\pa{L}}
58 \newcommand{\ply}{\pay{L}}
59 \newcommand{\pln}{\pan{L}}
60
61 \newcommand{\pq}{\pa{Q}}
62 \newcommand{\pqy}{\pay{Q}}
63 \newcommand{\pqn}{\pan{Q}}
64
65 \newcommand{\pr}{\pa{R}}
66 \newcommand{\pry}{\pay{R}}
67 \newcommand{\prn}{\pan{R}}
68
69 %\newcommand{\hasparents}{\underaccent{1}{>}}
70 %\newcommand{\hasparents}{{%
71 %  \declareslashed{}{_{_1}}{0}{-0.8}{>}\slashed{>}}}
72 \newcommand{\hasparents}{>_{\mkern-7.0mu _{1:}}}
73 \newcommand{\areparents}{<_{\mkern-14.0mu _{1:}\mkern+5.0mu}}
74
75 \renewcommand{\implies}{\Rightarrow}
76 \renewcommand{\equiv}{\Leftrightarrow}
77 \renewcommand{\nequiv}{\nLeftrightarrow}
78 \renewcommand{\land}{\wedge}
79 \renewcommand{\lor}{\vee}
80
81 \newcommand{\pancs}{{\mathcal A}}
82 \newcommand{\pends}{{\mathcal E}}
83
84 \newcommand{\pancsof}[2]{\pancs ( #1 , #2 ) }
85 \newcommand{\pendsof}[2]{\pends ( #1 , #2 ) }
86
87 \newcommand{\merge}{{\mathcal M}}
88 \newcommand{\mergeof}[4]{\merge(#1,#2,#3,#4)}
89 %\newcommand{\merge}[4]{{#2 {{\frac{ #1 }{ #3 } #4}}}}
90
91 \newcommand{\patch}{{\mathcal P}}
92 \newcommand{\base}{{\mathcal B}}
93 \newcommand{\depsreq}{{\mathcal G}}
94
95 \newcommand{\allsrcs}{\set U}
96
97 \newcommand{\patchof}[1]{\patch ( #1 ) }
98 \newcommand{\baseof}[1]{\base ( #1 ) }
99 \newcommand{\depsreqof}[1]{\depsreq ( #1 ) }
100
101 \newcommand{\foreign}{\pa F}
102 \newcommand{\isforeign}[1]{#1 \in \foreign}
103
104 \newcommand{\allpatches}{\Upsilon}
105 \newcommand{\assign}{\leftarrow}
106 \newcommand{\iassign}{\leftarrow}
107 %\newcommand{\assign}{' =}
108
109 \newcommand{\alg}[1]{\text{\bf #1}}
110 \newcommand{\setmerge}{\alg{merge}}
111 \newcommand{\setmergeof}[3]{\setmerge\left\langle #1 \;\middle\langle #2 \middle\rangle\; #3 \right\rangle}
112 %\newcommand{\setmergeof}[3]{\setmerge\left\lgroup #1 \;\middle\lmoustache\; #2 \;\middle\rmoustache\; #3 \right\rgroup}
113 %\newcommand{\setmergeof}[3]{\setmerge\left\rmoustache #1 \middle\rmoustache #2 \middle\lmoustache #3 \right\lmoustache}
114 %\newcommand{\setmergeof}[3]{\setmerge\left\lfloor #1 \middle\lfloor #2 \middle\rfloor #3 \right\rfloor}
115
116 \newcommand{\eqntag}[2]{ #2 \tag*{\mbox{#1}} }
117 \newcommand{\eqn}[2]{ #2 \tag*{\mbox{\bf #1}} }
118
119 \newcommand{\hasdirdep}{\succ_{\mkern-7.0mu _1}}
120 \newcommand{\hasdep}{\succ}
121 \newcommand{\isdep}{\prec}
122 \newcommand{\isdirdep}{\prec_{\mkern-18.0mu _1}{\mkern+10mu}}
123
124 \newcommand{\tip}{ T }
125 \newcommand{\tipa}[1]{ \tip^{#1} }
126 \newcommand{\tipcn}{ \tipa \pcn }
127 \newcommand{\tipcy}{ \tipa \pcy }
128 \newcommand{\tipdn}{ \tipa \pdn }
129 \newcommand{\tipdy}{ \tipa \pdy }
130
131 %\newcommand{\bigforall}{\mathop{\hbox{\huge$\forall$}}}
132 \newcommand{\bigforall}{%
133   \mathop{\mathchoice%
134     {\hbox{\huge$\forall$}}%
135     {\hbox{\Large$\forall$}}%
136     {\hbox{\normalsize$\forall$}}%
137     {\hbox{\scriptsize$\forall$}}}%
138 }
139 \newcommand{\bigexists}{%
140   \mathop{\mathchoice%
141     {\hbox{\huge$\exists$}}%
142     {\hbox{\Large$\exists$}}%
143     {\hbox{\normalsize$\exists$}}%
144     {\hbox{\scriptsize$\exists$}}}%
145 }
146
147 \newcommand{\Largeexists}{\mathop{\hbox{\Large$\exists$}}}
148 \newcommand{\Largenexists}{\mathop{\hbox{\Large$\nexists$}}}
149
150 \newcommand{\qed}{\square}
151 \newcommand{\proofstarts}{{\it Proof:}}
152 \newcommand{\proof}[1]{\proofstarts #1 $\qed$}
153
154 \newcommand{\statement}[2]{\[\eqn{ #1 }{ #2 }\]}
155
156 \newcommand{\gathbegin}{\begin{gather} \tag*{}}
157 \newcommand{\gathnext}{\\ \tag*{}}
158
159 \newcommand{\true}{t}
160 \newcommand{\false}{f}
161
162 \begin{document}
163
164 \chapter{Data model}
165
166 \input{notation.tex}
167 \input{invariants.tex}
168 \input{lemmas.tex}
169 \input{annotations.tex}
170
171 \input{simple.tex}
172 \input{create-base.tex}
173 \input{create-tip.tex}
174 \input{anticommit.tex}
175 \input{merge.tex}
176 \input{pseudomerge.tex}
177
178 \chapter{Update strategy}
179
180 \input{strategy.tex}
181 \input{ranking.tex}
182 \input{trav-alg.tex}
183 \input{trav-proofs.tex}
184
185 \end{document}