You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: reduce.tex
+17-1Lines changed: 17 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -187,7 +187,7 @@ \subsection{Reducers}
187
187
\]
188
188
\end{definition}
189
189
190
-
In database terminology, a well-formed reducer defines an \emph{invertible distributive aggregate}: the fold can be computed over partitions independently (distributive), and individual values can be removed from the accumulated result (invertible).
190
+
In database terminology, a well-formed reducer defines an \emph{invertible distributive aggregate} (see Section~\ref{subsec:distributive-aggregates}): the fold can be computed over partitions independently (distributive), and individual values can be removed from the accumulated result (invertible).
191
191
192
192
\begin{remark}[Remove-Add Commutativity]
193
193
For well-formed reducers where $\oplus$ and $\ominus$ arise from an abelian group action on $A$, the following property holds automatically:
@@ -198,6 +198,22 @@ \subsection{Reducers}
198
198
All practical reducers (sum, count, product over commutative groups) satisfy this.
The database literature~\cite{viewmaintenance} classifies aggregates as \emph{distributive}, \emph{algebraic}, or \emph{holistic}.
204
+
In our setting, a pair $(\iota, \oplus)$ defines a \emph{distributive aggregate} when folding over a union of multisets can be decomposed into folds over the parts.
205
+
206
+
\begin{definition}[Distributive Aggregate]
207
+
Let $\oplus : A \times V \to A$ be pairwise commutative and $\iota\in A$.
208
+
We say that $(\iota, \oplus)$ is a \emph{distributive aggregate} if for all finite multisets $M, N \in\mathcal{M}(V)$:
209
+
\[
210
+
\mathsf{fold}_\oplus(\iota, M \uplus N) = \mathsf{fold}_\oplus\big(\mathsf{fold}_\oplus(\iota, M), N\big).
211
+
\]
212
+
\end{definition}
213
+
214
+
By Lemma~1, any pair $(\iota, \oplus)$ with pairwise commutative $\oplus$ is a distributive aggregate in this sense.
215
+
Moreover, a well-formed reducer $R = (\iota, \oplus, \ominus)$ (Definition~\ref{def:well-formed-reducer}) is precisely an \emph{invertible distributive aggregate}: the aggregate is distributive over partitions of the multiset, and individual contributions can be removed using $\ominus$.
0 commit comments