State transformations are linear:
ProvedHardyFiveAxioms.transformation_linearLet be a convex set of states containing the null state . Let describe the effect of a transformation device, with , such that respects mixtures on :
Then there is a real matrix with
This is Eq. (46) of the paper.
Formalization Note The hypothesis expresses that an absent system stays absent. As for measurements, only a representation on is required.
import Mathlib
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
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 , let be convex with , and let be any map with . Assume that for all and all real , , with vector operations taken coordinatewise. Then there is a real matrix such that (matrix–vector product) for every . It is not assumed that maps into , and nothing is asserted outside .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.