Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Measured probabilities are linear in the state: pmeas=r⋅pp_{\rm meas}=r\cdot ppmeas​=r⋅p

Proved
HardyFiveAxioms.measured_probability_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 f:RK→Rf:\mathbb R^K\to\mathbb Rf:RK→R be a measured probability with f(0)=0f(0)=0f(0)=0 that respects mixtures on SSS:

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

Then there is a vector r∈RKr\in\mathbb R^Kr∈RK such that

f(p)=r⋅p=∑k=1Krkpkfor all p∈S.f(p)=r\cdot p=\sum_{k=1}^K r_kp^k\qquad\text{for all }p\in S .f(p)=r⋅p=k=1∑K​rk​pkfor all p∈S.

This is Eq. (44) of the paper, proved in Appendix 1: every probability measurement is represented by a measurement vector rrr.

Formalization Note The paper's Appendix 1 extends Eq. (112) beyond SSS by fiat ("we are free to impose"). The present statement only asks for a linear representation on SSS itself, which needs no such extension. The hypothesis f(0)=0f(0)=0f(0)=0 expresses that the null state never produces a non-null outcome.

Preamble
import Mathlib
Formal statement
namespace HardyFiveAxioms

/-- Hardy 2001, Section 6.6, Eq. (44) and Appendix 1: a measured probability `f(p)` that
respects mixtures on the convex set `S` of states (which contains the null state, on which
`f` vanishes) is given by a linear functional `p_meas = r · p`. -/
theorem measured_probability_linear {K : ℕ} (S : Set (Fin K → ℝ)) (hS : Convex ℝ S)
    (h0 : (0 : Fin K → ℝ) ∈ S) (f : (Fin K → ℝ) → ℝ) (hf0 : f 0 = 0)
    (hmix : ∀ pA ∈ S, ∀ pB ∈ S, ∀ t : ℝ, 0 ≤ t → t ≤ 1 →
      f (t • pA + (1 - t) • pB) = t * f pA + (1 - t) * f pB) :
    ∃ r : Fin K → ℝ, ∀ p ∈ S, f p = ∑ k, r k * p k := 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, p. 11, Section 6.6, Eqs. (41)–(44); pp. 28–29, Appendix 1, Eqs. (107)–(117)
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 a convex set containing the zero vector, and let f:RK→Rf:\mathbb R^K\to\mathbb Rf:RK→R be any function with f(0)=0f(0)=0f(0)=0. Assume that for all pA,pB∈Sp_A,p_B\in SpA​,pB​∈S and every real ttt with 0≤t≤10\le t\le10≤t≤1,

f(tpA+(1−t)pB)=t f(pA)+(1−t) f(pB).f(tp_A+(1-t)p_B)=t\,f(p_A)+(1-t)\,f(p_B).f(tpA​+(1−t)pB​)=tf(pA​)+(1−t)f(pB​).

Then there is a vector r∈RKr\in\mathbb R^Kr∈RK such that f(p)=∑krk pkf(p)=\sum_{k}r_k\,p_kf(p)=∑k​rk​pk​ for every p∈Sp\in Sp∈S. Nothing is asserted about fff outside SSS. No boundedness of SSS, no range condition 0≤f≤10\le f\le10≤f≤1, and no spanning condition on SSS are assumed.

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