§III Eq.(53): compact continuous-group twirling projection
OpenQAlgorithms.Papers.Independent.Extend50.P01.haar_twirl_projectionLet be a compact real Lie group of arbitrary finite dimension, with its Hausdorff second-countable manifold topology, equipped with a normalized probability Haar measure , and let be a continuous finite-dimensional unitary representation on qubits. Then the conjugation integrand is integrable for every , and
is complex-linear, idempotent, has range precisely the commutant, and fixes an operator exactly when that operator commutes with every . Hermitian inputs remain Hermitian. This is the compact normalized averaging interpretation of the source's Lie-group extension; the Lean quantifiers retain the source's Lie-group domain.
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P01
noncomputable section
open scoped Matrix Kronecker ComplexConjugate Matrix.Norms.L2Operator Manifold ContDiff
open MeasureTheory
namespace QAlgorithms.Papers.Independent.Extend50.P01
attribute [local instance] Classical.propDecidable Classical.decEq
-- PDF pp.3,8: reuse the accepted operator type, exp(-itH), and A X A†.
-- Notation specializes the imported interfaces without introducing duplicate declarations.
local notation "Op" => (fun n : ℕ => QAlgorithms.Papers.Independent.Information100.P21.Op (Qubits n))
local notation "evolve" => QAlgorithms.Papers.Independent.Information100.P32.evolution
local notation "conjugate" => QAlgorithms.conjSuperop
-- PDF pp.3,10–11: the imported quadratic form is Re(psi† A psi).
local notation "expectation" => QAlgorithms.Papers.Independent.Information100.P21.quad
-- PDF pp.5,16–19: accepted active-wire operator, with identities on all spectators.
local notation "onWire" => QAlgorithms.Papers.Independent.Advance50.P49.onWire
-- PDF p.5: the imported phase-free Pauli tensor uses 0=I,1=X,2=Y,3=Z.
local notation "pauliWord" => QAlgorithms.Papers.Independent.Gap48.P33.pauliWord
/-- PDF p.8, Eq.(53): normalized compact real Lie-group averaging.
Continuity gives integrability; d is the real manifold dimension of the symmetry group. -/
theorem haar_twirl_projection (d : ℕ) {S : Type*} [Group S] [TopologicalSpace S]
[IsTopologicalGroup S] [CompactSpace S] [T2Space S] [SecondCountableTopology S]
[ChartedSpace (EuclideanSpace ℝ (Fin d)) S]
[IsManifold (modelWithCornersSelf ℝ (EuclideanSpace ℝ (Fin d))) ∞ S]
[LieGroup (modelWithCornersSelf ℝ (EuclideanSpace ℝ (Fin d))) ∞ S]
[MeasurableSpace S] [BorelSpace S]
(mu : Measure S) [Measure.IsHaarMeasure mu] [IsProbabilityMeasure mu]
(n : ℕ) (U : S →* Op n) (hU : ∀ s, U s ∈ Matrix.unitaryGroup (Qubits n) ℂ)
(hcont : Continuous U) :
(∀ X, Integrable (fun s => conjugate (U s) X) mu) ∧
(∀ X Y, operatorHaarAverage mu U (X + Y) = operatorHaarAverage mu U X + operatorHaarAverage mu U Y) ∧
(∀ (c : ℂ) X, operatorHaarAverage mu U (c • X) = c • operatorHaarAverage mu U X) ∧
(∀ X, operatorHaarAverage mu U (operatorHaarAverage mu U X) = operatorHaarAverage mu U X) ∧
Set.range (operatorHaarAverage mu U) = {X | ∀ s, Commute X (U s)} ∧
(∀ X, operatorHaarAverage mu U X = X ↔ ∀ s, Commute X (U s)) ∧
(∀ X, X.IsHermitian → (operatorHaarAverage mu U X).IsHermitian) := by sorry
end QAlgorithms.Papers.Independent.Extend50.P01
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
For every natural number , let be a compact, Hausdorff, second-countable topological group equipped with charted-space, smooth-manifold, and smooth Lie-group structures modeled on . Equip with a measurable-space structure equal to its Borel measurable structure, and let be a Haar measure that is also a probability measure. For every natural number , including zero, and every continuous multiplicative homomorphism from to complex matrices indexed by , assume that every is unitary. Write for the matrix operation named conjugate in the statement; its defining formula is not included in the supplied code. Define
Then the integrand is integrable for every matrix ; for all matrices ; for every complex scalar and matrix ; and for every . Its range is exactly
and, for every matrix , if and only if commutes with every . Finally, is Hermitian whenever is Hermitian.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.