chiark / gitweb /
strategy: wip
[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{\pl}{\pa{L}}
54 \newcommand{\ply}{\pay{L}}
55 \newcommand{\pln}{\pan{L}}
56
57 \newcommand{\pq}{\pa{Q}}
58 \newcommand{\pqy}{\pay{Q}}
59 \newcommand{\pqn}{\pan{Q}}
60
61 \newcommand{\pr}{\pa{R}}
62 \newcommand{\pry}{\pay{R}}
63 \newcommand{\prn}{\pan{R}}
64
65 %\newcommand{\hasparents}{\underaccent{1}{>}}
66 %\newcommand{\hasparents}{{%
67 %  \declareslashed{}{_{_1}}{0}{-0.8}{>}\slashed{>}}}
68 \newcommand{\hasparents}{>_{\mkern-7.0mu _1}}
69 \newcommand{\areparents}{<_{\mkern-14.0mu _1\mkern+5.0mu}}
70
71 \renewcommand{\implies}{\Rightarrow}
72 \renewcommand{\equiv}{\Leftrightarrow}
73 \renewcommand{\nequiv}{\nLeftrightarrow}
74 \renewcommand{\land}{\wedge}
75 \renewcommand{\lor}{\vee}
76
77 \newcommand{\pancs}{{\mathcal A}}
78 \newcommand{\pends}{{\mathcal E}}
79
80 \newcommand{\pancsof}[2]{\pancs ( #1 , #2 ) }
81 \newcommand{\pendsof}[2]{\pends ( #1 , #2 ) }
82
83 \newcommand{\merge}{{\mathcal M}}
84 \newcommand{\mergeof}[4]{\merge(#1,#2,#3,#4)}
85 %\newcommand{\merge}[4]{{#2 {{\frac{ #1 }{ #3 } #4}}}}
86
87 \newcommand{\patch}{{\mathcal P}}
88 \newcommand{\base}{{\mathcal B}}
89 \newcommand{\depsreq}{{\mathcal D}}
90
91 \newcommand{\patchof}[1]{\patch ( #1 ) }
92 \newcommand{\baseof}[1]{\base ( #1 ) }
93 \newcommand{\depsreqof}[1]{\depsreq ( #1 ) }
94
95 \newcommand{\eqntag}[2]{ #2 \tag*{\mbox{#1}} }
96 \newcommand{\eqn}[2]{ #2 \tag*{\mbox{\bf #1}} }
97
98 %\newcommand{\bigforall}{\mathop{\hbox{\huge$\forall$}}}
99 \newcommand{\bigforall}{%
100   \mathop{\mathchoice%
101     {\hbox{\huge$\forall$}}%
102     {\hbox{\Large$\forall$}}%
103     {\hbox{\normalsize$\forall$}}%
104     {\hbox{\scriptsize$\forall$}}}%
105 }
106 \newcommand{\bigexists}{%
107   \mathop{\mathchoice%
108     {\hbox{\huge$\exists$}}%
109     {\hbox{\Large$\exists$}}%
110     {\hbox{\normalsize$\exists$}}%
111     {\hbox{\scriptsize$\exists$}}}%
112 }
113
114 \newcommand{\Largeexists}{\mathop{\hbox{\Large$\exists$}}}
115 \newcommand{\Largenexists}{\mathop{\hbox{\Large$\nexists$}}}
116
117 \newcommand{\qed}{\square}
118 \newcommand{\proofstarts}{{\it Proof:}}
119 \newcommand{\proof}[1]{\proofstarts #1 $\qed$}
120
121 \newcommand{\gathbegin}{\begin{gather} \tag*{}}
122 \newcommand{\gathnext}{\\ \tag*{}}
123
124 \newcommand{\true}{t}
125 \newcommand{\false}{f}
126
127 \begin{document}
128
129 \input{notation.tex}
130 \input{invariants.tex}
131 \input{lemmas.tex}
132 \input{annotations.tex}
133
134 \input{simple.tex}
135 \input{create-base.tex}
136 \input{create-tip.tex}
137 \input{anticommit.tex}
138 \input{merge.tex}
139 \input{strategy.tex}
140
141 \end{document}