1 \documentclass[a4paper,leqno]{strayman}
3 \let\numberwithin=\notdef
15 \rfoot[\thepage]{\input{revid.inc}}
16 \lfoot[\input{revid.inc}]{\thepage}
18 \let\stdsection\section
19 \renewcommand\section{\newpage\stdsection}
21 \renewcommand{\ge}{\geqslant}
22 \renewcommand{\le}{\leqslant}
23 \newcommand{\nge}{\ngeqslant}
24 \newcommand{\nle}{\nleqslant}
26 \newcommand{\has}{\sqsupseteq}
27 \newcommand{\isin}{\sqsubseteq}
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}}
36 \newif\ifhidehack\hidehackfalse
37 \DeclareRobustCommand\hidefromedef[2]{%
38 \hidehacktrue\ifhidehack#1\else#2\fi\hidehackfalse}
39 \newcommand{\pa}[1]{\hidefromedef{\varmathbb{#1}}{#1}}
41 \newcommand{\set}[1]{\mathbb{#1}}
42 \newcommand{\pay}[1]{\pa{#1}^+}
43 \newcommand{\pan}[1]{\pa{#1}^-}
45 \newcommand{\p}{\pa{P}}
46 \newcommand{\py}{\pay{P}}
47 \newcommand{\pn}{\pan{P}}
49 \newcommand{\pc}{\pa{C}}
50 \newcommand{\pcy}{\pay{C}}
51 \newcommand{\pcn}{\pan{C}}
53 \newcommand{\pd}{\pa{D}}
54 \newcommand{\pdy}{\pay{D}}
55 \newcommand{\pdn}{\pan{D}}
57 \newcommand{\pl}{\pa{L}}
58 \newcommand{\ply}{\pay{L}}
59 \newcommand{\pln}{\pan{L}}
61 \newcommand{\pq}{\pa{Q}}
62 \newcommand{\pqy}{\pay{Q}}
63 \newcommand{\pqn}{\pan{Q}}
65 \newcommand{\pr}{\pa{R}}
66 \newcommand{\pry}{\pay{R}}
67 \newcommand{\prn}{\pan{R}}
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}}
75 \renewcommand{\implies}{\Rightarrow}
76 \renewcommand{\equiv}{\Leftrightarrow}
77 \renewcommand{\nequiv}{\nLeftrightarrow}
78 \renewcommand{\land}{\wedge}
79 \renewcommand{\lor}{\vee}
81 \newcommand{\pancs}{{\mathcal A}}
82 \newcommand{\pends}{{\mathcal E}}
84 \newcommand{\pancsof}[2]{\pancs ( #1 , #2 ) }
85 \newcommand{\pendsof}[2]{\pends ( #1 , #2 ) }
87 \newcommand{\merge}{{\mathcal M}}
88 \newcommand{\mergeof}[4]{\merge(#1,#2,#3,#4)}
89 %\newcommand{\merge}[4]{{#2 {{\frac{ #1 }{ #3 } #4}}}}
91 \newcommand{\patch}{{\mathcal P}}
92 \newcommand{\base}{{\mathcal B}}
93 \newcommand{\depsreq}{{\mathcal D}}
95 \newcommand{\patchof}[1]{\patch ( #1 ) }
96 \newcommand{\baseof}[1]{\base ( #1 ) }
97 \newcommand{\depsreqof}[1]{\depsreq ( #1 ) }
99 \newcommand{\allpatches}{\Upsilon}
100 \newcommand{\assign}{\leftarrow}
101 \newcommand{\iassign}{\leftarrow}
102 %\newcommand{\assign}{' =}
104 \newcommand{\alg}[1]{\text{\bf #1}}
105 \newcommand{\setmerge}{\alg{merge}}
106 \newcommand{\setmergeof}[3]{\setmerge\left\langle #1 \;\middle\langle #2 \middle\rangle\; #3 \right\rangle}
107 %\newcommand{\setmergeof}[3]{\setmerge\left\lgroup #1 \;\middle\lmoustache\; #2 \;\middle\rmoustache\; #3 \right\rgroup}
108 %\newcommand{\setmergeof}[3]{\setmerge\left\rmoustache #1 \middle\rmoustache #2 \middle\lmoustache #3 \right\lmoustache}
109 %\newcommand{\setmergeof}[3]{\setmerge\left\lfloor #1 \middle\lfloor #2 \middle\rfloor #3 \right\rfloor}
111 \newcommand{\eqntag}[2]{ #2 \tag*{\mbox{#1}} }
112 \newcommand{\eqn}[2]{ #2 \tag*{\mbox{\bf #1}} }
114 \newcommand{\hasdirdep}{\succ_{\mkern-7.0mu _1}}
115 \newcommand{\hasdep}{\succ}
116 \newcommand{\isdep}{\prec}
117 \newcommand{\isdirdep}{\prec_{\mkern-18.0mu _1}{\mkern+10mu}}
119 \newcommand{\tip}{ T }
120 \newcommand{\tipa}[1]{ \tip^{#1} }
121 \newcommand{\tipcn}{ \tipa \pcn }
122 \newcommand{\tipcy}{ \tipa \pcy }
123 \newcommand{\tipdn}{ \tipa \pdn }
124 \newcommand{\tipdy}{ \tipa \pdy }
126 %\newcommand{\bigforall}{\mathop{\hbox{\huge$\forall$}}}
127 \newcommand{\bigforall}{%
129 {\hbox{\huge$\forall$}}%
130 {\hbox{\Large$\forall$}}%
131 {\hbox{\normalsize$\forall$}}%
132 {\hbox{\scriptsize$\forall$}}}%
134 \newcommand{\bigexists}{%
136 {\hbox{\huge$\exists$}}%
137 {\hbox{\Large$\exists$}}%
138 {\hbox{\normalsize$\exists$}}%
139 {\hbox{\scriptsize$\exists$}}}%
142 \newcommand{\Largeexists}{\mathop{\hbox{\Large$\exists$}}}
143 \newcommand{\Largenexists}{\mathop{\hbox{\Large$\nexists$}}}
145 \newcommand{\qed}{\square}
146 \newcommand{\proofstarts}{{\it Proof:}}
147 \newcommand{\proof}[1]{\proofstarts #1 $\qed$}
149 \newcommand{\gathbegin}{\begin{gather} \tag*{}}
150 \newcommand{\gathnext}{\\ \tag*{}}
152 \newcommand{\true}{t}
153 \newcommand{\false}{f}
160 \input{invariants.tex}
162 \input{annotations.tex}
165 \input{create-base.tex}
166 \input{create-tip.tex}
167 \input{anticommit.tex}
170 \chapter{Update strategy}