Manuscript Offprint
arXiv:2610.36494Counting by the Book: Verifying Alaska's Ranked-Choice Elections
Verifying Alaska’s Ranked-Choice Elections
LUCY HOROWITZ, University of California, Berkeley, USA
We present Alaska’s ranked-choice elections as a case study in Formally Verified Democracy, a program to establish election results through formally checked proofs. We formalize an interpretation of Alaska’s tabulation rules in Lean, verify its implementation, and prove election-specific results. Across 115 ranked-choice contests in Alaska since 2022, we identify 75 ballot records across 10 contests that were counted differently from this interpretation by a program reproducing the published results, without changing any winners. We trace these differences to overvotes and duplicate rankings and examine their legal justification, showing how formal verification can expose consequential choices in translating election law into software.
CCS Concepts: • Software and its engineering → Formal methods.
Additional Key Words and Phrases: ranked-choice voting, formal verification, election law
ACM Reference Format:
Lucy Horowitz. 2026. Counting by the Book: Verifying Alaska’s Ranked-Choice Elections. 1, 1 (October 2026), 22 pages.
1 Introduction
An election result should come with evidence that the reported winner follows from the ballots and the rules governing their tabulation. The goal of Formally Verified Democracy is to provide such evidence in the form of a machine-checked proof. We express election rules as precise specifications and establish that the reported outcomes are permitted by those specifications. Such proofs can increase confidence in election results by making the reasoning from ballots to winners independently checkable. This paper presents Alaska’s ranked-choice elections as a case study in Formally Verified Democracy. We develop a verified tabulator and election-specific proofs, but also confront a prerequisite for their use: determining which rules the tabulator should implement when the governing legal text requires interpretation.
Jurisdictions across the United States are adopting ranked-choice voting (RCV) [33], where instead of casting one vote for one candidate, voters rank multiple candidates in order of preference. In most of these elections, the winners are determined by a counting method called instant-runoff voting (IRV). The precise rules for interpreting malformed ballots, including those that contain skipped rankings, repeated candidates, or multiple candidates at the same ranking, vary across jurisdictions. Seemingly minor choices can affect how ballots are counted. This paper examines the relationship between Alaska’s statutory tabulation rules and the behavior recoverable from its published election records.
Author's Contact Information: Lucy Horowitz, University of California, Berkeley, Berkeley, California, USA, lucyhorowitz@berkeley.edu.
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from permissions@acm.org.
© 2026 Copyright held by the owner/author(s). Publication rights licensed to ACM.
ACM XXXX-XXXX/2026/10-ART
Lucy Horowitz
Alaska adopted ranked-choice voting through Ballot Measure 2 in 2020, which added the tabulation procedure in AS 15.15.350 [2, 40]. We abbreviate references to its subsections, for example (d)(2).
The statute was first applied in the August 2022 special general election for U.S. Representative and subsequently in the 2022 and 2024 general elections. The Division of Elections publishes cast vote records (CVRs) and tabulation reports that permit comparison of aggregate ballot treatments in individual rounds of each contest [1].
Voters sometimes make errors when marking their ballots. Within RCV, there are many established ways to handle such ballots [25, 36]. As a result, the same ballot may be counted differently under one set of rules than under another. For example, consider the following ballot, reconstructed from Alaska's 2022 general-election cast vote record:
| United States Representative | |||||
|---|---|---|---|---|---|
| 1st | 2nd | 3rd | 4th | 5th | |
| Begich, Nick | ● | ● | ● | ○ | ○ |
| Bye, Chris | ○ | ○ | ○ | ○ | ○ |
| Palin, Sarah | ○ | ○ | ○ | ● | ○ |
| Peltola, Mary S. | ○ | ○ | ○ | ○ | ○ |
| Write-in: | ○ | ○ | ○ | ○ | ○ |
Fig. 1. A ballot reconstructed from Alaska's 2022 general-election cast vote record (ballot 82311) [3].
This voter ranked Begich first, second, and third, followed by Palin fourth. Alaska's regulations instruct election officials to count a repeated candidate at their highest ranking and “disregard the remaining rankings for that candidate.” Does disregarding the repeated Begich rankings make the second and third rankings blank? The distinction matters because Alaska’s rules also say that two consecutive skipped rankings make a ballot inactive [39, 40]. After Begich’s defeat, our statutory model (Section 2) counts this ballot for Palin, while the model that reproduces the published results treats it as inactive and doesn’t count it for any candidate.
Which set of rules were applied in Alaska's ranked-choice elections, and does this set agree with what is prescribed by the statute? The software used by the Alaska Division of Elections to tabulate ranked-choice ballots was developed by Dominion Voting Systems (now Liberty Vote) and is proprietary. Consequently, its implementation cannot be publicly formally verified against the statute or even inspected. However, the published data permit a form of black-box analysis. While we cannot prove anything about the actual software that they used, independently writing code that tabulates the votes from the ballots in the CVR and matches the published round-by-round totals allows us to infer certain properties of the implementation's behavior.
The properties of tabulation software can materially affect the outcome of elections. In Oakland, CA's November 2022 District 4 school board election, an error in how the tabulation software was configured to handle a certain class of mismatched ballots caused Nick Resnick to be declared the winner instead of Mike Hutchinson [30]. An independently checked proof of the result against a specification capturing the required ballot treatment would have exposed this discrepancy before certification.
RCV will be used in the 2026 general election in Alaska. Also on the ballot is an initiative to repeal ranked-choice voting altogether. A similar initiative was narrowly defeated in 2024, 50.1% to 49.9% [20].
The necessity of the latter treatment in reproducing Alaska's results was discussed by Manuel Alvarez-Rivera in [10].
We formalize a statutory model: an interpretation of Alaska’s rules in Lean 4 [16], verify its implementation, and prove theorems encoding the results of specific elections (Section 2). Across 115 contests (some of which had only one round of tabulation), our interpretation counts 75 ballot records differently from a model that exactly reproduces all 22 published multi-round reports (the reproduction model), while electing the same winners (Section 3). In Section 4 we identify the rules responsible for these ballot-level discrepancies and assess their legal justification. In Section 5 we situate this case study within the landscape of formal voting theory and law.
The layers are held to different standards. The vocabulary and specification follow the text as closely as Lean allows because their relationship to the statute cannot be proved; it can only be judged by a reader. The implementation, on the other hand, is free to depart from the text because we prove that it computes exactly those outcomes permitted by the specification (Theorem 2.1). We nonetheless write our implementation to follow the procedure of (d) round by round so that it is easy to compare with the statute. A side-by-side comparison of the statute and the formalization is available online [27].
Beyond the basic data model, we go into detail only on the formalizations that required significant interpretation, are ambiguous, or differ from the reproduction model. The full collection of definitions can be found in the GitHub repository at FVDemocracy/Alaska/Statute/StatuteDefs. lean.
2.1 Statutory Vocabulary
2.1.1 Ballots and elections. See Listing 1 in Appendix A for the Lean representations of candidates, ballots, elections, and rounds. We represent candidates with an inductive type Cand. A candidate may be a writeIn or a regular candidate, and each candidate is labeled by a unique natural number. The specific identifiers for candidates are provided by the CVR, and are extracted from these files using a JSON parser written in Lean.
AS 15.15.350(g)(4). “ranking” or “ranked” means the number assigned by a voter to a candidate to express the voter’s choice for that candidate; a ranking of “1” is the highest ranking, followed by “2,” and then “3,” and so on;
The form of the ballots used in Alaska allows voters to rank multiple candidates at the same ranking, no candidates at a ranking, or one candidate at multiple rankings. The definition of “ranking” as written cannot capture the last case if we interpret it as a function from candidates to
https://github.com/lucyhorowitz/FVDemocracy
By AS 15.15.365(a), Alaska pools write-ins into a single candidate unless they “qualify,” so each write-in candidate shares the same identifier. We assume that if in a given contest, write-ins qualified and were consequently tabulated as individual candidates, the CVR published by the state would disambiguate them.
Lucy Horowitz
rankings. Instead we must represent ballots as a list of lists: a ballot is a list of rankings, and each ranking contains a list of candidates. We provide a function candsAt for extracting the candidates ranked at a certain level on a given ballot. Moreover, the operative parts of the statute are stated in terms of the candidates assigned to each ranking. For example, an overvote is a ranking assigned to more than one candidate (g)(3); a skipped ranking is a ranking whose candidate list is empty (g)(6); the tabulator must look at “the next ranking” if one is blank (e)(2). The ballotIndex field is a unique identifier for each ballot and plays no role in tabulation. A given contest (whose type is named Election) is modeled as a list of Ballots together with the list of candidates that may appear on a ballot.
We assume that decisions about which marks count, how ambiguous marks are resolved, and which ballots are counted were made by the election administration before tabulation and are therefore outside the scope of our formalization. The correctness of the output of our tabulation function thus depends on the correctness of the CVR and the parser.
In Title 15, a round is defined as “an instance of the sequence of voting tabulation in a general election.” This serves as a pointer to (d), where each “instance” is parametrized by the set of continuing candidates and active ballots. We will discuss the choice to include the set of active ballots as a parameter in Section 2.1.5.
2.1.2 Overvotes. We take the definition of overvote in (g)(3) to mean that whether a ballot contains an overvote is a syntactic property of that ballot, determinable before tabulation.
AS 15.15.350(g)(3). “overvote” means an instance where a voter has assigned the same ranking to more than one candidate;
The following Lean snippet contains the formal definition we wrote corresponding to (g)(3):
def Ballot.IsOvervoteAt (b : Ballot) (k : Nat) : Prop := ∃ c ∈ b.candsAt k, ∃ c' ∈ b.candsAt k, c ≠ c'
The text itself separates the definition of an overvote from its use. (g)(3) defines an overvote without mentioning continuing candidates, while (g)(2), immediately before it, brings in the continuing candidates only when it uses the term: an inactive ballot “contains an overvote at the highest continuing ranking.” Subsection (e)(1) uses similar wording. It’s clear from reading either part of the statute that whether an overvote can make a ballot inactive depends on the round.
AS 15.15.350(e)(1). a ballot containing an overvote shall be considered an inactive ballot once the overvote is encountered at the highest ranking for a continuing candidate;
def IsHighestContinuingRank (cont : List Cand) (b : Ballot) (k : Nat) : Prop := (∃ c ∈ b.candsAt k, c ∈ cont) ∧ ∀ j < k, ∀ c ∈ b.candsAt j, c ∉ cont
def IsOvervoteAtHighestCont (cont : List Cand) (b : Ballot) : Prop := ∃ k, IsHighestContinuingRank cont b k ∧ b.IsOvervoteAt k
The phrase “at the highest ranking for a continuing candidate” is not defined independently in the statute or accompanying regulations, but formalizing (e)(1) and (g)(2) requires that we define it. The Lean definition IsHighestContinuingRank is meant to capture it. It holds of a rank k on a ballot b if there is a continuing candidate at that rank and none of the candidates ranked higher (i.e. at smaller numbers) are continuing. A faithful implementation of the procedure specified by the statute must check whether any candidate at an overvoted rank is continuing before deciding whether to make the ballot inactive. This is the first point where the reproduction model differs from the statutory model. The two models use the same syntactic condition for overvotes while
Subsection (g)(2) words this condition differently: an inactive ballot “contains an overvote at the highest continuing ranking.” Rankings are not themselves continuing or defeated, so we read “the highest continuing ranking” as the highest ranking for a continuing candidate, and IsHighestContinuingRank matches both clauses.
operationalizing those definitions differently. We call the statutory model’s overvote rule Stop: an overvote makes a ballot permanently inactive once it is encountered at the highest ranking for a continuing candidate. The reproduction model instead makes a ballot inactive when an overvote occurs at or above that ranking, even if every candidate at the overvoted ranking has already been defeated. We call this rule Truncate because it prevents the first overvoted ranking and all lower rankings from contributing a vote, which makes an overvoted ballot equivalent to a ballot consisting only of the marks above the overvote.
2.1.3 Skipped rankings. According to the statute,
AS 15.15.350(g)(6). “skipped ranking” means a blank ranking on a ballot on which a voter has ranked another candidate at a subsequent ranking.
Like “highest continuing ranking,” the word “blank” does not get a formal definition anywhere in Alaska’s statutes nor in accompanying election regulations. We will take “blank at rank k” to mean “no mark was made at rank k.” Section 3 discusses how the reproduction model treats skipped rankings, and Section 4 discusses possible legal bases for the two competing interpretations.
def SkippedRankingAt (b : Ballot) (k : Nat) : Prop := b.IsBlankAt k ∧ ∃ k' < b.ranks.length, k < k' ∧ ¬ b.IsBlankAt k'
Like overvotes, skipped rankings are not defined relative to a round, while the inactivity condition to which they contribute is.
AS 15.15.350(e)(2). if a ballot skips a ranking, then the election board shall count the next ranking. If the next ranking is another skipped ranking, the ballot shall be considered an inactive ballot once the second skipped ranking is encountered;
The Lean theorem readRankings_eq_iff establishes that the procedural implementation (readRankings) corresponding to (e)(2) agrees with the declarative inactivity condition (TwoSkips) corresponding to (g)(2).
2.1.4 Duplicate rankings. Regulation 6 AAC 25.072 contains a rule that does not appear in the statute [39]. The form of the ballot makes it possible for a voter to mark the same candidate at more than one ranking, so any implementation of a tabulation procedure needs to decide how to treat such marks.
6 AAC 25.072. ...a duplicate ranking occurs when a voter marks more than one ranking for the same candidate. The election board shall count a duplicate ranking as the highest ranking marked for the candidate and disregard the remaining rankings for that candidate.
The first sentence is a syntactic definition, like the definition of an overvote: the predicate HasDuplicateRanking holds of a ballot that marks some candidate at two rankings, regardless of whether that candidate is continuing. The regulation leaves open whether disregarding a repeated mark simply prevents it from supplying a vote or erases it for other ballot checks. We adopt the former reading: repeated marks remain present, but cannot supply a later vote.
We call our interpretation Retain: repeated candidate marks remain present when determining whether a ranking is blank or overvoted. We call the alternative Remove: repeated marks are removed before applying either check, while ranking positions are preserved. The reproduction
See resultOf_toReproduction_eq_inactive_iff for a formal statement and proof of this equivalence.
If in the original scan a mark was deemed “ambiguous” by the scanner and adjudicated to not count as indicative of intent to rank a candidate, we treat it as blank. This choice is supported by the structure of the CVRs, which do not record such marks in the Modified ballot records that record human-adjudicated ballot readings.
It is actually possible to achieve this semantics without any separate predicates or checking for duplicate marks. By the time tabulation reaches a repeated mark for a candidate, that candidate must already have been defeated, so the mark wouldn’t count anyway.
Lucy Horowitz
| Rule | Description |
|---|---|
| Truncate | Ignore the overvote and all lower rankings. |
| Stop | Ballot becomes inactive only when the overvote is at the level of the highest continuing candidate. |
| Retain | Keep lower duplicates for overvote and skip detection. |
| Remove | Remove lower duplicates for both tests. |
| Hybrid | Remove for skips; retain for overvotes. |
Table 1. Taxonomy of treatments of overvotes and duplicate rankings.
model uses a third treatment, which we call Hybrid: repeated marks are disregarded when determining whether a ranking is blank but retained when detecting overvotes. Table 1 contains a summary of the names we use to refer to different interpretations of overvotes and duplicate rankings. Section 4 assesses the competing readings.
2.1.5 Inactive ballots. A ballot may become inactive for any of three reasons: it meets the round-parametrized overvote condition, it is exhausted, or it contains two sequential skipped rankings before the highest continuing ranking.
AS 15.15.350(g)(2). “inactive ballot” means a ballot that is no longer tabulated, either in whole or in part, by the division because it does not rank any continuing candidate, contains an overvote at the highest continuing ranking, or contains two or more sequential skipped rankings before its highest continuing ranking;
We represent the inactivity condition described in (g)(2) by MeetsInactivityCondition, which is the disjunction of the three conditions Exhausted, TwoSkips, and IsOvervoteAtHighestCont.
The first subtlety in deciding inactivity is the parametrization of inactivity-due-to-overvotes by the set of continuing candidates as discussed in Section 2.1.2. The second has to do with the persistence of inactivity. A ballot which was inactive in one round under Exhausted or TwoSkips will remain inactive under one of those conditions in every possible future round. The theorem twoSkips_or_exhausted_of_subset is the formal statement of this fact.
| United States Representative | |||||
|---|---|---|---|---|---|
| 1st | 2nd | 3rd | 4th | 5th | |
| Begich, Nick | ● | ○ | ○ | ○ | ○ |
| Bye, Chris | ○ | ● | ○ | ○ | ○ |
| Palin, Sarah | ○ | ○ | ● | ○ | ○ |
| Peltola, Mary S. | ○ | ○ | ○ | ● | ○ |
| Write-in: | ○ | ● | ○ | ○ | ○ |
Fig. 2. A ballot reconstructed from Alaska's 2022 general-election cast vote record (ballot 241786) [3].
The predicate IsOvervoteAtHighestCont does not, once it becomes true of a ballot, stay true of that ballot. Consider the ballot represented in Figure 2. Write-ins do not qualify so are not continuing. If Begich was defeated first, then in round two, this ballot would satisfy IsOvervoteAtHighestCont, since Bye is the highest-ranked continuing candidate and the ballot contains a syntactic overvote at that rank. Now imagine that Bye is defeated in round 2. Then the highest continuing candidate
We take “sequential” to mean “consecutive.”
Alaska uses “exhausted” to mean “ranks no continuing candidates.” Some jurisdictions use “exhausted” for “inactive.” is Palin, and there is no overvote at her rank, so MeetsInactivityCondition is false in this round when it was true in an earlier round.
A naive implementation of the tabulation algorithm would simply recompute at each round which ballots are inactive. This implementation would be “stateless” with respect to the inactive ballots because the tabulator does not need to keep track of extra state beyond which candidates are continuing.
This would be incorrect. The statute says that inactive ballots are “no longer tabulated,” which we take to mean that once a ballot becomes inactive, it should not become active in any later round and thereby contribute to vote totals in later rounds. The Division likewise explains that ballots are excluded from tabulation once they become inactive [5, “Votes to include in threshold calculation”]. Instead, each round carries the ballots that are still active, and defeating a candidate removes the ballots that become inactive.
def next (r : Round) (d : Cand) : Round where continuing := r.continuing.erase d ballots := r.ballots.filter fun b => decide (¬ MeetsInactivityCondition (r.continuing.erase d) b)
Finally we can say how votes are assigned to candidates within each round.
AS 15.15.350(d). When counting ballots in a general election, the election board shall initially tabulate each validly cast ballot as one vote for the highest-ranked continuing candidate on that ballot or as an inactive ballot...
We define the “result” of a ballot with respect to the set of continuing candidates as either inactive or a vote for a candidate C. The predicate IsBallotResult describes a ballot’s result for a fixed list of continuing candidates; it does not record inactivity in earlier rounds. Actual tabulation also depends on whether the ballot remains among the round’s active ballots. The history-dependent predicate IsBallotResultAfter captures this distinction: a ballot removed in an earlier round remains inactive even if its remaining rankings would otherwise support a continuing candidate.
From here we define a few helpful functions, like votesFor c which computes the number of ballots whose BallotResult is a voteFor c relative to the set of continuing candidates and votes which does the same thing relative to a Round object.
2.2 Allowable Outcomes
We represent the outcomes permitted under the statute as a relational specification, that is, as a predicate stating whether a given output is allowed. Permitted election outcomes are stated in terms of permitted round outcomes.
AS 15.15.350(d)(1). if two or fewer continuing candidates remain, the candidate with the greatest number of votes is elected and the tabulation is complete; otherwise, the tabulation continues under (2) of this subsection;
def Round.Elects (r : Round) (c : Cand) : Prop := r.continuing.length ≤ 2 ∧ c ∈ r.continuing ∧ ∀ c' ∈ r.continuing, r.votes c' ≤ r.votes c
A round R may elect a candidate C if and only if there are two or fewer continuing candidates, of which C is one, and if C receives at least as many votes as the other candidate, if there is any. A tie between the final two candidates is resolved under the procedures referenced in (e)(3), which we do not model; instead Elects is true of both candidates, since either outcome is permissible.
The reproduction model never has to make this choice. It reads nothing below a ballot’s first overvote, so a ballot that reaches an overvote never counts again.
If at least two candidates are continuing after write-ins that do not qualify are removed, there will never be fewer than two candidates in any round. See two_le_length_roundAfter Continuing for a proof.
Lucy Horowitz
AS 15.15.350(d)(2). if the candidate with the fewest votes is defeated, votes cast for the defeated candidate shall cease counting for the defeated candidate...
def Round.CanDefeat (r : Round) (d : Cand) : Prop := 3 ≤ r.continuing.length ∧ d ∈ r.continuing ∧ ∀ d' ∈ r.continuing, r.votes d ≤ r.votes d'
Read literally, (d)(2) does not say that the candidate with the fewest votes is defeated; it only says what happens to that candidate's votes if they are. The rule itself is left implicit, but the rest of the section leaves little doubt about what it should be: (e)(3) resolves a tie “between two candidates with the fewest votes” by lot “to determine which candidate is defeated,” which only makes sense if the candidate with the fewest votes is the one defeated. We read (d)(2) accordingly.
Thus, a round R may defeat a candidate C if and only if at least three candidates are continuing, C is one of them, and no continuing candidate has fewer votes than C. The first condition comes from (d)(1), under which a round with two or fewer continuing candidates ends the tabulation instead. The predicate CanDefeat is extended recursively to a sequence of rounds with the predicate ValidDefeats, which asserts that starting from a given Round, a given list of candidates is an acceptable defeat order.
Note that this interpretation builds in a treatment of ties for last place. Since ties are resolved by lot, it is always permissible, depending on the outcome of the coin toss, to eliminate any of the candidates tied. Thus it is permissible to defeat any candidate with the lowest number of votes in a round.
Finally, we tie the permitted outcomes of individual rounds into the permitted outcomes of the entire tabulation.
def Elected (e : Election) (defeated : List Cand) (c : Cand) : Prop := (IsMajorityWinner (initialRound e).continuing (initialRound e).ballots c ∧ defeated = []) v (NoMajority e ∧ (initialRound e).ValidDefeats defeated ∧ (roundAfter e defeated).Elects c)
This predicate is true of an election, sequence of defeated candidates, and winning candidate C if and only if either (i) C was the majority winner in the first-round check and the list of defeated candidates is empty, or (ii) there was no majority winner, the defeat sequence is valid according to ValidDefeats, and the round that follows after defeating all the candidates in the defeat sequence Elects C.
2.3 Implementation
The specification states which outcomes are permitted but does not compute them. Since we do not model the procedures that resolve ties, an election can have more than one permitted outcome, and the function tabulate returns all of them as an RCVTree: a finite rooted tree whose edges and leaves are labeled by candidates. Figure 3 represents the defeat order of a real Alaska contest as an RCVTree. The full Lean definitions of RCVTree and tabulate can be found in Appendix A.
Continuing: {Bye, Begich, Palin, Peltola} {Begich, Palin, Peltola} {Palin, Peltola} Peltola
Fig. 3. The RCVTree representing the 2022 general election for U.S. Representative.
A node has more than one child only when two or more candidates are tied for the fewest votes. The statute resolves such ties by lot under (e)(3), so the outcome of tiebreaks cannot be determined from ballots. To represent this, we do what in computational social choice is called
Subsection (e)(3) addresses only a tie between two last-place candidates; the statute says nothing about a tie among three or more. CanDefeat handles multi-way ties, which we take to be the evident intent.
parallel-universes tiebreaking (PUT) [14, 46] and report all PUT winners: a candidate is a PUT winner if some way of breaking the ties makes that candidate win. Appendix B gives an example of an RCVTree with a tie.
Reading the edge labels along a path from the root to a leaf gives the order in which the candidates are defeated. The last label on each path (not the label of the leaf node) is the candidate who is not elected in the final round. Under (d)(1), that candidate is not defeated; the other candidate is elected. When a candidate has a majority in the initial tabulation, the tree is a single leaf and the path is empty.
The function tabulate produces exactly the winners permitted by our interpretation of the statute. That fact is formalized as the following theorem:
THEOREM 2.1 (tabulate_correct). For every election e, list of candidates D and candidate c, the statutory model permits c to be elected after the candidates in D are defeated in order iff the RCVTree computed by tabulatee has a path to a leaf labeled by c whose labels, other than the last, are D.
Theorem 2.1 is a result about the relationship between the function and the specification gleaned from the statute. We can specialize it to state theorems that convey “this CVR under this interpretation elects this candidate,” but that requires importing entire CVRs into the theorem as a definition rather than using it as input to an executable function. To make election-specific proofs tractable, we group identical rankings into ballot profiles: the 192,289 ballots cast in the 2022 special election contain just 691 distinct ranking patterns. We prove that tabulating the profiles gives the same result as tabulating the full set of represented ballots. For all 115 contests, we establish the statutory and reproduction models’ complete tabulation trees with computations checked by Lean’s kernel.
Assuming the CVRs are published and parsed correctly, both models produce the same single-path (i.e. no ties) RCVTree in every contest. Together with Theorem 2.1, the statutory-model equalities establish that these represent the unique permitted winner and defeat order for each contest. We also prove that the reproduction model's per-round ballot disposition counts are equal to those from the published reports. Thus, both the election outcomes and their agreement with published round-by-round results are expressed as formally checked propositions.
3 Empirical Results
After writing our statutory model (Section 2), which we developed independently of the published results and the vendor, we constructed a variation of our code that reproduces the published round-by-round results of all 22 multi-round contests. The Division’s report for the 2022 special general election [7, p. 1] lists some of its tabulator’s settings, and we took those as given. We varied the remaining rules individually, including how to treat a duplicate ranking, and whether a ranking that marks only a write-in counts as skipped. We compared each variant with every number in the 22 round-by-round reports: each candidate’s votes and the number of blank, exhausted and overvoted ballots in every round. Among the rule combinations we tested, exactly one produced a result that matched the published tallies (see Appendix C).
We refer to this model as the reproduction model. The reproduction model reuses much of the formal representations developed for the statutory model to enable easy comparisons between the two readings. We use the models to identify individual ballots that they count differently, for example a ballot that one model counts toward a candidate in a given round while the other treats it as inactive.
After downloading the CVRs, run lake exe alaska <export-dir> [contest-id] to tabulate a selected contest. For example, lake exe alaska cvr/2022-special 69 computes the tabulation for the 2022 special U.S. House election.
Lucy Horowitz
We analyzed 115 contests using the published cast vote records from Alaska’s August 2022 special general election, November 2022 general election, and November 2024 general election [3, 4, 8]. We compare our tabulations with the corresponding official results [5, 6, 9].
The Division describes the CVR as the tabulator’s input but notes that it excludes ballots counted only by hand [5, “Cast Vote Record”]. Our comparison assumes that the published CVRs contain the ballots used for the corresponding ranked-choice reports. No write-in candidates qualified in any of the 115 analyzed contests. We also assume that the same set of ballot-reading rules was applied to all of the reported contests.
The reproduction model combines Truncate for overvotes with Hybrid for duplicate rankings (refer to Table 1 for a summary of the rules). Under Hybrid, repeated candidate marks are disregarded when determining whether a ranking is blank but retained when detecting overvotes. The Division’s 2022 general-election results glossary says that write-in rankings are not treated as blank or skipped merely because they are for write-ins [5, “Exclude unresolved write-ins”]. However, the reproduction model treats write-in marks as subject to Hybrid like other repeated marks.
Across 115 contests, 75 ballot records count for a candidate under the statutory model in at least one round in which they are inactive under the reproduction model. That is, the reproduction model counts certain ballots in fewer rounds than does the statutory model. These differences occur in nine contests with published multi-round reports and in the 2022 governor contest, where one ballot counts for Walker/Drygas under the statutory model but is inactive under the reproduction model in the initial tabulation. The greatest numbers of differences were found in the 2022 special-election U.S. House contest (29), the 2024 U.S. House contest (17), and the 2022 general-election U.S. House contest (14). The comparisons below establish how the models treat individual records, but their treatment by the deployed software is inferred from the reproduction model.
Overall, 34,836 ballot records contain duplicate rankings and 9,535 contain overvotes. To separate the two mechanisms for treating these ballot errors, we compare both models with an intermediate model combining Truncate with Retain. With Retain fixed, replacing Stop with Truncate makes three ballots inactive in the final round that would otherwise count for a candidate: two for Murkowski in the 2022 general-election U.S. Senate contest and one for Palin in the U.S. House contest. With Truncate fixed, replacing Retain with Hybrid makes 72 additional ballots inactive in at least one round in which they would otherwise count for a candidate. These two groups are disjoint and together account for all 75 differences between the statutory and reproduction models. Both models elect the same winners and follow the same defeat orders in all 115 contests. Their final margins differ by at most seven votes, attained in the 2022 special election for U.S. Representative. As such, simply comparing winners would not reveal the differences in the models.
The fact that the two models agree on winners does not make these differences immaterial. Alaska’s published final-round tallies include margins as small as seven votes (2022 House District 15). Although this contest does not have ballot-treatment differences between our models, the rules require justification independently of the observed margins of victory.
Going forward, we will focus on the 2022 general-election contest for U.S. Representative as an illustrative example because it exhibits both discrepancy mechanisms: 13 ballots differ because of duplicate treatment and one because of overvote treatment. The 2022 special election has more differing ballots, but all 29 differences arise from duplicate treatment.
Figure 4 and Table 2 illustrate the two mechanisms by which the ballots can be interpreted differently. Ballot (a) illustrates the duplicate-ranking mechanism affecting 13 ballots. Ballot (b) is the sole differing ballot in this contest attributable to overvote treatment. Ballot (c), discussed
Each ballot-contest record is counted once, even if its treatment differs in several rounds.
| United States Representative | |||||
|---|---|---|---|---|---|
| 1st | 2nd | 3rd | 4th | 5th | |
| Begich, Nick | ● | ● | ● | ○ | ○ |
| Bye, Chris | ○ | ○ | ○ | ○ | ○ |
| Palin, Sarah | ○ | ○ | ○ | ● | ○ |
| Peltola, Mary S. | ○ | ○ | ○ | ○ | ○ |
| Write-in: | ○ | ○ | ○ | ○ | ○ |
(a) Ballot 82311.
| United States Representative | |||||
|---|---|---|---|---|---|
| 1st | 2nd | 3rd | 4th | 5th | |
| Begich, Nick | ● | ○ | ○ | ○ | ○ |
| Bye, Chris | ○ | ● | ○ | ○ | ○ |
| Palin, Sarah | ○ | ○ | ● | ○ | ○ |
| Peltola, Mary S. | ○ | ○ | ○ | ● | ○ |
| Write-in: | ○ | ● | ○ | ○ | ○ |
(b) Ballot 241786.
| United States Representative | |||||
|---|---|---|---|---|---|
| 1st | 2nd | 3rd | 4th | 5th | |
| Begich, Nick | ● | ● | ○ | ○ | ○ |
| Bye, Chris | ○ | ○ | ○ | ○ | ○ |
| Palin, Sarah | ○ | ● | ○ | ○ | ○ |
| Peltola, Mary S. | ○ | ○ | ○ | ○ | ○ |
| Write-in: | ○ | ○ | ○ | ○ | ○ |
(c) Ballot 101053.
Fig. 4. Ballot records reconstructed from the published CVR for Alaska's November 2022 general election [3].
| ballot | model | round 1 | round 2(Bye defeated) | round 3(Begich defeated) |
|---|---|---|---|---|
| (a) 82311 | statutory reproduction | BegichBegich | BegichBegich | Palininactive (two skipped rankings) |
| (b) 241786 | statutory reproduction | BegichBegich | BegichBegich | Palininactive (overvote at rank 2) |
Table 2. The results of ballots (a) and (b) in each round, under the statutory and reproduction models.
in Section 3.2, illustrates why removing repeated marks produces a different result from either retaining them or applying Hybrid.
The statutory model counts all 14 ballots for some candidate in every round. The reproduction model assigns them to the same candidates until they become inactive: 13 in the final round and one in round 2. The latter ballot (in class (a)) ranks Bye first through fourth and Peltola fifth. In the final round, the statutory model assigns 10 of the 14 ballots to Palin and four to Peltola. Peltola's margin of victory is consequently reduced by six votes: she receives 24,786 in the final round under the statutory model, compared with 24,792 under the reproduction model.
3.1 Reproduction vs. Statutory Model
Both models defeat Bye and then Begich, leaving Palin and Peltola in the final round. Table 2 traces ballots (a) and (b) through that sequence.
Table 2 isolates the two mechanisms of difference. In Ballot (a), Hybrid treats the repeated marks for Begich as blank, while Retain preserves them and transfers the vote to Palin after Begich is defeated. In Ballot (b), Truncate ignores all preferences at and below the overvote, while Stop passes over that rank because neither Bye nor the write-in candidate is continuing when Begich is defeated. This allows the vote to reach Palin.
This result depends on the defeat order. Had Begich been defeated before Bye, ranking 2 would have become the ballot's highest continuing ranking while Bye remained continuing. Stop would then have made the ballot permanently inactive, including after Bye's subsequent defeat (overvoteBallot_defeat_order).
It is clear that the voter strictly prefers Bye to Palin and Palin to Peltola, but under Truncate these kinds of ascertainable preferences are never included in the final tabulation.
Stop's dependence on the order of candidate defeats raises a separate question about whether or not that is a desirable property of a treatment of overvotes. We do not attempt to answer that question here.
Lucy Horowitz
3.2 Hybrid vs. Retain and Remove
Ballot (a) distinguishes Retain from Hybrid and Remove; Ballot (c) distinguishes Remove from Hybrid and Retain. Alvarez-Rivera previously identified the duplicate treatment needed to reproduce the 2022 results in [10].
Ballot (c) shows why removing repeated marks before both checks also changes the result. Its second ranking contains a repeated mark for Begich alongside a mark for Palin. Hybrid retains the second mark for Begich when detecting overvotes, so the reproduction model makes the ballot inactive when Begich is defeated. Remove would erase that repeated mark, leaving Palin alone at ranking 2 and allowing the ballot to count for her. Retain agrees with Hybrid on this ballot.
Holding Truncate fixed, replacing Hybrid with Retain allows 13 ballots in this contest to count for a candidate in a round where the reproduction model makes them inactive. Replacing Hybrid with Remove does so for 15 ballots. Across all 115 contests, the corresponding counts are 72 and 46 ballot records. Neither alternative reproduces all the published reports: with Retain, at least one candidate tally or inactivity-category count differs from the published report in 11 of the 22 multi-round contests; with Remove, this occurs in eight. Table 4 in Appendix D presents these results for each contest.
4 Legal Analysis
Alaska courts employ a “sliding-scale” approach to statutory interpretation: the clearer the statutory language, the stronger the evidence of contrary legislative purpose or intent must be. Statutory provisions are interpreted in context, with attention to their language, structure, and purpose [44].
Alaska courts have also consistently favored reasonable interpretations of election statutes that preserve votes rather than unnecessarily disenfranchise voters. In Carr v. Thomas, the Alaska Supreme Court emphasized that courts should favor reasonable statutory constructions that avoid disenfranchisement [41, pp. 626–627]. In Miller v. Treadwell, the court reaffirmed this principle, holding that election statutes should be interpreted to preserve voters' ascertainable choices rather than exclude votes for technical errors [43, pp. 869–870].
4.1 Overvotes
The statutory text favors Stop: both (e)(1) and (g)(2) condition inactivity on an overvote at the highest continuing ranking. Truncate blocks lower preferences even when no candidate at the overvoted rank remains continuing.
The strongest argument in favor of Truncate rests on the word “encountered” in subsection (e)(1). A tabulator reading rankings in order encounters an overvote before reaching any lower preference. However, the word is immediately qualified by “at the highest ranking for a continuing candidate.” Reading “encountered” as sufficient by itself would deprive that qualification of operative significance. The same reading must also account for subsection (g)(2), which restates the highest-continuing-ranking condition without the word “encountered.” The Division’s nonmandatory explanatory materials do not resolve this interpretive question. Its results glossary [5, entries “Skip overvoted rankings” and “Exhausted”] states that an overvote invalidates all lower rankings, while its definition of an exhausted ballot retains the statutory qualification concerning
Treating “encounter” as sufficient resembles our interpretation of “disregard” as not erasing marks (Section 2.1.4). However, our reading is that the regulation to disregard duplicate marks is redundant with the statute: a candidate must already be defeated by the time their second ranking could be reached. By contrast, “highest continuing ranking” has additional semantic content that would be lost without handling it separately.
the highest continuing ranking. The glossary thus announces Truncate without explaining how it follows from the qualified inactivity condition presented simultaneously.
A complication arises from another provision enacted by Ballot Measure 2. AS 15.58.020(a)(13) requires the Division to inform voters in the official election pamphlet that their ballot (not just certain rankings on that ballot) “will not be counted if you assign the same ranking to more than one candidate for the same office.” Taken literally, this statement describes a rule more restrictive than either Stop or Truncate: both models count a ballot’s unambiguous higher preferences even when an overvote occurs at a lower ranking. The pamphlet language appears to be inconsistent with both operative tabulation provisions rather than clearly favoring either interpretation. Although it forms part of Ballot Measure 2 and bears on its interpretation, it does not independently determine the conditions under which an overvote renders a ballot inactive.
The Alaska Supreme Court considered an analogous discrepancy from the same ballot measure in Alaska Democratic Party v. Beecher. That case concerned whether the Division could successively replace multiple candidates who withdrew from the general-election ballot. The court observed that AS 15.58.020(a)(13), as enacted by Ballot Measure 2, prescribed pamphlet language suggesting that only one candidate could be replaced, whereas the operative replacement provision admitted a broader interpretation. The court declined to treat the language from the pamphlet as controlling, observing that the drafters had not used the same language in the provision actually governing candidate replacement. It concluded that the contradiction, at most, further highlighted the statute's ambiguity [44, slip op. p. 18].
Moreover, if Truncate is what the authors had in mind when writing the statute, it would have been straightforward for them to specify this. By 2018, Colorado’s election rules expressly provided that an overvote invalidates the overvoted ranking and all lower rankings [13, rule 26.8.1]. Colorado had specified and implemented Truncate before Alaska adopted Ballot Measure 2. RCTab, an open-source tabulator, also documents an “Exhaust immediately” overvote option in its version 2.0 user guide [37, “Voter Error Rules Tab”]. Because such language already existed and was in use for similar purposes but was not used in the statute, we should be cautious about assuming this was the intended interpretation.
The distinction between Stop and Truncate also has consequences for ballot inclusion. Our formal results establish that, for any set of continuing candidates, every ballot that Truncate counts for a candidate is counted for the same candidate under Stop, and that some ballots are counted under Stop but not under Truncate. Thus, Truncate excludes some votes that Stop would count, while Stop excludes none that Truncate would count. Although Miller concerned the validity of write-in votes rather than overvotes, its preference for preserving ascertainable voter choices provides an additional reason to favor Stop, provided that the statutory text admits both interpretations.
4.2 Duplicate Rankings
The reproduction model raises a separate interpretive question concerning duplicate rankings. Under 6 AAC 25.072, when a voter ranks the same candidate more than once, the election board must count the candidate at their highest ranking and “disregard the remaining rankings for that candidate.” The regulation does not specify how this instruction interacts with the statutory definitions of overvotes and skipped rankings.
The reproduction model follows neither Remove nor Retain. Instead, Hybrid follows Remove when detecting skipped rankings and follows Retain when detecting overvotes. Consequently, a lower duplicate ranking can be absent for one statutory test while remaining present for another.
See isVoteFor_of_isVoteFor_truncateAtOvervote for the inclusion and isVoteFor_truncateAtOvervote_ssubset_isVoteFor for a ballot showing that it is strict.
Lucy Horowitz
Different treatment in different contexts is not inherently impermissible. Alaska courts have nevertheless emphasized that statutory provisions should be interpreted together to produce a “harmonious whole.” In Peninsula Marketing Association v. State, the Alaska Supreme Court rejected an interpretation that applied equivalent statutory language differently across related provisions without a sufficient basis for that distinction [42, p. 921].
One possible justification would distinguish between disregarding a ranking for purposes of assigning a vote to a candidate and retaining the physical mark for purposes of detecting an overvote. But that distinction does not explain why the same physical mark is treated as “blank” (see Section 2.1.3) when detecting skipped rankings. Neither the regulation’s instruction to disregard remaining rankings for that candidate nor the statutory definitions expressly establish this distinction.
Alternative treatments are documented in other ranked-choice voting systems. With exhaustion on repeated candidates disabled, RCTab's version 2.0 documentation describes repeated rankings as excluded-candidate rankings rather than skipped rankings. Its documented sequence of checks retains the candidates at a rank for overvote detection, consistent with our interpretation [37, 38]. By contrast, Multnomah County, Oregon, expressly provides that a candidate's highest ranking that is not an overvote is retained, while lower rankings are treated as skipped [32]. This resembles Remove, but actually specifies a completely separate interpretation of duplicate rankings. Dominion's version 5.17-CO::4 user guide lists configurable treatments of overvotes and skipped rankings [19, pp. 71–73]. Its automated test deck generator explicitly supports ballots with duplicate rankings [18, pp. 32–33], but neither guide specifies how duplicates are treated during tabulation or the order in which these checks are performed. It is therefore unclear whether Hybrid reflects a deliberate interpretive choice by the Division or an undocumented consequence of the tabulator's implementation.
Moreover, Hybrid’s treatment is not merely a matter of interpretive consistency. Our formal results establish that with Truncate fixed and for any set of continuing candidates, every ballot that Hybrid counts for a candidate is counted for the same candidate under Remove and under Retain, and that each of Remove and Retain counts some ballots that Hybrid does not. Hybrid therefore excludes votes that either alternative would count, without counting any votes that either alternative would exclude.
As with Truncate, this additional exclusion weighs against Hybrid under Alaska’s preference for preserving ascertainable voter choices. However, this does not necessarily settle which of Remove or Retain is preferable: each represents a possible interpretation of “disregard,” and the preference for counting votes does not override statutory requirements.
5 Related Work
Several previous studies have analyzed Alaska’s RCV elections using cast vote records. Alvarez-Rivera [10] identified the treatment of duplicate rankings necessary to reproduce the published results of Alaska’s 2022 elections. Pacuit [34] investigated the 2022 special general election, including the treatment of overvotes and skipped rankings, although the resulting tabulations do
We could not locate publicly available Alaska-specific Dominion technical documentation. We therefore consult the Colorado-specific guides, which document the same vendor’s Democracy Suite RCV tabulation software, including its configurable treatment of malformed ballots. These guides concern a different version and configuration, so we use them to assess what Dominion publicly documents.
See isVoteFor_truncateAtOvervote_dropDuplicates_of_isVoteFor_toReproduction and isVoteFor_truncateAtOvervote_of_isVoteFor_toReproduction for the inclusions, and isVoteFor_toReproduction_ssubset_isVoteFor_truncateAtOvervote_dropDuplicates and isVoteFor_toReproduction_ssubset_isVoteFor_truncateAtOvervote for ballots showing that they are strict.
not reproduce the published totals. Graham-Squire and McCune [24] reproduced the election totals and analyzed the election’s social choice properties, including its failure to elect the Condorcet winner and its susceptibility to voting paradoxes. Our work extends these investigations by constructing a model that reproduces the published round-by-round tallies and comparing it with an independently formalized interpretation of Alaska’s statutes.
The formal verification of ranked-choice voting algorithms is not new. Previous work has developed a framework for voting theory in Lean 3 and used it to verify properties of the Split Cycle voting method [26], and has verified IRV procedures in Dafny [12], Rocq [22, 35, 45], and other systems [15, 23]. However, much of this work begins with a specified voting rule and asks whether an implementation satisfies it. In our case, deciding what the rule should be is itself part of the problem.
A particularly close precedent is Free & Fair’s formal - rcv [21], which predates Alaska’s adoption of RCV. It develops a formalization of RCV in Rocq based on San Francisco’s election law. It explicitly identifies ambiguity in the statutory treatment of overvotes and adopts an interpretation informed by observed tabulation practices. Our work follows this approach to statutory formalization, but distinguishes the statutory specification from a model of observed tabulation behavior, allowing us to identify and analyze discrepancies between them in actual election results. The top-level implementation correctness proof in formal - rcv remains incomplete.
Catala [31] provides a language for translating legal requirements into executable code while preserving their relationship to the legal text. We share this goal, but chose Lean to support both our particular formalization and the broader FVDemocracy project for several reasons. Catala does not support explicit recursion, which we use to directly express the statute’s repeated rounds of tabulation. Moreover, in future work we plan to develop abstract frameworks for ballot interpretation (of course including alternative treatments of overvotes and duplicate rankings) in the same language as the statutory models, and prove relationships between those abstractions and particular statutory interpretations. Lean allows us to combine executable tabulation, statutory specifications, and general mathematical reasoning within one development.
In Slovenia, Bauer, Berčič, and Zagorc produced an independent validation of the 2022 parliamentary elections [11]. Through independent computations, their work identified errors in election software that initially resulted in the wrong candidates being reported as elected. They also investigated ambiguities and deficiencies in the governing electoral law.
Finally, Delemazure and Peters [17] study extensions of IRV that permit voters to express indifference by ranking multiple candidates equally. Their results provide a voting-theoretic perspective on the preferences expressed by overvoted rankings, which existing U.S. RCV tabulation rules generally do not treat as valid expressions of indifference.
6 Conclusion and Future Work
This case study connects a formal interpretation of Alaska’s election rules, a verified implementation thereof, and a comparison with the published election results. Making these interpretations explicit can help legislators, administrators, and developers resolve disagreements before they affect elections.
We propose two main directions for future work. First, similar issues arise in other jurisdictions. Maine’s RCV statute also refers to an overvote at the highest continuing ranking, while its regulations invalidate rankings at or below an overvote [28, 29]. The work done for Alaska’s elections can be repeated to better understand RCV rules around the country.
Second, we plan to develop a general framework for ballot interpretation rules. This will characterize relationships between rules and interpretations, generate distinguishing examples, and
Lucy Horowitz
identify when these differences can affect election outcomes. Such a framework also needs a formal account of ascertainable voter preferences.
Acknowledgments
We used large language models to assist with proof construction and manuscript preparation, as described in Appendix E.
We would like to thank Wes Holliday for suggesting the investigation that led to this work and for his guidance and feedback throughout the project.
References
[1] Alaska Division of Elections. [n. d.]. Election Results. Alaska Division of Elections. Retrieved October 14, 2026 from https://www.elections.alaska.gov/election-results/ Accessed October 14, 2026.
[2] Alaska Division of Elections. 2020. Official Election Pamphlet: 2020 General Election — Region III. Official Election Pamphlet. Alaska Division of Elections. https://www.elections.alaska.gov/election/2020/General/OEPBooks/2020%20AK%20Region%20III%20pamphlet_FINAL-web.pdf Ballot Measure No. 2 at pp. 77–108.
[3] Alaska Division of Elections. 2022. Cast Vote Record: 2022 General Election, November 8, 2022. Democracy Suite CVR export, version 5.5.52.6. Retrieved October 17, 2026 from https://www.elections.alaska.gov/results/22GENR/rcv/CVR_Export.zip
[4] Alaska Division of Elections. 2022. Cast Vote Record: 2022 Special General Election for U.S. Representative, August 16, 2022. Democracy Suite CVR export, version 5.5.52.6. Retrieved October 17, 2026 from https://www.elections.alaska.gov/results/22SSPG/CVR_Export_20220908084311.zip
[5] Alaska Division of Elections. 2022. Election Results: 2022 General Election, November 8, 2022. Alaska Division of Elections. Retrieved October 17, 2026 from https://www.elections.alaska.gov/election-results/e/?id=22genr
[6] Alaska Division of Elections. 2022. Election Results: 2022 Special General Election for U.S. Representative, August 16, 2022. Alaska Division of Elections. Retrieved October 17, 2026 from https://www.elections.alaska.gov/election-results/e/?id=22sspg
[7] Alaska Division of Elections. 2022. RCV Tabulation, 2022 Special General Election, August 16, 2022: U.S. Representative (Special General). Retrieved October 17, 2026 from https://www.elections.alaska.gov/results/22SSPG/RcvDetailedReport.pdf Official results, printed September 2, 2022.
[8] Alaska Division of Elections. 2024. Cast Vote Record: 2024 General Election, November 5, 2024. Democracy Suite CVR export, version 5.17.18.1. Retrieved October 17, 2026 from https://www.elections.alaska.gov/results/24GENR/CVR_Export_20241130154411.zip
[9] Alaska Division of Elections. 2024. Election Results: 2024 General Election, November 5, 2024. Alaska Division of Elections. Retrieved October 17, 2026 from https://www.elections.alaska.gov/election-results/e/?id=24genr Results for the 2024 election; webpage last updated January 29, 2025.
[10] Manuel Alvarez-Rivera. 2023. The Ranked Choice Voting Elections of 2022 in Alaska and Maine. Fruits and Votes. Retrieved October 17, 2026 from https://fruitsandvotes.wordpress.com/2023/01/15/the-ranked-choice-voting-elections-of-2022-in-alaska-and-maine/
[11] Andrej Bauer, Katja Berčič, and Saša Zagorc. 2023. Volilni sistemi v Sloveniji za matematike. In Konferenca slovenskih matematikov 2023. https://conferences.mattheo.si/event/41/papers/409/files/154-volilni-sistemi-dmfa.pdf
[12] Robert Büttner, Fabian Franz Dießl, Patrick Janoschek, Ivana Kostadinovic, Henrik Oback, Kilian Voß, Franziska Alber, Roland Herrmann, Sibylle Möhle, and Philipp Rümmer. 2025. Verification of E-Voting Algorithms in Dafny. arXiv:2512.21084 [cs.LO] doi:10.48550/arXiv.2512.21084 arXiv:2512.21084 [cs.LO].
[13] Colorado Secretary of State. 2018. Election Rules: Rule 26, Ranked Voting Method. 8 CCR 1505-1, rule 26.8.1. https://www.coloradosos.gov/pubs/rule_making/files/2018/20180822ElectionRules-8CCR1505-1.pdf As temporarily adopted and effective August 22, 2018.
[14] Vincent Conitzer, Matthew Rognlie, and Lirong Xia. 2009. Preference Functions That Score Rankings and Maximum Likelihood Estimation. In Proceedings of the Twenty-First International Joint Conference on Artificial Intelligence (IJCAI-09). Pasadena, California, 109–114. https://www.ijcai.org/Abstract/09/029
[15] Jeremy E. Dawson, Rajeev Goré, and Thomas Meumann. 2015. Machine-Checked Reasoning About Complex Voting Schemes Using Higher-Order Logic. In E-Voting and Identity (Lecture Notes in Computer Science). Springer, Cham, 142–158. doi:10.1007/978-3-319-22270-7_9
[16] Leonardo de Moura and Sebastian Ullrich. 2021. The Lean 4 Theorem Prover and Programming Language. In Automated Deduction – CADE 28 (Lecture Notes in Computer Science, Vol. 12699). Springer, Cham, 625–635. doi:10.1007/978-3-030-79876-5_37
[17] Théo Delemazure and Dominik Peters. 2024. Generalizing Instant Runoff Voting to Allow Indifferences. arXiv:2404.11407 doi:10.48550/arXiv.2404.11407
[18] Dominion Voting Systems. 2023. Democracy Suite EMS Automated Test Deck User Guide. https://www.coloradosos.gov/pubs/elections/VotingSystems/DVS-DemocracySuite517/documentation/UGATDUserGuide5-17CO.pdf Version 5.17-CO::2.
[19] Dominion Voting Systems. 2023. Democracy Suite EMS Results Tally & Reporting User Guide. Version 5.17-CO::4, filed with the Colorado Secretary of State. Retrieved October 17, 2026 from https://www.coloradosos.gov/pubs/elections/VotingSystems/DVS-DemocracySuite517/documentation/UGRTRUserGuide5-17CO.pdf
[20] Nicole Fisher. 2026. Alaska Voters to Consider Ranked-Choice Voting Repeal Initiative in 2026 after Narrowest Defeat in State History in 2024. Ballotpedia News. Retrieved October 15, 2026 from https://news.ballotpedia.org/2026/01/07/alaska-voters-to-consider-ranked-choice-voting-repeal-initiative-in-2026-after-narrowest-defeat-in-state-history-in-2024/
[21] Free & Fair. 2015. formal-rcv: Some formalized developments of ranked-choice and instant-runoff voting schemes in Coq. GitHub repository. Retrieved October 18, 2026 from https://github.com/FreeAndFair/formal-rcv
[22] Milad K. Ghale, Rajeev Goré, Dirk Pattinson, and Mukesh Tiwari. 2018. Modular Formalisation and Verification of STV Algorithms. In Electronic Voting, Robert Krimmer, Melanie Volkamer, Véronique Cortier, Rajeev Goré, Manik Hapsara, Uwe Serdült, and David Duenas-Cid (Eds.). Lecture Notes in Computer Science, Vol. 11143. Springer, Cham, 51–66. doi:10.1007/978-3-030-00419-4_4
[23] Shilpi Goel and Mayank Manjrekar. 2018. A Formalization of an Instant Run-Off Voting Scheme. Rump-session presentation at the 15th International Workshop on the ACL2 Theorem Prover and Its Applications. https://www.cs.utexas.edu/~moore/acl2/workshop-2018/slides/goel/irv.pdf
[24] Adam Graham-Squire and David McCune. 2022. A Mathematical Analysis of the 2022 Alaska Special Election for US House. arXiv:2209.04764 doi:10.48550/arXiv.2209.04764
[25] Tait Helgaas. 2025. The Instant Runoff Voting Patchwork: Handling Voter Errors and Ballot Length. University of Pennsylvania Law Review 173, 4 (2025), 1217–1267. https://pennlawreview.com/2025/04/16/the-instant-runoff-voting-patchwork-handling-voter-errors-and-ballot-length/
[26] Wesley H. Holliday, Chase Norman, and Eric Pacuit. 2021. Voting Theory in the Lean Theorem Prover. In Logic, Rationality, and Interaction (LORI 2021) (Lecture Notes in Computer Science, Vol. 13039). Springer, Cham, 111–127. doi:10.1007/978-3-030-88708-7_9
[27] Lucy Horowitz. 2026. FVDemocracy: Alaska Statute and Lean Formalization. Companion website and source repository. https://lucyhorowitz.github.io/FVDemocracy/ Source: https://github.com/lucyhorowitz/FVDemocracy.
[28] Maine Department of the Secretary of State. 2018. Rules Governing the Administration of Elections Determined by Ranked-Choice Voting. 29-250 C.M.R. ch. 535, § 4(2)(B)(1). https://www.maine.gov/sos/sites/maine.gov.sos/files/content/assets/250c535-2018-230-complete.pdf
[29] Maine Legislature. [n. d.]. Determination of Winner in Election for an Office Elected by Ranked-Choice Voting. 21-A M.R.S. § 723-A(1)(D)-(E). https://legislature.maine.gov/statutes/21-A/title21-Asec723-A.html Accessed October 18, 2026.
[30] David McCune. 2023. Ranked Choice Bedlam in a 2022 Oakland School Director Election. doi:10.48550/arXiv.2303.05985 arXiv:2303.05985 [econ.GN] version: 1.
[31] Denis Merigoux, Nicolas Chataing, and Jonathan Protzenko. 2021. Catala: A Programming Language for the Law. Proceedings of the ACM on Programming Languages 5, ICFP (Aug. 2021), 1–29. doi:10.1145/3473582
[32] Multnomah County. 2025. Multnomah County Code, Chapter 5: Elections. https://multco.us/file/chapter_5: elections/download § 5.304(C), enacted by Ordinance No. 1337.
[33] National Conference of State Legislatures. 2026. Ranked Choice Voting. https://www.ncsl.org/elections-and-campaigns/ranked-choice-voting Updated March 23, 2026.
[34] Eric Pacuit. 2023. Election Analysis: 2022 Alaska Special General Election. Jupyter notebook, GitHub. Retrieved October 18, 2026 from https://github.com/voting-tools/election-analysis/blob/main/alaska_2022.ipynb
[35] Dirk Pattinson and Carsten Schürmann. 2015. Vote Counting as Mathematical Proof. In AI 2015: Advances in Artificial Intelligence, Bernhard Pfahringer and Jochen Renz (Eds.). Lecture Notes in Computer Science, Vol. 9457. Springer, Cham, 464–475. doi:10.1007/978-3-319-26350-2_41
[36] Stephen Pettigrew and Dylan Radley. 2026. Overvotes, Overranks, and Skips: Mismarked and Rejected Votes in Ranked Choice Voting. Political Behavior 48, 1 (March 2026), 229–251. doi:10.1007/s11109-025-10028-4
[37] Ranked Choice Voting Resource Center. [n. d.]. Quick Start. RCTab Documentation, version 2.0. Retrieved September 29, 2026 from https://rctab-docs.readthedocs.io/en/v2.0/user_guide/user_guide.html#voter-error-rules-tab Accessed September 29, 2026.
[38] Ranked Choice Voting Resource Center. [n. d.]. Section 02: Software Design and Specifications. RCTab Documentation, version 2.0. Retrieved October 18, 2026 from https://rctab-docs.readthedocs.io/en/v2.0/tdp/software_design_and_
Lucy Horowitz
specifications.html Section “Tabulation of CVRs”; Accessed October 18, 2026.
[39] State of Alaska. [n. d.]. Duplicate Rankings. Alaska Admin. Code tit. 6, § 25.072. Retrieved October 17, 2026 from https://www.akleg.gov/basis/aac.asp#6.25.072 Accessed October 17, 2026.
[40] State of Alaska. [n. d.]. General Procedure for Ballot Count. Alaska Stat. § 15.15.350. Retrieved October 17, 2026 from https://www.akleg.gov/basis/statutes.asp#15.15.350 Subsections (c)-(g) added by 2020 Ballot Measure No. 2, sec. 24; Accessed October 17, 2026.
[41] Supreme Court of Alaska. 1978. Carr v. Thomas. 586 P.2d 622 (Alaska 1978). https://law.justia.com/cases/alaska/supreme-court/1978/4261-1.html No. 4261, decided November 17, 1978.
[42] Supreme Court of Alaska. 1991. Peninsula Marketing Association v. State. 817 P.2d 917 (Alaska 1991). https://law.justia.com/cases/alaska/supreme-court/1991/s-3603-1.html No. S-3603, decided September 20, 1991.
[43] Supreme Court of Alaska. 2010. Miller v. Treadwell. 245 P.3d 867 (Alaska 2010). https://law.justia.com/cases/alaska/supreme-court/2010/s-14112-1.html Nos. S-14112, S-14121.
[44] Supreme Court of Alaska. 2025. Alaska Democratic Party v. Beecher. 572 P.3d 556 (Alaska 2025). https://appellate-records.courts.alaska.gov/CMSPublic/UserControl/OpenOpinionDocument?docNumber=7776&caseNumber=S19231&opinionType=OP No. S-19231, Op. No. 7776.
[45] Florrie Verity. 2016. Electronic Vote Counting as Mathematical Proof. Bachelor of Philosophy (Honours) thesis, Australian National University. https://tqft.net/web/research/students/FlorenceVerity/thesis.pdf
[46] Jun Wang, Sujoy Sikdar, Tyler Shepherd, Zhibing Zhao, Chunheng Jiang, and Lirong Xia. 2019. Practical Algorithms for Multi-Stage Voting Rules with Parallel Universes Tiebreaking. In Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 33. AAAI Press, 2189–2196. arXiv:1901.09791 [cs.AI] doi:10.1609/aaai.v33i01.33012189 inductive Cand where | writeIn (c : Nat) | regular (c : Nat)
structure Election where ballots : List Ballot cands : List Cand cands_unique : cands.Nodup
structure Ballot where ballotIndex : Nat ranks : List (List Cand)
structure Round where continuing : List Cand ballots : List Ballot
Listing 1. Candidates, ballots, elections, and rounds.
A Lean Listings
Section 2.3 describes the tree returned by tabulate. This appendix gives the definitions of the tree and of tabulate.
inductive RCVTree where | winner : Cand → RCVTree | branch : List (Cand × RCVTree) → RCVTree
A leaf winner c records that candidate c is elected. A node branch children has, for each pair in children, an edge labeled d leading to the subtree t. In a round with three or more continuing candidates, d is a candidate the round CanDefeats, and t contains every permitted continuation of the tabulation after d is defeated. In the final round, d is the candidate who is not elected, and t is the leaf for the elected candidate. The type RCVTree doesn't enforce this correspondence to an election. We compute the outcome of an election as an RCVTree using the following function:
def tabulate (e : Election) : RCVTree := let cont1 := initialCands e match majorityWinner cont1 e.ballots with | none => tabulateRounds cont1 (e.ballots.filter fun b => decide (¬ MeetsInactivityCondition cont1 b)) | some c => RCVTree.winner c
It computes an RCVTree by following the rules laid out in (d). First, the function initialCands checks if the write-ins qualify, and removes them from the list of continuing candidates if they do not. Then it checks if any candidate wins a majority of first-choice votes in the first round. If so, the resulting RCVTree is just the leaf node labeled by that candidate. If not, it follows tabulateRounds, which executes the recursive tabulation procedure described in the statute, stopping recursion when two candidates remain and electing the one that has more votes in that round.
We also prove that the first-round majority check and the final round do not need to be treated separately. Simply running the intermediate rounds from the initial set of continuing candidates until there is one remaining is guaranteed to elect the same candidate(s) as tabulate. We prove this as exists_elected_iff_mem_winners_recurseRounds.
B An Election Decided by Tiebreaking
Figure 5 shows an example of a contest with three candidates and seven ballots. In the initial tabulation, A has three votes and B and C have two each, so no candidate has a majority. B and C tie for the fewest votes, so either may be defeated. If B is defeated, B's ballots count for C, who wins the final round with four votes to A's three. If C is defeated, C's ballots count for A, who wins the final round with five votes to B's two. The resolution of the tie therefore determines the winner, so this election's associated tree records both possibilities. In the example, the paths are
Lucy Horowitz
to and to , so the specification permits to be elected after is defeated, and to be elected after is defeated.
| Ballots | Ranking |
|---|---|
| 3 | |
| 2 | |
| 2 |

