Exact Lean source
PCTFlatGaussianCrossFrameExistence
formalization/Cloning/PCTFlatGaussianCrossFrameExistence.lean
Source hash: 2fc4c69f3b2a4ae92a6336e09145f618d4de0d256033108e88632bccd1170fef
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
1import Cloning.PCTFlatGaussianCrossFrame
2import Cloning.PCTTangentNormalization
3
4/-! The Hermitian frame through a normalized Schmidt purification exists
5without an assumed basis or a dimension premise beyond the physical register. -/
6noncomputable section
7open scoped ComplexOrder InnerProductSpace Topology BigOperators
8namespace Cloning.PCTFlatGaussianCross
9open Cloning.PCT Cloning.PCTReducedGaussian
10set_option backward.isDefEq.respectTransparency false
11set_option maxHeartbeats 1000000
12variable {A : Type*} [Fintype A] [DecidableEq A]
13
14local instance flatCrossRegisterComplexFinite : FiniteDimensional ℂ (Register (A×A)) :=
15 (registerBasis (A×A)).toOrthonormalBasis.toBasis.finiteDimensional_of_finite
16
17local instance flatCrossRegisterRealFinite : FiniteDimensional ℝ (Register (A×A)) :=
18 Module.Finite.trans ℂ (Register (A×A))
19
20/-- The real Hermitian dimension equals the complex matrix dimension. -/
21theorem hermitianSpace_finrank :
22 Module.finrank ℝ (hermitianSpace A)=Fintype.card A^2 := by
23 let b := stdOrthonormalBasis ℝ (hermitianSpace A)
24 have h := Module.finrank_eq_card_basis (complexHermitianBasis b).toBasis
25 simp only [Fintype.card_fin] at h
26 rw [← h,Module.finrank_eq_card_basis (registerBasis (A×A)).toOrthonormalBasis.toBasis]
27 simp [pow_two]
28
29/-- A complex orthonormal frame of Hermitian coefficient matrices can be
30chosen through every Hermitian unit vector. -/
31theorem exists_hermitian_frame {s : ℕ} (hcard : Fintype.card A^2=s+1)
32 (ψ : Register (A×A)) (hψ : ‖ψ‖=1) (hH : ∀ a b,star (ψ (b,a))=ψ (a,b)) :
33 ∃ u : OrthonormalBasis (Fin (s+1)) ℂ (Register (A×A)),
34 u 0=ψ ∧ ∀ i a b,star (u i (b,a))=u i (a,b) := by
35 classical
36 let x : hermitianSpace A := ⟨ψ,hH⟩
37 let v : Fin (s+1) → hermitianSpace A := fun _ => x
38 have hn : ‖x‖=1 := hψ
39 have hc : Module.finrank ℝ (hermitianSpace A)=Fintype.card (Fin (s+1)) := by
40 simpa only [Fintype.card_fin,hermitianSpace_finrank] using hcard
41 have hv : Orthonormal ℝ (({0} : Set (Fin (s+1))).restrict v) := by
42 rw [orthonormal_iff_ite]
43 intro i j
44 have hij : i=j := Subtype.ext (i.property.trans j.property.symm)
45 simp only [hij,ite_true,Set.restrict_apply,v,real_inner_self_eq_norm_sq,hn,one_pow]
46 obtain ⟨b,hb⟩ := hv.exists_orthonormalBasis_extension_of_card_eq hc
47 refine ⟨complexHermitianBasis b,?_,?_⟩
48 · rw [complexHermitianBasis_apply,hb 0 (Set.mem_singleton 0)]
49 · intro i a c
50 simpa only [complexHermitianBasis_apply] using (b i).property a c
51
52/-- This applies in particular to the actual Schmidt coefficient vector. -/
53theorem exists_hermitian_schmidt_frame {s : ℕ} (hcard : Fintype.card A^2=s+1)
54 (p : A → ℝ) (hp : ∀ a,0≤p a) (hs : ∑ a,p a=1) :
55 ∃ u : OrthonormalBasis (Fin (s+1)) ℂ (Register (A×A)),
56 u 0=coefficientVector (schmidtCoefficients p) ∧
57 ∀ i a b,star (u i (b,a))=u i (a,b) := by
58 apply exists_hermitian_frame hcard
59 · have hh := schmidt_norm_sq p hp
60 rw [hs] at hh
61 nlinarith [norm_nonneg (coefficientVector (schmidtCoefficients p))]
62 · intro a b
63 by_cases hab : a=b
64 · subst b
65 simp [coefficientVector_apply,schmidtCoefficients]
66 · simp [coefficientVector_apply,schmidtCoefficients,Matrix.diagonal_apply,hab,Ne.symm hab]
67
68end Cloning.PCTFlatGaussianCross