Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

State transformations are linear: p↦Zpp\mapsto Zpp↦Zp

Proved
HardyFiveAxioms.transformation_linear

by Lucas · Oct 2, 2026 · Mathlib 0df444a (Lean v4.33.1)

convex-geometrylinear-algebramathematical-physicsquantum-foundations

Let S⊆RKS\subseteq\mathbb R^KS⊆RK be a convex set of states containing the null state 000. Let g:RK→RKg:\mathbb R^K\to\mathbb R^Kg:RK→RK describe the effect of a transformation device, with g(0)=0g(0)=0g(0)=0, such that ggg respects mixtures on SSS:

g(λpA+(1−λ)pB)=λg(pA)+(1−λ)g(pB)(pA,pB∈S, 0≤λ≤1).g\big(\lambda p_A+(1-\lambda)p_B\big)=\lambda g(p_A)+(1-\lambda)g(p_B)\qquad(p_A,p_B\in S,\ 0\le\lambda\le1).g(λpA​+(1−λ)pB​)=λg(pA​)+(1−λ)g(pB​)(pA​,pB​∈S, 0≤λ≤1).

Then there is a real K×KK\times KK×K matrix ZZZ with

g(p)=Zpfor all p∈S.g(p)=Zp\qquad\text{for all }p\in S .g(p)=Zpfor all p∈S.

This is Eq. (46) of the paper.

Formalization Note The hypothesis g(0)=0g(0)=0g(0)=0 expresses that an absent system stays absent. As for measurements, only a representation on SSS is required.

Preamble
import Mathlib
Formal statement
namespace HardyFiveAxioms

open Matrix

/-- Hardy 2001, Section 6.7, Eq. (46): a state transformation `p ↦ g(p)` that respects
mixtures on the convex set `S` of states (and sends the null state to the null state) acts on
`S` as a real `K × K` matrix: `g(p) = Z p`. -/
theorem transformation_linear {K : ℕ} (S : Set (Fin K → ℝ)) (hS : Convex ℝ S)
    (h0 : (0 : Fin K → ℝ) ∈ S) (g : (Fin K → ℝ) → (Fin K → ℝ)) (hg0 : g 0 = 0)
    (hmix : ∀ pA ∈ S, ∀ pB ∈ S, ∀ t : ℝ, 0 ≤ t → t ≤ 1 →
      g (t • pA + (1 - t) • pB) = t • g pA + (1 - t) • g pB) :
    ∃ Z : Matrix (Fin K) (Fin K) ℝ, ∀ p ∈ S, g p = Z *ᵥ p := by sorry

end HardyFiveAxioms
Source
L. Hardy, *Quantum Theory From Five Reasonable Axioms*, arXiv:quant-ph/0101012v4 (2001), https://arxiv.org/abs/quant-ph/0101012, pp. 11–12, Section 6.7, Eq. (46)
Read-back

What the Lean code literally says, in plain math · Aristotle (Harmonic)

NON-BLIND READ-BACK — NOT INDEPENDENT TESTIMONY. This read-back was written by the same agent (Aristotle, by Harmonic) that drafted the Lean statement below, with full knowledge of the source paper and of the intended meaning. It was not produced by a blind, independent auditor, so it may share the drafter's blind spots. Reviewers must not treat it as independent confirmation of faithfulness; compare the Lean code against the source directly.

Let K∈NK\in\mathbb NK∈N, let S⊆RKS\subseteq\mathbb R^KS⊆RK be convex with 0∈S0\in S0∈S, and let g:RK→RKg:\mathbb R^K\to\mathbb R^Kg:RK→RK be any map with g(0)=0g(0)=0g(0)=0. Assume that for all pA,pB∈Sp_A,p_B\in SpA​,pB​∈S and all real t∈[0,1]t\in[0,1]t∈[0,1], g(tpA+(1−t)pB)=t g(pA)+(1−t) g(pB)g(tp_A+(1-t)p_B)=t\,g(p_A)+(1-t)\,g(p_B)g(tpA​+(1−t)pB​)=tg(pA​)+(1−t)g(pB​), with vector operations taken coordinatewise. Then there is a real K×KK\times KK×K matrix ZZZ such that g(p)=Zpg(p)=Zpg(p)=Zp (matrix–vector product) for every p∈Sp\in Sp∈S. It is not assumed that ggg maps SSS into SSS, and nothing is asserted outside SSS.

Human review
  • Endorsed by Shuze Chen · Oct 8, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Lucas · Oct 8, 2026

    Confirmed by the mission captain (proposal self-audit).

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