\documentclass[11pt]{amsart} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{microtype} \usepackage{amsmath,amssymb,amsthm} \usepackage{booktabs,array} \usepackage[margin=1in]{geometry} \usepackage{xurl} \usepackage[colorlinks=true,linkcolor=blue,citecolor=blue,urlcolor=blue]{hyperref} \hypersetup{pdftitle={Arrow and Gibbard Satterthwaite Theorems in Lean},pdfauthor={Arthur Freitas Ramos; David Barros Hulak; Ruy J. G. B. de Queiroz},pdfsubject={Finite strict-ranking social choice impossibility formalizations},pdfkeywords={Arrow theorem, Gibbard Satterthwaite, Lean 4, social choice}} \newtheorem{theorem}{Theorem}[section] \newtheorem{lemma}[theorem]{Lemma} \newtheorem{proposition}[theorem]{Proposition} \theoremstyle{definition}\newtheorem{definition}[theorem]{Definition} \theoremstyle{remark}\newtheorem{remark}[theorem]{Remark} \newcommand{\Nat}{\mathbb N} \newcommand{\Ballot}{\mathcal B} \newcommand{\Profiles}{\mathcal P} \newcommand{\pref}{\succ} \newcommand{\code}[1]{\texttt{\small #1}} \setlength{\emergencystretch}{1em} \newcommand{\Pred}{\operatorname{Pred}} \title[Arrow and Gibbard Satterthwaite in Lean]{Arrow and Gibbard Satterthwaite Theorems in Lean} \author{Arthur Freitas Ramos} \author{David Barros Hulak} \author{Ruy J. G. B. de Queiroz} \date{October 1, 2026} \subjclass[2020]{91B14, 68V20} \keywords{social choice, Arrow theorem, Gibbard--Satterthwaite theorem, decisive coalition, strategy-proofness, Lean 4, formal verification} \thanks{Author ORCID identifiers: Arthur Freitas Ramos, \href{https://orcid.org/0009-0003-3568-0325}{0009-0003-3568-0325}; David Barros Hulak, \href{https://orcid.org/0009-0002-8056-1774}{0009-0002-8056-1774}; Ruy J. G. B. de Queiroz, \href{https://orcid.org/0000-0003-1482-0977}{0000-0003-1482-0977}.} \thanks{Copyright 2026 the authors. This manuscript is licensed under \href{https://creativecommons.org/licenses/by/4.0/}{Creative Commons Attribution 4.0 International}. The cited Lean repositories have their separate BSD-3-Clause licenses.} \begin{document} \begin{abstract} We give a source-aligned account of two Lean 4 formalizations of classical finite social-choice impossibility theorems. For a finite nonempty electorate and a finite alternative set containing three distinct alternatives, Arrow's theorem derives dictatorship from unanimity and independence of irrelevant alternatives. Its proof expands a weakly decisive coalition from one ordered pair to all pairs, then contracts decisive coalitions to a singleton. The Gibbard--Satterthwaite development proves that every onto strategy-proof choice function on the unrestricted strict-ranking domain is dictatorial by constructing a social welfare function and applying that Arrow implementation. We explain the essential construction in full: top-two profiles define pairwise comparisons; strategy-proof monotonicity and three-top profiles establish a strict total order; predecessor counts provide injective natural-number ranks. Exact hypotheses, vendored dependencies, pinned source identities, prior formalizations, and the distinction between historical registry verification and the present source audit are recorded. The contribution is an exposition and audit of reusable formalization artifacts, not a new social-choice theorem or a claim of first formalization. \end{abstract} \maketitle \section{Introduction} Arrow's theorem and the Gibbard--Satterthwaite theorem expose two different limits of collective decision making. Arrow studies the aggregation of individual rankings into a social ranking. Gibbard--Satterthwaite studies the selection of one alternative when each voter may misreport a ranking. Their classical sources are Arrow's 1950 paper \cite{arrow1950}, Gibbard's 1973 paper \cite{gibbard1973}, and Satterthwaite's 1975 paper \cite{satterthwaite1975}. The artifacts examined here are Arthur Freitas Ramos's finite Arrow development \cite{ramosArrow} and its Gibbard--Satterthwaite extension \cite{ramosGS}, registered separately in Palomar \cite{palomarArrow,palomarGS}. Their mathematical dependence makes a combined exposition natural. The second repository contains a byte-identical copy of the first repository's four substantive Arrow modules, and its main theorem invokes the copied Arrow theorem. The manuscript's subject is therefore one proof chain: decisive coalitions establish Arrow; strategy-proof choice is converted into a valid strict social ranking; Arrow's dictator is transferred back to the original choice rule. The source pins used throughout are \begin{center}\small \begin{tabular}{ll} \toprule Arrow & \texttt{4f405d27d0b244574bbee5d3d79bae0c66bda16e}\\ Gibbard--Satterthwaite & \texttt{8398e65a99cd3d5e973c64963c4bab8c0491947c}\\ \bottomrule \end{tabular} \end{center} These identify repository snapshots, not merely branch names. Both use Lean \code{v4.\allowbreak{}35.\allowbreak{}0-rc2} and the same Mathlib manifest revision, recorded in Section~\ref{sec:verification}. Our main expository task is to make the intermediate social welfare function explicit. Choosing winners on two-alternative tests does not by itself produce a ballot: the resulting pairwise relation might have cycles or tied numerical scores. The formalization proves the order laws before using predecessor counts to construct an injective ranking. This step is essential to the reduction, and was specifically absent from the optional proof sketch noted in the Gibbard--Satterthwaite registry review \cite{palomarGS}. The mathematical route is established. Satterthwaite describes Gibbard's construction of a social welfare function from strategy-proof voting, the verification of Pareto and independence conditions, the use of Arrow, and the transfer of dictatorship \cite[pp.~205--207]{satterthwaite1975}. Formal proofs of both theorems also predate these Lean repositories; Nipkow formalized them in Isabelle/HOL \cite{nipkow2009}. Peters's earlier public Lean development proves a resolute unanimous strategy-proof choice correspondence dictatorial using voter cloning and strong induction \cite{peters2026}; we consulted its pinned source, without rebuilding it. The Arrow metadata separately acknowledges Joris Roos's independent three-candidate Fourier-analytic Lean formalization \cite{roos2026}. We claim neither a new reduction nor priority among formalizations. The present contribution is a readable explanation of the precise finite strict-ranking implementations, their interfaces, and their verification boundary. \section{The strict ranking domain and exact statements}\label{sec:domain} Let $V$ be a finite nonempty electorate and $A$ a finite set of alternatives. The main results take explicit witnesses $x,y,z\in A$ satisfying \begin{equation}\label{eq:three} x\ne y,\qquad x\ne z,\qquad y\ne z. \end{equation} Thus the alternative-set hypothesis is at least three alternatives, without fixing a particular cardinality. The Lean interfaces use \code{Fintype V}, \code{Fintype A}, \code{DecidableEq V}, \code{DecidableEq A}, and \code{Nonempty V}. The Gibbard--Satterthwaite interface also supplies \code{Nonempty A}; condition~\eqref{eq:three} already entails it mathematically. No assumption of two or more voters is made. A one-voter electorate is included. \subsection{Ballots as injective natural ranks} The common representation is \begin{equation}\label{eq:ballot} \Ballot(A)=\{s:A\longrightarrow\Nat\mid s\text{ is injective}\}, \qquad a\pref_s b\quad\Longleftrightarrow\quad s(a)