From: Ian Jackson Date: Mon, 28 May 2012 00:12:19 +0000 (+0100) Subject: strategy: wip proofs X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=6e2f1b176fed02ad882ba53b5f930f0bf8e3a9ef;p=topbloke-formulae.git strategy: wip proofs --- diff --git a/trav-alg.tex b/trav-alg.tex index 37d9194..4b6796a 100644 --- a/trav-alg.tex +++ b/trav-alg.tex @@ -23,13 +23,18 @@ lowest first: \end{enumerate} -After processing each $\pc$ we will have created: - -\begin{itemize} - -\item $\tipcn$ and $\tipcy$ such that $\baseof{\tipcy} = \tipcn$. - -\end{itemize} +After processing each $\pc$ we will have created $\tipcn$ and $\tipcy$ +such that: + +\statement{Correct Base}{ + \baseof{\tipcy} = \tipcn +} +\statement{Base Ends Supreme}{ + \tipcn \ge \pendsof{\allsrcs}{\pcn} +} +\statement{Tip Ends Supreme}{ + \tipcy \ge \pendsof{\allsrcs}{\pcy} +} \subsection{$\alg{Merge-Base}(\pc)$} diff --git a/trav-proofs.tex b/trav-proofs.tex index 14f6cd8..67e1b11 100644 --- a/trav-proofs.tex +++ b/trav-proofs.tex @@ -5,3 +5,23 @@ that the commit generation preconditions are met. \subsection{Tip Base Merge} +$L = W$, $R = \tipcn$. + +TODO TBD + +Afterwards, $\baseof{W} = \tipcn$. + +\subsection{Tip Source Merge} + +In fact, we do this backwards: $L = S$, $R = W$. Since $S \in \pcy$, +the resulting $C \in \pcy$ and the remaining properties of the Merge +commit construction are symmetrical in $L$ and $R$ so this is fine. + +By the results of Tip Base Merge, $\baseof{W} = \tipcn$. + +By Base Ends Supreme, $\tipcn \ge \baseof{S}$ i.e. +$\baseof{R} \ge \baseof{L}$. + +Either $\baseof{L} = \baseof{M}$, or we must choose a different $M$ in +which case $M = \baseof{S}$ will suffice. +