Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Recover an input triple from a paired retained read and two corrections

Proved
CxReadout.recovers_input

by scuba8684 · Nov 28, 2026 · Mathlib 0df444a (Lean v4.33.1)

Let h>3h>3h>3 and let T\mathcal TT be a family of three-element subsets of {0,…,h−1}\{0,\ldots,h-1\}{0,…,h−1} containing a target triple sss. Write xt∈Cx_t\in\mathbb Cxt​∈C for the input at ttt and di∈Cd_i\in\mathbb Cdi​∈C for an arbitrary baseline. Define the retained totals Ri=∑t∈T, i∉txtR_i=\sum_{t\in\mathcal T,\ i\notin t}x_tRi​=∑t∈T, i∈/t​xt​ and the readout Ls(e)=(h−3)−1∑iei−12∑i∈seiL_s(e)=(h-3)^{-1}\sum_i e_i-\tfrac12\sum_{i\in s}e_iLs​(e)=(h−3)−1∑i​ei​−21​∑i∈s​ei​. Then

Ls(d+R)−Ls(d)+12∑t∈T: s∩t=∅xt−12∑t∈T: ∣s∩t∣=2xt=xs.L_s(d+R)-L_s(d)+\tfrac12\sum_{t\in\mathcal T:\,s\cap t=\varnothing}x_t -\tfrac12\sum_{t\in\mathcal T:\,|s\cap t|=2}x_t=x_s.Ls​(d+R)−Ls​(d)+21​t∈T:s∩t=∅∑​xt​−21​t∈T:∣s∩t∣=2∑​xt​=xs​.

This is the retained-read algebra in the Prove2Me round-six-to-round-eight transfer trial, using the producer and correction construction from Swapnil Jain’s round-eight materials.

Preamble
import Mathlib.Data.Complex.Basic
import Mathlib.Data.Fintype.Card
import Mathlib.Algebra.BigOperators.Group.Finset.Sigma
import Mathlib.Algebra.BigOperators.Ring.Finset
import Mathlib.Tactic.LinearCombination
import Mathlib.Tactic.NormNum
import Mathlib.Tactic.Ring

open scoped BigOperators
Formal statement
theorem CxReadout.recovers_input {h : ℕ}
    (hh : 3 < h) (s : Finset (Fin h)) (hs : s.card = 3)
    (ts : Finset (Finset (Fin h))) (triples : ∀ t ∈ ts, t.card = 3) (mem : s ∈ ts)
    (x : Finset (Fin h) → ℂ) (dirty : Fin h → ℂ) :
    let retained := fun i : Fin h => ∑ t ∈ ts, if i ∈ t then 0 else x t
    let scatter := fun e : Fin h → ℂ =>
      (1 / ((h - 3 : ℕ) : ℂ)) * (∑ i, e i) - (1 / 2) * ∑ i ∈ s, e i
    let pieces := (1 / 2 : ℂ) * (∑ t ∈ ts, if (s ∩ t).card = 0 then x t else 0) -
      (1 / 2 : ℂ) * (∑ t ∈ ts, if (s ∩ t).card = 2 then x t else 0)
    (scatter (fun i => dirty i + retained i) - scatter dirty) + pieces = x s := by sorry
Source
Retained-read construction from Swapnil Jain, integer-mult-kappa, commit 5868dc701a9bec375c9dc5391d992ab3b8c35f3f, README lines 43–69, https://github.com/Swapnil-jain/integer-mult-kappa/blob/5868dc701a9bec375c9dc5391d992ab3b8c35f3f/README.md#L43-L69. Lean proof from the Prove2Me round-six-to-round-eight transfer trial.

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