Offline · exact source
Exact Lean source

PBWSymmetricFrameRate

formalization/Cloning/PBWSymmetricFrameRate.lean

Source hash: 83e7eea38475a804b0fbec7a8e859431f09b50743027ef27f3fe73e0e0fc9087

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.PBWSymmetricFrameRateCFC
2 
3/-! Literal symmetric normalization of a finite Hilbert-space family, with a
4quantitative Gram-error bound and exact preservation of its span. -/
5noncomputable section
6open scoped ComplexOrder InnerProductSpace Topology BigOperators
7namespace Cloning.PBWSymmetricFrame
8open ContinuousLinearMap InnerProductSpace
9set_option backward.isDefEq.respectTransparency false
10set_option maxHeartbeats 800000
11variable {ι E H : Type*} [Fintype ι] [DecidableEq ι]
12  [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E]
13  [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
14 
15def synthesis (b : OrthonormalBasis ι ℂ E) (v : ι→H) : E →L[ℂ] H :=
16  ∑ i, rankOne ℂ (v i) (b i)
17 
18theorem synthesis_apply (b : OrthonormalBasis ι ℂ E) (v : ι→H) (x : E) :
19    synthesis b v x=∑ i,⟪b i,x⟫_ℂ • v i := by
20  simp only [synthesis,ContinuousLinearMap.sum_apply,rankOne_apply]
21 
22@[simp] theorem synthesis_basis (b : OrthonormalBasis ι ℂ E) (v : ι→H) (i : ι) :
23    synthesis b v (b i)=v i := by
24  rw [synthesis_apply]
25  simp only [orthonormal_iff_ite.mp b.orthonormal,ite_smul,one_smul,zero_smul]
26  simp
27 
28theorem gram_entry (b : OrthonormalBasis ι ℂ E) (v : ι→H) (i j : ι) :
29    ⟪b i,gram (synthesis b v) (b j)⟫_ℂ=⟪v i,v j⟫_ℂ := by
30  rw [gram,ContinuousLinearMap.comp_apply,ContinuousLinearMap.adjoint_inner_right,
31    synthesis_basis,synthesis_basis]
32 
33theorem operator_eq_sum_rankOne (b : OrthonormalBasis ι ℂ E) (T : E →L[ℂ] E) :
34    T=∑ i,∑ j,⟪b i,T (b j)⟫_ℂ • rankOne ℂ (b i) (b j) := by
35  ext x
36  simp only [ContinuousLinearMap.sum_apply,ContinuousLinearMap.smul_apply,
37    rankOne_apply,smul_smul]
38  rw [Finset.sum_comm]
39  calc
40    T x=∑ j,⟪b j,x⟫_ℂ • T (b j) := by
41      conv_lhs => rw [←b.sum_repr' x]
42      simp only [map_sum,map_smul]
43    _ = ∑ j,∑ i,(⟪b i,T (b j)⟫_ℂ*⟪b j,x⟫_ℂ) • b i := by
44      apply Finset.sum_congr rfl
45      intro j _
46      conv_lhs => rw [←b.sum_repr' (T (b j))]
47      rw [Finset.smul_sum]
48      apply Finset.sum_congr rfl
49      intro i _
50      rw [smul_smul,mul_comm]
51 
52theorem operator_norm_le_entries (b : OrthonormalBasis ι ℂ E) (T : E →L[ℂ] E) :
53    ‖T‖≤∑ i,∑ j,‖⟪b i,T (b j)⟫_ℂ‖ := by
54  conv_lhs => rw [operator_eq_sum_rankOne b T]
55  apply (norm_sum_le _ _).trans
56  apply Finset.sum_le_sum
57  intro i _
58  apply (norm_sum_le _ _).trans
59  apply Finset.sum_le_sum
60  intro j _
61  simp only [norm_smul,norm_rankOne,b.orthonormal.norm_eq_one,mul_one,le_refl]
62 
63theorem gram_error_norm_le (b : OrthonormalBasis ι ℂ E) (v : ι→H) (ε : ℝ)
64    (herr : ∀ i j,‖⟪v i,v j⟫_ℂ-(if i=j then 1 else 0 : ℂ)‖≤ε) :
65    ‖gram (synthesis b v)-1‖≤(Fintype.card ι : ℝ)^2*ε := by
66  apply (operator_norm_le_entries b _).trans
67  calc
68    (∑i,∑j,‖⟪b i,(gram (synthesis b v)-1) (b j)⟫_ℂ‖)≤∑i : ι,∑j : ι,ε := by
69      apply Finset.sum_le_sum
70      intro i _
71      apply Finset.sum_le_sum
72      intro j _
73      simpa only [ContinuousLinearMap.sub_apply,one_apply,inner_sub_right,
74        gram_entry,orthonormal_iff_ite.mp b.orthonormal] using herr i j
75    _ = _ := by simp [pow_two,mul_assoc]
76 
77theorem gram_isUnit_of_error (b : OrthonormalBasis ι ℂ E) (v : ι→H) (ε : ℝ)
78    (herr : ∀ i j,‖⟪v i,v j⟫_ℂ-(if i=j then 1 else 0 : ℂ)‖≤ε)
79    (hε : (Fintype.card ι : ℝ)^2*ε<1) : IsUnit (gram (synthesis b v)) := by
80  have h : ‖1-gram (synthesis b v)‖<1 := by
81    rw [norm_sub_rev]
82    exact (gram_error_norm_le b v ε herr).trans_lt hε
83  simpa only [sub_sub_cancel] using isUnit_one_sub_of_norm_lt_one h
84 
85def frame (b : OrthonormalBasis ι ℂ E) (v : ι→H) (i : ι) : H :=
86  polar (synthesis b v) (b i)
87 
88theorem frame_orthonormal (b : OrthonormalBasis ι ℂ E) (v : ι→H)
89    (hV : IsUnit (gram (synthesis b v))) : Orthonormal ℂ (frame b v) := by
90  let T : E →ₗᵢ[ℂ] H := ⟨(polar (synthesis b v)).toLinearMap,polar_norm _ hV⟩
91  rw [orthonormal_iff_ite]
92  intro i j
93  change ⟪T (b i),T (b j)⟫_ℂ=_
94  rw [T.inner_map_map,orthonormal_iff_ite.mp b.orthonormal]
95 
96theorem frame_error_le (b : OrthonormalBasis ι ℂ E) (v : ι→H)
97    (hV : IsUnit (gram (synthesis b v))) (ε : ℝ)
98    (herr : ∀ i j,‖⟪v i,v j⟫_ℂ-(if i=j then 1 else 0 : ℂ)‖≤ε) (i : ι) :
99    ‖frame b v i-v i‖≤(Fintype.card ι : ℝ)^2*ε := by
100  have h := polar_sub_apply_le (synthesis b v) hV (b i)
101  simp only [synthesis_basis,b.orthonormal.norm_eq_one,mul_one] at h
102  exact h.trans (gram_error_norm_le b v ε herr)
103 
104theorem frame_mem_span (b : OrthonormalBasis ι ℂ E) (v : ι→H) (i : ι) :
105    frame b v i∈Submodule.span ℂ (Set.range v) := by
106  unfold frame polar
107  rw [ContinuousLinearMap.comp_apply,synthesis_apply]
108  exact Submodule.sum_mem _ (fun j _=>Submodule.smul_mem _ _
109    (Submodule.subset_span (Set.mem_range_self j)))
110 
111theorem span_frame (b : OrthonormalBasis ι ℂ E) (v : ι→H)
112    (hV : IsUnit (gram (synthesis b v))) :
113    Submodule.span ℂ (Set.range (frame b v))=Submodule.span ℂ (Set.range v) := by
114  apply le_antisymm
115  · exact Submodule.span_le.mpr (by rintro _ ⟨i,rfl⟩; exact frame_mem_span b v i)
116  · apply Submodule.span_le.mpr
117    rintro _ ⟨i,rfl⟩
118    have he : v i=polar (synthesis b v) (CFC.sqrt (gram (synthesis b v)) (b i)) := by
119      simpa only [ContinuousLinearMap.comp_apply,synthesis_basis] using
120        (congrArg (fun T : E →L[ℂ] H=>T (b i)) (polar_mul_sqrt (synthesis b v) hV)).symm
121    rw [he,←b.sum_repr' (CFC.sqrt (gram (synthesis b v)) (b i)),map_sum]
122    simp only [map_smul]
123    exact Submodule.sum_mem _ (fun j _=>Submodule.smul_mem _ _
124      (Submodule.subset_span (Set.mem_range_self j)))
125 
126end Cloning.PBWSymmetricFrame