§II introductory example, Eqs.(10)–(17): Klein-four equivariant embedding
OpenQAlgorithms.Papers.Independent.Extend50.P01.klein_embeddingFor real , put , where . Exchange and simultaneous negation act by
The four matrices are unitary and obey the complete Klein-four multiplication law, with exchange/sign bits added modulo two. The embedding is equivariant for every group element. This identifies the full induced symmetry, including its composition law.
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.4, Eqs.(10)–(17): both identities and the complete group law. -/
theorem klein_embedding :
kleinMatrix (false, false) = 1 ∧
(∀ a b, kleinMatrix (kleinMul a b) = kleinMatrix a * kleinMatrix b) ∧
(∀ a, kleinMatrix a ∈ Matrix.unitaryGroup (Bool × Bool) ℂ) ∧
(∀ a (x : Fin 2 → ℝ), kleinEncoding (kleinData a x) = conjugate (kleinMatrix a) (kleinEncoding x)) ∧
(∀ x, kleinEncoding (fun i => x ((Equiv.swap 0 1) i)) = swapGate * kleinEncoding x * swapGate) ∧
(∀ x, kleinEncoding (-x) = (pauliX ⊗ₖ pauliX) * kleinEncoding x * (pauliX ⊗ₖ pauliX)) := by sorry
end QAlgorithms.Papers.Independent.Extend50.P01
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
Let be the Pauli matrices, let be the swap matrix, which sends to , and, for a pair of Boolean bits , define
where is exclusive-or. For , define by , where swaps and , and define
The declaration asserts , for all Boolean pairs , and unitarity of every ; it also asserts, for every such and every real , that , and, for every , the two identities
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.