Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Majority vote recovers a reading with a bounded number of errors

Proved
MindUploadTheory.majority_of_repeated_readings

by Yasufumi Nakata · Dec 2, 2026 · Mathlib 0df444a (Lean v4.33.1)

combinatoricsnoisewhole-brain-emulation

A binary quantity with true value b∈{false,true}b \in \{\mathrm{false},\mathrm{true}\}b∈{false,true} is read 2t+12t+12t+1 times, giving readings r1,…,r2t+1r_1,\dots,r_{2t+1}r1​,…,r2t+1​. If at most ttt readings differ from bbb, then the majority vote is correct:

#{k:rk=true}>t  ⟺  b=true.\#\{k : r_k = \mathrm{true}\} > t \iff b = \mathrm{true}.#{k:rk​=true}>t⟺b=true.

In the noisy-measurement pillar of the mind-upload.com program this states that repeating a measurement recovers the true value whenever fewer than half of the repetitions are corrupted.

Formalization Note Readings are Fin (2 * t + 1) → Bool and the vote is decide (t < #{k | r k = true}).

Preamble
import Mathlib.Data.Fintype.Card
Formal statement
namespace MindUploadTheory
theorem majority_of_repeated_readings (t : Nat) (b : Bool) (r : Fin (2 * t + 1) → Bool)
    (h : (Finset.univ.filter (fun k => r k ≠ b)).card ≤ t) :
    decide (t < (Finset.univ.filter (fun k => r k = true)).card) = b := by sorry
end MindUploadTheory
Source
mind-upload.com, Theoretical Research project page, section 'A formal program for theoretical mind uploading' (second edition), item T16, https://mind-upload.com/projects/theory/#formal-t16 .

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me