X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=article.tex;h=d5e73b1a7e19da4ee9041dcb04a1bebcf5a7b4d4;hb=26a840c1b223aa5b9d9fd1dc9e7c1922c87cf5f5;hp=ef8a9853d036ed6813d572af59f57714170ed976;hpb=e75351f03adcd986016029aec1ff0fec77decb56;p=topbloke-formulae.git diff --git a/article.tex b/article.tex index ef8a985..d5e73b1 100644 --- a/article.tex +++ b/article.tex @@ -1,27 +1,39 @@ -\documentclass[a4paper]{strayman} +\documentclass[a4paper,leqno]{strayman} +\errorcontextlines=50 \let\numberwithin=\notdef -\usepackage{MnSymbol} -\usepackage{stmaryrd} -\usepackage{slashed} +\usepackage{amsmath} +\usepackage{mathabx} \usepackage{txfonts} \usepackage{amsfonts} +\usepackage{mdwlist} %\usepackage{accents} +\usepackage{fancyhdr} +\pagestyle{fancy} +\lhead[\rightmark]{} + +\let\stdsection\section +\renewcommand\section{\newpage\stdsection} + \renewcommand{\ge}{\geqslant} \renewcommand{\le}{\leqslant} +\newcommand{\nge}{\ngeqslant} +\newcommand{\nle}{\nleqslant} \newcommand{\has}{\sqsupseteq} \newcommand{\isin}{\sqsubseteq} -\newcommand{\nothaspatch}{{% - \declareslashed{}{\sslash}{-0.04}{0}{\Sqsupset}\slashed{\Sqsupset}}} -\newcommand{\notpatchisin}{{% - \declareslashed{}{\sslash}{-0.04}{0}{\Sqsubset}\slashed{\Sqsubset}}} -\newcommand{\haspatch}{\Sqsupset} -\newcommand{\patchisin}{\Sqsubset} +\newcommand{\nothaspatch}{\mathrel{\,\not\!\not\relax\haspatch}} +\newcommand{\notpatchisin}{\mathrel{\,\not\!\not\relax\patchisin}} +\newcommand{\haspatch}{\sqSupset} +\newcommand{\patchisin}{\sqSubset} -\newcommand{\set}[1]{\mathbb #1} -\newcommand{\pa}[1]{\varmathbb #1} + \newif\ifhidehack\hidehackfalse + \DeclareRobustCommand\hidefromedef[2]{% + \hidehacktrue\ifhidehack#1\else#2\fi\hidehackfalse} + \newcommand{\pa}[1]{\hidefromedef{\varmathbb{#1}}{#1}} + +\newcommand{\set}[1]{\mathbb{#1}} \newcommand{\pay}[1]{\pa{#1}^+} \newcommand{\pan}[1]{\pa{#1}^-} @@ -29,6 +41,14 @@ \newcommand{\py}{\pay{P}} \newcommand{\pn}{\pan{P}} +\newcommand{\pq}{\pa{Q}} +\newcommand{\pqy}{\pay{Q}} +\newcommand{\pqn}{\pan{Q}} + +\newcommand{\pr}{\pa{R}} +\newcommand{\pry}{\pay{R}} +\newcommand{\prn}{\pan{R}} + %\newcommand{\hasparents}{\underaccent{1}{>}} %\newcommand{\hasparents}{{% % \declareslashed{}{_{_1}}{0}{-0.8}{>}\slashed{>}}} @@ -36,28 +56,63 @@ \newcommand{\areparents}{<_{\mkern-14.0mu _1\mkern+5.0mu}} \renewcommand{\implies}{\Rightarrow} +\renewcommand{\equiv}{\Leftrightarrow} +\renewcommand{\nequiv}{\nLeftrightarrow} +\renewcommand{\land}{\wedge} +\renewcommand{\lor}{\vee} -\begin{document} +\newcommand{\pancs}{{\mathcal A}} +\newcommand{\pends}{{\mathcal E}} + +\newcommand{\pancsof}[2]{\pancs ( #1 , #2 ) } +\newcommand{\pendsof}[2]{\pends ( #1 , #2 ) } -\section{Notation} +\newcommand{\merge}{{\mathcal M}} +\newcommand{\mergeof}[4]{\merge(#1,#2,#3,#4)} +%\newcommand{\merge}[4]{{#2 {{\frac{ #1 }{ #3 } #4}}}} -$ C \hasparents \set X $ The parents of commit $C$ are exactly the set -$\set X$. +\newcommand{\patch}{{\mathcal P}} +\newcommand{\base}{{\mathcal B}} -$ C \ge D $ $C$ is a descendant of $D$ in the git commit -graph. This is a partial order, namely the transitive closure of -$ D \in \set X $ where $ C \hasparents \set X $. +\newcommand{\patchof}[1]{\patch ( #1 ) } +\newcommand{\baseof}[1]{\base ( #1 ) } -$ C \has D $ Informally, the tree at commit $C$ contains the change -made in commit $D$. Does not take account of deliberate reversions by -the user or in non-Topbloke-controlled branches; these are considered -normal, forward, commits. For merges and Topbloke-generated -anticommits, the ``change made'' is only to be thought of as any -conflict resolution. This is not a partial order because it is not -transitive. +\newcommand{\eqntag}[2]{ #2 \tag*{\mbox{#1}} } +\newcommand{\eqn}[2]{ #2 \tag*{\mbox{\bf #1}} } + +%\newcommand{\bigforall}{\mathop{\hbox{\huge$\forall$}}} +\newcommand{\bigforall}{% + \mathop{\mathchoice% + {\hbox{\huge$\forall$}}% + {\hbox{\Large$\forall$}}% + {\hbox{\normalsize$\forall$}}% + {\hbox{\scriptsize$\forall$}}}% +} + +\newcommand{\Largeexists}{\mathop{\hbox{\Large$\exists$}}} +\newcommand{\Largenexists}{\mathop{\hbox{\Large$\nexists$}}} + +\newcommand{\qed}{\square} +\newcommand{\proofstarts}{{\it Proof:}} +\newcommand{\proof}[1]{\proofstarts #1 $\qed$} + +\newcommand{\gathbegin}{\begin{gather} \tag*{}} +\newcommand{\gathnext}{\\ \tag*{}} + +\newcommand{\true}{t} +\newcommand{\false}{f} + +\begin{document} -\section{Invariants} +\input{notation.tex} +\input{invariants.tex} +\input{lemmas.tex} +\input{annotations.tex} -No rewind/replay: $ C \has D \implies C \ge D $ +\input{simple.tex} +\input{create-base.tex} +\input{create-tip.tex} +\input{anticommit.tex} +\input{merge.tex} \end{document}