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