Exact Lean source
PCTFlatGaussianCrossReduction
formalization/Cloning/PCTFlatGaussianCrossReduction.lean
Source hash: 53d9bc93d31bd865cf4a5431739305c946df6dbff41876158fc0f791dd1b6c16
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
theorem
Cloning.PCTFlatGaussianCross.frame_card_sqtheorem Cloning.PCTFlatGaussianCross.schmidt_reference_hermitiandefinition Cloning.PCTFlatGaussianCross.flatCrossExponentialtheorem Cloning.PCTFlatGaussianCross.continuous_flatCrossExponentialtheorem Cloning.PCTFlatGaussianCross.flatCrossExponential_frameTangenttheorem Cloning.PCTFlatGaussianCross.integral_flat_cross_eq_real_coordinatestheorem Cloning.PCTFlatGaussianCross.integrable_flat_cross_iff_real_coordinates1import Cloning.PCTFlatGaussianCrossKernel
2import Cloning.PCTFlatGaussianCrossLaw
3
4/-! Reduction of the physical flat-state cross integral to independent real
5Gaussian coordinates, including equivalence of Bochner integrability. -/
6noncomputable section
7open MeasureTheory
8open scoped ComplexOrder InnerProductSpace Topology BigOperators
9namespace Cloning.PCTFlatGaussianCross
10open Cloning.PCT Cloning.PCTReducedGaussian Cloning.PCTGaussianCovariance
11open Cloning.MultimodeCoherentGaussianMixture
12set_option backward.isDefEq.respectTransparency false
13set_option maxHeartbeats 1000000
14variable {A : Type*} [Fintype A] [DecidableEq A] {s : ℕ}
15
16local instance flatReductionRegisterFinite : FiniteDimensional ℂ (Register (A×A)) :=
17 (registerBasis (A×A)).toOrthonormalBasis.toBasis.finiteDimensional_of_finite
18
19lemma frame_card_sq (u : OrthonormalBasis (Fin (s+1)) ℂ (Register (A×A))) :
20 Fintype.card A^2=s+1 := by
21 have h := Module.finrank_eq_card_basis u.toBasis
22 rw [Module.finrank_eq_card_basis (registerBasis (A×A)).toOrthonormalBasis.toBasis] at h
23 simpa [pow_two] using h
24
25lemma schmidt_reference_hermitian
26 (u : OrthonormalBasis (Fin (s+1)) ℂ (Register (A×A)))
27 (p : A → ℝ) (h0 : u 0=coefficientVector (schmidtCoefficients p)) :
28 ∀ a b,star (u 0 (b,a))=u 0 (a,b) := by
29 intro a b
30 rw [h0]
31 by_cases hab : a=b
32 · subst b
33 simp [coefficientVector_apply,schmidtCoefficients]
34 · simp [coefficientVector_apply,schmidtCoefficients,hab,Ne.symm hab]
35
36def flatCrossExponential (r : ℕ) (v : Register (A×A) × Register (A×A)) : ℝ :=
37 Real.exp ((r : ℝ)*(Matrix.trace
38 (partialTraceDifferential (fun _ : A => (r : ℝ)⁻¹) (fun a b => v.1 (a,b)) *
39 partialTraceDifferential (fun _ : A => (r : ℝ)⁻¹) (fun a b => v.2 (a,b)))).re)
40
41lemma continuous_flatCrossExponential (r : ℕ) : Continuous (flatCrossExponential (A := A) r) := by
42 have heval (a b : A) : Continuous (fun x : Register (A×A) => x (a,b)) := by
43 simpa only [registerBasis_apply,register_inner_single] using
44 (continuous_const.inner continuous_id : Continuous (fun x : Register (A×A) =>
45 ⟪registerBasis (A×A) (a,b),x⟫_ℂ))
46 have hfst (a b : A) : Continuous (fun x : Register (A×A) × Register (A×A) => x.1 (a,b)) :=
47 (heval a b).comp continuous_fst
48 have hsnd (a b : A) : Continuous (fun x : Register (A×A) × Register (A×A) => x.2 (a,b)) :=
49 (heval a b).comp continuous_snd
50 unfold flatCrossExponential partialTraceDifferential
51 simp only [Matrix.trace,Matrix.diag_apply,Matrix.mul_apply,Matrix.add_apply,
52 Matrix.conjTranspose_apply]
53 fun_prop
54
55lemma flatCrossExponential_frameTangent (r : ℕ)
56 (u : Fin (s+1) → Register (A×A)) (z w : Fin s → ℂ) :
57 flatCrossExponential r (frameTangent u z,frameTangent u w)=
58 Real.exp ((r : ℝ)*(Matrix.trace
59 (partialTraceDifferential (fun _ : A => (r : ℝ)⁻¹) (frameTangentMatrix u z) *
60 partialTraceDifferential (fun _ : A => (r : ℝ)⁻¹) (frameTangentMatrix u w))).re) := rfl
61
62/-- Every continuous cross integral is transported through an actual
63Hermitian frame with exactly the same reference vector. -/
64theorem integral_flat_cross_eq_real_coordinates
65 (u : OrthonormalBasis (Fin (s+1)) ℂ (Register (A×A)))
66 (hH0 : ∀ a b,star (u 0 (b,a))=u 0 (a,b))
67 (r : ℕ) (hr : 0<r) {δ : ℝ} (hδ : 0<δ) :
68 (∫ z, Real.exp ((r : ℝ)*(Matrix.trace
69 (partialTraceDifferential (fun _ : A => (r : ℝ)⁻¹) (frameTangentMatrix u z.1) *
70 partialTraceDifferential (fun _ : A => (r : ℝ)⁻¹) (frameTangentMatrix u z.2))).re)
71 ∂(gaussianProductMeasure (fun _ : Fin s => δ)).prod
72 (gaussianProductMeasure (fun _ : Fin s => δ)))=
73 ∫ z, Real.exp (4*∑ i,(z.1 i).re*(z.2 i).re)
74 ∂(gaussianProductMeasure (fun _ : Fin s => δ)).prod
75 (gaussianProductMeasure (fun _ : Fin s => δ)) := by
76 obtain ⟨v,hv0,hv⟩ := exists_hermitian_frame (frame_card_sq u) (u 0)
77 (u.orthonormal.norm_eq_one 0) hH0
78 have he := integral_frameTangent_prod_eq u v hv0.symm hδ
79 (flatCrossExponential r) (continuous_flatCrossExponential r)
80 simp only [flatCrossExponential_frameTangent] at he
81 rw [he]
82 apply integral_congr_ae
83 filter_upwards [] with z
84 rw [flatDifferential_rank_trace_cross v hv r hr]
85
86/-- The physical exponential is integrable exactly when the derived real
87coordinate expression is. Thus no integrability is silently presumed. -/
88theorem integrable_flat_cross_iff_real_coordinates
89 (u : OrthonormalBasis (Fin (s+1)) ℂ (Register (A×A)))
90 (hH0 : ∀ a b,star (u 0 (b,a))=u 0 (a,b))
91 (r : ℕ) (hr : 0<r) {δ : ℝ} (hδ : 0<δ) :
92 Integrable (fun z => Real.exp ((r : ℝ)*(Matrix.trace
93 (partialTraceDifferential (fun _ : A => (r : ℝ)⁻¹) (frameTangentMatrix u z.1) *
94 partialTraceDifferential (fun _ : A => (r : ℝ)⁻¹) (frameTangentMatrix u z.2))).re))
95 ((gaussianProductMeasure (fun _ : Fin s => δ)).prod
96 (gaussianProductMeasure (fun _ : Fin s => δ))) ↔
97 Integrable (fun z => Real.exp (4*∑ i,(z.1 i).re*(z.2 i).re))
98 ((gaussianProductMeasure (fun _ : Fin s => δ)).prod
99 (gaussianProductMeasure (fun _ : Fin s => δ))) := by
100 obtain ⟨v,hv0,hv⟩ := exists_hermitian_frame (frame_card_sq u) (u 0)
101 (u.orthonormal.norm_eq_one 0) hH0
102 have he := integrable_frameTangent_prod_iff u v hv0.symm hδ
103 (flatCrossExponential r) (continuous_flatCrossExponential r)
104 simp only [flatCrossExponential_frameTangent] at he
105 rw [he]
106 have hf : (fun z : (Fin s → ℂ) × (Fin s → ℂ) =>
107 Real.exp ((r : ℝ)*(Matrix.trace
108 (partialTraceDifferential (fun _ : A => (r : ℝ)⁻¹) (frameTangentMatrix v z.1) *
109 partialTraceDifferential (fun _ : A => (r : ℝ)⁻¹) (frameTangentMatrix v z.2))).re))=
110 (fun z => Real.exp (4*∑ i,(z.1 i).re*(z.2 i).re)) := by
111 funext z
112 rw [flatDifferential_rank_trace_cross v hv r hr]
113 rw [hf]
114
115end Cloning.PCTFlatGaussianCross