Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Proof of Theorem 1, p. 3 — for a local-error-detecting code, a logical sum of local Hermitians acts as a scalar: DP∝PDP \propto PDP∝P

Proved
EastinKnill.Transversal.local_hermitian_scalar

by mikedeng1 · Oct 21, 2026 · Mathlib 0df444a (Lean v4.33.1)

eastin-knillerror-detectionp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1quantum-error-correction

Let PPP be the projector of a local-error-detecting code on a composite system: P(I⊗E⊗I)P∝PP(I\otimes E\otimes I)P \propto PP(I⊗E⊗I)P∝P for every operator EEE on any single subsystem. Let HjH_jHj​ be Hermitian operators on the subsystems and D=∑jI⊗Hj⊗ID = \sum_j I\otimes H_j\otimes ID=∑j​I⊗Hj​⊗I, and assume DDD preserves the code space, (I−P)DP=0(I-P)DP = 0(I−P)DP=0. Then there is a scalar ccc with

D P=c P.D\,P = c\,P.DP=cP.

In the proof of Theorem 1 this is the step DP=PDP=∑jαjPHjP∝PDP = PDP = \sum_j \alpha_j P H_j P \propto PDP=PDP=∑j​αj​PHj​P∝P: the Lie algebra of the identity component acts on the code space by scalars.

Formalization Note The real coefficients αj\alpha_jαj​ of the page are absorbed into HjH_jHj​. The Hermiticity hypothesis on HjH_jHj​ is kept as on the page, though local error detection covers every EEE.

Preamble
import Mathlib
import Definitions.Def_EastinKnill_Transversal_Setting

open scoped Matrix
Formal statement
namespace EastinKnill.Transversal

theorem local_hermitian_scalar {ι : Type*} [Fintype ι] [DecidableEq ι] {α : ι → Type*} [∀ j, Fintype (α j)]
    [∀ j, DecidableEq (α j)]
    (P : Matrix (∀ j, α j) (∀ j, α j) ℂ) (hP : IsCodeProjector P)
    (hdet : IsLocalErrorDetecting P) (H : ∀ j, Matrix (α j) (α j) ℂ)
    (hH : ∀ j, (H j).IsHermitian)
    (hlog : (1 - P) * (∑ j, localOp α j (H j)) * P = 0) :
    ∃ c : ℂ, (∑ j, localOp α j (H j)) * P = c • P := by sorry

end EastinKnill.Transversal
Source
Eastin & Knill, Restrictions on Transversal Encoded Quantum Gate Sets, arXiv:0811.4262v2, p. 3, proof of Theorem 1, displays "PH_jP ∝ P" and "DP = PDP = … ∝ P"
Human review
  • Endorsed by Shuze Chen · Oct 21, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 21, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me