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