Fig. 5. An election whose outcome is determined by tiebreaking.
C Identifying the Reproduction Model
The Division's report for the 2022 special general election lists its tabulator's settings [7, p. 1]: unresolved write-ins are excluded, overvoted rankings are not skipped, and a ballot is exhausted when two or more rankings are skipped. We took these settings as a starting point for the reproduction model. We changed one of the remaining rules at a time and compared each variant with the 22 published round-by-round reports. Table 3 gives the number of reports each variant matches. Only the reproduction model matches all 22.
| change from the reproduction model | # of reports matched on candidate votes | # of reports matched on all counts |
|---|---|---|
| none (reproduction model: Truncate, Hybrid) | 22 | 22 |
| Stop instead of Truncate | 20 | 19 |
| Retain instead of Hybrid | 13 | 11 |
| Remove instead of Hybrid | 14 | 14 |
| a ranking marking only write-ins is blank | 12 | 12 |
| a ranking with no continuing candidate is blank | 0 | 0 |
| one skipped ranking makes a ballot inactive | 0 | 0 |
| skipped rankings never make a ballot inactive | 0 | 0 |
| statutory model (Stop, Retain) | 13 | 11 |
Table 3. Number of published round-by-round reports matched by the reproduction model and by variants that each change one of its rules.
A variant matches a report “on candidate votes” if every candidate’s tally agrees in every round, and “on all counts” if the numbers of blank, exhausted and overvoted ballots also agree. These do not differ very often, but they just represent ballots being counted as inactive for different reasons by different rule sets.
D Multi-Round Contests
Table 4 lists the 22 contests that went past the initial round, and the 2022 governor contest. For each contest it gives the final-round margin under the statutory and reproduction models, the number of ballot records the two models count differently in some round, divided by the rule responsible, and whether each of four rule combinations matches the published report. Among the 93 contests decided in the initial round, the models count a ballot differently only in the 2022 governor contest, where one ballot differs because of duplicate treatment.
| contest | ballots | rounds | final margin | differing ballots between T/H and S/Ret | matches report | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| stat. | repr. | overvote | duplicate | S/H | T/Ret | T/Rem | S/Ret | |||
| 2022 special | ||||||||||
| U.S. House | 192,289 | 2 | 5,233 | 5,240 | 0 | 29 | - | - | - | - |
| 2022 general | ||||||||||
| U.S. Senate | 266,797 | 3 | 18,799 | 18,796 | 2 | 6 | - | - | - | - |
| U.S. House | 266,797 | 3 | 24,786 | 24,792 | 1 | 13 | - | - | - | - |
| Senate D | 16,236 | 2 | 1,010 | 1,010 | 0 | 0 | ✓ | ✓ | ✓ | ✓ |
| Senate E | 17,437 | 2 | 1,932 | 1,932 | 0 | 0 | ✓ | ✓ | - | ✓ |
| Senate N | 13,776 | 2 | 1,813 | 1,813 | 0 | 0 | ✓ | - | ✓ | - |
| House 11 | 8,190 | 2 | 113 | 112 | 0 | 1 | ✓ | - | ✓ | - |
| House 15 | 7,709 | 2 | 7 | 7 | 0 | 0 | ✓ | ✓ | ✓ | ✓ |
| House 18 | 2,297 | 2 | 78 | 77 | 0 | 1 | ✓ | - | ✓ | - |
| House 28 | 7,098 | 3 | 1,184 | 1,184 | 0 | 0 | ✓ | ✓ | ✓ | ✓ |
| House 30 | 8,135 | 2 | 778 | 778 | 0 | 0 | ✓ | ✓ | ✓ | ✓ |
| House 31 | 5,330 | 2 | 515 | 515 | 0 | 0 | ✓ | ✓ | ✓ | ✓ |
| House 34 | 7,693 | 2 | 813 | 813 | 0 | 0 | ✓ | ✓ | ✓ | ✓ |
| 2024 general | ||||||||||
| U.S. House | 335,853 | 3 | 7,878 | 7,876 | 0 | 17 | ✓ | - | - | - |
| Senate D | 20,138 | 2 | 1,688 | 1,688 | 0 | 0 | ✓ | ✓ | - | ✓ |
| Senate F | 17,967 | 2 | 934 | 934 | 0 | 0 | ✓ | ✓ | ✓ | ✓ |
| Senate L | 20,340 | 2 | 1,952 | 1,953 | 0 | 1 | ✓ | - | - | - |
| House 6 | 11,798 | 2 | 489 | 488 | 0 | 1 | ✓ | - | ✓ | - |
| House 28 | 8,915 | 2 | 12 | 12 | 0 | 0 | ✓ | ✓ | ✓ | ✓ |
| House 36 | 9,382 | 3 | 917 | 915 | 0 | 2 | ✓ | - | - | - |
| House 38 | 3,707 | 3 | 137 | 137 | 0 | 0 | ✓ | - | ✓ | - |
| House 40 | 3,170 | 2 | 533 | 533 | 0 | 0 | ✓ | ✓ | ✓ | ✓ |
| decided in the initial round | ||||||||||
| 2022 Governor | 266,693 | 1 | 68,697 | 68,697 | 0 | 1 | ||||
| total | 3 | 72 | ||||||||
Table 4. The 22 multi-round contests in Alaska from 2022-2024 plus the one contest decided in the initial round in which the models count a ballot differently.
“Margin” is the winner’s lead over the runner-up in the final round. The differing ballots are those the statutory and reproduction models count differently in some round: “overvote” ballots differ between Stop and Truncate with Retain fixed, and “duplicate” ballots differ between Retain and Hybrid with Truncate fixed. A rule combination (S = Stop, T = Truncate, H = Hybrid, Ret = Retain, Rem = Remove) matches the report if every candidate’s tally and the numbers of blank, exhausted and overvoted ballots agree in every round. The reproduction model (T/H) matches every report. S/Ret is the statutory model.
E Use of Large Language Models
We used large language models (primarily Claude Opus 5.5 as a coding agent, occasionally GPT-6 Astra as a chat model) to help construct Lean proofs and some theorem statements, functions and properties after specifying them in natural language. This kind of human-computer pair programming is a particularly promising use of LLMs in formal verification: the proofs must be correct, but humans need not write them, since the Lean kernel can check them regardless of how they were produced. Moreover, as long as the human coder can judge the correctness of the declarations and step in to fix them when needed, LLMs can have a hand in writing them. What requires human judgment is deciding what to formalize and whether the definitions and statements actually capture the intended properties of the system. We either wrote or personally reviewed all major formal definitions and theorem statements. Automating the construction of proofs and intermediate declarations therefore lets us spend our time on the parts of formal verification that actually require human judgment, without sacrificing guarantees of correctness.
Lucy Horowitz
We also used LLMs to assist with revising portions of the manuscript, managing citations, and to identify potentially relevant legal precedent, including Alaska Supreme Court decisions concerning statutory interpretation and election law. We remain responsible for the interpretations and arguments presented in this paper.