chiark / gitweb /
traversal: Base/Tip Correct Contents chane notation
[topbloke-formulae.git] / trav-proofs.tex
index 415c939b0b03c9675a7dcfa9bfde517fee3de6ab..f1993d31191fa6ec9798dc9a00bca0903540cc98 100644 (file)
@@ -3,14 +3,39 @@
 For each operation called for by the traversal algorithms, we prove
 that the commit generation preconditions are met.
 
+WIP WHAT ABOUT PROVING ALL THE TRAVERSAL RESULTS
+
+\subsection{Traversal Lemmas}
+
+Firstly, some lemmas.
+\statement{Tip Correct Contents}{
+  \tipcy \haspatch \pa E
+    \equiv
+  \pa E = \pc \lor \pa E \isdep \pc
+}
+\proof{
+  For $\pc = \pa E$, Tip Own Contents suffices.
+  For $\pc \neq \pa E$, Exclusive Tip Contents
+  gives $D \isin \tipcy \equiv D \isin \baseof{\tipcy}$
+  which by Correct Base $\equiv D \isin \tipcn$.
+}
+
 \subsection{Base Dependency Merge, Base Sibling Merge}
 
 We do not prove that the preconditions are met.  Instead, we check
 them at runtime.  If they turn out not to be met, we abandon
 \alg{Merge-Base} and resort to \alg{Recreate-Base}.
 
+TODO COMPLETE MERGE-BASE STUFF
+
 WIP WHAT ABOUT PROVING ALL THE TRAVERSAL RESULTS
 
+\subsection{Recreate Base Beginning}
+
+\subsubsection{Create Acyclic}
+
+$L = \tipdy$ so
+
 \subsection{Tip Base Merge}
 
 $L = W$, $R = \tipcn$.