chiark / gitweb /
wip traversal
[topbloke-formulae.git] / trav-proofs.tex
1 \section{Traversal phase --- proofs}
2
3 For each operation called for by the traversal algorithms, we prove
4 that the commit generation preconditions are met.
5
6 WIP WHAT ABOUT PROVING ALL THE TRAVERSAL RESULTS
7
8 \subsection{Base Dependency Merge, Base Sibling Merge}
9
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}.
13
14 TODO COMPLETE MERGE-BASE STUFF
15
16 WIP WHAT ABOUT PROVING ALL THE TRAVERSAL RESULTS
17
18 \subsection{Recreate Base Beginning}
19
20 WHAT IF $\pendsof{L}{\pqy} \neq \{\}$ ?
21
22 \subsection{Tip Base Merge}
23
24 $L = W$, $R = \tipcn$.
25
26 TODO TBD
27
28 Afterwards, $\baseof{W} = \tipcn$.
29
30 \subsection{Tip Source Merge}
31
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.
35
36 By the results of Tip Base Merge, $\baseof{W} = \tipcn$.
37
38 By Base Ends Supreme, $\tipcn \ge \baseof{S}$ i.e.
39 $\baseof{R} \ge \baseof{L}$.
40
41 Either $\baseof{L} = \baseof{M}$, or we must choose a different $M$ in
42 which case $M = \baseof{S}$ will suffice.
43