Offline · exact source
Exact Lean source

PCTProjectorPurityKernel

formalization/Cloning/PCTProjectorPurityKernel.lean

Source hash: 3b8af3a21945a76aeec74da2c8b83ff11b6ef0d55b97af4073f4ad85bd2cd9d4

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.PCTProjectorPurityParticle
2import Mathlib.Analysis.SpecialFunctions.Complex.LogBounds
3 
4/-! The literal finite-sample scaled-purity kernel converges pointwise to
5the exponential of the full Hermitian tangent cross term. -/
6noncomputable section
7open scoped BigOperators Topology Matrix ComplexOrder InnerProductSpace
8open Filter MeasureTheory
9namespace Cloning.PCTProjectorPurity
10open Cloning.PCT Cloning.PCTReducedGaussian Cloning.PCTPhysicalState
11open Cloning.PCTLocalChart Cloning.PCTGaussianCovariance Cloning.YoungGeneral
12set_option backward.isDefEq.respectTransparency true
13set_option maxHeartbeats 200000
14variable {r s : ℕ}
15 
16lemma flatBase_eq_smul_one (r : ℕ) :
17    flatBase r=((r : ℂ)⁻¹) • (1 : Matrix (Fin r) (Fin r) ℂ) := by
18  ext i j
19  simp [flatBase,Matrix.one_apply,Matrix.diagonal_apply]
20 
21lemma trace_particle (hr : 0<r)
22    (u : OrthonormalBasis (Fin (s+1)) ℂ (Register (Fin r × Fin r)))
23    (z : Fin s → ℂ) (L : ℕ) : Matrix.trace (particle u z L)=1 := by
24  letI : Nonempty (Fin r) := ⟨⟨0,hr⟩⟩
25  rw [particle,trace_reducedDensityMatrix_complex,frameParticle_norm u.orthonormal]
26  norm_num
27 
28lemma rank_trace_centered_mul (hr : 0<r) (P Q : Matrix (Fin r) (Fin r) ℂ)
29    (hP : Matrix.trace P=1) (hQ : Matrix.trace Q=1) :
30    (r : ℂ)*Matrix.trace ((P-flatBase r)*(Q-flatBase r))=
31      (r : ℂ)*Matrix.trace (P*Q)-1 := by
32  have hR : (r : ℂ)≠0 := by exact_mod_cast Nat.ne_of_gt hr
33  rw [flatBase_eq_smul_one]
34  simp only [Matrix.sub_mul,Matrix.mul_sub,Matrix.mul_smul,Matrix.smul_mul,
35    Matrix.mul_one,Matrix.one_mul,Matrix.trace_sub,Matrix.trace_smul,hP,hQ,smul_eq_mul,
36    Matrix.trace_one,Fintype.card_fin]
37  field_simp
38  <;> ring
39 
40lemma particle_scaled_trace_tendsto (hr : 0<r)
41    (u : OrthonormalBasis (Fin (s+1)) ℂ (Register (Fin r × Fin r)))
42    (hu : u 0=coefficientVector (schmidtCoefficients (flatSpectrum r)))
43    (z w : Fin s → ℂ) :
44    Tendsto (fun L : ℕ => (L : ℂ)*((r : ℂ)*Matrix.trace (particle u z L*particle u w L)-1))
45      atTop (𝓝 ((r : ℂ)*Matrix.trace (tangent u z*tangent u w))) := by
46  have hh : Tendsto (fun L : ℕ => ∑i : Fin r,∑j : Fin r,
47      ((Real.sqrt (L : ℝ) : ℂ)*(particle u z L i j-flatBase r i j))*
48      ((Real.sqrt (L : ℝ) : ℂ)*(particle u w L j i-flatBase r j i)))
49      atTop (𝓝 (∑i : Fin r,∑j : Fin r,tangent u z i j*tangent u w j i)) := by
50    apply tendsto_finset_sum
51    intro i _
52    apply tendsto_finset_sum
53    intro j _
54    exact (particle_scaled_entry_tendsto u hu z i j).mul
55      (particle_scaled_entry_tendsto u hu w j i)
56  have ht := hh.const_mul (r : ℂ)
57  change Tendsto _ atTop (𝓝 ((r : ℂ)*Matrix.trace (tangent u z*tangent u w))) at ht
58  apply ht.congr
59  intro L
60  rw [←rank_trace_centered_mul hr _ _ (trace_particle hr u z L) (trace_particle hr u w L)]
61  simp only [Matrix.trace,Matrix.diag_apply,Matrix.mul_apply,Matrix.sub_apply,Finset.mul_sum]
62  apply Finset.sum_congr rfl
63  intro i _
64  apply Finset.sum_congr rfl
65  intro j _
66  have hsq : (Real.sqrt (L : ℝ) : ℂ)^2=(L : ℂ) := by
67    exact_mod_cast Real.sq_sqrt (Nat.cast_nonneg L : 0≤(L : ℝ))
68  calc
69    _ = (r : ℂ)*(Real.sqrt (L : ℝ) : ℂ)^2*
70        ((particle u z L i j-flatBase r i j)*(particle u w L j i-flatBase r j i)) := by ring
71    _ = _ := by rw [hsq]; ring
72 
73/-- Pointwise asymptotic of the actual normalized one-particle overlap. -/
74theorem particle_purity_kernel_tendsto (hr : 0<r)
75    (u : OrthonormalBasis (Fin (s+1)) ℂ (Register (Fin r × Fin r)))
76    (hu : u 0=coefficientVector (schmidtCoefficients (flatSpectrum r)))
77    (z w : Fin s → ℂ) :
78    Tendsto (fun L : ℕ => ((r : ℝ)*(Matrix.trace (particle u z L*particle u w L)).re)^L)
79      atTop (𝓝 (Real.exp ((r : ℝ)*(Matrix.trace (tangent u z*tangent u w)).re))) := by
80  have hh := Complex.continuous_re.tendsto _ |>.comp (particle_scaled_trace_tendsto hr u hu z w)
81  simp only [Function.comp_def,Complex.mul_re,Complex.natCast_re,Complex.natCast_im,zero_mul,mul_zero,
82    sub_zero,Complex.sub_re,Complex.one_re] at hh
83  have ht := Real.tendsto_one_add_pow_exp_of_tendsto hh
84  simpa only [add_sub_cancel] using ht
85 
86end Cloning.PCTProjectorPurity