Exact Lean source
PCTFlatGaussianCrossFrame
formalization/Cloning/PCTFlatGaussianCrossFrame.lean
Source hash: 8d7519e88b4c65c14ca42bc105ae3d2d59c39b709ef96dbec735ae067bab0afe
Full source copied without mathematical changes from the snapshot whose input hash matches the passing audit. Select a line number for a stable source pointer.
The declarations belong to the compiled inventory covered by the project’s shared axiom audit. That audit records an aggregate union, without attributing axioms to individual declarations.
Declarations in this module
definition
Cloning.PCTFlatGaussianCross.hermitianSpacetheorem Cloning.PCTFlatGaussianCross.hermitianSpace_inner_realtheorem Cloning.PCTFlatGaussianCross.hermitianBasis_orthonormaltheorem Cloning.PCTFlatGaussianCross.hermitianBasis_complex_spandefinition Cloning.PCTFlatGaussianCross.complexHermitianBasistheorem Cloning.PCTFlatGaussianCross.complexHermitianBasis_apply1import Cloning.PCTGaussianCovariance
2import Cloning.PCTPurificationFrame
3
4/-! Actual Hermitian Hilbert--Schmidt frames. The real Hermitian subspace
5complexifies to the entire coefficient space, so its real orthonormal bases
6are complex orthonormal bases as well. -/
7noncomputable section
8open scoped ComplexOrder InnerProductSpace Topology BigOperators
9namespace Cloning.PCTFlatGaussianCross
10open Cloning.PCT Cloning.PCTReducedGaussian
11set_option backward.isDefEq.respectTransparency false
12set_option maxHeartbeats 1000000
13variable {A : Type*} [Fintype A] [DecidableEq A]
14
15/-- Hermitian matrices viewed in the actual purification coefficient Hilbert space. -/
16def hermitianSpace (A : Type*) [Fintype A] [DecidableEq A] : Submodule ℝ (Register (A×A)) where
17 carrier := {x | ∀ a b, star (x (b,a))=x (a,b)}
18 zero_mem' := by simp
19 add_mem' := by intro x y hx hy a b; simp [hx a b,hy a b]
20 smul_mem' := by intro c x hx a b; simp [Complex.real_smul,hx a b]
21
22lemma hermitianSpace_inner_real (x y : hermitianSpace A) :
23 ⟪(x : Register (A×A)),(y : Register (A×A))⟫_ℂ=
24 (⟪x,y⟫_ℝ : ℂ) := by
25 have hs : star ⟪(x : Register (A×A)),(y : Register (A×A))⟫_ℂ=
26 ⟪(x : Register (A×A)),(y : Register (A×A))⟫_ℂ := by
27 rw [lp.inner_eq_tsum]
28 simp only [tsum_fintype,Fintype.sum_prod_type,RCLike.inner_apply,
29 star_sum,star_mul,starRingEnd_apply,star_star]
30 rw [Finset.sum_comm]
31 apply Finset.sum_congr rfl
32 intro a _
33 apply Finset.sum_congr rfl
34 intro b _
35 rw [y.2 a b,← x.2 b a]
36 ring
37 change _=(⟪(x : Register (A×A)),(y : Register (A×A))⟫_ℝ : ℂ)
38 have hr : ⟪(x : Register (A×A)),(y : Register (A×A))⟫_ℝ=
39 (⟪(x : Register (A×A)),(y : Register (A×A))⟫_ℂ).re := by
40 rw [lp.inner_eq_tsum,lp.inner_eq_tsum]
41 simp only [tsum_fintype,Complex.re_sum]
42 apply Finset.sum_congr rfl
43 intro i _
44 exact real_inner_eq_re_inner (𝕜 := ℂ) (x.val i) (y.val i)
45 rw [hr]
46 exact (Complex.conj_eq_iff_re.mp hs).symm
47
48/-- Every Hermitian real ONB is complex orthonormal in the ambient space. -/
49lemma hermitianBasis_orthonormal {ι : Type*} [Fintype ι]
50 (b : OrthonormalBasis ι ℝ (hermitianSpace A)) :
51 Orthonormal ℂ (fun i => (b i : Register (A×A))) := by
52 classical
53 rw [orthonormal_iff_ite]
54 intro i j
55 rw [hermitianSpace_inner_real,orthonormal_iff_ite.mp b.orthonormal]
56 split_ifs <;> norm_num
57
58private def hermitianPart (x : Register (A×A)) : hermitianSpace A :=
59 ⟨coefficientVector (fun a b => (x (a,b)+star (x (b,a)))/2),by
60 intro a b
61 simp [coefficientVector_apply,map_div₀,map_add,add_comm]⟩
62
63private def imaginaryPart (x : Register (A×A)) : hermitianSpace A :=
64 ⟨coefficientVector (fun a b => -(Complex.I/2)*(x (a,b)-star (x (b,a)))),by
65 intro a b
66 simp only [coefficientVector_apply,map_mul,map_neg,map_div₀,map_sub,star_star,
67 Complex.star_def,Complex.conj_I,map_ofNat,Complex.conj_conj]
68 ring⟩
69
70private lemma hermitian_decomposition (x : Register (A×A)) :
71 x=(hermitianPart x : Register (A×A))+Complex.I • (imaginaryPart x : Register (A×A)) := by
72 ext ab
73 rcases ab with ⟨a,b⟩
74 simp only [hermitianPart,imaginaryPart,lp.coeFn_add,Pi.add_apply,lp.coeFn_smul,
75 Pi.smul_apply,smul_eq_mul,coefficientVector_apply]
76 ring_nf
77 simp
78 ring
79
80lemma hermitianBasis_complex_span {ι : Type*} [Fintype ι]
81 (b : OrthonormalBasis ι ℝ (hermitianSpace A)) :
82 ⊤≤Submodule.span ℂ (Set.range (fun i => (b i : Register (A×A)))) := by
83 let S := Submodule.span ℂ (Set.range (fun i => (b i : Register (A×A))))
84 have hx (x : hermitianSpace A) : (x : Register (A×A))∈S := by
85 have he := b.sum_repr x
86 have he' := congrArg (fun z : hermitianSpace A => (z : Register (A×A))) he
87 dsimp only at he'
88 simp only [Submodule.coe_sum,Submodule.coe_smul_of_tower] at he'
89 rw [← he']
90 apply Submodule.sum_mem
91 intro i _
92 change ((b.repr x i : ℝ) : ℂ) • (b i : Register (A×A))∈S
93 exact S.smul_mem _ (Submodule.subset_span ⟨i,rfl⟩)
94 intro x _
95 rw [hermitian_decomposition x]
96 exact S.add_mem (hx _) (S.smul_mem _ (hx _))
97
98/-- The same vectors, as a genuine complex orthonormal basis. -/
99def complexHermitianBasis {ι : Type*} [Fintype ι]
100 (b : OrthonormalBasis ι ℝ (hermitianSpace A)) :
101 OrthonormalBasis ι ℂ (Register (A×A)) :=
102 OrthonormalBasis.mk (hermitianBasis_orthonormal b) (hermitianBasis_complex_span b)
103
104@[simp] lemma complexHermitianBasis_apply {ι : Type*} [Fintype ι]
105 (b : OrthonormalBasis ι ℝ (hermitianSpace A)) (i : ι) :
106 complexHermitianBasis b i=(b i : Register (A×A)) := by
107 simp [complexHermitianBasis,OrthonormalBasis.coe_mk]
108
109end Cloning.PCTFlatGaussianCross