chiark / gitweb /
459e12d48024c1ad5ceea5a4559fb1a31f8a6d23
[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
34         \newif\ifhidehack\hidehackfalse
35         \DeclareRobustCommand\hidefromedef[2]{%
36           \hidehacktrue\ifhidehack#1\else#2\fi\hidehackfalse}
37         \newcommand{\pa}[1]{\hidefromedef{\varmathbb{#1}}{#1}}
38
39 \newcommand{\set}[1]{\mathbb{#1}}
40 \newcommand{\pay}[1]{\pa{#1}^+}
41 \newcommand{\pan}[1]{\pa{#1}^-}
42
43 \newcommand{\p}{\pa{P}}
44 \newcommand{\py}{\pay{P}}
45 \newcommand{\pn}{\pan{P}}
46
47 \newcommand{\pl}{\pa{L}}
48 \newcommand{\ply}{\pay{L}}
49 \newcommand{\pln}{\pan{L}}
50
51 \newcommand{\pq}{\pa{Q}}
52 \newcommand{\pqy}{\pay{Q}}
53 \newcommand{\pqn}{\pan{Q}}
54
55 \newcommand{\pr}{\pa{R}}
56 \newcommand{\pry}{\pay{R}}
57 \newcommand{\prn}{\pan{R}}
58
59 %\newcommand{\hasparents}{\underaccent{1}{>}}
60 %\newcommand{\hasparents}{{%
61 %  \declareslashed{}{_{_1}}{0}{-0.8}{>}\slashed{>}}}
62 \newcommand{\hasparents}{>_{\mkern-7.0mu _1}}
63 \newcommand{\areparents}{<_{\mkern-14.0mu _1\mkern+5.0mu}}
64
65 \renewcommand{\implies}{\Rightarrow}
66 \renewcommand{\equiv}{\Leftrightarrow}
67 \renewcommand{\nequiv}{\nLeftrightarrow}
68 \renewcommand{\land}{\wedge}
69 \renewcommand{\lor}{\vee}
70
71 \newcommand{\pancs}{{\mathcal A}}
72 \newcommand{\pends}{{\mathcal E}}
73
74 \newcommand{\pancsof}[2]{\pancs ( #1 , #2 ) }
75 \newcommand{\pendsof}[2]{\pends ( #1 , #2 ) }
76
77 \newcommand{\merge}{{\mathcal M}}
78 \newcommand{\mergeof}[4]{\merge(#1,#2,#3,#4)}
79 %\newcommand{\merge}[4]{{#2 {{\frac{ #1 }{ #3 } #4}}}}
80
81 \newcommand{\patch}{{\mathcal P}}
82 \newcommand{\base}{{\mathcal B}}
83
84 \newcommand{\patchof}[1]{\patch ( #1 ) }
85 \newcommand{\baseof}[1]{\base ( #1 ) }
86
87 \newcommand{\eqntag}[2]{ #2 \tag*{\mbox{#1}} }
88 \newcommand{\eqn}[2]{ #2 \tag*{\mbox{\bf #1}} }
89
90 %\newcommand{\bigforall}{\mathop{\hbox{\huge$\forall$}}}
91 \newcommand{\bigforall}{%
92   \mathop{\mathchoice%
93     {\hbox{\huge$\forall$}}%
94     {\hbox{\Large$\forall$}}%
95     {\hbox{\normalsize$\forall$}}%
96     {\hbox{\scriptsize$\forall$}}}%
97 }
98
99 \newcommand{\Largeexists}{\mathop{\hbox{\Large$\exists$}}}
100 \newcommand{\Largenexists}{\mathop{\hbox{\Large$\nexists$}}}
101
102 \newcommand{\qed}{\square}
103 \newcommand{\proofstarts}{{\it Proof:}}
104 \newcommand{\proof}[1]{\proofstarts #1 $\qed$}
105
106 \newcommand{\gathbegin}{\begin{gather} \tag*{}}
107 \newcommand{\gathnext}{\\ \tag*{}}
108
109 \newcommand{\true}{t}
110 \newcommand{\false}{f}
111
112 \begin{document}
113
114 \input{notation.tex}
115 \input{invariants.tex}
116 \input{lemmas.tex}
117 \input{annotations.tex}
118
119 \input{simple.tex}
120 \input{create-base.tex}
121 \input{create-tip.tex}
122 \input{anticommit.tex}
123 \input{merge.tex}
124
125 \end{document}