1 \section{Traversal phase --- proofs}
3 For each operation called for by the traversal algorithms, we prove
4 that the commit generation preconditions are met.
6 WIP WHAT ABOUT PROVING ALL THE TRAVERSAL RESULTS
8 \subsection{Base Dependency Merge, Base Sibling Merge}
10 We do not prove that the preconditions are met. Instead, we check
11 them at runtime. If they turn out not to be met, we abandon
12 \alg{Merge-Base} and resort to \alg{Recreate-Base}.
14 TODO COMPLETE MERGE-BASE STUFF
16 WIP WHAT ABOUT PROVING ALL THE TRAVERSAL RESULTS
18 \subsection{Recreate Base Beginning}
22 \subsection{Tip Base Merge}
24 $L = W$, $R = \tipcn$.
28 Afterwards, $\baseof{W} = \tipcn$.
30 \subsection{Tip Source Merge}
32 In fact, we do this backwards: $L = S$, $R = W$. Since $S \in \pcy$,
33 the resulting $C \in \pcy$ and the remaining properties of the Merge
34 commit construction are symmetrical in $L$ and $R$ so this is fine.
36 By the results of Tip Base Merge, $\baseof{W} = \tipcn$.
38 By Base Ends Supreme, $\tipcn \ge \baseof{S}$ i.e.
39 $\baseof{R} \ge \baseof{L}$.
41 Either $\baseof{L} = \baseof{M}$, or we must choose a different $M$ in
42 which case $M = \baseof{S}$ will suffice.