\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}
}
\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$.
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)$}
\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