X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=topbloke-formulae.git;a=blobdiff_plain;f=trav-alg.tex;h=df5e4cd8fb3b5e47532215b754ea66b6816fb0c1;hp=3151ca491324aea0160a524516a11ea76e563815;hb=0ef6782afa245b0744d82dc7ff2d5a34a1fe2dc1;hpb=fd9a2351715889769471bff44793f5333c2c7250 diff --git a/trav-alg.tex b/trav-alg.tex index 3151ca4..df5e4cd 100644 --- a/trav-alg.tex +++ b/trav-alg.tex @@ -29,6 +29,11 @@ such that: \statement{Correct Base}{ \baseof{\tipcy} = \tipcn } +\statement{Base Correct Contents}{ + \tipcn \haspatch \pa E + \equiv + \pa E \isdep \pc +} \statement{Tip Exceeds Inputs}{ \tipcy \ge \pendsof{\allsrcs}{\pcy} } @@ -66,10 +71,10 @@ In some order, perhaps interleaving the two kinds of merge: \begin{enumerate} -\item For each $\pd \isdirdep \pc$, find a merge base +\item For each $\hasdep$-maximal $\pd \isdirdep \pc$, find a merge base $M \le W,\; \le \tipdy$ and merge $\tipdy$ into $W$. That is, use $\alg{Merge}$ with $L = W,\; R = \tipdy$. -(Dependency Merge.) +(Base Dependency Merge.) \item For each $S \in S^{\pcn}_i$, merge it into $W$. That is, use $\alg{Merge}$ with $L = W,\; R = S,\; M = M^{\pcn}_i$. @@ -81,6 +86,11 @@ That is, use $\alg{Merge}$ with $L = W,\; R = S,\; M = M^{\pcn}_i$. Execute $\alg{Fixup-Base}(W,\pc)$. +TODO define Fixup-Base + +\subsubsection{Result} + +If all of that was successful, let $\tipcn = W$. \subsection{$\alg{Recreate-Base}(\pc)$} @@ -92,7 +102,7 @@ Choose a $\hasdep$-maximal direct dependency $\pd$ of $\pc$. \item -Use $\alg{Create Base}$ with $L$ = $\pdy,\; \pq = \pc$ to generate $C$ +Use $\alg{Create Base}$ with $L$ = $\tipdy,\; \pq = \pc$ to generate $C$ and set $W \iassign C$. (Recreate Base Beginning.) \item