Exact Lean source
TensorRankOneGibbs
formalization/Cloning/TensorRankOneGibbs.lean
Source hash: c3396fa58122819f945cde746aefd8ebaa13466bd93142058a7d6c7257490b90
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.TensorLie.top_occupation_eq_smul_basistheorem Cloning.TensorLie.tensorOperator_coordinate_projectiontheorem Cloning.TensorLie.tensorOperator_coordinate_projection_highesttheorem Cloning.TensorLie.sectorGibbsDensity_coordinatetheorem Cloning.TensorLie.canonicalGibbsDensity_rankOnetheorem Cloning.TensorLie.canonicalRotatedGibbs_rankOne1import Cloning.TensorRankOneHighest
2import Cloning.TensorFlatProjectorMixture
3
4/-! The actual rank-one sector Gibbs density is the highest-vector projector. -/
5noncomputable section
6open scoped BigOperators InnerProductSpace Classical Matrix
7namespace Cloning.TensorLie
8open Cloning.PCT Cloning.InfiniteTraceClass Cloning.TensorLAN
9set_option maxHeartbeats 1400000
10set_option backward.isDefEq.respectTransparency false
11variable {n d : ℕ}
12local instance : FiniteDimensional ℂ (TensorRegister n (Fin d)) :=
13 (registerBasis (Fin n → Fin d)).toOrthonormalBasis.toBasis.finiteDimensional_of_finite
14
15theorem top_occupation_eq_smul_basis (a : Fin d) (Ω : TensorRegister n (Fin d))
16 (hΩ : collectiveGenerator n a a Ω=(n:ℂ) • Ω) :
17 Ω=Ω (fun _=>a) • registerBasis (Fin n → Fin d) (fun _=>a) := by
18 ext w
19 have he := congrArg (fun x : TensorRegister n (Fin d) => x w) hΩ
20 simp only [collectiveGenerator_diagonal,lp.coeFn_smul,Pi.smul_apply,smul_eq_mul] at he
21 by_cases hw : w=(fun _=>a)
22 · subst w
23 simp [registerBasis_apply,lp.single_apply,Pi.single_apply]
24 · have hne : occupancy w a ≠ n := by
25 intro hn
26 apply hw
27 have hall : ∀ i : Fin n, w i=a := by
28 simpa only [Finset.card_univ,Fintype.card_fin,Finset.mem_univ,true_implies,occupancy] using
29 (Finset.card_filter_eq_iff (s := (Finset.univ : Finset (Fin n)))
30 (p := fun i=>w i=a)).mp (by simpa only [Finset.card_univ,Fintype.card_fin] using hn)
31 exact funext hall
32 have hn : (occupancy w a : ℂ) ≠ n := by exact_mod_cast hne
33 have hz : Ω w=0 := (mul_eq_mul_right_iff.mp he).resolve_left hn
34 simp [registerBasis_apply,lp.single_apply,Pi.single_apply,hw,hz]
35
36theorem tensorOperator_coordinate_projection (a : Fin d) (x : TensorRegister n (Fin d)) :
37 tensorOperator n (Matrix.diagonal (fun b => if b=a then (1:ℂ) else 0)) x =
38 x (fun _=>a) • registerBasis (Fin n → Fin d) (fun _=>a) := by
39 ext w
40 rw [tensorOperator_diagonal_apply]
41 by_cases hw : w=(fun _=>a)
42 · subst w
43 simp [registerBasis_apply,lp.single_apply,Pi.single_apply]
44 · have ht : ∃ t, w t≠a := by
45 by_contra hh
46 push_neg at hh
47 exact hw (funext hh)
48 obtain ⟨t,ht⟩ := ht
49 have hp : (∏ i : Fin n, if w i=a then (1:ℂ) else 0)=0 :=
50 Finset.prod_eq_zero (Finset.mem_univ t) (if_neg ht)
51 simp [hp,registerBasis_apply,lp.single_apply,Pi.single_apply,hw]
52
53theorem tensorOperator_coordinate_projection_highest (a : Fin d)
54 (Ω : TensorRegister n (Fin d)) (hΩnorm : ‖Ω‖=1)
55 (hΩ : collectiveGenerator n a a Ω=(n:ℂ) • Ω) (x : TensorRegister n (Fin d)) :
56 tensorOperator n (Matrix.diagonal (fun b => if b=a then (1:ℂ) else 0)) x =
57 ⟪Ω,x⟫_ℂ • Ω := by
58 let e := registerBasis (Fin n → Fin d) (fun _=>a)
59 let c := Ω (fun _=>a)
60 have he : Ω=c • e := top_occupation_eq_smul_basis a Ω hΩ
61 have hc : star c*c=1 := by
62 have hh : ⟪Ω,Ω⟫_ℂ=1 := by simp [inner_self_eq_norm_sq_to_K,hΩnorm]
63 rw [he,inner_smul_left,inner_smul_right] at hh
64 simpa only [e,inner_self_eq_norm_sq_to_K,
65 (registerBasis (Fin n → Fin d)).orthonormal.1,one_pow,
66 RCLike.ofReal_one,mul_one,RCLike.star_def] using hh
67 rw [tensorOperator_coordinate_projection,he,inner_smul_left]
68 have hi : ⟪e,x⟫_ℂ=x (fun _=>a) := by
69 simpa only [e,registerBasis_apply] using register_inner_single (fun _ : Fin n=>a) x
70 rw [hi,smul_smul]
71 have hh : (star c*x (fun _=>a))*c=x (fun _=>a) := by
72 calc _ = (star c*c)*x (fun _=>a) := by ring
73 _ = _ := by rw [hc,one_mul]
74 exact (congrArg (fun z : ℂ => z • e) hh).symm
75
76/-- A coordinate-pure spectrum gives exactly the normalized highest projector. -/
77theorem sectorGibbsDensity_coordinate (a : Fin d)
78 (Ω : TensorRegister n (Fin d)) (mu : Fin d → ℕ)
79 (hweight : ∀ b,collectiveGenerator n b b Ω=(mu b:ℂ) • Ω)
80 (hraise : ∀ b c,b<c→collectiveGenerator n b c Ω=0)
81 (hΩnorm : ‖Ω‖=1) (ha : mu a=n) :
82 sectorGibbsDensity Ω mu hweight hraise (fun b=>if b=a then 1 else 0)=
83 vectorProjector (⟨Ω,highest_mem_cyclicSector Ω⟩ : cyclicSector Ω) := by
84 let v : cyclicSector Ω := ⟨Ω,highest_mem_cyclicSector Ω⟩
85 have hv : ‖v‖=1 := hΩnorm
86 have hw : sectorGibbsWeight Ω mu hweight hraise (fun b=>if b=a then 1 else 0)=
87 vectorProjector v := by
88 apply Subtype.ext
89 apply ContinuousLinearMap.ext
90 intro x
91 apply Subtype.ext
92 change tensorOperator n (Matrix.diagonal (fun b=>((if b=a then 1 else 0 : ℝ):ℂ)))
93 (x : TensorRegister n (Fin d)) = ⟪Ω,(x : TensorRegister n (Fin d))⟫_ℂ • Ω
94 simp only [apply_ite,Complex.ofReal_one,Complex.ofReal_zero]
95 exact tensorOperator_coordinate_projection_highest a Ω hΩnorm (ha ▸ hweight a) x
96 have hZ : sectorPartitionFunction Ω mu hweight hraise (fun b=>if b=a then 1 else 0)=1 := by
97 change ‖sectorGibbsWeight Ω mu hweight hraise _‖=1
98 rw [hw,norm_vectorProjector,hv,one_pow]
99 rw [sectorGibbsDensity,hZ,hw]
100 simp only [inv_one,Complex.ofReal_one,one_smul]
101 rfl
102
103/-- This is the literal canonical sector state used by the global channel. -/
104theorem canonicalGibbsDensity_rankOne {k : ℕ} (H : PhysicalHighestTensor n (1+k))
105 (hH : H.weight 0=n) :
106 canonicalGibbsDensity H (rankFlatSpectrum 1 k)=
107 vectorProjector (⟨partitionHighestTensor H.weight H.weight_antitone,
108 highest_mem_cyclicSector _⟩ : H.CanonicalSector) := by
109 have hp : rankFlatSpectrum 1 k=(fun b : Fin (1+k)=>if b=0 then 1 else 0) := by
110 funext b
111 have hb : b.val<1 ↔ b=0 := by
112 constructor
113 · intro h; apply Fin.ext; change b.val=0; omega
114 · rintro rfl; exact Nat.zero_lt_one
115 simp only [rankFlatSpectrum,Nat.cast_one,div_one,hb]
116 rw [hp]
117 exact sectorGibbsDensity_coordinate 0 _ H.weight
118 (partitionHighestTensor_cartan H.weight H.weight_antitone)
119 (partitionHighestTensor_raising_zero H.weight H.weight_antitone)
120 (partitionHighestTensor_norm H.weight H.weight_antitone) (hH.trans H.weight_sum.symm)
121
122theorem canonicalRotatedGibbs_rankOne {k : ℕ} (H : PhysicalHighestTensor n (1+k))
123 (hH : H.weight 0=n) (U : Matrix (Fin (1+k)) (Fin (1+k)) ℂ) :
124 canonicalRotatedGibbs H U (rankFlatSpectrum 1 k)=
125 vectorProjector (H.canonicalTensorOperator U
126 ⟨partitionHighestTensor H.weight H.weight_antitone,highest_mem_cyclicSector _⟩) := by
127 rw [canonicalRotatedGibbs,canonicalGibbsDensity_rankOne H hH]
128 exact conjugationLinearMap_vectorProjector _ _
129
130end Cloning.TensorLie