Brandon Holt deleted file set_spec.tex  about 9 years ago

Commit id: f0074ba03ccf63145d572af5d929af9541b59344

deletions | additions      

         

\begin{tabular}{lll}  \textbf{method:} & \textbf{commutes with:} & \textbf{when:} \\  \hline  \texttt{add(x): void} & \texttt{add(y)} & $\forall x, y$ \\  \texttt{remove(x): void} & \texttt{remove(y)} & $\forall x, y$ \\  & \texttt{add(y)} & $x \ne y$ \\  \texttt{size(): int} & \texttt{add(x)} & $x \in Set$ \\  & \texttt{remove(x)} & $x \notin Set$ \\  \texttt{contains(x): bool} & \texttt{add(y)} & $x \ne y \lor y \in Set$ \\  & \texttt{remove(y)} & $x \ne y \lor y \notin Set$ \\  & \texttt{size()} & $\forall x$ \\  \hline  \end{tabular}  Commutativity Specification for Set.