arnaucube
arnaucube/davinci-paperPublic Self-hosted repository
davinci-paper/v2/sections/ballot-protocol.tex
v2/sections/ballot-protocol.texRaw
  1% !TeX root = ../build/main.tex
  2
  3\martai{It is not clear what is the advantage of defining a protocol like this. Is it easy because it is easy to implement as an arithmetic circuit? Make the advantage clear.}
  4
  5\martai{Yes. The advantage is that we can define many types of voting systems (or recounting) with just these few variables. Moreover, we avoid if-else statements, which makes it very convenient to implement in-circuit. More info here: \url{https://docs.vocdoni.io/architecture/data-schemes/ballot-protocol.html\#vocdoni-results-interpretation} (no multiple question supported).}
  6
  7\martai{It is called Ballot Mode because we define some modes (like quadratic, etc.) that can be chosen by the organizer. Essentially, each of this modes has a special configuration, but in order to make it easier, the organizer only needs to choose which of the modes (configs) to apply.}
  8
  9\martai{How is the voter's $\weight$ encoded as part of the ballot?}
 10
 11The \davinci ballot protocol is a simple and efficient mechanism for casting and tallying votes in any type of election or collective decision-making process. Each voting process consists of one or several fields and voters are required to provide a response for each of these fields in their ballot.
 12
 13The responses in the ballot are represented as a sequence of natural numbers, each corresponding to the voter’s choice for the respective field. Results are accumulated into a single array. Each position in the array corresponds to the sum of all votes cast for that field across all voters.
 14
 15The ballot protocol is defined by a set of configurable variables that dictate how votes must be cast. This way the protocol can accommodate a wide range of voting processes and behaviors. The list of variables is the following.
 16
 17\begin{enumerate}
 18	\item \maxcount: it defines the maximum number of fields in a ballot (max 64).
 19	\item \maxvalue: it is the maximum allowable value for any field in a ballot (if greater than 0).
 20	\item \minvalue: it is the minimum allowable value for any field in a ballot (default 0).
 21	\item \uniquevalues: it specifies whether voters can select the same value multiple times within a ballot (default false).
 22	\item \maxtotalcost: it limits the sum of all field values in a ballot (if greater than 0).
 23	\item \mintotalcost: it specifies a minimum required total sum of field values in a ballot (default 0)
 24	\item \costexponent: it defines the exponent used to calculate the "cost" of votes for each field (default 1).
 25\end{enumerate}
 26
 27\martai{"if greater than 0" vs. "default" (make it consistent).}
 28
 29\begin{figure}[H]
 30	\centering
 31	\fbox{
 32		\includegraphics[scale = 0.4, draft = false]{\figs/ballot-variables.png}}
 33\end{figure}
 34
 35\martai{In Figure: when is says uniqueValues: x, y, z must be different -- this is if uniqueValues = false, right?}
 36
 37\paragraph{Example 1: Rating candidates.}
 38
 39\martai{Reorder names Lennon, Hendrix, Joplin alphabetically.}
 40\martai{In this example, the rest of variables are default, right? E.g. minValue = 0?}
 41
 42Consider a voting process where voters are asked to rate three candidates: Lennon, Hendrix, and Joplin. Voters rate each candidate from 0 to 5 stars, and each vote is represented as an array where each position corresponds to the candidate’s rating. The configuration of this voting would be the following:
 43
 44\begin{itemize}
 45	\item \maxcount: 3
 46	\item \maxvalue: 5
 47	\item \uniquevalues: Yes
 48\end{itemize}
 49
 50Ballots:
 51
 52\begin{itemize}
 53	\item Vote 1: \texttt{[3, 2, 5]} (3 stars for Lennon, 2 stars for Hendrix, 5 stars for Joplin)
 54	\item Vote 2: \texttt{[4, 3, 2]}
 55	\item Vote 3: \texttt{[2, 4, 5]}
 56\end{itemize}
 57
 58\martai{I would write 4 ballots.}
 59
 60After accumulating the votes:
 61
 62\begin{itemize}
 63	\item Results Array: \texttt{[3+4+2, 2+3+4, 5+2+5] = [9, 9, 12]}\\
 64	Lennon received 9 points, Hendrix received 9 points, and Joplin received 12 points.
 65\end{itemize}
 66
 67\martai{In the above example, there is no limit to maxTotalCost, right? Maybe add something like, if maxTotalcost = X, then one of the previous ballots would be invalid (and explain why).}
 68
 69\paragraph{Example 2: Quadratic voting for resource allocation.} 
 70
 71In a scenario where voters distribute a fixed number of credits across different options (e.g., selecting funding levels for NGOs), the ballot allows voters to assign multiple points, but the cost of casting multiple votes for a single option increases quadratically.
 72
 73Configuration:
 74
 75\begin{itemize}
 76	\item \maxcount: 4
 77	\item \maxtotalcost: 12 (credits)
 78	\item \costexponent: 2 (quadratic)
 79\end{itemize}
 80
 81Ballots:
 82
 83\begin{itemize}
 84	\item Vote 1: \texttt{[2, 2, 2, 0]}
 85	\item Vote 2: \texttt{[1, 1, 3, 1]}
 86	\item Vote 3: \texttt{[0, 2, 1, 2]}
 87\end{itemize}
 88
 89\martai{Add a fourth vote, e.g. [3, 3, 0, 0]. Then mention that the first 3 ballots are ok because $2^2 + 2^2 + 2^2 = 12$, $1^2 + 1^1 + 3^2 + 1^2 = 12$, $2^2 + 1 + 2^2 = 9 < 12$, but $3^2 + 3^2 = 18 > 12$, and therefore it's invalid. Did I get this right?}
 90
 91
 92After accumulating the votes:
 93
 94
 95\begin{itemize}
 96	\item Results Array: \texttt{[2+1+0, 2+1+2, 2+3+1, 0+1+2] = [3, 5, 6, 3]} \\
 97	Each position in the array represents the total sum of credits allocated to each NGO.
 98\end{itemize}
 99
100\martai{Cost may be dependant on the voter's weight.}