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{How is the voter's $\weight$ encoded as part of the ballot?}
 8
 9The \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.
10
11The 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.
12
13The 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.
14
15\begin{enumerate}
16	\item \maxcount: it defines the maximum number of fields in a ballot (max 64).
17	\item \maxvalue: it is the maximum allowable value for any field in a ballot (if greater than 0).
18	\item \minvalue: it is the minimum allowable value for any field in a ballot (default 0).
19	\item \uniquevalues: it specifies whether voters can select the same value multiple times within a ballot (default false).
20	\item \maxtotalcost: it limits the sum of all field values in a ballot (if greater than 0).
21	\item \mintotalcost: it specifies a minimum required total sum of field values in a ballot (default 0)
22	\item \costexponent: it defines the exponent used to calculate the "cost" of votes for each field (default 1).
23\end{enumerate}
24
25\martai{"if greater than 0" vs. "default" (make it consistent).}
26
27\begin{figure}[H]
28	\centering
29	\fbox{
30		\includegraphics[scale = 0.4, draft = false]{\figs/ballot-variables.png}}
31\end{figure}
32
33\martai{In Figure: when is says uniqueValues: x, y, z must be different -- this is if uniqueValues = false, right?}
34
35\paragraph{Example 1: Rating candidates.}
36
37\martai{Reorder names Lennon, Hendrix, Joplin alphabetically.}
38\martai{In this example, the rest of variables are default, right? E.g. minValue = 0?}
39
40Consider 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:
41
42\begin{itemize}
43	\item \maxcount: 3
44	\item \maxvalue: 5
45	\item \uniquevalues: Yes
46\end{itemize}
47
48Ballots:
49
50\begin{itemize}
51	\item Vote 1: \texttt{[3, 2, 5]} (3 stars for Lennon, 2 stars for Hendrix, 5 stars for Joplin)
52	\item Vote 2: \texttt{[4, 3, 2]}
53	\item Vote 3: \texttt{[2, 4, 5]}
54\end{itemize}
55
56\martai{I would write 4 ballots.}
57
58After accumulating the votes:
59
60\begin{itemize}
61	\item Results Array: \texttt{[3+4+2, 2+3+4, 5+2+5] = [9, 9, 12]}\\
62	Lennon received 9 points, Hendrix received 9 points, and Joplin received 12 points.
63\end{itemize}
64
65\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).}
66
67\paragraph{Example 2: Quadratic voting for resource allocation.} 
68
69In 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.
70
71Configuration:
72
73\begin{itemize}
74	\item \maxcount: 4
75	\item \maxtotalcost: 12 (credits)
76	\item \costexponent: 2 (quadratic)
77\end{itemize}
78
79Ballots:
80
81\begin{itemize}
82	\item Vote 1: \texttt{[2, 2, 2, 0]}
83	\item Vote 2: \texttt{[1, 1, 3, 1]}
84	\item Vote 3: \texttt{[0, 2, 1, 2]}
85\end{itemize}
86
87\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?}
88
89
90After accumulating the votes:
91
92
93\begin{itemize}
94	\item Results Array: \texttt{[2+1+0, 2+1+2, 2+3+1, 0+1+2] = [3, 5, 6, 3]} \\
95	Each position in the array represents the total sum of credits allocated to each NGO.
96\end{itemize}
97
98\martai{Cost may be dependant on the voter's weight.}