roseking commited on
Commit
0aba1cd
·
verified ·
1 Parent(s): 16b32be

Add lean source and binary files (part 33)

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. lean/OAI/Analysis/OInfinity/ProjectionCorner.lean +166 -0
  2. lean/OAI/Analysis/OInfinity/ProperBufferAbsorption.lean +261 -0
  3. lean/OAI/Analysis/OInfinity/RelativeCocycle.lean +152 -0
  4. lean/OAI/Analysis/OInfinity/RelativeCompletedComparison.lean +147 -0
  5. lean/OAI/Analysis/OInfinity/RelativeGramCorrection.lean +291 -0
  6. lean/OAI/Analysis/OInfinity/RelativeUnitaryPath.lean +140 -0
  7. lean/OAI/Analysis/OInfinity/RohlinGluing.lean +166 -0
  8. lean/OAI/Analysis/OInfinity/RohlinPartitions.lean +101 -0
  9. lean/OAI/Analysis/OInfinity/RohlinPolar.lean +109 -0
  10. lean/OAI/Analysis/OInfinity/RohlinShift.lean +180 -0
  11. lean/OAI/Analysis/OInfinity/RohlinUnitarity.lean +115 -0
  12. lean/OAI/Analysis/OInfinity/RowCocycleDefect.lean +223 -0
  13. lean/OAI/Analysis/OInfinity/RowCompletionBase.lean +145 -0
  14. lean/OAI/Analysis/OInfinity/RowCompletionBuffer.lean +314 -0
  15. lean/OAI/Analysis/OInfinity/ShrinkPaths.lean +174 -0
  16. lean/OAI/Analysis/OInfinity/Simple.lean +192 -0
  17. lean/OAI/Analysis/OInfinity/TailCancellationWitness.lean +240 -0
  18. lean/OAI/Analysis/OInfinity/TensorApproximation.lean +142 -0
  19. lean/OAI/Analysis/OInfinity/TensorGram.lean +223 -0
  20. lean/OAI/Analysis/OInfinity/TensorNorm.lean +487 -0
  21. lean/OAI/Analysis/OInfinity/ToeplitzCompression.lean +157 -0
  22. lean/OAI/Analysis/OInfinity/TransportedBuffer.lean +118 -0
  23. lean/OAI/Analysis/OInfinity/VacuumBufferAbsorption.lean +121 -0
  24. lean/OAI/Analysis/OInfinity/VacuumCorner.lean +282 -0
  25. lean/OAI/Analysis/OInfinity/VacuumSplit.lean +271 -0
  26. lean/OAI/Analysis/OInfinity/ZeroCorner.lean +427 -0
  27. lean/OAI/Analysis/OInfinity/ZeroCornerRows.lean +280 -0
  28. lean/OAI/Analysis/OInfinity/ZeroUnitBuffer.lean +194 -0
  29. lean/OAI/Analysis/OInfinity/ZeroUnitComparison.lean +331 -0
  30. lean/OAI/Analysis/OInfinity/ZeroUnitCompletion.lean +368 -0
  31. lean/OAI/Analysis/OInfinity/ZeroUnitRows.lean +138 -0
  32. lean/OAI/Analysis/OperatorAlgebra/AntiunitaryCPConjugation.lean +116 -0
  33. lean/OAI/Analysis/OperatorAlgebra/AntiunitaryOperatorIdentities.lean +52 -0
  34. lean/OAI/Analysis/OperatorAlgebra/BicommutantStrongStar.lean +93 -0
  35. lean/OAI/Analysis/OperatorAlgebra/CanonicalLpOperations.lean +48 -0
  36. lean/OAI/Analysis/OperatorAlgebra/ComplexSymmetricMean.lean +118 -0
  37. lean/OAI/Analysis/OperatorAlgebra/ContinuousLpFieldNorm.lean +82 -0
  38. lean/OAI/Analysis/OperatorAlgebra/CyclicCoefficientApproximation.lean +63 -0
  39. lean/OAI/Analysis/OperatorAlgebra/CyclicGNSUnitary.lean +86 -0
  40. lean/OAI/Analysis/OperatorAlgebra/CyclicSeparatingCompression.lean +51 -0
  41. lean/OAI/Analysis/OperatorAlgebra/CyclicStandardIntertwiner.lean +93 -0
  42. lean/OAI/Analysis/OperatorAlgebra/CyclicStateNorm.lean +60 -0
  43. lean/OAI/Analysis/OperatorAlgebra/DensityQuadraticCompression.lean +103 -0
  44. lean/OAI/Analysis/OperatorAlgebra/DensityRootTrace.lean +56 -0
  45. lean/OAI/Analysis/OperatorAlgebra/DensitySpatialRepresentation.lean +85 -0
  46. lean/OAI/Analysis/OperatorAlgebra/DensityUnitaryCoefficients.lean +65 -0
  47. lean/OAI/Analysis/OperatorAlgebra/ExpectationDensityRoots.lean +72 -0
  48. lean/OAI/Analysis/OperatorAlgebra/ExpectationFiniteDensity.lean +73 -0
  49. lean/OAI/Analysis/OperatorAlgebra/ExpectationHypertrace.lean +58 -0
  50. lean/OAI/Analysis/OperatorAlgebra/FiniteHilbertCompression.lean +120 -0
lean/OAI/Analysis/OInfinity/ProjectionCorner.lean ADDED
@@ -0,0 +1,166 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Analysis.OInfinity.RowCocycleDefect
2
+
3
+ namespace OAI
4
+
5
+ /-! # Unital C⋆ structure and unitary paths in a projection corner
6
+
7
+ The corner has unit `q`; its inclusion in the ambient algebra is nonunital.
8
+ A corner unitary becomes an ambient unitary by adding `1-q`, preserving
9
+ norm differences and therefore the quantitative path estimates.
10
+ -/
11
+
12
+ noncomputable section
13
+ open scoped CStarAlgebra
14
+
15
+ namespace WeakPureInfiniteness
16
+
17
+ variable {E : Type*} [CStarAlgebra E]
18
+
19
+ def projectionCornerAlgebra (q : E) (hq : star q = q) : NonUnitalStarSubalgebra ℂ E where
20
+ carrier := {x | q * x = x ∧ x * q = x}
21
+ zero_mem' := by simp
22
+ add_mem' hx hy := by
23
+ exact ⟨by rw [mul_add, hx.1, hy.1], by rw [add_mul, hx.2, hy.2]⟩
24
+ mul_mem' hx hy := ⟨by rw [← mul_assoc, hx.1], by rw [mul_assoc, hy.2]⟩
25
+ smul_mem' c x hx :=
26
+ ⟨by rw [mul_smul_comm, hx.1], by rw [smul_mul_assoc, hx.2]⟩
27
+ star_mem' hx := ⟨by simpa only [star_mul, hq] using congrArg star hx.2,
28
+ by simpa only [star_mul, hq] using congrArg star hx.1⟩
29
+
30
+ lemma projectionCornerAlgebra_closed (q : E) (hq : star q = q) :
31
+ IsClosed (projectionCornerAlgebra q hq : Set E) :=
32
+ (isClosed_eq (by fun_prop) continuous_id).inter
33
+ (isClosed_eq (by fun_prop) continuous_id)
34
+
35
+ /-- The closed supported corner, equipped below with unit `q`. -/
36
+ abbrev ProjectionCorner (q : E) (hq : star q = q) (_hqq : q * q = q) : Type _ :=
37
+ projectionCornerAlgebra q hq
38
+
39
+ instance projectionCornerClosed (q : E) (hq : star q = q) :
40
+ IsClosed (projectionCornerAlgebra q hq : Set E) := projectionCornerAlgebra_closed q hq
41
+
42
+ instance projectionCornerSemiring (q : E) (hq : star q = q) (hqq : q * q = q) :
43
+ Semiring (ProjectionCorner q hq hqq) where
44
+ __ : NonUnitalSemiring (ProjectionCorner q hq hqq) :=
45
+ inferInstanceAs (NonUnitalSemiring (projectionCornerAlgebra q hq))
46
+ one := ⟨q, hqq, hqq⟩
47
+ one_mul x := Subtype.ext x.property.1
48
+ mul_one x := Subtype.ext x.property.2
49
+
50
+ instance projectionCornerRing (q : E) (hq : star q = q) (hqq : q * q = q) :
51
+ Ring (ProjectionCorner q hq hqq) where
52
+ __ : Semiring (ProjectionCorner q hq hqq) := projectionCornerSemiring q hq hqq
53
+ __ : NonUnitalRing (ProjectionCorner q hq hqq) :=
54
+ inferInstanceAs (NonUnitalRing (projectionCornerAlgebra q hq))
55
+
56
+ instance projectionCornerNormedRing (q : E) (hq : star q = q) (hqq : q * q = q) :
57
+ NormedRing (ProjectionCorner q hq hqq) where
58
+ __ : Ring (ProjectionCorner q hq hqq) := projectionCornerRing q hq hqq
59
+ __ : NonUnitalNormedRing (ProjectionCorner q hq hqq) :=
60
+ inferInstanceAs (NonUnitalNormedRing (projectionCornerAlgebra q hq))
61
+
62
+ instance projectionCornerAlgebraStructure (q : E) (hq : star q = q) (hqq : q * q = q) :
63
+ Algebra ℂ (ProjectionCorner q hq hqq) :=
64
+ Algebra.ofModule (fun _ _ _ => Subtype.ext (smul_mul_assoc _ _ _))
65
+ (fun _ _ _ => Subtype.ext (mul_smul_comm _ _ _))
66
+
67
+ instance projectionCornerNormedAlgebra (q : E) (hq : star q = q) (hqq : q * q = q) :
68
+ NormedAlgebra ℂ (ProjectionCorner q hq hqq) where
69
+ __ := projectionCornerAlgebraStructure q hq hqq
70
+ norm_smul_le c x := by exact norm_smul_le c (x : E)
71
+
72
+ instance projectionCornerCStarAlgebra (q : E) (hq : star q = q) (hqq : q * q = q) :
73
+ CStarAlgebra (ProjectionCorner q hq hqq) where
74
+ __ : NormedRing (ProjectionCorner q hq hqq) := projectionCornerNormedRing q hq hqq
75
+ __ : NormedAlgebra ℂ (ProjectionCorner q hq hqq) := projectionCornerNormedAlgebra q hq hqq
76
+ __ : StarRing (ProjectionCorner q hq hqq) :=
77
+ inferInstanceAs (StarRing (projectionCornerAlgebra q hq))
78
+ __ : CompleteSpace (ProjectionCorner q hq hqq) :=
79
+ inferInstanceAs (CompleteSpace (projectionCornerAlgebra q hq))
80
+ __ : StarModule ℂ (ProjectionCorner q hq hqq) :=
81
+ inferInstanceAs (StarModule ℂ (projectionCornerAlgebra q hq))
82
+ norm_mul_self_le x := (CStarRing.norm_star_mul_self (x := (x : E))).symm.le
83
+
84
+ instance projectionCornerNontrivial (q : E) (hq : star q = q) (hqq : q * q = q)
85
+ [NeZero q] : Nontrivial (ProjectionCorner q hq hqq) := by
86
+ apply nontrivial_of_ne (0 : ProjectionCorner q hq hqq) 1
87
+ intro h
88
+ have he := congrArg (fun x : ProjectionCorner q hq hqq => (x : E)) h
89
+ exact (NeZero.ne q) he.symm
90
+
91
+ /-- The algebra inclusion sends the corner unit to `q`. -/
92
+ def projectionCornerInclusion (q : E) (hq : star q = q) (hqq : q * q = q) :
93
+ ProjectionCorner q hq hqq →⋆ₙₐ[ℂ] E where
94
+ toFun x := x
95
+ map_zero' := rfl
96
+ map_add' _ _ := rfl
97
+ map_mul' _ _ := rfl
98
+ map_smul' _ _ := rfl
99
+ map_star' _ := rfl
100
+
101
+ lemma projectionCornerInclusion_one (q : E) (hq : star q = q) (hqq : q * q = q) :
102
+ projectionCornerInclusion q hq hqq 1 = q := rfl
103
+
104
+ /-- Extending by the complementary identity gives an ambient unitary. -/
105
+ def projectionCornerUnitary (q : E) (hq : star q = q) (hqq : q * q = q)
106
+ (u : unitary (ProjectionCorner q hq hqq)) : unitary E := by
107
+ let x : E := (u : ProjectionCorner q hq hqq)
108
+ have hl : q * x = x := (u : ProjectionCorner q hq hqq).property.1
109
+ have hr : x * q = x := (u : ProjectionCorner q hq hqq).property.2
110
+ have hxs : star x * x = q := congrArg
111
+ (fun y : ProjectionCorner q hq hqq => (y : E)) u.property.1
112
+ have hsx : x * star x = q := congrArg
113
+ (fun y : ProjectionCorner q hq hqq => (y : E)) u.property.2
114
+ have hls : q * star x = star x := by
115
+ simpa only [star_mul, hq] using congrArg star hr
116
+ have hrs : star x * q = star x := by
117
+ simpa only [star_mul, hq] using congrArg star hl
118
+ refine ⟨x + (1 - q), ?_, ?_⟩
119
+ · change star (x + (1 - q)) * (x + (1 - q)) = 1
120
+ simp only [star_add, star_sub, star_one, hq, add_mul, mul_add, mul_sub,
121
+ sub_mul, one_mul, mul_one, hxs, hqq, hl, hrs]
122
+ abel
123
+ · change (x + (1 - q)) * star (x + (1 - q)) = 1
124
+ simp only [star_add, star_sub, star_one, hq, add_mul, mul_add, mul_sub,
125
+ sub_mul, one_mul, mul_one, hsx, hqq, hr, hls]
126
+ abel
127
+
128
+ lemma projectionCornerUnitary_one (q : E) (hq : star q = q) (hqq : q * q = q) :
129
+ projectionCornerUnitary q hq hqq 1 = 1 := by
130
+ apply Subtype.ext
131
+ change q + (1 - q) = 1
132
+ abel
133
+
134
+ lemma projectionCornerUnitary_continuous (q : E) (hq : star q = q) (hqq : q * q = q) :
135
+ Continuous (projectionCornerUnitary q hq hqq) := by
136
+ apply Continuous.subtype_mk
137
+ change Continuous (fun u : unitary (ProjectionCorner q hq hqq) =>
138
+ ((u : ProjectionCorner q hq hqq) : E) + (1 - q))
139
+ exact (continuous_subtype_val.comp continuous_subtype_val).add continuous_const
140
+
141
+ lemma projectionCornerUnitary_sub_norm (q : E) (hq : star q = q) (hqq : q * q = q)
142
+ (u v : unitary (ProjectionCorner q hq hqq)) :
143
+ ‖(projectionCornerUnitary q hq hqq u : E) - projectionCornerUnitary q hq hqq v‖ =
144
+ ‖(u : ProjectionCorner q hq hqq) - v‖ := by
145
+ change ‖(((u : ProjectionCorner q hq hqq) : E) + (1 - q)) -
146
+ (((v : ProjectionCorner q hq hqq) : E) + (1 - q))‖ =
147
+ ‖((u : ProjectionCorner q hq hqq) : E) - ((v : ProjectionCorner q hq hqq) : E)‖
148
+ congr 1
149
+ abel
150
+
151
+ /-- Quantitative paths lift to the ambient algebra with no loss. -/
152
+ lemma projectionCornerPath_controlled (q : E) (hq : star q = q) (hqq : q * q = q)
153
+ {u v : unitary (ProjectionCorner q hq hqq)}
154
+ (p : Path u v) (L : ℝ)
155
+ (hp : ∀ a b, ‖(p a : ProjectionCorner q hq hqq) - p b‖ ≤ L * |(a : ℝ) - b|) :
156
+ ∃ r : Path (projectionCornerUnitary q hq hqq u) (projectionCornerUnitary q hq hqq v),
157
+ ∀ a b, ‖(r a : E) - r b‖ ≤ L * |(a : ℝ) - b| := by
158
+ refine ⟨p.map (projectionCornerUnitary_continuous q hq hqq), ?_⟩
159
+ intro a b
160
+ exact (projectionCornerUnitary_sub_norm q hq hqq (p a) (p b)).trans_le (hp a b)
161
+
162
+ end WeakPureInfiniteness
163
+
164
+ end
165
+
166
+ end OAI
lean/OAI/Analysis/OInfinity/ProperBufferAbsorption.lean ADDED
@@ -0,0 +1,261 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Analysis.OInfinity.BufferAnchor
2
+ import OAI.Analysis.OInfinity.ZeroUnitRows
3
+
4
+ namespace OAI
5
+
6
+ /-! # Connected absorption of an arbitrary finite proper row
7
+
8
+ The target row is completed inside the zero-unit buffer corner. Only the
9
+ prescribed original entries must commute with the binary buffer; the
10
+ auxiliary completing entry is never included in that requirement.
11
+ -/
12
+
13
+ noncomputable section
14
+ open scoped CStarAlgebra
15
+
16
+ namespace WeakPureInfiniteness
17
+
18
+ variable {E : Type*} [CStarAlgebra E]
19
+
20
+ section Selected
21
+ variable {I : Type*} [Fintype I] [DecidableEq I]
22
+
23
+ /-- The finite Fock estimate only needs coefficient commutation at the
24
+ indices at which an intertwining estimate is requested. -/
25
+ lemma BufferAbsorptionCorner.exists_finite_absorption_on [Nontrivial E]
26
+ (D : BufferAbsorptionCorner E) (s t : I → E) (r : E) (P : I → Prop)
27
+ (hrr : star r * r = 1) (hr : ∀ i, star r * s i = 0)
28
+ (hs : ∀ i j, star (s i) * s j = if i = j then 1 else 0)
29
+ (hqr : Commute D.q r) (hqs : ∀ i, Commute D.q (s i))
30
+ (htq : ∀ i, t i * D.q = t i) (ht : ∑ i, t i * star (t i) = D.q)
31
+ (htt : ∀ i j, star (t i) * t j = if i = j then D.q else 0)
32
+ (hat : ∀ i, P i → Commute (star D.a) (t i))
33
+ (hbt : ∀ i, P i → Commute (star D.b) (t i))
34
+ (ε : ℝ) (hε : 0 < ε) :
35
+ ∃ W : unitary E, Joined D.anchor W ∧
36
+ ∀ i, P i → ‖(W : E) * s i - (t i + D.w * s i * star D.w) * (W : E)‖ < ε := by
37
+ let δ := ε / 6
38
+ have hδ : 0 < δ := by dsimp only [δ]; positivity
39
+ obtain ⟨m, hm⟩ := exists_nat_gt (2 / δ ^ 2)
40
+ have hsmall : 2 / ((m : ℝ) + 1) < δ ^ 2 := by
41
+ have hδsq : 0 < δ ^ 2 := sq_pos_of_pos hδ
42
+ have hm' : 2 < (m : ℝ) * δ ^ 2 := (div_lt_iff₀ hδsq).mp hm
43
+ apply (div_lt_iff₀ (by positivity : 0 < (m : ℝ) + 1)).mpr
44
+ nlinarith
45
+ let v := finiteRowIsometry s t r D.q m
46
+ have hvg : star v * v = D.q := finiteRowIsometry_gram s t r D.q
47
+ D.projection.isIdempotentElem.eq D.projection.isSelfAdjoint.star_eq hrr hr hs htq ht m
48
+ have hvq : v * D.q = v := relativeIsometry_mul_support v D.q hvg
49
+ D.projection.isSelfAdjoint.star_eq D.projection.isIdempotentElem.eq
50
+ have hqv : D.q * v = v := finiteRowIsometry_left_of_commute s t r D.q
51
+ D.projection.isIdempotentElem.eq hqr hqs m
52
+ have hvstarq : star v * D.q = star v := by
53
+ simpa only [star_mul, D.projection.isSelfAdjoint.star_eq] using congrArg star hqv
54
+ have hvw : star v * D.w = 0 := by
55
+ rw [← hvstarq, mul_assoc, D.w_orthogonal, mul_zero]
56
+ obtain ⟨u, hu, _, huv⟩ := exists_explicit_connected_unitary_extension v D.w
57
+ (by rw [mul_assoc, hvg, hvq]) D.w_gram (by rw [hvg]; exact D.w_orthogonal)
58
+ (by rw [mul_assoc, hvw, mul_zero])
59
+ have huq : (u : E) * D.q = v := by simpa only [hvg] using huv
60
+ have hvn : ‖v‖ ≤ 1 := finiteRowIsometry_norm_le s t r D.q
61
+ D.projection.isIdempotentElem.eq D.projection.isSelfAdjoint.star_eq hrr hr hs htq ht m
62
+ refine ⟨D.absorption u, D.absorption_joined_anchor u hu, ?_⟩
63
+ intro i hi
64
+ have hf : ‖s i * v - v * t i‖ < δ := by
65
+ have h := finiteRowIsometry_forward_norm_sq s t r D.q
66
+ D.projection.isIdempotentElem.eq D.projection.isSelfAdjoint.star_eq
67
+ hrr hr hs htq ht htt m i
68
+ change ‖s i * v - v * t i‖ ^ 2 ≤ _ at h
69
+ nlinarith [norm_nonneg (s i * v - v * t i)]
70
+ have hb : ‖star v * s i - t i * star v‖ < δ := by
71
+ have h := finiteRowIsometry_backward_norm_sq s t r D.q
72
+ D.projection.isIdempotentElem.eq D.projection.isSelfAdjoint.star_eq
73
+ hrr hr hs htq ht htt m i
74
+ have he : star v * s i - t i * star v =
75
+ star (star (s i) * v - v * star (t i)) := by
76
+ simp only [star_sub, star_mul, star_star]
77
+ rw [he, norm_star]
78
+ have hone : ((m : ℝ) + 1)⁻¹ ≤ 2 / ((m : ℝ) + 1) := by
79
+ rw [← one_div]
80
+ exact div_le_div_of_nonneg_right (by norm_num) (by positivity)
81
+ change ‖star (s i) * v - v * star (t i)‖ ^ 2 ≤ _ at h
82
+ nlinarith [norm_nonneg (star (s i) * v - v * star (t i))]
83
+ calc
84
+ _ ≤ 2 * ‖s i * v - v * t i‖ + 3 * ‖star v * s i - t i * star v‖ :=
85
+ D.absorption_error_bound u v (s i) (t i) huq (htq i) (hat i hi) (hbt i hi) hvn
86
+ _ < ε := by dsimp only [δ] at hf hb; linarith
87
+
88
+ end Selected
89
+
90
+ lemma BufferAbsorptionCorner.extend_finite_proper_row
91
+ (D : BufferAbsorptionCorner E) (n : ℕ) (x : Fin (n + 1) → E)
92
+ (hxs : ∀ i, D.q * x i = x i ∧ x i * D.q = x i)
93
+ (hx : ∀ i j, star (x i) * x j = if i = j then D.q else 0) :
94
+ ∃ t : Fin (n + 1) → E,
95
+ (∀ i : Fin n, t i.succ = x i.castSucc) ∧
96
+ (∀ i, D.q * t i = t i ∧ t i * D.q = t i) ∧
97
+ (∀ i j, star (t i) * t j = if i = j then D.q else 0) ∧
98
+ (∑ i, t i * star (t i)) = D.q := by
99
+ let C := ProjectionCorner D.q D.projection.isSelfAdjoint.star_eq
100
+ D.projection.isIdempotentElem.eq
101
+ let x' : Fin (n + 1) → C := fun i => ⟨x i, hxs i⟩
102
+ let a' : C := ⟨D.a, D.a_left, D.a_right⟩
103
+ let b' : C := ⟨D.b, D.b_left, D.b_right⟩
104
+ have hx' (i j : Fin (n + 1)) : star (x' i) * x' j = if i = j then 1 else 0 := by
105
+ apply Subtype.ext
106
+ change star (x i) * x j = ↑(if i = j then (1 : C) else 0)
107
+ split_ifs with h
108
+ · change star (x i) * x j = D.q
109
+ simpa only [h, ite_true] using hx i j
110
+ · change star (x i) * x j = 0
111
+ simpa only [h, ite_false] using hx i j
112
+ have hlast (i : Fin n) : star (x' (Fin.last n)) * x' i.castSucc = 0 := by
113
+ rw [hx']
114
+ have hne : Fin.last n ≠ i.castSucc := by
115
+ intro h
116
+ have hh := congrArg Fin.val h
117
+ change n = (i : ℕ) at hh
118
+ omega
119
+ rw [ite_eq_right hne]
120
+ obtain ⟨t, htx, ht, hts⟩ := finite_zero_unit_full_row
121
+ (fun i : Fin n => x' i.castSucc) (x' (Fin.last n)) a' b'
122
+ (fun i j => by simpa only [Fin.castSucc_inj] using hx' i.castSucc j.castSucc)
123
+ (by simpa only [ite_true] using hx' (Fin.last n) (Fin.last n)) hlast
124
+ (Subtype.ext D.a_gram) (Subtype.ext D.b_gram)
125
+ (Subtype.ext D.orthogonal) (Subtype.ext D.ranges)
126
+ refine ⟨fun i => (t i : E), fun i => congrArg (fun y : C => (y : E)) (htx i),
127
+ fun i => (t i).property, ?_, ?_⟩
128
+ · intro i j
129
+ by_cases hij : i = j
130
+ · subst j
131
+ simp only [ite_true]
132
+ have h := ht i i
133
+ simp only [ite_true] at h
134
+ have he := congrArg (fun y : C => (y : E)) h
135
+ change star (t i : E) * (t i : E) = D.q at he
136
+ exact he
137
+ · rw [ite_eq_right hij]
138
+ have h := ht i j
139
+ rw [ite_eq_right hij] at h
140
+ have he := congrArg (fun y : C => (y : E)) h
141
+ change star (t i : E) * (t j : E) = 0 at he
142
+ exact he
143
+
144
+ · have h := congrArg (projectionCornerInclusion D.q D.projection.isSelfAdjoint.star_eq
145
+ D.projection.isIdempotentElem.eq) hts
146
+ simp only [map_sum, map_mul, map_star, projectionCornerInclusion_one] at h
147
+ exact h
148
+
149
+ /-- Connected absorption of any finite original proper-row prefix. The
150
+ complementary source row remains as an explicit summand. -/
151
+ lemma exists_connected_proper_buffer_absorption [Nontrivial E]
152
+ (s t r : ℕ → E)
153
+ (hs : ∀ i j, star (s i) * s j = if i = j then 1 else 0)
154
+ (ht : ∀ i j, star (t i) * t j = if i = j then 1 else 0)
155
+ (hr : ∀ i j, star (r i) * r j = if i = j then 1 else 0)
156
+ (hrs : bergRowsCommute r s) (hrt : bergRowsCommute r t)
157
+ (n : ℕ) (ε : ℝ) (hε : 0 < ε) :
158
+ ∃ U : unitary E, Joined (1 : unitary E) U ∧
159
+ ∀ i : Fin n,
160
+ ‖(U : E) * s i * star (U : E) -
161
+ (t i * (1 - r 0 * star (r 0)) + s i * (r 0 * star (r 0)))‖ < ε := by
162
+ have rc (i j : ℕ) : Commute (r i) (s j) ∧ Commute (star (r i)) (s j) :=
163
+ ⟨(hrs i j).1, by simpa only [star_star] using (hrs i j).2.star_star⟩
164
+ have tc (i j : ℕ) : Commute (r i) (t j) ∧ Commute (star (r i)) (t j) :=
165
+ ⟨(hrt i j).1, by simpa only [star_star] using (hrt i j).2.star_star⟩
166
+ obtain ⟨D, hDq, hDw, _, hDjoin, hDc⟩ := exists_connected_buffer_corner (r 0) (r 1) (r 2)
167
+ (by simpa only [ite_true] using hr 0 0)
168
+ (by simpa only [ite_true] using hr 1 1)
169
+ (by simpa only [ite_true] using hr 2 2)
170
+ (by simpa using hr 0 1) (by simpa using hr 0 2) (by simpa using hr 1 2)
171
+ have hqs (i : ℕ) : Commute D.q (s i) := by
172
+ rw [hDq]
173
+ exact (Commute.one_left _).sub_left ((rc 0 i).1.mul_left (rc 0 i).2)
174
+ have hqt (i : ℕ) : Commute D.q (t i) := by
175
+ rw [hDq]
176
+ exact (Commute.one_left _).sub_left ((tc 0 i).1.mul_left (tc 0 i).2)
177
+ let x : Fin (n + 1) → E := fun i => t i * D.q
178
+ have hxs (i : Fin (n + 1)) : D.q * x i = x i ∧ x i * D.q = x i := by
179
+ constructor
180
+ · change D.q * (t i * D.q) = t i * D.q
181
+ rw [← mul_assoc, (hqt i).eq, mul_assoc, D.projection.isIdempotentElem.eq]
182
+ · change (t i * D.q) * D.q = t i * D.q
183
+ rw [mul_assoc, D.projection.isIdempotentElem.eq]
184
+ have hx (i j : Fin (n + 1)) : star (x i) * x j = if i = j then D.q else 0 := by
185
+ change star (t i * D.q) * (t j * D.q) = _
186
+ rw [star_mul, D.projection.isSelfAdjoint.star_eq]
187
+ calc
188
+ _ = D.q * (star (t i) * t j) * D.q := by noncomm_ring
189
+ _ = _ := by
190
+ by_cases hij : i = j
191
+ · subst j
192
+ simp only [ht, ite_true, mul_one, D.projection.isIdempotentElem.eq]
193
+ · rw [ht, ite_eq_right (fun h => hij (Fin.ext h)),
194
+ ite_eq_right hij, mul_zero, zero_mul]
195
+ obtain ⟨T, hTx, hTq, hT, hTs⟩ := D.extend_finite_proper_row n x hxs hx
196
+ let S : Fin (n + 1) → E := Fin.cons (s n) (fun i : Fin n => s i)
197
+ have hS (i j : Fin (n + 1)) : star (S i) * S j = if i = j then 1 else 0 := by
198
+ refine Fin.cases ?_ (fun i => ?_) i <;> refine Fin.cases ?_ (fun j => ?_) j
199
+ · simpa only [S, Fin.cons_zero, ite_true] using hs n n
200
+ · have hne : n ≠ (j : ℕ) := by omega
201
+ simpa only [S, Fin.cons_zero, Fin.cons_succ, hne, ite_false,
202
+ (Fin.succ_ne_zero j).symm] using hs n j
203
+ · have hne : (i : ℕ) ≠ n := by omega
204
+ simpa only [S, Fin.cons_zero, Fin.cons_succ, hne, ite_false,
205
+ Fin.succ_ne_zero] using hs i n
206
+ · simpa only [S, Fin.cons_succ, Fin.succ_inj, Fin.ext_iff, Fin.val_succ, Nat.succ.injEq] using hs i j
207
+ have hroot (i : Fin (n + 1)) : star (s (n + 1)) * S i = 0 := by
208
+ refine Fin.cases ?_ (fun j => ?_) i
209
+ · simpa only [S, Fin.cons_zero, Nat.add_one_ne_self, ite_false] using hs (n + 1) n
210
+ · have hne : n + 1 ≠ (j : ℕ) := by omega
211
+ simpa only [S, Fin.cons_succ, hne, ite_false] using hs (n + 1) j
212
+ have hqS (i : Fin (n + 1)) : Commute D.q (S i) := by
213
+ refine Fin.cases (hqs n) (fun j => hqs j) i
214
+ have haT (i : Fin (n + 1)) (hi : 0 < (i : ℕ)) : Commute (star D.a) (T i) := by
215
+ revert hi
216
+ refine Fin.cases ?_ (fun j => ?_) i
217
+ · intro h; exact (Nat.lt_irrefl 0 h).elim
218
+ · intro _
219
+ rw [hTx]
220
+ change Commute (star D.a) (t j * D.q)
221
+ exact ((hDc (t j) (tc 0 j).1 (tc 0 j).2 (tc 1 j).1 (tc 1 j).2
222
+ (tc 2 j).1 (tc 2 j).2).2.1).mul_right
223
+ (D.a_star_right.trans D.a_star_left.symm)
224
+ have hbT (i : Fin (n + 1)) (hi : 0 < (i : ℕ)) : Commute (star D.b) (T i) := by
225
+ revert hi
226
+ refine Fin.cases ?_ (fun j => ?_) i
227
+ · intro h; exact (Nat.lt_irrefl 0 h).elim
228
+ · intro _
229
+ rw [hTx]
230
+ change Commute (star D.b) (t j * D.q)
231
+ exact ((hDc (t j) (tc 0 j).1 (tc 0 j).2 (tc 1 j).1 (tc 1 j).2
232
+ (tc 2 j).1 (tc 2 j).2).2.2.2).mul_right
233
+ (D.b_star_right.trans D.b_star_left.symm)
234
+ obtain ⟨U, hU, hUi⟩ := D.exists_finite_absorption_on S T (s (n + 1))
235
+ (fun i => 0 < (i : ℕ)) (by simpa only [ite_true] using hs (n + 1) (n + 1))
236
+ hroot hS (hqs (n + 1)) hqS (fun i => (hTq i).2) hTs hT haT hbT ε hε
237
+ refine ⟨U, hDjoin.trans hU, fun i => ?_⟩
238
+ have hi := hUi i.succ (by simp)
239
+ rw [hTx] at hi
240
+ have he : D.w * s i * star D.w = s i * (r 0 * star (r 0)) := by
241
+ rw [hDw, (rc 0 i).1.eq, mul_assoc]
242
+ change ‖(U : E) * s i - (x i.castSucc + D.w * s i * star D.w) * (U : E)‖ < ε at hi
243
+ have hmul : ((U : E) * s i - (x i.castSucc + D.w * s i * star D.w) * (U : E)) *
244
+ star (U : E) = (U : E) * s i * star (U : E) -
245
+ (x i.castSucc + D.w * s i * star D.w) := by
246
+ rw [sub_mul, mul_assoc _ (U : E), Unitary.mul_star_self_of_mem U.property, mul_one]
247
+ have hnorm := CStarRing.norm_mul_mem_unitary
248
+ ((U : E) * s i - (x i.castSucc + D.w * s i * star D.w) * (U : E))
249
+ (Unitary.star_mem U.property)
250
+ rw [hmul] at hnorm
251
+ have hc : ‖(U : E) * s i * star (U : E) -
252
+ (x i.castSucc + D.w * s i * star D.w)‖ < ε := by
253
+ rw [hnorm]
254
+ exact hi
255
+ simpa only [x, Fin.val_castSucc, hDq, he] using hc
256
+
257
+ end WeakPureInfiniteness
258
+
259
+ end
260
+
261
+ end OAI
lean/OAI/Analysis/OInfinity/RelativeCocycle.lean ADDED
@@ -0,0 +1,152 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Analysis.OInfinity.ProjectionCorner
2
+
3
+ namespace OAI
4
+
5
+ /-! # Actual binary row cocycles in a proper projection corner
6
+
7
+ The corner unitary is extended by the identity on the complementary
8
+ projection. The complement is retained explicitly; this is not yet an
9
+ ambient approximate intertwining statement for the canonical O∞ rows.
10
+ -/
11
+
12
+ noncomputable section
13
+ open scoped CStarAlgebra
14
+
15
+ namespace WeakPureInfiniteness
16
+
17
+ variable {E : Type*} [CStarAlgebra E]
18
+
19
+ /-- A supported element, regarded as an element of the unital corner. -/
20
+ def projectionCornerElement (q : E) (hq : star q = q) (hqq : q * q = q)
21
+ (x : E) (hx : q * x = x ∧ x * q = x) : ProjectionCorner q hq hqq := ⟨x, hx⟩
22
+
23
+ lemma projectionCornerElement_gram {I : Type*} [DecidableEq I]
24
+ (q : E) (hq : star q = q) (hqq : q * q = q) (s : I → E)
25
+ (hsp : ∀ i, q * s i = s i ∧ s i * q = s i)
26
+ (hs : ∀ i j, star (s i) * s j = if i = j then q else 0) (i j : I) :
27
+ star (projectionCornerElement q hq hqq (s i) (hsp i)) *
28
+ projectionCornerElement q hq hqq (s j) (hsp j) = if i = j then 1 else 0 := by
29
+ apply Subtype.ext
30
+ split_ifs with hij
31
+ · change star (s i) * s j = q
32
+ simpa only [hij, ite_true] using hs i j
33
+ · change star (s i) * s j = 0
34
+ simpa only [hij, ite_false] using hs i j
35
+
36
+ lemma projectionCornerElement_range_sum {I : Type*} [Fintype I]
37
+ (q : E) (hq : star q = q) (hqq : q * q = q) (s : I → E)
38
+ (hsp : ∀ i, q * s i = s i ∧ s i * q = s i)
39
+ (hsum : (∑ i, s i * star (s i)) = q) :
40
+ (∑ i, projectionCornerElement q hq hqq (s i) (hsp i) *
41
+ star (projectionCornerElement q hq hqq (s i) (hsp i))) = 1 := by
42
+ apply Subtype.ext
43
+ change projectionCornerInclusion q hq hqq (∑ i,
44
+ projectionCornerElement q hq hqq (s i) (hsp i) *
45
+ star (projectionCornerElement q hq hqq (s i) (hsp i))) = q
46
+ rw [map_sum]
47
+ exact hsum
48
+
49
+ lemma projectionCornerInclusion_rowCocycle {I : Type*} [Fintype I]
50
+ (q : E) (hq : star q = q) (hqq : q * q = q)
51
+ (s t : I → ProjectionCorner q hq hqq) :
52
+ projectionCornerInclusion q hq hqq (finiteRowCocycle s t) =
53
+ finiteRowCocycle (fun i => (s i : E)) (fun i => (t i : E)) := by
54
+ simp only [finiteRowCocycle, map_sum, map_mul, map_star]
55
+ rfl
56
+
57
+ lemma projectionCornerInclusion_rowShift {I : Type*} [Fintype I]
58
+ (q : E) (hq : star q = q) (hqq : q * q = q)
59
+ (s : I → ProjectionCorner q hq hqq) (x : ProjectionCorner q hq hqq) :
60
+ projectionCornerInclusion q hq hqq (finiteRowShift s x) =
61
+ finiteRowShift (fun i => (s i : E)) (x : E) := by
62
+ simp only [finiteRowShift, map_sum, map_mul, map_star]
63
+ rfl
64
+
65
+ /-- The actual product cocycle, with the corner unit as its zeroth term. -/
66
+ def relativeRowProduct {I : Type*} [Fintype I] (q : E) (s t : I → E) : ℕ → E
67
+ | 0 => q
68
+ | n + 1 => finiteRowCocycle s t * finiteRowShift s (relativeRowProduct q s t n)
69
+
70
+ lemma projectionCorner_rowProduct (q : E) (hq : star q = q) (hqq : q * q = q)
71
+ (s t : Fin 2 → ProjectionCorner q hq hqq)
72
+ (hs : ∀ i j, star (s i) * s j = if i = j then 1 else 0)
73
+ (ht : ∀ i j, star (t i) * t j = if i = j then 1 else 0)
74
+ (hsum : (∑ i, s i * star (s i)) = 1)
75
+ (htsum : (∑ i, t i * star (t i)) = 1) (n : ℕ) :
76
+ ((binaryRowCocycleUnitary s t hs ht hsum htsum n : ProjectionCorner q hq hqq) : E) =
77
+ relativeRowProduct q (fun i => (s i : E)) (fun i => (t i : E)) n := by
78
+ induction n with
79
+ | zero => rfl
80
+ | succ n ih =>
81
+ change projectionCornerInclusion q hq hqq
82
+ (finiteRowCocycle s t *
83
+ (binarySplitHom (s 0) (s 1) (by simpa using hs 0 0)
84
+ (by simpa using hs 1 1) (by simpa using hs 0 1)
85
+ (binaryRowCocycleUnitary s t hs ht hsum htsum n) : ProjectionCorner q hq hqq)) = _
86
+ rw [map_mul, binarySplitHom_coe s hs hsum,
87
+ projectionCornerInclusion_rowCocycle, projectionCornerInclusion_rowShift, ih]
88
+ rfl
89
+
90
+ lemma projectionCornerUnitary_complement (q : E) (hq : star q = q) (hqq : q * q = q)
91
+ (u : unitary (ProjectionCorner q hq hqq)) :
92
+ (projectionCornerUnitary q hq hqq u : E) * (1 - q) = 1 - q ∧
93
+ (1 - q) * (projectionCornerUnitary q hq hqq u : E) = 1 - q := by
94
+ have hl := (u : ProjectionCorner q hq hqq).property.1
95
+ have hr := (u : ProjectionCorner q hq hqq).property.2
96
+ change (((u : ProjectionCorner q hq hqq) : E) + (1 - q)) * (1 - q) = 1 - q ∧
97
+ (1 - q) * (((u : ProjectionCorner q hq hqq) : E) + (1 - q)) = 1 - q
98
+ constructor
99
+ · simp only [add_mul, mul_sub, sub_mul, one_mul, mul_one, hqq, hr]
100
+ abel
101
+ · simp only [mul_add, mul_sub, sub_mul, one_mul, mul_one, hqq, hl]
102
+ abel
103
+
104
+ /-- The uniform `192π` contraction survives proper-corner transport.
105
+ The constructed ambient unitary is exactly the product cocycle plus `1-q`
106
+ and fixes the complementary corner on both sides. -/
107
+ lemma exists_relative_binaryRowCocycle_path
108
+ (q : E) (hq : star q = q) (hqq : q * q = q) (hqne : q ≠ 0)
109
+ (s t : Fin 2 → E)
110
+ (hs : ∀ i j, star (s i) * s j = if i = j then q else 0)
111
+ (ht : ∀ i j, star (t i) * t j = if i = j then q else 0)
112
+ (hsum : (∑ i, s i * star (s i)) = q)
113
+ (htsum : (∑ i, t i * star (t i)) = q)
114
+ (hc : ∀ i j, Commute (s i) (t j)) (n : ℕ) :
115
+ ∃ u : unitary E, (u : E) = relativeRowProduct q s t n + (1 - q) ∧
116
+ (u : E) * (1 - q) = 1 - q ∧ (1 - q) * (u : E) = 1 - q ∧
117
+ ∃ p : Path u 1, ∀ a b, ‖(p a : E) - p b‖ ≤ (192 * Real.pi) * |(a : ℝ) - b| := by
118
+ have : NeZero q := ⟨hqne⟩
119
+ have hsp (i : Fin 2) : q * s i = s i ∧ s i * q = s i :=
120
+ ⟨finiteRow_left_support q s hq hqq hs hsum i,
121
+ finiteRow_right_support q s hq hqq hs i⟩
122
+ have htp (i : Fin 2) : q * t i = t i ∧ t i * q = t i :=
123
+ ⟨finiteRow_left_support q t hq hqq ht htsum i,
124
+ finiteRow_right_support q t hq hqq ht i⟩
125
+ let S : Fin 2 → ProjectionCorner q hq hqq := fun i =>
126
+ projectionCornerElement q hq hqq (s i) (hsp i)
127
+ let T : Fin 2 → ProjectionCorner q hq hqq := fun i =>
128
+ projectionCornerElement q hq hqq (t i) (htp i)
129
+ have hS := projectionCornerElement_gram q hq hqq s hsp hs
130
+ have hT := projectionCornerElement_gram q hq hqq t htp ht
131
+ have hSsum := projectionCornerElement_range_sum q hq hqq s hsp hsum
132
+ have hTsum := projectionCornerElement_range_sum q hq hqq t htp htsum
133
+ have hST (i j : Fin 2) : Commute (S i) (T j) := by
134
+ change S i * T j = T j * S i
135
+ apply Subtype.ext
136
+ exact (hc i j).eq
137
+ obtain ⟨p, hp⟩ := exists_uniform_binaryRowCocycle_path S T hS hT hSsum hTsum hST n
138
+ let v := binaryRowCocycleUnitary S T hS hT hSsum hTsum n
139
+ let u := projectionCornerUnitary q hq hqq v
140
+ obtain ⟨r, hr⟩ := projectionCornerPath_controlled q hq hqq p (192 * Real.pi) hp
141
+ refine ⟨u, ?_, (projectionCornerUnitary_complement q hq hqq v).1,
142
+ (projectionCornerUnitary_complement q hq hqq v).2, ?_⟩
143
+ · change ((v : ProjectionCorner q hq hqq) : E) + (1 - q) = _
144
+ rw [projectionCorner_rowProduct q hq hqq S T hS hT hSsum hTsum n]
145
+ rfl
146
+ · exact ⟨r.cast rfl (projectionCornerUnitary_one q hq hqq).symm, hr⟩
147
+
148
+ end WeakPureInfiniteness
149
+
150
+ end
151
+
152
+ end OAI
lean/OAI/Analysis/OInfinity/RelativeCompletedComparison.lean ADDED
@@ -0,0 +1,147 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Analysis.OInfinity.BufferedProperComparison
2
+
3
+ namespace OAI
4
+
5
+ /-! # Relative comparison with the prescribed complementary action
6
+
7
+ The corner path below is constructed from the pointwise complementary
8
+ identity, rather than inferred from ambient connectedness. It allows the
9
+ completed-row comparison to keep the external corner fixed exactly.
10
+ -/
11
+
12
+ noncomputable section
13
+ open scoped CStarAlgebra
14
+
15
+ namespace WeakPureInfiniteness
16
+
17
+ variable {E : Type*} [CStarAlgebra E]
18
+
19
+ lemma exists_projectionCorner_unitary_path
20
+ (q : E) (hq : star q = q) (hqq : q * q = q)
21
+ (u : unitary E) (P : Path (1 : unitary E) u)
22
+ (hP : ∀ t, (P t : E) * (1 - q) = 1 - q ∧
23
+ (1 - q) * (P t : E) = 1 - q) :
24
+ ∃ v : unitary (ProjectionCorner q hq hqq), Joined 1 v ∧
25
+ ((v : ProjectionCorner q hq hqq) : E) = (u : E) * q := by
26
+ let H := ProjectionCorner q hq hqq
27
+ have hcomm (t : unitInterval) : Commute (P t : E) q :=
28
+ unitary_commutes_projection_of_fixed_complement q (P t) (hP t)
29
+ have hs (t : unitInterval) : q * ((P t : E) * q) = (P t : E) * q ∧
30
+ ((P t : E) * q) * q = (P t : E) * q := by
31
+ constructor
32
+ · rw [← mul_assoc, ← (hcomm t).eq, mul_assoc, hqq]
33
+ · rw [mul_assoc, hqq]
34
+ let F : unitInterval → H := fun t => projectionCornerElement q hq hqq ((P t : E) * q) (hs t)
35
+ have hFunit (t : unitInterval) : F t ∈ unitary H := by
36
+ constructor
37
+ · apply Subtype.ext
38
+ change star ((P t : E) * q) * ((P t : E) * q) = q
39
+ rw [star_mul, hq]
40
+ calc
41
+ _ = q * (star (P t : E) * (P t : E)) * q := by noncomm_ring
42
+ _ = q := by rw [(P t).property.1, mul_one, hqq]
43
+ · apply Subtype.ext
44
+ change ((P t : E) * q) * star ((P t : E) * q) = q
45
+ rw [star_mul, hq]
46
+ calc
47
+ _ = (P t : E) * (q * q) * star (P t : E) := by noncomm_ring
48
+ _ = (P t : E) * q * star (P t : E) := by rw [hqq]
49
+ _ = q * ((P t : E) * star (P t : E)) := by rw [(hcomm t).eq, mul_assoc]
50
+ _ = q := by rw [(P t).property.2, mul_one]
51
+ let V : unitInterval → unitary H := fun t => ⟨F t, hFunit t⟩
52
+ have hF : Continuous F := Continuous.subtype_mk
53
+ ((continuous_subtype_val.comp P.continuous).mul continuous_const) _
54
+ have hV : Continuous V := Continuous.subtype_mk hF _
55
+ have hV0 : V 0 = 1 := by
56
+ apply Subtype.ext
57
+ apply Subtype.ext
58
+ change (P 0 : E) * q = q
59
+ rw [P.source, OneMemClass.coe_one, one_mul]
60
+ refine ⟨V 1, ?_, ?_⟩
61
+ · exact ⟨{ toFun := V
62
+ continuous_toFun := hV
63
+ source' := hV0
64
+ target' := rfl }⟩
65
+ · change (P 1 : E) * q = (u : E) * q
66
+ rw [P.target]
67
+
68
+ /-- Both actual completion records are used in the same corner. The
69
+ three-buffer row constructs the intermediate binary pair; the final
70
+ ambient unitary fixes the complement exactly. -/
71
+ lemma exists_relative_completed_row_comparison {n : ℕ}
72
+ (q : E) (hq : star q = q) (hqq : q * q = q) (hq0 : q ≠ 0)
73
+ (b : Fin 2 → E)
74
+ (hb : ∀ i j, star (b i) * b j = if i = j then q else 0)
75
+ (hbs : (∑ i, b i * star (b i)) = q)
76
+ (x y : Fin (n + 1) → E)
77
+ (A : RelativeBinaryCompletion q b x) (B : RelativeBinaryCompletion q b y)
78
+ (R : Fin 3 → E)
79
+ (hRs : ∀ i, q * R i = R i ∧ R i * q = R i)
80
+ (hR : ∀ i j, star (R i) * R j = if i = j then q else 0)
81
+ (hAR : bergRowsCommute A.row R) (hBR : bergRowsCommute B.row R)
82
+ (ε : ℝ) (hε : 0 < ε) :
83
+ ∃ w : unitary E, Joined (1 : unitary E) w ∧
84
+ (w : E) * (1 - q) = 1 - q ∧ (1 - q) * (w : E) = 1 - q ∧
85
+ ∀ i : Fin (n + 1), ‖(w : E) * x i * star (w : E) - y i‖ < ε := by
86
+ let : NeZero q := ⟨hq0⟩
87
+ let H := ProjectionCorner q hq hqq
88
+ let f := projectionCornerInclusion q hq hqq
89
+ have hbsup (i : Fin 2) : q * b i = b i ∧ b i * q = b i :=
90
+ ⟨finiteRow_left_support q b hq hqq hb hbs i,
91
+ finiteRow_right_support q b hq hqq hb i⟩
92
+ let a : Fin 2 → H := fun i => projectionCornerElement q hq hqq (A.row i) (A.support i)
93
+ let c : Fin 2 → H := fun i => projectionCornerElement q hq hqq (B.row i) (B.support i)
94
+ let d : Fin 2 → H := fun i => projectionCornerElement q hq hqq (b i) (hbsup i)
95
+ let r : Fin 3 → H := fun i => projectionCornerElement q hq hqq (R i) (hRs i)
96
+ have ha := projectionCornerElement_gram q hq hqq A.row A.support A.gram
97
+ have hc := projectionCornerElement_gram q hq hqq B.row B.support B.gram
98
+ have hd := projectionCornerElement_gram q hq hqq b hbsup hb
99
+ have has := projectionCornerElement_range_sum q hq hqq A.row A.support A.range_sum
100
+ have hcs := projectionCornerElement_range_sum q hq hqq B.row B.support B.range_sum
101
+ have hds := projectionCornerElement_range_sum q hq hqq b hbsup hbs
102
+ have hr := projectionCornerElement_gram q hq hqq R hRs hR
103
+ obtain ⟨u, hu, hue⟩ := exists_projectionCorner_unitary_path q hq hqq
104
+ A.implementer A.deformation A.fixes_complement
105
+ obtain ⟨v, hv, hve⟩ := exists_projectionCorner_unitary_path q hq hqq
106
+ B.implementer B.deformation B.fixes_complement
107
+ have hua (j : Fin 2) : (u : H) * a j = d j := by
108
+ apply Subtype.ext
109
+ change (((u : H) : E) * A.row j) = b j
110
+ rw [hue, mul_assoc, (A.support j).1, A.cocycle]
111
+ have hvc (j : Fin 2) : (v : H) * c j = d j := by
112
+ apply Subtype.ext
113
+ change (((v : H) : E) * B.row j) = b j
114
+ rw [hve, mul_assoc, (B.support j).1, B.cocycle]
115
+ have har : bergRowsCommute a r := fun i j =>
116
+ ⟨Subtype.ext (hAR i j).1.eq, Subtype.ext (hAR i j).2.eq⟩
117
+ have hcr : bergRowsCommute c r := fun i j =>
118
+ ⟨Subtype.ext (hBR i j).1.eq, Subtype.ext (hBR i j).2.eq⟩
119
+ obtain ⟨w, hw, he⟩ := exists_connected_encoded_comparison_of_buffer r hr d a c
120
+ hd hds ha has hc hcs har hcr u v hu hv hua hvc n ε hε
121
+ let W := projectionCornerUnitary q hq hqq w
122
+ have hW : Joined (1 : unitary E) W := by
123
+ simpa only [projectionCornerUnitary_one] using
124
+ hw.map (projectionCornerUnitary_continuous q hq hqq)
125
+ refine ⟨W, hW, (projectionCornerUnitary_complement q hq hqq w).1,
126
+ (projectionCornerUnitary_complement q hq hqq w).2, fun i => ?_⟩
127
+ have hh := he (i : ℕ) (by omega)
128
+ change ‖f ((w : H) * (a 0 ^ (i : ℕ) * a 1) * star (w : H) -
129
+ (c 0 ^ (i : ℕ) * c 1))‖ < ε at hh
130
+ have hax : f (a 0 ^ (i : ℕ) * a 1) = x i := by
131
+ rw [nonunital_map_pow_mul]
132
+ exact A.encoded_prefix i
133
+ have hcy : f (c 0 ^ (i : ℕ) * c 1) = y i := by
134
+ rw [nonunital_map_pow_mul]
135
+ exact B.encoded_prefix i
136
+ rw [map_sub] at hh
137
+ have hconj := projectionCornerUnitary_conjugate q hq hqq w (a 0 ^ (i : ℕ) * a 1)
138
+ change (W : E) * f (a 0 ^ (i : ℕ) * a 1) * star (W : E) =
139
+ f ((w : H) * (a 0 ^ (i : ℕ) * a 1) * star (w : H)) at hconj
140
+ rw [← hconj, hax, hcy] at hh
141
+ exact hh
142
+
143
+ end WeakPureInfiniteness
144
+
145
+ end
146
+
147
+ end OAI
lean/OAI/Analysis/OInfinity/RelativeGramCorrection.lean ADDED
@@ -0,0 +1,291 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Analysis.WeakInfiniteness.CuntzPairCorrection
2
+ import OAI.Analysis.OInfinity.MaskedBandRows
3
+
4
+ namespace OAI
5
+
6
+ /-! # Gram correction with a common initial projection
7
+
8
+ The removed cyclic cell is not filled. Adding its complementary projection
9
+ only to the square Gram matrix permits inverse-square-root normalization;
10
+ the corrected rectangular row still has the original initial projection.
11
+ -/
12
+
13
+ noncomputable section
14
+ open scoped CStarAlgebra ComplexOrder
15
+
16
+ namespace WeakPureInfiniteness
17
+
18
+ variable {E : Type*} [CStarAlgebra E] [PartialOrder E] [StarOrderedRing E]
19
+
20
+ local instance relativeGramRealModule (n : Type*) [Fintype n] :
21
+ Module ℝ (CStarMatrix n n E) := Module.complexToReal _
22
+ local instance relativeGramRealAlgebra (n : Type*) [Fintype n] [DecidableEq n] :
23
+ Algebra ℝ (CStarMatrix n n E) := Algebra.complexToReal
24
+
25
+ /-- Rectangular normalization preserves an exact right support. -/
26
+ lemma exists_relative_rectangular_isometry_near
27
+ {m n : Type*} [Fintype m] [Fintype n] [DecidableEq n]
28
+ (M ε : ℝ) (hM : 0 ≤ M) (hε : 0 < ε) :
29
+ ∃ δ : ℝ, 0 < δ ∧ ∀ (u : CStarMatrix m n E) (q : CStarMatrix n n E),
30
+ IsStarProjection q → u * q = u → ‖u‖ ≤ M →
31
+ ‖u.conjTranspose * u - q‖ < δ →
32
+ ∃ v : CStarMatrix m n E,
33
+ v * q = v ∧ v.conjTranspose * v = q ∧ ‖v - u‖ < ε := by
34
+ obtain ⟨δ, hδ, hcorr⟩ := exists_inverse_sqrt_tolerance
35
+ (A := CStarMatrix n n E) (ε / (M + 1)) (div_pos hε (by linarith))
36
+ refine ⟨δ, hδ, ?_⟩
37
+ intro u q hq huq hu hgram
38
+ let h := u.conjTranspose * u
39
+ let g := h + (1 - q)
40
+ have hhq : h * q = h := by
41
+ change (u.conjTranspose * u) * q = u.conjTranspose * u
42
+ rw [rectangular_mul_assoc, huq]
43
+ have hqh : q * h = h := by
44
+ have hqu : q * u.conjTranspose = u.conjTranspose := by
45
+ have hz := congrArg (fun a : CStarMatrix m n E => a.conjTranspose) huq
46
+ rw [rectangular_star_mul] at hz
47
+ change star q * u.conjTranspose = u.conjTranspose at hz
48
+ rwa [hq.isSelfAdjoint.star_eq] at hz
49
+ change q * (u.conjTranspose * u) = u.conjTranspose * u
50
+ rw [← rectangular_mul_assoc, hqu]
51
+ have hgq : g * q = h := by
52
+ change (h + (1 - q)) * q = h
53
+ rw [add_mul, hhq, hq.one_sub_mul_self, add_zero]
54
+ have hqg : q * g = h := by
55
+ change q * (h + (1 - q)) = h
56
+ rw [mul_add, hqh, hq.mul_one_sub_self, add_zero]
57
+ have hg0 : 0 ≤ g := add_nonneg (rectangular_initial_nonneg u) hq.one_sub.nonneg
58
+ have hgn : ‖g - 1‖ < δ := by
59
+ have he : g - 1 = h - q := by dsimp only [g]; noncomm_ring
60
+ rw [he]
61
+ exact hgram
62
+ obtain ⟨hgp, hkn⟩ := hcorr g hg0 hgn
63
+ let k : CStarMatrix n n E := g ^ (-(1 / 2) : ℝ)
64
+ have hk : star k = k := (CFC.rpow_nonneg (a := g)).star_eq
65
+ have hkg : k * g * k = 1 := CFC.conjugate_rpow_neg_one_half g hgp
66
+ have hkq : k * q = q * k := by
67
+ have hcomm : Commute g q := hgq.trans hqg.symm
68
+ exact (hcomm.cfc_nnreal (fun t => t ^ (-(1 / 2) : ℝ))).eq
69
+ have hkh : k * h * k = q := by
70
+ calc
71
+ k * h * k = k * (q * g * q) * k := by rw [hqg, hhq]
72
+ _ = q * (k * g * k) * q := by
73
+ calc
74
+ _ = (k * q) * g * (q * k) := by noncomm_ring
75
+ _ = (q * k) * g * (k * q) := by rw [hkq]
76
+ _ = _ := by noncomm_ring
77
+ _ = q := by rw [hkg, mul_one, hq.isIdempotentElem.eq]
78
+ refine ⟨u * k, ?_, ?_, ?_⟩
79
+ · calc
80
+ (u * k) * q = u * (k * q) := rectangular_mul_assoc _ _ _
81
+ _ = u * (q * k) := by rw [hkq]
82
+ _ = u * k := by rw [← rectangular_mul_assoc, huq]
83
+ · rw [rectangular_initial_mul, hk]
84
+ exact hkh
85
+ · have hu1 : u * (1 : CStarMatrix n n E) = u := by
86
+ ext i j
87
+ change (∑ l, u i l * (if l = j then 1 else 0)) = u i j
88
+ simp
89
+ have hsub : u * (k - 1) = u * k - u * (1 : CStarMatrix n n E) := by
90
+ ext i j
91
+ change (∑ l, u i l * (k l j - (1 : CStarMatrix n n E) l j)) =
92
+ (∑ l, u i l * k l j) - ∑ l, u i l * (1 : CStarMatrix n n E) l j
93
+ simp only [mul_sub, Finset.sum_sub_distrib]
94
+ have he : u * k - u = u * (k - 1) := by rw [hsub, hu1]
95
+ rw [he]
96
+ calc
97
+ _ ≤ ‖u‖ * ‖k - 1‖ := rectangular_norm_mul_le _ _
98
+ _ ≤ M * ‖k - 1‖ := mul_le_mul_of_nonneg_right hu (norm_nonneg _)
99
+ _ < (M + 1) * (ε / (M + 1)) := by
100
+ change ‖k - 1‖ < ε / (M + 1) at hkn
101
+ have hp : 0 < ε / (M + 1) := div_pos hε (by linarith)
102
+ nlinarith [norm_nonneg (k - 1)]
103
+ _ = ε := mul_div_cancel₀ _ (by linarith : M + 1 ≠ 0)
104
+
105
+ /-- The common initial projection of a two-column row. -/
106
+ def relativePairProjection (p : E) : CStarMatrix (Fin 2) (Fin 2) E :=
107
+ CStarMatrix.ofMatrix (fun i j => if i = j then p else 0)
108
+
109
+ omit [PartialOrder E] [StarOrderedRing E] in
110
+ lemma relativePairProjection_apply (p : E) (i j : Fin 2) :
111
+ relativePairProjection p i j = if i = j then p else 0 := rfl
112
+
113
+ omit [PartialOrder E] [StarOrderedRing E] in
114
+ lemma relativePairProjection_isStarProjection (p : E) (hp : IsStarProjection p) :
115
+ IsStarProjection (relativePairProjection p) := by
116
+ apply isStarProjection_iff'.mpr
117
+ constructor
118
+ · ext i j
119
+ change (∑ k : Fin 2, (if i = k then p else 0) * (if k = j then p else 0)) =
120
+ (if i = j then p else 0)
121
+ fin_cases i <;> fin_cases j <;>
122
+ simp [hp.isIdempotentElem.eq]
123
+ · ext i j
124
+ change star (if j = i then p else 0) = if i = j then p else 0
125
+ fin_cases i <;> fin_cases j <;> simp [hp.isSelfAdjoint.star_eq]
126
+
127
+ omit [PartialOrder E] [StarOrderedRing E] in
128
+ lemma cuntzPairRow_relative_support (a b p : E) (ha : a * p = a) (hb : b * p = b) :
129
+ cuntzPairRow a b * relativePairProjection p = cuntzPairRow a b := by
130
+ ext i j
131
+ change (∑ k : Fin 2, ![a, b] k * (if k = j then p else 0)) = ![a, b] j
132
+ fin_cases j <;> simp [ha, hb]
133
+
134
+ lemma cuntzPairRow_relative_gram_bound (a b p : E) :
135
+ ‖(cuntzPairRow a b).conjTranspose * cuntzPairRow a b - relativePairProjection p‖ ≤
136
+ ‖star a * a - p‖ + ‖star b * b - p‖ + 2 * ‖star a * b‖ := by
137
+ have h := rectangular_norm_le_sum_entries
138
+ ((cuntzPairRow a b).conjTranspose * cuntzPairRow a b - relativePairProjection p)
139
+ have hnorm : ‖star b * a‖ = ‖star a * b‖ := by
140
+ rw [← norm_star (star a * b), star_mul, star_star]
141
+ simp only [Fin.sum_univ_two, CStarMatrix.sub_apply, cuntzPairRow_initial_entry,
142
+ Matrix.cons_val_zero, Matrix.cons_val_one, relativePairProjection_apply,
143
+ ite_true, show ¬ (0 : Fin 2) = 1 by decide, show ¬ (1 : Fin 2) = 0 by decide,
144
+ ite_false, sub_zero, hnorm] at h
145
+ linarith
146
+
147
+ /-- Two approximately orthogonal supported columns can be corrected without
148
+ filling the removed projection. -/
149
+ lemma exists_relative_cuntzPair_near (ε : ℝ) (hε : 0 < ε) :
150
+ ∃ δ : ℝ, 0 < δ ∧ ∀ a b p : E,
151
+ IsStarProjection p → a * p = a → b * p = b → ‖a‖ ≤ 1 → ‖b‖ ≤ 1 →
152
+ ‖star a * a - p‖ < δ → ‖star b * b - p‖ < δ → ‖star a * b‖ < δ →
153
+ ∃ r t : E, r * p = r ∧ t * p = t ∧
154
+ star r * r = p ∧ star t * t = p ∧ star r * t = 0 ∧
155
+ ‖r - a‖ < ε ∧ ‖t - b‖ < ε := by
156
+ obtain ⟨δ, hδ, hcorr⟩ := exists_relative_rectangular_isometry_near (E := E)
157
+ (m := Fin 1) (n := Fin 2) 2 ε (by norm_num) hε
158
+ refine ⟨δ / 4, by positivity, ?_⟩
159
+ intro a b p hp ha hb han hbn haa hbb hab
160
+ have hu : ‖cuntzPairRow a b‖ ≤ 2 :=
161
+ (norm_cuntzPairRow_le a b).trans (by linarith)
162
+ have hg : ‖(cuntzPairRow a b).conjTranspose * cuntzPairRow a b -
163
+ relativePairProjection p‖ < δ := by
164
+ have hh := cuntzPairRow_relative_gram_bound a b p
165
+ linarith
166
+ obtain ⟨v, hvp, hvg, hvn⟩ := hcorr (cuntzPairRow a b) (relativePairProjection p)
167
+ (relativePairProjection_isStarProjection p hp) (cuntzPairRow_relative_support a b p ha hb) hu hg
168
+ have hsup (j : Fin 2) : v 0 j * p = v 0 j := by
169
+ have hh := congrArg (fun w : CStarMatrix (Fin 1) (Fin 2) E => w 0 j) hvp
170
+ change (∑ k : Fin 2, v 0 k * (if k = j then p else 0)) = v 0 j at hh
171
+ fin_cases j <;> simpa [Fin.sum_univ_two] using hh
172
+ have hgr (i j : Fin 2) : star (v 0 i) * v 0 j = if i = j then p else 0 := by
173
+ have hh := congrArg (fun w : CStarMatrix (Fin 2) (Fin 2) E => w i j) hvg
174
+ change (∑ _k : Fin 1, star (v 0 i) * v 0 j) = (if i = j then p else 0) at hh
175
+ simpa only [Fin.sum_univ_one] using hh
176
+ refine ⟨v 0 0, v 0 1, hsup 0, hsup 1, ?_, ?_, ?_, ?_, ?_⟩
177
+ · simpa using hgr 0 0
178
+ · simpa using hgr 1 1
179
+ · simpa using hgr 0 1
180
+ · exact (CStarMatrix.norm_entry_le_norm (M := v - cuntzPairRow a b) (i := 0) (j := 0)).trans_lt hvn
181
+ · exact (CStarMatrix.norm_entry_le_norm (M := v - cuntzPairRow a b) (i := 0) (j := 1)).trans_lt hvn
182
+
183
+ omit [PartialOrder E] [StarOrderedRing E] in
184
+ private lemma relativeGram_word_isometry (s : Fin 2 → E)
185
+ (hs : ∀ i j, star (s i) * s j = if i = j then 1 else 0) :
186
+ star (s 0 * s 0) * (s 0 * s 0) = 1 := by
187
+ rw [star_mul]
188
+ calc
189
+ _ = star (s 0) * (star (s 0) * s 0) * s 0 := by noncomm_ring
190
+ _ = 1 := by simp only [hs, ite_true, mul_one]
191
+
192
+ omit [PartialOrder E] [StarOrderedRing E] in
193
+ private lemma relativeGram_iterate_isometry (s : Fin 2 → E)
194
+ (hs : ∀ i j, star (s i) * s j = if i = j then 1 else 0)
195
+ (hsum : (∑ i, s i * star (s i)) = 1) (x : E) (hx : star x * x = 1) (n : ℕ) :
196
+ star (finiteRowShiftIterate s n x) * finiteRowShiftIterate s n x = 1 := by
197
+ have h1 : finiteRowShiftIterate s n 1 = 1 := by
198
+ induction n with
199
+ | zero => rfl
200
+ | succ n ih => simpa only [finiteRowShiftIterate, ih, finiteRowShift, mul_one] using hsum
201
+ rw [finiteRowShiftIterate_star, ← binaryRowIterate_mul s hs, hx, h1]
202
+
203
+ omit [PartialOrder E] [StarOrderedRing E] in
204
+ private lemma relativeGram_isometry_norm (x : E) (hx : star x * x = 1) : ‖x‖ ≤ 1 := by
205
+ have h := congrArg norm hx
206
+ rw [CStarRing.norm_star_mul_self] at h
207
+ have h1 : ‖(1 : E)‖ ≤ 1 := (IsStarProjection.one E).norm_le
208
+ nlinarith [norm_nonneg x]
209
+
210
+ /-- The actual iterated two-letter and one-letter bands admit exact relative
211
+ orthogonalization, with arbitrarily small correction. The cell zero stays
212
+ removed from both initial projections. -/
213
+ lemma exists_corrected_masked_binary_rows {N : ℕ} [NeZero N] (hN : 1 < N)
214
+ (ε : ℝ) (hε : 0 < ε) :
215
+ ∃ η : ℝ, 0 < η ∧ ∀ (s : Fin 2 → E),
216
+ (∀ i j, star (s i) * s j = if i = j then 1 else 0) →
217
+ (∑ i, s i * star (s i)) = 1 →
218
+ ∀ e : ZMod N → E, (∀ j, IsStarProjection (e j)) →
219
+ (∀ j k, j ≠ k → e j * e k = 0) → (∑ j, e j) = 1 →
220
+ (∀ j, ‖finiteRowShift s (e j) - e (j + 1)‖ ≤ η) →
221
+ let a := maskedTowerBand e (Equiv.addRight 2)
222
+ (fun j => finiteRowShiftIterate s j.val (s 0 * s 0)) 0
223
+ let b := maskedTowerBand e (Equiv.addRight 1)
224
+ (fun j => finiteRowShiftIterate s j.val (s 1)) 0
225
+ ∃ r t : E, r * (1 - e 0) = r ∧ t * (1 - e 0) = t ∧
226
+ star r * r = 1 - e 0 ∧ star t * t = 1 - e 0 ∧ star r * t = 0 ∧
227
+ ‖r - a‖ < ε ∧ ‖t - b‖ < ε := by
228
+ obtain ⟨δ, hδ, hcorr⟩ := exists_relative_cuntzPair_near (E := E) ε hε
229
+ let η := δ / (2 * (N : ℝ) + 3)
230
+ have hη : 0 < η := by dsimp [η]; positivity
231
+ refine ⟨η, hη, ?_⟩
232
+ intro s hs hsum e he ho hesum hshift
233
+ dsimp only
234
+ have hword := relativeGram_word_isometry s hs
235
+ have hsingle : star (s 1) * s 1 = 1 := by simpa only [ite_true] using hs 1 1
236
+ have hbound (x : E) (hx : star x * x = 1) (d : ZMod N) :
237
+ ‖maskedTowerBand e (Equiv.addRight d)
238
+ (fun j => finiteRowShiftIterate s j.val x) 0‖ ≤ 1 := by
239
+ apply towerBand_norm_le e (Equiv.addRight d) _ he ho 1 zero_le_one
240
+ intro j
241
+ by_cases hj : j = 0
242
+ · simp only [maskedBandCoefficients, ite_eq_left hj, norm_zero, zero_le_one]
243
+ · simp only [maskedBandCoefficients, ite_eq_right hj]
244
+ exact relativeGram_isometry_norm _ (relativeGram_iterate_isometry s hs hsum x hx j.val)
245
+ have hless : (2 * (N : ℝ) + 2) * η < δ := by
246
+ have heq : (2 * (N : ℝ) + 3) * η = δ := by
247
+ dsimp only [η]
248
+ exact mul_div_cancel₀ _ (by positivity)
249
+ nlinarith
250
+ apply hcorr _ _ _ (he 0).one_sub
251
+ (maskedTowerBand_right_support e _ _ 0 ho)
252
+ (maskedTowerBand_right_support e _ _ 0 ho)
253
+ (hbound _ hword _) (hbound _ hsingle _)
254
+ · exact (maskedIteratedWord_gram_bound s hs hsum e he ho hesum η hη.le hshift
255
+ (s 0 * s 0) hword 2 (cyclic_row_two_letter_transport s hs e η hshift 0 0)).trans_lt hless
256
+ · apply (maskedIteratedWord_gram_bound s hs hsum e he ho hesum η hη.le hshift
257
+ (s 1) hsingle 1 ?_).trans_lt hless
258
+ intro j
259
+ exact (cyclic_row_generator_transport s hs e η hshift 1 j).trans (by linarith)
260
+ · apply (maskedIteratedRows_cross_bound hN s hs e he ho η hη.le hshift 0 0 1 (by decide)).trans_lt
261
+ exact lt_of_le_of_lt (by nlinarith) hless
262
+
263
+ /-- An actual cyclic partition supplies the small Gram errors; no tower
264
+ or exact orthogonal-row premise is retained in this conclusion. -/
265
+ lemma exists_masked_binary_rotation_rows (s : Fin 2 → E)
266
+ (hs : ∀ i j, star (s i) * s j = if i = j then 1 else 0)
267
+ (hsum : (∑ i, s i * star (s i)) = 1)
268
+ (m : ℕ) (hm : 1 < 2 ^ m) (ε : ℝ) (hε : 0 < ε) :
269
+ ∃ (e : ZMod (2 ^ m) → E) (r t : E),
270
+ (∀ j, IsStarProjection (e j)) ∧
271
+ (∀ j k, j ≠ k → e j * e k = 0) ∧ (∑ j, e j) = 1 ∧
272
+ r * (1 - e 0) = r ∧ t * (1 - e 0) = t ∧
273
+ star r * r = 1 - e 0 ∧ star t * t = 1 - e 0 ∧ star r * t = 0 ∧
274
+ ‖r - maskedTowerBand e (Equiv.addRight 2)
275
+ (fun j => finiteRowShiftIterate s j.val (s 0 * s 0)) 0‖ < ε ∧
276
+ ‖t - maskedTowerBand e (Equiv.addRight 1)
277
+ (fun j => finiteRowShiftIterate s j.val (s 1)) 0‖ < ε := by
278
+ have : IsClosed ((⊤ : StarSubalgebra ℂ E) : Set E) := isClosed_univ
279
+ obtain ⟨η, hη, hcorr⟩ := exists_corrected_masked_binary_rows (E := E) hm ε hε
280
+ obtain ⟨e, _hem, he, hesum, ho, hshift⟩ :=
281
+ exists_binary_cyclic_partition_in (⊤ : StarSubalgebra ℂ E) s hs hsum
282
+ (fun _ => by simp) m η hη
283
+ obtain ⟨r, t, hr, ht, hrr, htt, hrt, hra, htb⟩ :=
284
+ hcorr s hs hsum e he ho hesum (fun j => (hshift j).le)
285
+ exact ⟨e, r, t, he, ho, hesum, hr, ht, hrr, htt, hrt, hra, htb⟩
286
+
287
+ end WeakPureInfiniteness
288
+
289
+ end
290
+
291
+ end OAI
lean/OAI/Analysis/OInfinity/RelativeUnitaryPath.lean ADDED
@@ -0,0 +1,140 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Analysis.OInfinity.CornerShortPath
2
+
3
+ namespace OAI
4
+
5
+ /-! # Uniform paths for relative unitaries
6
+
7
+ In a fixed corner carrying a coisometric pair, a relative unitary that almost
8
+ commutes with that pair admits an explicit uniform path bound. The endpoint
9
+ is extended by the identity on the ambient complement. The existence of such
10
+ a pair in a prescribed corner is an input, not a consequence asserted here.
11
+ -/
12
+
13
+ noncomputable section
14
+ open scoped CStarAlgebra
15
+
16
+ namespace WeakPureInfiniteness
17
+
18
+ variable {E : Type*} [CStarAlgebra E]
19
+
20
+ /-- Extend a relative unitary by the identity on the complementary corner. -/
21
+ def relativeUnitaryExtension (q z : E) : E := z + (1 - q)
22
+
23
+ lemma relativeUnitaryExtension_mem (q z : E) (hqstar : star q = q)
24
+ (hqq : q * q = q) (hqz : q * z = z) (hzq : z * q = z)
25
+ (hzz : star z * z = q) (hzz' : z * star z = q) :
26
+ relativeUnitaryExtension q z ∈ unitary E := by
27
+ have hsq : star z * q = star z := by
28
+ simpa only [star_mul, hqstar] using congrArg star hqz
29
+ have hqs : q * star z = star z := by
30
+ simpa only [star_mul, hqstar] using congrArg star hzq
31
+ constructor
32
+ · simp only [relativeUnitaryExtension, star_add, star_sub, star_one, hqstar]
33
+ noncomm_ring [hqq, hqz, hsq, hzz]
34
+ · simp only [relativeUnitaryExtension, star_add, star_sub, star_one, hqstar]
35
+ noncomm_ring [hqq, hzq, hqs, hzz']
36
+
37
+ lemma relativeUnitaryExtension_decomposition_error (q a b z : E)
38
+ (hsum : a * star a + b * star b = q) (hzq : z * q = z)
39
+ (hab : star a * b = 0) (ha : ‖a‖ ≤ 1) (hb : ‖b‖ ≤ 1)
40
+ (δ : ℝ) (hδ : 0 ≤ δ)
41
+ (haz : ‖z * a - a * z‖ ≤ δ) (hbz : ‖z * b - b * z‖ ≤ δ) :
42
+ ‖relativeUnitaryExtension q z - cornerCompression a z * cornerCompression b z‖ ≤ 2 * δ := by
43
+ have he : relativeUnitaryExtension q z - cornerCompression a z * cornerCompression b z =
44
+ (z * a - a * z) * star a + (z * b - b * z) * star b := by
45
+ rw [cornerCompression_pair_product a b z z hab]
46
+ unfold relativeUnitaryExtension
47
+ calc
48
+ _ = z - (a * z * star a + b * z * star b) := by rw [← hsum]; abel
49
+ _ = z * (a * star a + b * star b) - (a * z * star a + b * z * star b) := by
50
+ rw [hsum, hzq]
51
+ _ = _ := by noncomm_ring
52
+ rw [he]
53
+ calc
54
+ _ ≤ ‖(z * a - a * z) * star a‖ + ‖(z * b - b * z) * star b‖ := norm_add_le _ _
55
+ _ ≤ ‖z * a - a * z‖ * ‖a‖ + ‖z * b - b * z‖ * ‖b‖ := by
56
+ simpa only [norm_star] using add_le_add
57
+ (norm_mul_le (z * a - a * z) (star a))
58
+ (norm_mul_le (z * b - b * z) (star b))
59
+ _ ≤ δ * 1 + δ * 1 := by gcongr
60
+ _ = 2 * δ := by ring
61
+
62
+ lemma unitaryPath_mul_sub_norm_le {a b c d : unitary E}
63
+ (p : Path a b) (q : Path c d) (L K : ℝ)
64
+ (hp : ∀ t s, ‖(p t : E) - p s‖ ≤ L * |(t : ℝ) - s|)
65
+ (hq : ∀ t s, ‖(q t : E) - q s‖ ≤ K * |(t : ℝ) - s|) :
66
+ ∀ t s, ‖((p.mul q) t : E) - (p.mul q) s‖ ≤ (L + K) * |(t : ℝ) - s| := by
67
+ intro t s
68
+ have he : ((p.mul q) t : E) - (p.mul q) s =
69
+ (p t : E) * ((q t : E) - q s) + ((p t : E) - p s) * (q s : E) := by
70
+ change (p t : E) * (q t : E) - (p s : E) * (q s : E) = _
71
+ noncomm_ring
72
+ rw [he]
73
+ calc
74
+ _ ≤ ‖(p t : E) * ((q t : E) - q s)‖ + ‖((p t : E) - p s) * (q s : E)‖ := norm_add_le _ _
75
+ _ = ‖(q t : E) - q s‖ + ‖(p t : E) - p s‖ := by
76
+ rw [CStarRing.norm_coe_unitary_mul, CStarRing.norm_mul_coe_unitary]
77
+ _ ≤ K * |(t : ℝ) - s| + L * |(t : ℝ) - s| := add_le_add (hq t s) (hp t s)
78
+ _ = _ := by ring
79
+
80
+ /-- The fixed-pair hypotheses give a numerical bound independent of the
81
+ relative unitary. The ambient complement is present in the initial point. -/
82
+ lemma exists_uniform_relativeUnitary_path (q a b z : E)
83
+ (hqstar : star q = q) (hqq : q * q = q)
84
+ (haa : star a * a = q) (hbb : star b * b = q) (hab : star a * b = 0)
85
+ (hsum : a * star a + b * star b = q)
86
+ (hqz : q * z = z) (hzq : z * q = z)
87
+ (hzz : star z * z = q) (hzz' : z * star z = q)
88
+ (δ : ℝ) (hδ : 0 ≤ δ) (hsmall : 4 * δ < 2)
89
+ (haz : ‖z * a - a * z‖ ≤ δ) (hbz : ‖z * b - b * z‖ ≤ δ) :
90
+ ∃ u : unitary E, (u : E) = relativeUnitaryExtension q z ∧
91
+ ∃ p : Path u 1, ∀ t s, ‖(p t : E) - p s‖ ≤ (32 * Real.pi) * |(t : ℝ) - s| := by
92
+ obtain ⟨u, hu, p, hp⟩ := exists_uniform_compressed_unitary_path q a b z hqstar hqq
93
+ haa hbb hab hsum hqz hzq hzz hzz' δ hδ hsmall haz hbz
94
+ have hba : star b * a = 0 := by
95
+ simpa only [star_mul, star_star, star_zero] using congrArg star hab
96
+ have hsum' : b * star b + a * star a = q := by rw [add_comm]; exact hsum
97
+ obtain ⟨v, hv, r, hr⟩ := exists_uniform_compressed_unitary_path q b a z hqstar hqq
98
+ hbb haa hba hsum' hqz hzq hzz hzz' δ hδ hsmall hbz haz
99
+ let w : unitary E := ⟨relativeUnitaryExtension q z,
100
+ relativeUnitaryExtension_mem q z hqstar hqq hqz hzq hzz hzz'⟩
101
+ have hnq : ‖q‖ ≤ 1 := by
102
+ have h := congrArg norm hqq
103
+ have hs : IsSelfAdjoint q := hqstar
104
+ rw [hs.norm_mul_self] at h
105
+ nlinarith [norm_nonneg q]
106
+ have hna : ‖a‖ ≤ 1 := by
107
+ have h := congrArg norm haa
108
+ rw [CStarRing.norm_star_mul_self] at h
109
+ nlinarith [norm_nonneg a]
110
+ have hnb : ‖b‖ ≤ 1 := by
111
+ have h := congrArg norm hbb
112
+ rw [CStarRing.norm_star_mul_self] at h
113
+ nlinarith [norm_nonneg b]
114
+ have hclose : ‖((u * v : unitary E) : E) - w‖ < 2 := by
115
+ change ‖(u : E) * (v : E) - relativeUnitaryExtension q z‖ < 2
116
+ rw [hu, hv, norm_sub_rev]
117
+ exact (relativeUnitaryExtension_decomposition_error q a b z hsum hzq hab
118
+ hna hnb δ hδ haz hbz).trans_lt (by linarith)
119
+ let middle := Unitary.path w (u * v) hclose
120
+ let productPath : Path (u * v) 1 := (p.mul r).cast rfl (by simp)
121
+ have hm : ∀ t s, ‖(middle t : E) - middle s‖ ≤ (16 * Real.pi) * |(t : ℝ) - s| := by
122
+ intro t s
123
+ exact (unitary_shortPath_sub_norm_le w (u * v) hclose t s).trans (by
124
+ nlinarith [Real.pi_pos, abs_nonneg ((t : ℝ) - s)])
125
+ have hpr : ∀ t s, ‖(productPath t : E) - productPath s‖ ≤
126
+ (16 * Real.pi) * |(t : ℝ) - s| := by
127
+ intro t s
128
+ change ‖((p.mul r) t : E) - (p.mul r) s‖ ≤ _
129
+ simpa only [show 8 * Real.pi + 8 * Real.pi = 16 * Real.pi by ring] using
130
+ unitaryPath_mul_sub_norm_le p r (8 * Real.pi) (8 * Real.pi) hp hr t s
131
+ refine ⟨w, rfl, middle.trans productPath, ?_⟩
132
+ intro t s
133
+ simpa only [show 2 * (16 * Real.pi) = 32 * Real.pi by ring] using
134
+ unitaryPath_trans_sub_norm_le middle productPath (16 * Real.pi) hm hpr t s
135
+
136
+ end WeakPureInfiniteness
137
+
138
+ end
139
+
140
+ end OAI
lean/OAI/Analysis/OInfinity/RohlinGluing.lean ADDED
@@ -0,0 +1,166 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Analysis.OInfinity.CocycleCentrality
2
+
3
+ namespace OAI
4
+
5
+ /-! # Weighted finite Rohlin sums
6
+
7
+ Orthogonal projection domains give a square-sum norm bound. Hence N
8
+ coefficient errors of size L/N contribute at most L/√N, even before
9
+ commutation with the projections is imposed. The shift and unitarity
10
+ errors are tracked separately.
11
+ -/
12
+
13
+ noncomputable section
14
+ open scoped CStarAlgebra
15
+
16
+ namespace WeakPureInfiniteness
17
+
18
+ variable {E I : Type*} [CStarAlgebra E] [Fintype I] [DecidableEq I]
19
+
20
+ lemma weightedProjection_norm_le_one (e : E) (he : star e = e) (hee : e * e = e) :
21
+ ‖e‖ ≤ 1 := by
22
+ have h := CStarRing.norm_star_mul_self (x := e)
23
+ rw [he, hee] at h
24
+ nlinarith [norm_nonneg e]
25
+
26
+ lemma orthogonalWeighted_square (e x : I → E)
27
+ (he : ∀ i, star (e i) = e i) (hee : ∀ i, e i * e i = e i)
28
+ (horth : ∀ i j, i ≠ j → e i * e j = 0) :
29
+ (∑ i, x i * e i) * star (∑ i, x i * e i) =
30
+ ∑ i, x i * e i * star (x i) := by
31
+ have hterm (i j : I) : (x i * e i) * star (x j * e j) =
32
+ if i = j then x i * e i * star (x i) else 0 := by
33
+ rw [star_mul, he]
34
+ calc
35
+ _ = x i * (e i * e j) * star (x j) := by noncomm_ring
36
+ _ = _ := by
37
+ split_ifs with hij
38
+ · subst j
39
+ rw [hee]
40
+ · rw [horth i j hij, mul_zero, zero_mul]
41
+ rw [star_sum, Finset.sum_mul]
42
+ simp only [Finset.mul_sum, hterm, Finset.sum_ite_eq, Finset.mem_univ, ite_true]
43
+
44
+ lemma orthogonalWeighted_norm_sq_le (e x : I → E)
45
+ (he : ∀ i, star (e i) = e i) (hee : ∀ i, e i * e i = e i)
46
+ (horth : ∀ i j, i ≠ j → e i * e j = 0) :
47
+ ‖∑ i, x i * e i‖ ^ 2 ≤ ∑ i, ‖x i‖ ^ 2 := by
48
+ calc
49
+ _ = ‖(∑ i, x i * e i) * star (∑ i, x i * e i)‖ := by
50
+ rw [CStarRing.norm_self_mul_star, pow_two]
51
+ _ = ‖∑ i, x i * e i * star (x i)‖ := by rw [orthogonalWeighted_square e x he hee horth]
52
+ _ ≤ ∑ i, ‖x i * e i * star (x i)‖ := norm_sum_le _ _
53
+ _ ≤ _ := by
54
+ apply Finset.sum_le_sum
55
+ intro i hi
56
+ calc
57
+ _ ≤ ‖x i‖ * ‖e i‖ * ‖x i‖ := by
58
+ simpa only [norm_star] using
59
+ (norm_mul_le (x i * e i) (star (x i))).trans
60
+ (mul_le_mul_of_nonneg_right (norm_mul_le _ _) (norm_nonneg _))
61
+ _ ≤ ‖x i‖ * 1 * ‖x i‖ := by
62
+ gcongr
63
+ exact weightedProjection_norm_le_one (e i) (he i) (hee i)
64
+ _ = ‖x i‖ ^ 2 := by ring
65
+
66
+ lemma orthogonalWeighted_norm_le (e x : I → E)
67
+ (he : ∀ i, star (e i) = e i) (hee : ∀ i, e i * e i = e i)
68
+ (horth : ∀ i j, i ≠ j → e i * e j = 0)
69
+ (δ : ℝ) (hδ : 0 ≤ δ) (hx : ∀ i, ‖x i‖ ≤ δ) :
70
+ ‖∑ i, x i * e i‖ ≤ Real.sqrt (Fintype.card I) * δ := by
71
+ have h := orthogonalWeighted_norm_sq_le e x he hee horth
72
+ have hb : (∑ i, ‖x i‖ ^ 2) ≤ (Fintype.card I : ℝ) * δ ^ 2 := by
73
+ calc
74
+ _ ≤ ∑ _ : I, δ ^ 2 := Finset.sum_le_sum fun i _ => by
75
+ nlinarith [norm_nonneg (x i), hx i]
76
+ _ = _ := by simp
77
+ have hs := Real.sq_sqrt (show (0 : ℝ) ≤ Fintype.card I by positivity)
78
+ have hn := Real.sqrt_nonneg (Fintype.card I : ℝ)
79
+ have hp : 0 ≤ Real.sqrt (Fintype.card I : ℝ) * δ := mul_nonneg hn hδ
80
+ nlinarith [norm_nonneg (∑ i, x i * e i)]
81
+
82
+ def finiteRohlinSum (v : I → unitary E) (e : I → E) : E := ∑ i, (v i : E) * e i
83
+
84
+ omit [DecidableEq I] in
85
+ lemma finiteRohlinSum_defect_identity (φ : E →⋆ₙₐ[ℂ] E) (w : unitary E)
86
+ (σ : Equiv.Perm I) (v : I → unitary E) (e : I → E) :
87
+ (w : E) * φ (finiteRohlinSum v e) - finiteRohlinSum v e =
88
+ (∑ i, ((w : E) * φ (v i) - (v (σ i) : E)) * e (σ i)) +
89
+ ∑ i, ((w : E) * φ (v i)) * (φ (e i) - e (σ i)) := by
90
+ have hreindex : (∑ i, (v (σ i) : E) * e (σ i)) = finiteRohlinSum v e := by
91
+ apply Fintype.sum_equiv σ
92
+ intro i
93
+ rfl
94
+ symm
95
+ rw [← Finset.sum_add_distrib]
96
+ calc
97
+ _ = (∑ i, (w : E) * φ ((v i : E) * e i)) -
98
+ ∑ i, (v (σ i) : E) * e (σ i) := by
99
+ rw [← Finset.sum_sub_distrib]
100
+ apply Finset.sum_congr rfl
101
+ intro i hi
102
+ rw [map_mul]
103
+ noncomm_ring
104
+ _ = _ := by rw [hreindex, ← Finset.mul_sum, ← map_sum]; rfl
105
+
106
+ lemma finiteRohlinSum_defect_le [Nontrivial E] (φ : E →⋆ₙₐ[ℂ] E) (w : unitary E)
107
+ (σ : Equiv.Perm I) (v : I → unitary E) (e : I → E)
108
+ (he : ∀ i, star (e i) = e i) (hee : ∀ i, e i * e i = e i)
109
+ (horth : ∀ i j, i ≠ j → e i * e j = 0)
110
+ (δ η : ℝ) (hδ : 0 ≤ δ)
111
+ (hv : ∀ i, ‖(w : E) * φ (v i) - (v (σ i) : E)‖ ≤ δ)
112
+ (hshift : ∀ i, ‖φ (e i) - e (σ i)‖ ≤ η) :
113
+ ‖(w : E) * φ (finiteRohlinSum v e) - finiteRohlinSum v e‖ ≤
114
+ Real.sqrt (Fintype.card I) * δ + (Fintype.card I : ℝ) * η := by
115
+ rw [finiteRohlinSum_defect_identity φ w σ v e]
116
+ apply (norm_add_le _ _).trans
117
+ apply add_le_add
118
+ · exact orthogonalWeighted_norm_le (fun i => e (σ i))
119
+ (fun i => (w : E) * φ (v i) - (v (σ i) : E)) (fun i => he (σ i))
120
+ (fun i => hee (σ i)) (fun i j hij => horth (σ i) (σ j) (σ.injective.ne hij)) δ hδ hv
121
+ · calc
122
+ _ ≤ ∑ i, ‖((w : E) * φ (v i)) * (φ (e i) - e (σ i))‖ := norm_sum_le _ _
123
+ _ ≤ ∑ _ : I, η := by
124
+ apply Finset.sum_le_sum
125
+ intro i hi
126
+ rw [mul_assoc, CStarRing.norm_coe_unitary_mul]
127
+ calc
128
+ _ ≤ ‖φ (v i)‖ * ‖φ (e i) - e (σ i)‖ := norm_mul_le _ _
129
+ _ ≤ 1 * η := by
130
+ apply mul_le_mul
131
+ · exact (NonUnitalStarAlgHom.norm_apply_le φ _).trans (CStarRing.norm_coe_unitary (v i)).le
132
+ · exact hshift i
133
+ · exact norm_nonneg _
134
+ · norm_num
135
+ _ = η := one_mul η
136
+ _ = _ := by simp
137
+
138
+ /-- One of the two unitary defects only needs the diagonal commutators. -/
139
+ lemma finiteRohlinSum_coisometry_defect_le (v : I → unitary E) (e : I → E)
140
+ (he : ∀ i, star (e i) = e i) (hee : ∀ i, e i * e i = e i)
141
+ (horth : ∀ i j, i ≠ j → e i * e j = 0)
142
+ (hsum : (∑ i, e i) = 1) (δ : ℝ)
143
+ (hc : ∀ i, ‖(v i : E) * e i - e i * (v i : E)‖ ≤ δ) :
144
+ ‖finiteRohlinSum v e * star (finiteRohlinSum v e) - 1‖ ≤ (Fintype.card I : ℝ) * δ := by
145
+ change ‖(∑ i, (v i : E) * e i) * star (∑ i, (v i : E) * e i) - 1‖ ≤ _
146
+ rw [orthogonalWeighted_square e (fun i => (v i : E)) he hee horth, ← hsum,
147
+ ← Finset.sum_sub_distrib]
148
+ calc
149
+ _ ≤ ∑ i, ‖(v i : E) * e i * star (v i : E) - e i‖ := norm_sum_le _ _
150
+ _ ≤ ∑ _ : I, δ := by
151
+ apply Finset.sum_le_sum
152
+ intro i hi
153
+ have hid : (v i : E) * e i * star (v i : E) - e i =
154
+ ((v i : E) * e i - e i * (v i : E)) * star (v i : E) := by
155
+ rw [sub_mul, mul_assoc (e i), (v i).property.2, mul_one]
156
+ rw [hid]
157
+ change ‖((v i : E) * e i - e i * (v i : E)) * (star (v i) : unitary E)‖ ≤ δ
158
+ rw [CStarRing.norm_mul_coe_unitary]
159
+ exact hc i
160
+ _ = _ := by simp
161
+
162
+ end WeakPureInfiniteness
163
+
164
+ end
165
+
166
+ end OAI
lean/OAI/Analysis/OInfinity/RohlinPartitions.lean ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Analysis.OInfinity.DyadicProjections
2
+
3
+ namespace OAI
4
+
5
+ /-! # Concrete dyadic partitions for an even Cuntz row
6
+
7
+ The phases are explicit roots of unity. The finite partitions below use the
8
+ actual geometric CAR modes of the supplied even row, followed by the proved
9
+ Jordan–Wigner construction. Quantitative cyclic shift control is separate
10
+ from the exact partition identities.
11
+ -/
12
+
13
+ noncomputable section
14
+ open scoped CStarAlgebra
15
+
16
+ namespace WeakPureInfiniteness
17
+
18
+ /-- The phase with half-period `2^i`. -/
19
+ def carDyadicPhase (i : ℕ) : ℂ := Complex.exp (((Real.pi / (2 : ℝ) ^ i : ℝ) : ℂ) * Complex.I)
20
+
21
+ lemma carDyadicPhase_norm (i : ℕ) : ‖carDyadicPhase i‖ = 1 :=
22
+ Complex.norm_exp_ofReal_mul_I _
23
+
24
+ lemma carDyadicPhase_half (i : ℕ) : carDyadicPhase i ^ (2 ^ i) = -1 := by
25
+ rw [carDyadicPhase, ← Complex.exp_nat_mul]
26
+ have hp : (2 : ℂ) ^ i ≠ 0 := pow_ne_zero _ (by norm_num)
27
+ have he : ((2 ^ i : ℕ) : ℂ) * (((Real.pi / (2 : ℝ) ^ i : ℝ) : ℂ) * Complex.I) =
28
+ (Real.pi : ℂ) * Complex.I := by
29
+ push_cast
30
+ field_simp
31
+ rw [he, Complex.exp_pi_mul_I]
32
+
33
+ variable {E : Type*} [CStarAlgebra E] {n : ℕ}
34
+
35
+ /-- Commuting two-level coordinates of the actual even row. -/
36
+ def evenRohlinCoordinate (q : E) (r : Fin 2 × Fin n → E) (L i : ℕ) : E :=
37
+ carJordanWigner q (evenBlockFamily r L carDyadicPhase) i
38
+
39
+ /-- The `k`th cell at dyadic level `m`. -/
40
+ def evenRohlinProjection (q : E) (r : Fin 2 × Fin n → E) (L m k : ℕ) : E :=
41
+ dyadicSpinProjection q (evenRohlinCoordinate q r L) carDyadicPhase m k
42
+
43
+ variable (q : E) (r : Fin 2 × Fin n → E)
44
+ (hqstar : star q = q) (hqq : q * q = q)
45
+ (hrow : ∀ i j, star (r i) * r j = if i = j then q else 0)
46
+ (hsum : (∑ i, r i * star (r i)) = q)
47
+
48
+ include hqstar hqq hrow hsum in
49
+ lemma evenRohlinCoordinate_properties (L : ℕ) (hL : 0 < L) :
50
+ (∀ i, q * evenRohlinCoordinate q r L i = evenRohlinCoordinate q r L i) ∧
51
+ (∀ i, evenRohlinCoordinate q r L i * q = evenRohlinCoordinate q r L i) ∧
52
+ (∀ i, evenRohlinCoordinate q r L i * evenRohlinCoordinate q r L i = 0) ∧
53
+ (∀ i, star (evenRohlinCoordinate q r L i) * evenRohlinCoordinate q r L i +
54
+ evenRohlinCoordinate q r L i * star (evenRohlinCoordinate q r L i) = q) ∧
55
+ (∀ i j, Commute (evenRohlinCoordinate q r L i) (evenRohlinCoordinate q r L j)) ∧
56
+ (∀ i j, i ≠ j → Commute (star (evenRohlinCoordinate q r L i))
57
+ (evenRohlinCoordinate q r L j)) := by
58
+ obtain ⟨hl, hr, ha, hg⟩ := evenBlockFamily_CAR q r hqstar hqq hrow hsum L hL
59
+ carDyadicPhase carDyadicPhase_norm
60
+ refine ⟨?_, ?_, ?_, ?_, ?_, ?_⟩
61
+ · intro i
62
+ exact (carJordanWigner_support q _ hqstar hqq hl hr ha hg i).1
63
+ · intro i
64
+ exact (carJordanWigner_support q _ hqstar hqq hl hr ha hg i).2
65
+ · exact carJordanWigner_square_zero q _ hqstar hqq hl hr ha hg
66
+ · exact carJordanWigner_gram q _ hqstar hqq hl hr ha hg
67
+ · exact carJordanWigner_commute q _ hqstar hqq hl hr ha hg
68
+ · exact carJordanWigner_star_commute q _ hqstar hqq hl hr ha hg
69
+
70
+ include hqstar hqq hrow hsum in
71
+ lemma evenRohlinProjection_partition (L : ℕ) (hL : 0 < L) (m : ℕ) :
72
+ (∀ k, IsStarProjection (evenRohlinProjection q r L m k)) ∧
73
+ (∑ k ∈ Finset.range (2 ^ m), evenRohlinProjection q r L m k) = q ∧
74
+ (∀ k l, k < 2 ^ m → l < 2 ^ m → k ≠ l →
75
+ evenRohlinProjection q r L m k * evenRohlinProjection q r L m l = 0) := by
76
+ obtain ⟨hl, hr, hz, hg, hc, hsc⟩ := evenRohlinCoordinate_properties q r hqstar hqq hrow hsum L hL
77
+ refine ⟨?_, ?_, ?_⟩
78
+ · exact dyadicSpinProjection_isStarProjection q _ _ hqstar hqq hl hr hz hg hc hsc
79
+ carDyadicPhase_norm m
80
+ · exact dyadicSpinProjection_sum q _ _ hqstar hqq hl hr carDyadicPhase_half m
81
+ · exact dyadicSpinProjection_orthogonal q _ _ hqstar hqq hl hr hz hg hc hsc
82
+ carDyadicPhase_norm carDyadicPhase_half m
83
+
84
+ include hqstar hqq hrow hsum in
85
+ lemma evenRohlinProjection_support (L : ℕ) (hL : 0 < L) (m k : ℕ) :
86
+ q * evenRohlinProjection q r L m k = evenRohlinProjection q r L m k ∧
87
+ evenRohlinProjection q r L m k * q = evenRohlinProjection q r L m k := by
88
+ obtain ⟨hl, hr, _, _, _, _⟩ := evenRohlinCoordinate_properties q r hqstar hqq hrow hsum L hL
89
+ exact dyadicSpinProjection_support q _ _ hqstar hqq hl hr m k
90
+
91
+ include hqstar hqq hrow hsum in
92
+ lemma evenRohlinBlock_shift_error (L : ℕ) (hL : 0 < L) (i : ℕ) :
93
+ ‖evenRowShift r (evenBlockFamily r L carDyadicPhase i) -
94
+ carDyadicPhase i • evenBlockFamily r L carDyadicPhase i‖ ^ 2 ≤ 18 / (L : ℝ) :=
95
+ evenEigenMode_shift_error q r hqstar hqq hrow hsum _ _ L hL _ (carDyadicPhase_norm i)
96
+
97
+ end WeakPureInfiniteness
98
+
99
+ end
100
+
101
+ end OAI
lean/OAI/Analysis/OInfinity/RohlinPolar.lean ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Analysis.OInfinity.RohlinUnitarity
2
+
3
+ namespace OAI
4
+
5
+ /-! # Polar correction of the finite Rohlin sum
6
+
7
+ Both Gram defects are used. An element with small initial and final Gram
8
+ defects is invertible; continuous functional calculus then corrects it to a
9
+ nearby unitary. This step does not supply the tower commutator estimates.
10
+ -/
11
+
12
+ noncomputable section
13
+ open scoped CStarAlgebra
14
+
15
+ namespace WeakPureInfiniteness
16
+
17
+ variable {E : Type*} [CStarAlgebra E]
18
+
19
+ lemma isUnit_of_two_gram_units (x : E)
20
+ (hi : IsUnit (star x * x)) (hf : IsUnit (x * star x)) : IsUnit x := by
21
+ obtain ⟨a, ha⟩ := hi
22
+ obtain ⟨b, hb⟩ := hf
23
+ apply isUnit_iff_exists_and_exists.mpr
24
+ constructor
25
+ · refine ⟨star x * (↑b⁻¹ : E), ?_⟩
26
+ calc
27
+ x * (star x * (↑b⁻¹ : E)) = (x * star x) * (↑b⁻¹ : E) := by rw [mul_assoc]
28
+ _ = (b : E) * (↑b⁻¹ : E) := by rw [hb]
29
+ _ = 1 := b.val_inv
30
+ · refine ⟨(↑a⁻¹ : E) * star x, ?_⟩
31
+ calc
32
+ ((↑a⁻¹ : E) * star x) * x = (↑a⁻¹ : E) * (star x * x) := by rw [mul_assoc]
33
+ _ = (↑a⁻¹ : E) * (a : E) := by rw [ha]
34
+ _ = 1 := a.inv_val
35
+
36
+ lemma isUnit_of_norm_sub_one_lt (a : E) (ha : ‖a - 1‖ < 1) : IsUnit a := by
37
+ have h : ‖1 - a‖ < 1 := by rwa [norm_sub_rev]
38
+ convert isUnit_one_sub_of_norm_lt_one h using 1
39
+ noncomm_ring
40
+
41
+ local instance rohlinPolarOrder : PartialOrder E := CStarAlgebra.spectralOrder E
42
+ local instance rohlinPolarStarOrder : StarOrderedRing E := CStarAlgebra.spectralOrderedRing E
43
+
44
+ lemma exists_polar_unitary_of_two_gram_units (x : E)
45
+ (hi : IsUnit (star x * x)) (hf : IsUnit (x * star x)) :
46
+ ∃ u : unitary E, (u : E) = x * CFC.rpow (star x * x) (-1 / 2 : ℝ) := by
47
+ let a := star x * x
48
+ let b := CFC.rpow a (-1 / 2 : ℝ)
49
+ have ha : 0 ≤ a := star_mul_self_nonneg x
50
+ have hai : IsUnit a := hi
51
+ have hb : IsSelfAdjoint b := (CFC.rpow_nonneg (a := a) (y := (-1 / 2 : ℝ))).isSelfAdjoint
52
+ have hbi : IsUnit b := hi.cfcRpow (-1 / 2 : ℝ) ha
53
+ have hx : IsUnit x := isUnit_of_two_gram_units x hi hf
54
+ have hpow : (b * a) * b = 1 := by
55
+ change (CFC.rpow a (-1 / 2 : ℝ) * a) * CFC.rpow a (-1 / 2 : ℝ) = 1
56
+ conv_lhs => lhs; rhs; rw [← CFC.rpow_one a ha]
57
+ simp only [CFC.rpow_eq_pow]
58
+ rw [← CFC.rpow_add hai, ← CFC.rpow_add hai]
59
+ norm_num [CFC.rpow_zero a ha]
60
+ have hp : star (x * b) * (x * b) = 1 := by
61
+ rw [star_mul, hb.star_eq]
62
+ calc
63
+ _ = (b * a) * b := by dsimp [a]; noncomm_ring
64
+ _ = 1 := hpow
65
+ exact ⟨⟨x * b, (hx.mul hbi).mem_unitary_of_star_mul_self hp⟩, rfl⟩
66
+
67
+ /-- An arbitrarily small polar correction follows from a sufficiently small
68
+ initial Gram defect and a final Gram defect less than one. -/
69
+ lemma exists_near_unitary_of_two_gram_errors [Nontrivial E] (ε : ℝ) (hε : 0 < ε) :
70
+ ∃ δ : ℝ, 0 < δ ∧ ∀ x : E,
71
+ ‖star x * x - 1‖ < δ → ‖x * star x - 1‖ < 1 →
72
+ ∃ u : unitary E, ‖(u : E) - x‖ < ε := by
73
+ have hcont : ContinuousWithinAt (fun a : E => CFC.rpow a (-1 / 2 : ℝ))
74
+ {a | IsStrictlyPositive a} 1 :=
75
+ CFC.continuousOn_rpow (-1 / 2 : ℝ) 1 (by exact isStrictlyPositive_one)
76
+ obtain ⟨δ, hδ, hb⟩ := Metric.continuousWithinAt_iff.mp hcont (ε / 2) (half_pos hε)
77
+ refine ⟨min δ 1, lt_min hδ zero_lt_one, ?_⟩
78
+ intro x hix hfx
79
+ have hi1 : ‖star x * x - 1‖ < 1 := hix.trans_le (min_le_right _ _)
80
+ have hi : IsUnit (star x * x) := isUnit_of_norm_sub_one_lt _ hi1
81
+ have hf : IsUnit (x * star x) := isUnit_of_norm_sub_one_lt _ hfx
82
+ have ha : IsStrictlyPositive (star x * x) := hi.isStrictlyPositive (star_mul_self_nonneg x)
83
+ have hbsmall : ‖CFC.rpow (star x * x) (-1 / 2 : ℝ) - 1‖ < ε / 2 := by
84
+ simpa only [dist_eq_norm, CFC.rpow_eq_pow, CFC.one_rpow] using hb ha (show dist (star x * x) 1 < δ from
85
+ by rw [dist_eq_norm]; exact hix.trans_le (min_le_left _ _))
86
+ have hxnorm : ‖x‖ < 2 := by
87
+ have hh : ‖star x * x‖ < 2 := by
88
+ calc
89
+ _ ≤ ‖star x * x - 1‖ + ‖(1 : E)‖ := norm_le_norm_sub_add _ _
90
+ _ = ‖star x * x - 1‖ + 1 := by rw [norm_one]
91
+ _ < 2 := by linarith
92
+ rw [CStarRing.norm_star_mul_self] at hh
93
+ nlinarith [norm_nonneg x]
94
+ obtain ⟨u, hu⟩ := exists_polar_unitary_of_two_gram_units x hi hf
95
+ refine ⟨u, ?_⟩
96
+ rw [hu]
97
+ calc
98
+ _ = ‖x * (CFC.rpow (star x * x) (-1 / 2 : ℝ) - 1)‖ := by rw [mul_sub, mul_one]
99
+ _ ≤ ‖x‖ * ‖CFC.rpow (star x * x) (-1 / 2 : ℝ) - 1‖ := norm_mul_le _ _
100
+ _ ≤ 2 * ‖CFC.rpow (star x * x) (-1 / 2 : ℝ) - 1‖ :=
101
+ mul_le_mul_of_nonneg_right hxnorm.le (norm_nonneg _)
102
+ _ < 2 * (ε / 2) := mul_lt_mul_of_pos_left hbsmall (by norm_num)
103
+ _ = ε := by ring
104
+
105
+ end WeakPureInfiniteness
106
+
107
+ end
108
+
109
+ end OAI
lean/OAI/Analysis/OInfinity/RohlinShift.lean ADDED
@@ -0,0 +1,180 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Analysis.OInfinity.JordanWignerEstimates
2
+
3
+ namespace OAI
4
+
5
+ /-! # Quantitative cyclic partitions for the finite even-row shift
6
+
7
+ The exact dyadic projection partition is approximately cycled by the actual
8
+ row endomorphism, with an explicit error tending to zero as the geometric
9
+ blocks lengthen. No centrality for additional elements or cocycle unitary is
10
+ asserted here.
11
+ -/
12
+
13
+ noncomputable section
14
+ open scoped CStarAlgebra
15
+
16
+ namespace WeakPureInfiniteness
17
+
18
+ variable {E : Type*} [CStarAlgebra E] {n : ℕ}
19
+
20
+ lemma carSpinProjection_sub_norm_le (q a b : E) (ζ : ℂ) (hζ : ‖ζ‖ = 1) :
21
+ ‖carSpinProjection q a ζ - carSpinProjection q b ζ‖ ≤ ‖a - b‖ := by
22
+ have he : carSpinProjection q a ζ - carSpinProjection q b ζ =
23
+ (2 : ℂ)⁻¹ • (ζ • (a - b) + star ζ • star (a - b)) := by
24
+ simp only [carSpinProjection, carSpinAxis, smul_sub, smul_add, star_sub]
25
+ abel
26
+ rw [he, norm_smul]
27
+ have hhalf : ‖(2 : ℂ)⁻¹‖ = (1 / 2 : ℝ) := by norm_num
28
+ rw [hhalf]
29
+ calc
30
+ _ ≤ (1 / 2 : ℝ) * (‖ζ • (a - b)‖ + ‖star ζ • star (a - b)‖) := by
31
+ gcongr
32
+ exact norm_add_le _ _
33
+ _ = ‖a - b‖ := by rw [norm_smul, norm_smul, norm_star, norm_star, hζ]; ring
34
+
35
+ lemma carSpinProjection_smul (q a : E) (μ ζ : ℂ) :
36
+ carSpinProjection q (μ • a) ζ = carSpinProjection q a (ζ * μ) := by
37
+ simp only [carSpinProjection, carSpinAxis, star_smul, smul_smul, star_mul]
38
+ rw [mul_comm (star μ) (star ζ)]
39
+
40
+ lemma evenRowShift_carSpinProjection (q : E) (r : Fin 2 × Fin n → E)
41
+ (hqstar : star q = q) (hqq : q * q = q)
42
+ (hrow : ∀ i j, star (r i) * r j = if i = j then q else 0)
43
+ (hsum : (∑ i, r i * star (r i)) = q) (a : E) (ζ : ℂ) :
44
+ evenRowShift r (carSpinProjection q a ζ) = carSpinProjection q (evenRowShift r a) ζ := by
45
+ simp only [carSpinProjection, carSpinAxis, evenRowShift_smul, evenRowShift_add,
46
+ evenRowShift_unit q r hqstar hqq hrow hsum, ← evenRowShift_star]
47
+
48
+ lemma evenRowShift_isStarProjection (q : E) (r : Fin 2 × Fin n → E)
49
+ (hrow : ∀ i j, star (r i) * r j = if i = j then q else 0)
50
+ (p : E) (hp : IsStarProjection p) (hqp : q * p = p) :
51
+ IsStarProjection (evenRowShift r p) := by
52
+ refine ⟨?_, ?_⟩
53
+ · change evenRowShift r p * evenRowShift r p = evenRowShift r p
54
+ rw [evenRowShift_mul q r hrow p p hqp, hp.isIdempotentElem.eq]
55
+ · change star (evenRowShift r p) = evenRowShift r p
56
+ rw [evenRowShift_star, hp.isSelfAdjoint.star_eq]
57
+
58
+ variable (q : E) (r : Fin 2 × Fin n → E)
59
+ (hqstar : star q = q) (hqq : q * q = q)
60
+ (hrow : ∀ i j, star (r i) * r j = if i = j then q else 0)
61
+ (hsum : (∑ i, r i * star (r i)) = q)
62
+
63
+ include hqstar hqq hrow hsum in
64
+ lemma evenRohlin_factor_shift_error (L : ℕ) (hL : 0 < L) (i k : ℕ) :
65
+ ‖evenRowShift r (carSpinProjection q (evenRohlinCoordinate q r L i) (carDyadicPhase i ^ k)) -
66
+ carSpinProjection q (evenRohlinCoordinate q r L i) (carDyadicPhase i ^ (k + 1))‖ ≤
67
+ (4 * (i : ℝ) + 1) * Real.sqrt (18 / (L : ℝ)) := by
68
+ rw [evenRowShift_carSpinProjection q r hqstar hqq hrow hsum, pow_succ,
69
+ ← carSpinProjection_smul]
70
+ exact (carSpinProjection_sub_norm_le q _ _ _
71
+ (by rw [norm_pow, carDyadicPhase_norm, one_pow])).trans
72
+ (evenRohlinCoordinate_shift_error q r hqstar hqq hrow hsum L hL i)
73
+
74
+ include hqstar hqq hrow hsum in
75
+ lemma evenRohlin_factor_properties (L : ℕ) (hL : 0 < L) (i k : ℕ) :
76
+ IsStarProjection (carSpinProjection q (evenRohlinCoordinate q r L i) (carDyadicPhase i ^ k)) ∧
77
+ q * carSpinProjection q (evenRohlinCoordinate q r L i) (carDyadicPhase i ^ k) =
78
+ carSpinProjection q (evenRohlinCoordinate q r L i) (carDyadicPhase i ^ k) := by
79
+ obtain ⟨hl, hr, hz, hg, _, _⟩ := evenRohlinCoordinate_properties q r hqstar hqq hrow hsum L hL
80
+ exact ⟨carSpinProjection_isStarProjection q _ hqstar hqq (hl i) (hr i) (hz i) (hg i) _
81
+ (by rw [norm_pow, carDyadicPhase_norm, one_pow]),
82
+ (carSpinProjection_support q _ hqstar hqq (hl i) (hr i) _).1⟩
83
+
84
+ include hqstar hqq hrow hsum in
85
+ lemma evenRohlinProjection_shift_error (L : ℕ) (hL : 0 < L) (m k : ℕ) :
86
+ ‖evenRowShift r (evenRohlinProjection q r L m k) -
87
+ evenRohlinProjection q r L m (k + 1)‖ ≤
88
+ (m : ℝ) * (4 * (m : ℝ) + 1) * Real.sqrt (18 / (L : ℝ)) := by
89
+ induction m with
90
+ | zero =>
91
+ change ‖evenRowShift r q - q‖ ≤ _
92
+ rw [evenRowShift_unit q r hqstar hqq hrow hsum, sub_self, norm_zero]
93
+ simp
94
+ | succ m ih =>
95
+ let P := evenRohlinProjection q r L m k
96
+ let P' := evenRohlinProjection q r L m (k + 1)
97
+ let e := carSpinProjection q (evenRohlinCoordinate q r L m) (carDyadicPhase m ^ k)
98
+ let e' := carSpinProjection q (evenRohlinCoordinate q r L m) (carDyadicPhase m ^ (k + 1))
99
+ let δ := Real.sqrt (18 / (L : ℝ))
100
+ have heprops := evenRohlin_factor_properties q r hqstar hqq hrow hsum L hL m k
101
+ have henorm : ‖evenRowShift r e‖ ≤ 1 := IsStarProjection.norm_le _
102
+ (evenRowShift_isStarProjection q r hrow e heprops.1 heprops.2)
103
+ have hPnorm : ‖P'‖ ≤ 1 := IsStarProjection.norm_le _
104
+ ((evenRohlinProjection_partition q r hqstar hqq hrow hsum L hL m).1 (k + 1))
105
+ have herr : ‖evenRowShift r e - e'‖ ≤ (4 * (m : ℝ) + 1) * δ :=
106
+ evenRohlin_factor_shift_error q r hqstar hqq hrow hsum L hL m k
107
+ have hdecomp : evenRowShift r (evenRohlinProjection q r L (m + 1) k) -
108
+ evenRohlinProjection q r L (m + 1) (k + 1) =
109
+ (evenRowShift r P - P') * evenRowShift r e + P' * (evenRowShift r e - e') := by
110
+ change evenRowShift r (P * e) - P' * e' = _
111
+ rw [← evenRowShift_mul q r hrow P e heprops.2]
112
+ noncomm_ring
113
+ rw [hdecomp]
114
+ calc
115
+ _ ≤ ‖(evenRowShift r P - P') * evenRowShift r e‖ +
116
+ ‖P' * (evenRowShift r e - e')‖ := norm_add_le _ _
117
+ _ ≤ ‖evenRowShift r P - P'‖ * ‖evenRowShift r e‖ + ‖P'‖ * ‖evenRowShift r e - e'‖ :=
118
+ add_le_add (norm_mul_le _ _) (norm_mul_le _ _)
119
+ _ ≤ ((m : ℝ) * (4 * (m : ℝ) + 1) * δ) * 1 + 1 * ((4 * (m : ℝ) + 1) * δ) := by
120
+ gcongr
121
+ _ ≤ (↑(m + 1) : ℝ) * (4 * (↑(m + 1) : ℝ) + 1) * δ := by
122
+ push_cast
123
+ nlinarith [Real.sqrt_nonneg (18 / (L : ℝ))]
124
+
125
+ lemma evenRohlinProjection_period (L : ℕ) (m k : ℕ) :
126
+ evenRohlinProjection q r L m (k + 2 ^ m) = evenRohlinProjection q r L m k :=
127
+ dyadicSpinProjection_period q _ carDyadicPhase carDyadicPhase_half m k
128
+
129
+ include hqstar hqq hrow hsum in
130
+ lemma evenRohlinProjection_cyclic_error (L : ℕ) (hL : 0 < L) (m k : ℕ) (hk : k < 2 ^ m) :
131
+ ‖evenRowShift r (evenRohlinProjection q r L m k) -
132
+ evenRohlinProjection q r L m ((k + 1) % (2 ^ m))‖ ≤
133
+ (m : ℝ) * (4 * (m : ℝ) + 1) * Real.sqrt (18 / (L : ℝ)) := by
134
+ have he : evenRohlinProjection q r L m ((k + 1) % (2 ^ m)) =
135
+ evenRohlinProjection q r L m (k + 1) := by
136
+ by_cases hlt : k + 1 < 2 ^ m
137
+ · rw [Nat.mod_eq_of_lt hlt]
138
+ · have heq : k + 1 = 2 ^ m := by omega
139
+ rw [heq, Nat.mod_self]
140
+ simpa only [zero_add] using (evenRohlinProjection_period q r L m 0).symm
141
+ rw [he]
142
+ exact evenRohlinProjection_shift_error q r hqstar hqq hrow hsum L hL m k
143
+
144
+ include hqstar hqq hrow hsum in
145
+ lemma exists_evenRohlin_cyclic_partition (m : ℕ) (ε : ℝ) (hε : 0 < ε) :
146
+ ∃ L : ℕ, 0 < L ∧
147
+ (∀ k, IsStarProjection (evenRohlinProjection q r L m k)) ∧
148
+ (∑ k ∈ Finset.range (2 ^ m), evenRohlinProjection q r L m k) = q ∧
149
+ (∀ k l, k < 2 ^ m → l < 2 ^ m → k ≠ l →
150
+ evenRohlinProjection q r L m k * evenRohlinProjection q r L m l = 0) ∧
151
+ (∀ k, k < 2 ^ m → ‖evenRowShift r (evenRohlinProjection q r L m k) -
152
+ evenRohlinProjection q r L m ((k + 1) % (2 ^ m))‖ < ε) := by
153
+ let C : ℝ := (m : ℝ) * (4 * (m : ℝ) + 1)
154
+ have hC : 0 ≤ C := by dsimp [C]; positivity
155
+ have hεsq : 0 < ε ^ 2 := sq_pos_of_pos hε
156
+ obtain ⟨L, hL⟩ := exists_nat_gt (18 * C ^ 2 / ε ^ 2 + 1)
157
+ have hLpos : 0 < L := by
158
+ have hnonneg : 0 ≤ 18 * C ^ 2 / ε ^ 2 := by positivity
159
+ exact_mod_cast (show (0 : ℝ) < (L : ℝ) by linarith)
160
+ have hLreal : (0 : ℝ) < (L : ℝ) := by exact_mod_cast hLpos
161
+ have hbound : 18 * C ^ 2 < (L : ℝ) * ε ^ 2 := by
162
+ apply (div_lt_iff₀ hεsq).mp
163
+ linarith
164
+ have hbound' : 18 * C ^ 2 / (L : ℝ) < ε ^ 2 := (div_lt_iff₀ hLreal).mpr (by nlinarith)
165
+ have hsqrt := Real.sq_sqrt (show 0 ≤ 18 / (L : ℝ) by positivity)
166
+ have hnorm : C * Real.sqrt (18 / (L : ℝ)) < ε := by
167
+ have he : (C * Real.sqrt (18 / (L : ℝ))) ^ 2 = 18 * C ^ 2 / (L : ℝ) := by
168
+ rw [mul_pow, hsqrt]
169
+ ring
170
+ nlinarith [mul_nonneg hC (Real.sqrt_nonneg (18 / (L : ℝ)))]
171
+ obtain ⟨hp, hsum', horth⟩ := evenRohlinProjection_partition q r hqstar hqq hrow hsum L hLpos m
172
+ refine ⟨L, hLpos, hp, hsum', horth, ?_⟩
173
+ intro k hk
174
+ exact (evenRohlinProjection_cyclic_error q r hqstar hqq hrow hsum L hLpos m k hk).trans_lt hnorm
175
+
176
+ end WeakPureInfiniteness
177
+
178
+ end
179
+
180
+ end OAI
lean/OAI/Analysis/OInfinity/RohlinUnitarity.lean ADDED
@@ -0,0 +1,115 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Analysis.OInfinity.RohlinGluing
2
+
3
+ namespace OAI
4
+
5
+ /-! # Both unitary defects of a weighted Rohlin sum
6
+
7
+ The diagonal coefficient/projection commutators control both defects. The
8
+ second estimate compares the adjoint weighted sum with the weighted adjoints;
9
+ it does not require pairwise commutation of all coefficients and projections.
10
+ The hypotheses still have to be supplied by the actual tower construction.
11
+ -/
12
+
13
+ noncomputable section
14
+ open scoped CStarAlgebra
15
+
16
+ namespace WeakPureInfiniteness
17
+
18
+ variable {E I : Type*} [CStarAlgebra E] [Fintype I] [DecidableEq I]
19
+
20
+ lemma adjoint_unitary_commutator_norm (u : unitary E) (e : E)
21
+ (he : star e = e) :
22
+ ‖(star u : unitary E) * e - e * (star u : unitary E)‖ =
23
+ ‖(u : E) * e - e * (u : E)‖ := by
24
+ calc
25
+ _ = ‖star ((star u : unitary E) * e - e * (star u : unitary E))‖ :=
26
+ (norm_star _).symm
27
+ _ = ‖e * (u : E) - (u : E) * e‖ := by
28
+ simp only [star_sub, star_mul, he, Unitary.coe_star, star_star]
29
+ _ = _ := norm_sub_rev _ _
30
+
31
+ lemma star_mul_self_sub_norm_le (x y : E) :
32
+ ‖star x * x - star y * y‖ ≤ (‖x‖ + ‖y‖) * ‖x - y‖ := by
33
+ have hid : star x * x - star y * y =
34
+ star x * (x - y) + star (x - y) * y := by
35
+ rw [star_sub]
36
+ noncomm_ring
37
+ rw [hid]
38
+ calc
39
+ _ ≤ ‖star x * (x - y)‖ + ‖star (x - y) * y‖ := norm_add_le _ _
40
+ _ ≤ ‖x‖ * ‖x - y‖ + ‖x - y‖ * ‖y‖ := by
41
+ simpa only [norm_star] using add_le_add
42
+ (norm_mul_le (star x) (x - y)) (norm_mul_le (star (x - y)) y)
43
+ _ = _ := by ring
44
+
45
+ lemma finiteRohlinSum_norm_le [Nontrivial E] (v : I → unitary E) (e : I → E)
46
+ (he : ∀ i, star (e i) = e i) (hee : ∀ i, e i * e i = e i)
47
+ (horth : ∀ i j, i ≠ j → e i * e j = 0) :
48
+ ‖finiteRohlinSum v e‖ ≤ Real.sqrt (Fintype.card I) := by
49
+ change ‖∑ i, (v i : E) * e i‖ ≤ _
50
+ simpa only [mul_one] using orthogonalWeighted_norm_le e (fun i => (v i : E))
51
+ he hee horth 1 (by norm_num) (fun i => (CStarRing.norm_coe_unitary (v i)).le)
52
+
53
+ omit [DecidableEq I] in
54
+ lemma finiteRohlinSum_star_commutator_le (v : I → unitary E) (e : I → E)
55
+ (he : ∀ i, star (e i) = e i) (δ : ℝ)
56
+ (hc : ∀ i, ‖(v i : E) * e i - e i * (v i : E)‖ ≤ δ) :
57
+ ‖star (finiteRohlinSum v e) - finiteRohlinSum (fun i => star (v i)) e‖ ≤
58
+ (Fintype.card I : ℝ) * δ := by
59
+ change ‖star (∑ i, (v i : E) * e i) - ∑ i, (star (v i) : unitary E) * e i‖ ≤ _
60
+ rw [star_sum, ← Finset.sum_sub_distrib]
61
+ calc
62
+ _ ≤ ∑ i, ‖star ((v i : E) * e i) - (star (v i) : unitary E) * e i‖ :=
63
+ norm_sum_le _ _
64
+ _ ≤ ∑ _ : I, δ := by
65
+ apply Finset.sum_le_sum
66
+ intro i hi
67
+ rw [star_mul, he i, Unitary.coe_star, norm_sub_rev]
68
+ exact (adjoint_unitary_commutator_norm (v i) (e i) (he i)).le.trans (hc i)
69
+ _ = _ := by simp
70
+
71
+ /-- The second defect has a dimension-dependent bound, sufficient when the
72
+ commutator accuracy is chosen after the finite tower size. -/
73
+ lemma finiteRohlinSum_isometry_defect_le [Nontrivial E] (v : I → unitary E) (e : I → E)
74
+ (he : ∀ i, star (e i) = e i) (hee : ∀ i, e i * e i = e i)
75
+ (horth : ∀ i j, i ≠ j → e i * e j = 0)
76
+ (hsum : (∑ i, e i) = 1) (δ : ℝ)
77
+ (hc : ∀ i, ‖(v i : E) * e i - e i * (v i : E)‖ ≤ δ) :
78
+ ‖star (finiteRohlinSum v e) * finiteRohlinSum v e - 1‖ ≤
79
+ (Fintype.card I : ℝ) * (2 * Real.sqrt (Fintype.card I) + 1) * δ := by
80
+ let z := finiteRohlinSum v e
81
+ let y := finiteRohlinSum (fun i => star (v i)) e
82
+ have hz : ‖z‖ ≤ Real.sqrt (Fintype.card I) := finiteRohlinSum_norm_le v e he hee horth
83
+ have hy : ‖y‖ ≤ Real.sqrt (Fintype.card I) :=
84
+ finiteRohlinSum_norm_le (fun i => star (v i)) e he hee horth
85
+ have hc' (i : I) : ‖(star (v i) : unitary E) * e i -
86
+ e i * (star (v i) : unitary E)‖ ≤ δ :=
87
+ (adjoint_unitary_commutator_norm (v i) (e i) (he i)).le.trans (hc i)
88
+ have hydef : ‖y * star y - 1‖ ≤ (Fintype.card I : ℝ) * δ :=
89
+ finiteRohlinSum_coisometry_defect_le (fun i => star (v i)) e he hee horth hsum δ hc'
90
+ have hdist : ‖z - star y‖ ≤ (Fintype.card I : ℝ) * δ := by
91
+ calc
92
+ _ = ‖star z - y‖ := by rw [← norm_star (star z - y), star_sub, star_star]
93
+ _ ≤ _ := finiteRohlinSum_star_commutator_le v e he δ hc
94
+ have hdiff : ‖star z * z - y * star y‖ ≤
95
+ (2 * Real.sqrt (Fintype.card I)) * ((Fintype.card I : ℝ) * δ) := by
96
+ calc
97
+ _ = ‖star z * z - star (star y) * star y‖ := by rw [star_star]
98
+ _ ≤ (‖z‖ + ‖star y‖) * ‖z - star y‖ := star_mul_self_sub_norm_le z (star y)
99
+ _ ≤ (2 * Real.sqrt (Fintype.card I)) * ((Fintype.card I : ℝ) * δ) := by
100
+ rw [norm_star]
101
+ exact mul_le_mul (by linarith) hdist (norm_nonneg _)
102
+ (by positivity)
103
+ change ‖star z * z - 1‖ ≤ _
104
+ calc
105
+ _ ≤ ‖star z * z - y * star y‖ + ‖y * star y - 1‖ :=
106
+ norm_sub_le_norm_sub_add_norm_sub _ _ _
107
+ _ ≤ (2 * Real.sqrt (Fintype.card I)) * ((Fintype.card I : ℝ) * δ) +
108
+ (Fintype.card I : ℝ) * δ := add_le_add hdiff hydef
109
+ _ = _ := by ring
110
+
111
+ end WeakPureInfiniteness
112
+
113
+ end
114
+
115
+ end OAI
lean/OAI/Analysis/OInfinity/RowCocycleDefect.lean ADDED
@@ -0,0 +1,223 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Analysis.OInfinity.BinaryFragmentation
2
+
3
+ namespace OAI
4
+
5
+ /-! # The actual row cocycle and its finite splitting defect
6
+
7
+ The product cocycle `V_n = W φ(W) ... φ^[n-1](W)` is not a finite
8
+ permutation. Its splitting defect is: `V_n φ(V_n*) = ψ^[n](W*) W`,
9
+ where `ψ = Ad(W) φ`. For commuting binary Cuntz rows the right side is
10
+ the adjoint of the joint-word cycle already constructed.
11
+ -/
12
+
13
+ noncomputable section
14
+ open scoped CStarAlgebra
15
+
16
+ namespace WeakPureInfiniteness
17
+
18
+ section Group
19
+
20
+ variable {G : Type*} [Group G]
21
+
22
+ def finiteGroupCocycle (φ : G →* G) (u : G) : ℕ → G
23
+ | 0 => 1
24
+ | n + 1 => u * φ (finiteGroupCocycle φ u n)
25
+
26
+ lemma finiteGroupCocycle_splitting_defect (φ ψ : G →* G) (u : G)
27
+ (hψ : ∀ x, ψ x = u * φ x * u⁻¹) (n : ℕ) :
28
+ finiteGroupCocycle φ u n * φ ((finiteGroupCocycle φ u n)⁻¹) =
29
+ (ψ^[n]) (u⁻¹) * u := by
30
+ induction n with
31
+ | zero => simp [finiteGroupCocycle]
32
+ | succ n ih =>
33
+ change (u * φ (finiteGroupCocycle φ u n)) *
34
+ φ ((u * φ (finiteGroupCocycle φ u n))⁻¹) = _
35
+ calc
36
+ _ = u * φ (finiteGroupCocycle φ u n *
37
+ φ ((finiteGroupCocycle φ u n)⁻¹)) * φ (u⁻¹) := by
38
+ simp only [map_mul, map_inv, mul_inv_rev]
39
+ group
40
+ _ = u * (φ ((ψ^[n]) (u⁻¹)) * φ u) * φ (u⁻¹) := by rw [ih, map_mul]
41
+ _ = ψ ((ψ^[n]) (u⁻¹)) * u := by
42
+ rw [hψ]
43
+ simp only [map_inv]
44
+ group
45
+ _ = _ := by rw [Function.iterate_succ_apply']
46
+
47
+ end Group
48
+
49
+ variable {E : Type*} [CStarAlgebra E]
50
+
51
+ def binarySplitHom (a b : E) (ha : star a * a = 1) (hb : star b * b = 1)
52
+ (hab : star a * b = 0) : unitary E →* unitary E where
53
+ toFun u := binaryCornerUnitary a ha u * binaryCornerUnitary b hb u
54
+ map_one' := by rw [binaryCornerUnitary_one, binaryCornerUnitary_one, one_mul]
55
+ map_mul' u v := by
56
+ change binaryCornerUnitary a ha (u * v) * binaryCornerUnitary b hb (u * v) = _
57
+ rw [binaryCornerUnitary_mul, binaryCornerUnitary_mul]
58
+ calc
59
+ _ = binaryCornerUnitary a ha u *
60
+ (binaryCornerUnitary a ha v * binaryCornerUnitary b hb u) *
61
+ binaryCornerUnitary b hb v := by simp only [mul_assoc]
62
+ _ = binaryCornerUnitary a ha u *
63
+ (binaryCornerUnitary b hb u * binaryCornerUnitary a ha v) *
64
+ binaryCornerUnitary b hb v := by
65
+ rw [(binaryCornerUnitary_commute a b ha hb hab v u).eq]
66
+ _ = _ := by simp only [mul_assoc]
67
+
68
+ lemma binarySplitHom_coe (s : Fin 2 → E)
69
+ (hs : ∀ i j, star (s i) * s j = if i = j then 1 else 0)
70
+ (hsum : (∑ i, s i * star (s i)) = 1) (u : unitary E) :
71
+ (binarySplitHom (s 0) (s 1) (by simpa using hs 0 0)
72
+ (by simpa using hs 1 1) (by simpa using hs 0 1) u : E) = finiteRowShift s u := by
73
+ change cornerCompression (s 0) u * cornerCompression (s 1) u = _
74
+ have hsum' : s 0 * star (s 0) + s 1 * star (s 1) = 1 := by
75
+ simpa only [Fin.sum_univ_two] using hsum
76
+ rw [cornerCompression_pair_product _ _ _ _ (by simpa using hs 0 1)]
77
+ simp only [finiteRowShift, Fin.sum_univ_two]
78
+ rw [← hsum']
79
+ noncomm_ring
80
+
81
+ def binaryRowUnitary (s t : Fin 2 → E)
82
+ (hs : ∀ i j, star (s i) * s j = if i = j then 1 else 0)
83
+ (ht : ∀ i j, star (t i) * t j = if i = j then 1 else 0)
84
+ (hsum : (∑ i, s i * star (s i)) = 1)
85
+ (htsum : (∑ i, t i * star (t i)) = 1) : unitary E :=
86
+ ⟨finiteRowCocycle s t,
87
+ finiteRowCocycle_gram 1 s t (by simp) (by simp) hs ht hsum htsum⟩
88
+
89
+ lemma finiteRowCocycle_conjugate_shift (s t : Fin 2 → E)
90
+ (hs : ∀ i j, star (s i) * s j = if i = j then 1 else 0)
91
+ (ht : ∀ i j, star (t i) * t j = if i = j then 1 else 0) (x : E) :
92
+ finiteRowCocycle s t * finiteRowShift s x * star (finiteRowCocycle s t) =
93
+ finiteRowShift t x := by
94
+ simp only [finiteRowShift, Finset.mul_sum, Finset.sum_mul]
95
+ apply Finset.sum_congr rfl
96
+ intro i hi
97
+ have he : star (s i) * star (finiteRowCocycle s t) = star (t i) := by
98
+ simpa only [star_mul] using congrArg star
99
+ (finiteRowCocycle_mul_row 1 s t (by simp) (by simp) hs ht i)
100
+ calc
101
+ _ = (finiteRowCocycle s t * s i) * x *
102
+ (star (s i) * star (finiteRowCocycle s t)) := by noncomm_ring
103
+ _ = _ := by rw [finiteRowCocycle_mul_row 1 s t (by simp) (by simp) hs ht, he]
104
+
105
+ lemma binarySplitHom_conjugacy (s t : Fin 2 → E)
106
+ (hs : ∀ i j, star (s i) * s j = if i = j then 1 else 0)
107
+ (ht : ∀ i j, star (t i) * t j = if i = j then 1 else 0)
108
+ (hsum : (∑ i, s i * star (s i)) = 1)
109
+ (htsum : (∑ i, t i * star (t i)) = 1) (x : unitary E) :
110
+ binarySplitHom (t 0) (t 1) (by simpa using ht 0 0)
111
+ (by simpa using ht 1 1) (by simpa using ht 0 1) x =
112
+ binaryRowUnitary s t hs ht hsum htsum *
113
+ binarySplitHom (s 0) (s 1) (by simpa using hs 0 0)
114
+ (by simpa using hs 1 1) (by simpa using hs 0 1) x *
115
+ (binaryRowUnitary s t hs ht hsum htsum)⁻¹ := by
116
+ apply Subtype.ext
117
+ rw [binarySplitHom_coe t ht htsum]
118
+ change finiteRowShift t x = finiteRowCocycle s t *
119
+ (binarySplitHom (s 0) (s 1) _ _ _ x : E) * star (finiteRowCocycle s t)
120
+ rw [binarySplitHom_coe s hs hsum]
121
+ exact (finiteRowCocycle_conjugate_shift s t hs ht x).symm
122
+
123
+ lemma binarySplitHom_iterate_coe (s : Fin 2 → E)
124
+ (hs : ∀ i j, star (s i) * s j = if i = j then 1 else 0)
125
+ (hsum : (∑ i, s i * star (s i)) = 1) (x : unitary E) (n : ℕ) :
126
+ (((binarySplitHom (s 0) (s 1) (by simpa using hs 0 0)
127
+ (by simpa using hs 1 1) (by simpa using hs 0 1))^[n]) x : E) =
128
+ finiteRowShiftIterate s n x := by
129
+ induction n with
130
+ | zero => rfl
131
+ | succ n ih =>
132
+ rw [Function.iterate_succ_apply', binarySplitHom_coe s hs hsum, finiteRowShiftIterate, ih]
133
+
134
+ lemma finiteRowShift_star (s : Fin 2 → E) (x : E) :
135
+ star (finiteRowShift s x) = finiteRowShift s (star x) := by
136
+ simp only [finiteRowShift, star_sum, star_mul, star_star, mul_assoc]
137
+
138
+ lemma finiteRowShiftIterate_star (s : Fin 2 → E) (n : ℕ) (x : E) :
139
+ star (finiteRowShiftIterate s n x) = finiteRowShiftIterate s n (star x) := by
140
+ induction n with
141
+ | zero => rfl
142
+ | succ n ih => rw [finiteRowShiftIterate, finiteRowShift_star, ih]; rfl
143
+
144
+ def binaryRowCocycleUnitary (s t : Fin 2 → E)
145
+ (hs : ∀ i j, star (s i) * s j = if i = j then 1 else 0)
146
+ (ht : ∀ i j, star (t i) * t j = if i = j then 1 else 0)
147
+ (hsum : (∑ i, s i * star (s i)) = 1)
148
+ (htsum : (∑ i, t i * star (t i)) = 1) (n : ℕ) : unitary E :=
149
+ finiteGroupCocycle (binarySplitHom (s 0) (s 1) (by simpa using hs 0 0)
150
+ (by simpa using hs 1 1) (by simpa using hs 0 1))
151
+ (binaryRowUnitary s t hs ht hsum htsum) n
152
+
153
+ /-- The splitting defect of the actual product cocycle, not the product
154
+ itself, is the adjoint joint-word permutation. -/
155
+ lemma binaryRowCocycleUnitary_defect (s t : Fin 2 → E)
156
+ (hs : ∀ i j, star (s i) * s j = if i = j then 1 else 0)
157
+ (ht : ∀ i j, star (t i) * t j = if i = j then 1 else 0)
158
+ (hsum : (∑ i, s i * star (s i)) = 1)
159
+ (htsum : (∑ i, t i * star (t i)) = 1) (n : ℕ) :
160
+ ((binaryRowCocycleUnitary s t hs ht hsum htsum n : E) *
161
+ star (binarySplitHom (s 0) (s 1) (by simpa using hs 0 0)
162
+ (by simpa using hs 1 1) (by simpa using hs 0 1)
163
+ (binaryRowCocycleUnitary s t hs ht hsum htsum n) : E)) =
164
+ star (finiteJointCycleCoboundary t s n) := by
165
+ let α := binarySplitHom (s 0) (s 1) (by simpa using hs 0 0)
166
+ (by simpa using hs 1 1) (by simpa using hs 0 1)
167
+ let β := binarySplitHom (t 0) (t 1) (by simpa using ht 0 0)
168
+ (by simpa using ht 1 1) (by simpa using ht 0 1)
169
+ let w := binaryRowUnitary s t hs ht hsum htsum
170
+ have h := finiteGroupCocycle_splitting_defect α β w
171
+ (binarySplitHom_conjugacy s t hs ht hsum htsum) n
172
+ rw [map_inv] at h
173
+ have he := congrArg (fun v : unitary E => (v : E)) h
174
+ change (↑(finiteGroupCocycle α w n) : E) * star (↑(α (finiteGroupCocycle α w n)) : E) =
175
+ ((β^[n]) (w⁻¹) : E) * (w : E) at he
176
+ rw [binarySplitHom_iterate_coe t ht htsum] at he
177
+ change (binaryRowCocycleUnitary s t hs ht hsum htsum n : E) *
178
+ star (α (binaryRowCocycleUnitary s t hs ht hsum htsum n) : E) =
179
+ finiteRowShiftIterate t n (star (finiteRowCocycle s t)) * finiteRowCocycle s t at he
180
+ simpa only [finiteJointCycleCoboundary, star_mul, finiteRowShiftIterate_star,
181
+ star_star, finiteRowCocycle_star] using he
182
+
183
+ /-- Uniform paths for the genuine binary product cocycles. The bound is
184
+ independent of the number of factors. These are coisometric rows in the
185
+ ambient unit; applying this in a proper corner requires corner transport. -/
186
+ lemma exists_uniform_binaryRowCocycle_path [Nontrivial E] (s t : Fin 2 → E)
187
+ (hs : ∀ i j, star (s i) * s j = if i = j then 1 else 0)
188
+ (ht : ∀ i j, star (t i) * t j = if i = j then 1 else 0)
189
+ (hsum : (∑ i, s i * star (s i)) = 1)
190
+ (htsum : (∑ i, t i * star (t i)) = 1)
191
+ (hc : ∀ i j, Commute (s i) (t j)) (n : ℕ) :
192
+ ∃ p : Path (binaryRowCocycleUnitary s t hs ht hsum htsum n) 1,
193
+ ∀ a b, ‖(p a : E) - p b‖ ≤ (192 * Real.pi) * |(a : ℝ) - b| := by
194
+ let v := binaryRowCocycleUnitary s t hs ht hsum htsum n
195
+ let α := binarySplitHom (s 0) (s 1) (by simpa using hs 0 0)
196
+ (by simpa using hs 1 1) (by simpa using hs 0 1)
197
+ obtain ⟨c, hcoe, p, hp⟩ := exists_controlled_jointCycleCoboundary_path
198
+ 1 t s (by simp) (by simp) ht hs htsum hsum (fun i j => (hc j i).symm) n
199
+ simp only [sub_self, add_zero] at hcoe
200
+ have hd : v * star (α v) = star c := by
201
+ apply Subtype.ext
202
+ change (v : E) * star (α v : E) = star (c : E)
203
+ rw [hcoe]
204
+ exact binaryRowCocycleUnitary_defect s t hs ht hsum htsum n
205
+ let q : Path (1 : unitary E) (v * star (α v)) :=
206
+ (p.map (continuous_star : Continuous (star : unitary E → unitary E))).cast (by simp) hd
207
+ have hq : ∀ a b, ‖(q a : E) - q b‖ ≤ (4 * Real.pi) * |(a : ℝ) - b| := by
208
+ intro a b
209
+ change ‖star (p a : E) - star (p b : E)‖ ≤ _
210
+ rw [← star_sub, norm_star]
211
+ exact hp a b
212
+ obtain ⟨r, hr⟩ := exists_binaryFragmentation_of_defect_path (s 0) (s 1)
213
+ (by simpa using hs 0 0) (by simpa using hs 1 1) (by simpa using hs 0 1)
214
+ v (4 * Real.pi) (by positivity) q hq
215
+ refine ⟨r, ?_⟩
216
+ intro a b
217
+ simpa only [show 32 * (4 * Real.pi + 2 * Real.pi) = 192 * Real.pi by ring] using hr a b
218
+
219
+ end WeakPureInfiniteness
220
+
221
+ end
222
+
223
+ end OAI
lean/OAI/Analysis/OInfinity/RowCompletionBase.lean ADDED
@@ -0,0 +1,145 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Analysis.OInfinity.ConnectedRowCompletion
2
+
3
+ namespace OAI
4
+
5
+ /-! # The actual base path of the common-corner shrink
6
+
7
+ Binary completions chosen with connected left cocycles have a connected
8
+ base comparison. The proof identifies that base with compression of the
9
+ literal cocycle product by one fixed isometry. No general claim about a
10
+ corner stabilizer or about the ambient unitary group is used.
11
+ -/
12
+
13
+ noncomputable section
14
+ open scoped CStarAlgebra
15
+
16
+ namespace WeakPureInfiniteness
17
+
18
+ variable {E : Type*} [CStarAlgebra E]
19
+
20
+ /-- The cross product of two fillers with the same initial projection is
21
+ the standard compression of their middle unitary product. -/
22
+ lemma coisometry_filler_cross (A y : E) (hA : A * star A = 1)
23
+ (hy : star y * y = 1) (hpy : (star A * A) * y = y) (u v : unitary E) :
24
+ star (1 - star A * A + y * (star (v : E) * A)) *
25
+ (1 - star A * A + y * (star (u : E) * A)) =
26
+ (binaryCornerUnitary (star A) (by simpa only [star_star] using hA) (v * star u) : E) := by
27
+ let p := star A * A
28
+ let e := 1 - p
29
+ have hp : star p = p := by simp only [p, star_mul, star_star]
30
+ have hpp : p * p = p := by
31
+ change (star A * A) * (star A * A) = star A * A
32
+ calc
33
+ _ = star A * (A * star A) * A := by noncomm_ring
34
+ _ = _ := by rw [hA, mul_one]
35
+ have he : star e = e := by simp only [e, star_sub, star_one, hp]
36
+ have hee : e * e = e := by dsimp only [e]; noncomm_ring [hpp]
37
+ have hey : e * y = 0 := by
38
+ change (1 - star A * A) * y = 0
39
+ rw [sub_mul, one_mul, hpy, sub_self]
40
+ have hleft (w : unitary E) : e * (y * (star (w : E) * A)) = 0 := by
41
+ rw [← mul_assoc, hey, zero_mul]
42
+ have hright : star (y * (star (v : E) * A)) * e = 0 := by
43
+ simpa only [star_mul, he, star_zero] using congrArg star (hleft v)
44
+ have hmiddle : star (y * (star (v : E) * A)) * (y * (star (u : E) * A)) =
45
+ star A * ((v : E) * star (u : E)) * A := by
46
+ simp only [star_mul, star_star]
47
+ calc
48
+ _ = star A * (v : E) * (star y * y) * star (u : E) * A := by noncomm_ring
49
+ _ = _ := by rw [hy, mul_one]; noncomm_ring
50
+ change _ = cornerCompression (star A) ((v * star u : unitary E) : E)
51
+ unfold cornerCompression
52
+ rw [star_star]
53
+ change star (e + y * (star (v : E) * A)) * (e + y * (star (u : E) * A)) =
54
+ star A * ((v : E) * star (u : E)) * A + e
55
+ rw [star_add, he, add_mul, mul_add, mul_add, hee, hleft, hright, hmiddle]
56
+ abel
57
+
58
+ /-- Factoring the reference row out of the finite transfer keeps the
59
+ initial projection independent of the chosen completion cocycle. -/
60
+ lemma binaryShrinkValue_reference (r b : Fin 2 → E) (u : unitary E) :
61
+ binaryShrinkValue r (fun i => star (u : E) * b i) 1 =
62
+ 1 - star (finiteCuntzTransfer r b 1) * finiteCuntzTransfer r b 1 +
63
+ r 1 * (star (u : E) * finiteCuntzTransfer r b 1) := by
64
+ let A := finiteCuntzTransfer r b 1
65
+ have htransfer : finiteCuntzTransfer r (fun i => star (u : E) * b i) 1 =
66
+ star (u : E) * A := by
67
+ simp only [A, finiteCuntzTransfer, Finset.mul_sum, mul_one, mul_assoc]
68
+ rw [binaryShrinkValue_one, htransfer]
69
+ change 1 - star (star (u : E) * A) * (star (u : E) * A) +
70
+ r 1 * (star (u : E) * A) = _
71
+ have hg : star (star (u : E) * A) * (star (u : E) * A) = star A * A := by
72
+ rw [star_mul, star_star]
73
+ calc
74
+ _ = star A * ((u : E) * star (u : E)) * A := by noncomm_ring
75
+ _ = _ := by rw [u.property.2, mul_one]
76
+ rw [hg]
77
+
78
+ /-- The fixed isometry and the full reference row give the exact base
79
+ identity used in the two common-corner comparisons. -/
80
+ lemma finiteCuntzTransfer_reference_coisometry (r b : Fin 2 → E)
81
+ (hr : ∀ i j, star (r i) * r j = if i = j then 1 else 0)
82
+ (hbs : (∑ i, b i * star (b i)) = 1) :
83
+ finiteCuntzTransfer r b 1 * star (finiteCuntzTransfer r b 1) = 1 := by
84
+ have hs : star (finiteCuntzTransfer r b 1) = finiteCuntzTransfer b r 1 := by
85
+ simpa only [star_one] using finiteCuntzTransfer_star r b 1
86
+ have hh := finiteCuntzTransfer_star_mul b r hr 1
87
+ rw [← hs, star_star] at hh
88
+ simpa only [star_one, one_mul, mul_one, hbs] using hh
89
+
90
+ lemma binaryShrinkValue_reference_cross (r b : Fin 2 → E)
91
+ (hr : ∀ i j, star (r i) * r j = if i = j then 1 else 0)
92
+ (hb : ∀ i j, star (b i) * b j = if i = j then 1 else 0)
93
+ (hbs : (∑ i, b i * star (b i)) = 1) (u v : unitary E) :
94
+ ∃ K : unitary E,
95
+ (K : E) = star (binaryShrinkValue r (fun i => star (v : E) * b i) 1) *
96
+ binaryShrinkValue r (fun i => star (u : E) * b i) 1 ∧
97
+ K = binaryCornerUnitary (star (finiteCuntzTransfer r b 1))
98
+ (by simpa only [star_star] using
99
+ finiteCuntzTransfer_reference_coisometry r b hr hbs) (v * star u) := by
100
+ let A := finiteCuntzTransfer r b 1
101
+ have hAst : star A = finiteCuntzTransfer b r 1 := by
102
+ simpa only [A, star_one] using finiteCuntzTransfer_star r b 1
103
+ have hAA : A * star A = 1 := by
104
+ have hh := finiteCuntzTransfer_star_mul b r hr 1
105
+ rw [← hAst, star_star] at hh
106
+ simpa only [star_one, one_mul, mul_one, hbs] using hh
107
+ have hAp : star A * A = ∑ i, r i * star (r i) := by
108
+ simpa only [A, star_one, one_mul, mul_one] using finiteCuntzTransfer_star_mul r b hb 1
109
+ have hr1 : star (r 1) * r 1 = 1 := by simpa only [ite_true] using hr 1 1
110
+ have hpy : (star A * A) * r 1 = r 1 := by
111
+ rw [hAp]
112
+ simpa only [finiteRowPermutation, Equiv.Perm.one_apply] using
113
+ finiteRowPermutation_mul_row 1 r (by simp) (by simp) hr 1 1
114
+ let K := binaryCornerUnitary (star A) (by simpa only [star_star] using hAA) (v * star u)
115
+ refine ⟨K, ?_, rfl⟩
116
+ rw [binaryShrinkValue_reference, binaryShrinkValue_reference]
117
+ exact (coisometry_filler_cross A (r 1) hAA hr1 hpy u v).symm
118
+
119
+ /-- The base product is connected because its two prescribed cocycles
120
+ are connected. This is the concrete path, rather than an ambient K1 claim. -/
121
+ lemma binaryShrinkValue_reference_cross_joined (r b : Fin 2 → E)
122
+ (hr : ∀ i j, star (r i) * r j = if i = j then 1 else 0)
123
+ (hb : ∀ i j, star (b i) * b j = if i = j then 1 else 0)
124
+ (hbs : (∑ i, b i * star (b i)) = 1)
125
+ (u v : unitary E) (hu : Joined (1 : unitary E) u) (hv : Joined (1 : unitary E) v) :
126
+ ∃ K : unitary E, Joined (1 : unitary E) K ∧
127
+ (K : E) = star (binaryShrinkValue r (fun i => star (v : E) * b i) 1) *
128
+ binaryShrinkValue r (fun i => star (u : E) * b i) 1 := by
129
+ obtain ⟨K, hK, hKe⟩ := binaryShrinkValue_reference_cross r b hr hb hbs u v
130
+ have hu' : Joined (1 : unitary E) (star u) := by
131
+ simpa only [star_one] using hu.map (continuous_star : Continuous (star : unitary E → unitary E))
132
+ have huv : Joined (1 : unitary E) (v * star u) := by
133
+ simpa only [one_mul] using hv.mul hu'
134
+ refine ⟨K, ?_, hK⟩
135
+ rw [hKe]
136
+ have hA : star (star (finiteCuntzTransfer r b 1)) * star (finiteCuntzTransfer r b 1) = 1 := by
137
+ simpa only [star_star] using finiteCuntzTransfer_reference_coisometry r b hr hbs
138
+ simpa only [binaryCornerUnitary_one] using
139
+ huv.map (binaryCornerUnitary_continuous (star (finiteCuntzTransfer r b 1)) hA)
140
+
141
+ end WeakPureInfiniteness
142
+
143
+ end
144
+
145
+ end OAI
lean/OAI/Analysis/OInfinity/RowCompletionBuffer.lean ADDED
@@ -0,0 +1,314 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Analysis.OInfinity.RowCompletionBase
2
+
3
+ namespace OAI
4
+
5
+ /-! # Completions in the first buffer commutant
6
+
7
+ The relative path data records the fixed complement at every time. The
8
+ second buffer is constructed by the explicit central-row theorem inside
9
+ the norm ultrapower; its target family consists of elements of the first
10
+ buffer commutant. No commuting-row existence is assumed.
11
+ -/
12
+
13
+ noncomputable section
14
+ open Filter Topology
15
+ open scoped CStarAlgebra
16
+
17
+ namespace WeakPureInfiniteness
18
+
19
+ variable {E : Type*} [CStarAlgebra E]
20
+
21
+ local instance rowCompletionCentralizerClosed (R : ℕ → E) :
22
+ IsClosed (StarSubalgebra.centralizer ℂ (Set.range R) : Set E) :=
23
+ Set.isClosed_centralizer _
24
+
25
+ structure RelativeBinaryCompletion {n : ℕ} (q : E) (b : Fin 2 → E)
26
+ (x : Fin (n + 1) → E) where
27
+ row : Fin 2 → E
28
+ implementer : unitary E
29
+ deformation : Path (1 : unitary E) implementer
30
+ fixes_complement : ∀ t, (deformation t : E) * (1 - q) = 1 - q ∧
31
+ (1 - q) * (deformation t : E) = 1 - q
32
+ support : ∀ i, q * row i = row i ∧ row i * q = row i
33
+ gram : ∀ i j, star (row i) * row j = if i = j then q else 0
34
+ range_sum : (∑ i, row i * star (row i)) = q
35
+ encoded_prefix : ∀ i : Fin (n + 1), row 0 ^ (i : ℕ) * row 1 = x i
36
+ cocycle : ∀ j, (implementer : E) * row j = b j
37
+
38
+ /-- A relative completion whose whole connecting path fixes the external
39
+ complement, obtained by doing the three connected moves in the corner. -/
40
+ lemma exists_relative_connected_binary_completion {n : ℕ}
41
+ (q : E) (hq : star q = q) (hqq : q * q = q) (hq0 : q ≠ 0)
42
+ (x : Fin (n + 2) → E)
43
+ (hxs : ∀ i, q * x i = x i ∧ x i * q = x i)
44
+ (hx : ∀ i j, star (x i) * x j = if i = j then q else 0)
45
+ (b : Fin 2 → E)
46
+ (hb : ∀ i j, star (b i) * b j = if i = j then q else 0)
47
+ (hbs : (∑ i, b i * star (b i)) = q)
48
+ (r : Fin 3 → E)
49
+ (hrs : ∀ i, q * r i = r i ∧ r i * q = r i)
50
+ (hr : ∀ i j, star (r i) * r j = if i = j then q else 0)
51
+ (her : Commute (star (r 0)) (x (Fin.last (n + 1))))
52
+ (hfr : Commute (star (r 1)) (b 0 * x (Fin.last (n + 1)))) :
53
+ Nonempty (RelativeBinaryCompletion q b (fun i : Fin (n + 1) => x i.castSucc)) := by
54
+ let : NeZero q := ⟨hq0⟩
55
+ let H := ProjectionCorner q hq hqq
56
+ let f := projectionCornerInclusion q hq hqq
57
+ have hf1 : f 1 = q := rfl
58
+ have hfa (a : H) : f a = (a : E) := rfl
59
+ have hbsup (i : Fin 2) : q * b i = b i ∧ b i * q = b i :=
60
+ ⟨finiteRow_left_support q b hq hqq hb hbs i,
61
+ finiteRow_right_support q b hq hqq hb i⟩
62
+ let X : Fin (n + 2) → H := fun i => projectionCornerElement q hq hqq (x i) (hxs i)
63
+ let B : Fin 2 → H := fun i => projectionCornerElement q hq hqq (b i) (hbsup i)
64
+ let R : Fin 3 → H := fun i => projectionCornerElement q hq hqq (r i) (hrs i)
65
+ have hX := projectionCornerElement_gram q hq hqq x hxs hx
66
+ have hB := projectionCornerElement_gram q hq hqq b hbsup hb
67
+ have hBs := projectionCornerElement_range_sum q hq hqq b hbsup hbs
68
+ have hR := projectionCornerElement_gram q hq hqq r hrs hr
69
+ have he : star (X (Fin.last (n + 1))) * X (Fin.last (n + 1)) = 1 := by
70
+ simpa only [ite_true] using hX (Fin.last (n + 1)) (Fin.last (n + 1))
71
+ have hxe (i : Fin (n + 1)) : star (X i.castSucc) * X (Fin.last (n + 1)) = 0 := by
72
+ have hne : i.castSucc ≠ Fin.last (n + 1) := by
73
+ intro h
74
+ have hh := congrArg Fin.val h
75
+ change (i : ℕ) = n + 1 at hh
76
+ omega
77
+ simpa only [hne, ite_false] using hX i.castSucc (Fin.last (n + 1))
78
+ obtain ⟨a, u, hu, hag, has, ha, huc⟩ := exists_connected_binary_row_completion
79
+ (fun i : Fin (n + 1) => X i.castSucc)
80
+ (fun i j => by simpa only [Fin.castSucc_inj] using hX i.castSucc j.castSucc)
81
+ (X (Fin.last (n + 1))) he hxe B hB hBs R hR
82
+ (show Commute (star (R 0)) (X (Fin.last (n + 1))) from Subtype.ext her.eq)
83
+ (show Commute (star (R 1)) (B 0 * X (Fin.last (n + 1))) from Subtype.ext hfr.eq)
84
+ let p := hu.somePath
85
+ let U := projectionCornerUnitary q hq hqq u
86
+ let P : Path (1 : unitary E) U :=
87
+ { toFun := fun t => projectionCornerUnitary q hq hqq (p t)
88
+ continuous_toFun := (projectionCornerUnitary_continuous q hq hqq).comp p.continuous
89
+ source' := by rw [p.source, projectionCornerUnitary_one]
90
+ target' := by rw [p.target] }
91
+ refine ⟨{
92
+ row := fun i => f (a i)
93
+ implementer := U
94
+ deformation := P
95
+ fixes_complement := fun t => projectionCornerUnitary_complement q hq hqq (p t)
96
+ support := fun i => (a i).property
97
+ gram := ?_
98
+ range_sum := ?_
99
+ encoded_prefix := ?_
100
+ cocycle := ?_ }⟩
101
+ · intro i j
102
+ have h := congrArg f (hag i j)
103
+ by_cases hij : i = j
104
+ · simpa only [hij, ite_true, map_mul, map_star, hf1] using h
105
+ · simpa only [hij, ite_false, map_mul, map_star, map_zero] using h
106
+ · have h := congrArg f has
107
+ simpa only [map_sum, map_mul, map_star, hf1] using h
108
+ · intro i
109
+ have h := congrArg f (ha i)
110
+ rw [nonunital_map_pow_mul] at h
111
+ exact h
112
+ · intro j
113
+ change ((((u : H) : E) + (1 - q)) * f (a j)) = b j
114
+ rw [add_mul, sub_mul, one_mul, hfa, (a j).property.1, sub_self, add_zero]
115
+ exact congrArg f (huc j)
116
+
117
+ /-- Diagonalizing an element of the first row commutant preserves that
118
+ membership in the next norm ultrapower. -/
119
+ def rowCentralizerDiagonalHom (U : Ultrafilter ℕ) (R : ℕ → E) :
120
+ StarSubalgebra.centralizer ℂ (Set.range R) →⋆ₐ[ℂ]
121
+ StarSubalgebra.centralizer ℂ
122
+ (Set.range (fun i => NormUltra.QuotientAlgebra.diagonalHom U (R i))) := by
123
+ let C := StarSubalgebra.centralizer ℂ (Set.range R)
124
+ let D := StarSubalgebra.centralizer ℂ
125
+ (Set.range (fun i => NormUltra.QuotientAlgebra.diagonalHom U (R i)))
126
+ let d := NormUltra.QuotientAlgebra.diagonalHom (A := E) U
127
+ refine (d.comp C.subtype).codRestrict D ?_
128
+ intro x
129
+ apply (StarSubalgebra.mem_centralizer_iff ℂ).mpr
130
+ rintro _ ⟨i, rfl⟩
131
+ obtain ⟨h₁, h₂⟩ := (StarSubalgebra.mem_centralizer_iff ℂ).mp x.property (R i) ⟨i, rfl⟩
132
+ constructor
133
+ · change d (R i) * d (x : E) = d (x : E) * d (R i)
134
+ simpa only [map_mul] using congrArg d h₁
135
+ · change star (d (R i)) * d (x : E) = d (x : E) * star (d (R i))
136
+ simpa only [map_mul, map_star] using congrArg d h₂
137
+
138
+ /-- The second proper row is actually built. Its entries remain in the
139
+ first row's commutant and commute with every member of the chosen target
140
+ family and its adjoint. -/
141
+ lemma exists_normUltrapower_row_in_commutant [Nontrivial E]
142
+ (U : Ultrafilter ℕ) [Fact ((U : Filter ℕ) ≤ atTop)] (R : ℕ → E)
143
+ (hR : ∀ i j, star (R i) * R j = if i = j then 1 else 0)
144
+ (t : ℕ → StarSubalgebra.centralizer ℂ (Set.range R)) :
145
+ ∃ z : ℕ → StarSubalgebra.centralizer ℂ
146
+ (Set.range (fun i => NormUltra.QuotientAlgebra.diagonalHom U (R i))),
147
+ (∀ i j, star (z i) * z j = if i = j then 1 else 0) ∧
148
+ ∀ i j, Commute (z i) (rowCentralizerDiagonalHom U R (t j)) ∧
149
+ Commute (z i) (star (rowCentralizerDiagonalHom U R (t j))) := by
150
+ let T : ℕ → E := fun i => t i
151
+ have hRT : bergRowsCommute R T := by
152
+ intro i j
153
+ obtain ⟨h₁, h₂⟩ := (StarSubalgebra.mem_centralizer_iff ℂ).mp (t j).property (R i) ⟨i, rfl⟩
154
+ refine ⟨h₁, ?_⟩
155
+ change R i * star (t j : E) = star (t j : E) * R i
156
+ simpa only [star_mul, star_star] using (congrArg star h₂).symm
157
+ obtain ⟨Z, hZ, hZR, hZT⟩ := exists_normUltrapower_central_cuntz_row U R T hR hRT
158
+ have hmem (i : ℕ) : Z i ∈ StarSubalgebra.centralizer ℂ
159
+ (Set.range (fun j => NormUltra.QuotientAlgebra.diagonalHom U (R j))) := by
160
+ apply (StarSubalgebra.mem_centralizer_iff ℂ).mpr
161
+ rintro _ ⟨j, rfl⟩
162
+ exact ⟨(hZR i j).1.symm, (hZR i j).2.symm⟩
163
+ let z i := (⟨Z i, hmem i⟩ : StarSubalgebra.centralizer ℂ
164
+ (Set.range (fun j => NormUltra.QuotientAlgebra.diagonalHom U (R j))))
165
+ refine ⟨z, ?_, fun i j => ?_⟩
166
+ · intro i j
167
+ apply Subtype.ext
168
+ change star (Z i) * Z j = ↑(if i = j then (1 : StarSubalgebra.centralizer ℂ
169
+ (Set.range (fun j => NormUltra.QuotientAlgebra.diagonalHom U (R j)))) else 0)
170
+ split_ifs with hij
171
+ · change star (Z i) * Z j = 1
172
+ simpa only [hij, ite_true] using hZ i j
173
+ · change star (Z i) * Z j = 0
174
+ simpa only [hij, ite_false] using hZ i j
175
+ · constructor
176
+ · exact Subtype.ext (hZT i j).1.eq
177
+ · exact Subtype.ext (hZT i j).2.eq
178
+
179
+ private lemma rowCentralizerDiagonal_norm (U : Ultrafilter ℕ) (R : ℕ → E)
180
+ (x : StarSubalgebra.centralizer ℂ (Set.range R)) :
181
+ ‖rowCentralizerDiagonalHom U R x‖ = ‖x‖ := by
182
+ change ‖NormUltra.QuotientAlgebra.mk U (DirectComparison.boundedDiagonal (x : E))‖ = ‖(x : E)‖
183
+ rw [NormUltra.QuotientAlgebra.norm_mk_eq_limsup]
184
+ change Filter.limsup (fun _ : ℕ => ‖(x : E)‖) (U : Filter ℕ) = ‖(x : E)‖
185
+ rw [Filter.limsup_const]
186
+
187
+ /-- The same reference completion is available for both proper finite
188
+ rows after the second, explicitly constructed buffer. All resulting data
189
+ belong to the first buffer commutant. -/
190
+ lemma exists_buffer_preserving_pair_completions [Nontrivial E]
191
+ (U : Ultrafilter ℕ) [Fact ((U : Filter ℕ) ≤ atTop)]
192
+ (R : ℕ → E) (hR : ∀ i j, star (R i) * R j = if i = j then 1 else 0)
193
+ (q : StarSubalgebra.centralizer ℂ (Set.range R))
194
+ (hq : star q = q) (hqq : q * q = q) (hq0 : q ≠ 0)
195
+ (n : ℕ) (x y : Fin (n + 2) → StarSubalgebra.centralizer ℂ (Set.range R))
196
+ (hxs : ∀ i, q * x i = x i ∧ x i * q = x i)
197
+ (hys : ∀ i, q * y i = y i ∧ y i * q = y i)
198
+ (hx : ∀ i j, star (x i) * x j = if i = j then q else 0)
199
+ (hy : ∀ i j, star (y i) * y j = if i = j then q else 0)
200
+ (b : Fin 2 → StarSubalgebra.centralizer ℂ (Set.range R))
201
+ (hb : ∀ i j, star (b i) * b j = if i = j then q else 0)
202
+ (hbs : (∑ i, b i * star (b i)) = q) :
203
+ let θ := rowCentralizerDiagonalHom U R
204
+ Nonempty (RelativeBinaryCompletion (θ q) (fun j => θ (b j))
205
+ (fun i : Fin (n + 1) => θ (x i.castSucc))) ∧
206
+ Nonempty (RelativeBinaryCompletion (θ q) (fun j => θ (b j))
207
+ (fun i : Fin (n + 1) => θ (y i.castSucc))) := by
208
+ intro θ
209
+ let C := StarSubalgebra.centralizer ℂ (Set.range R)
210
+ let D := StarSubalgebra.centralizer ℂ
211
+ (Set.range (fun i => NormUltra.QuotientAlgebra.diagonalHom U (R i)))
212
+ let ex := x (Fin.last (n + 1))
213
+ let ey := y (Fin.last (n + 1))
214
+ let t : ℕ → C := fun i => if i = 0 then q else if i = 1 then ex else
215
+ if i = 2 then b 0 * ex else if i = 3 then ey else b 0 * ey
216
+ obtain ⟨z, hz, hzt⟩ := exists_normUltrapower_row_in_commutant U R hR t
217
+ have hzq (j : ℕ) : Commute (z j) (θ q) := by
218
+ simpa only [t, ite_true] using (hzt j 0).1
219
+ have hzex (j : ℕ) : Commute (star (z j)) (θ ex) := by
220
+ have h := (hzt j 1).2.star_star
221
+ simpa only [t, show (1 : ℕ) ≠ 0 by decide, ite_false, ite_true, star_star] using h
222
+ have hzfx (j : ℕ) : Commute (star (z j)) (θ (b 0 * ex)) := by
223
+ have h := (hzt j 2).2.star_star
224
+ simpa only [t, show (2 : ℕ) ≠ 0 by decide, show (2 : ℕ) ≠ 1 by decide,
225
+ ite_false, ite_true, star_star] using h
226
+ have hzey (j : ℕ) : Commute (star (z j)) (θ ey) := by
227
+ have h := (hzt j 3).2.star_star
228
+ simpa only [t, show (3 : ℕ) ≠ 0 by decide, show (3 : ℕ) ≠ 1 by decide,
229
+ show (3 : ℕ) ≠ 2 by decide, ite_false, ite_true, star_star] using h
230
+ have hzfy (j : ℕ) : Commute (star (z j)) (θ (b 0 * ey)) := by
231
+ have h := (hzt j 4).2.star_star
232
+ simpa only [t, show (4 : ℕ) ≠ 0 by decide, show (4 : ℕ) ≠ 1 by decide,
233
+ show (4 : ℕ) ≠ 2 by decide, show (4 : ℕ) ≠ 3 by decide, ite_false, star_star] using h
234
+ have hqD : star (θ q) = θ q := by rw [← map_star, hq]
235
+ have hqqD : θ q * θ q = θ q := by rw [← map_mul, hqq]
236
+ have hqD0 : θ q ≠ 0 := by
237
+ intro hzero
238
+ have hn := rowCentralizerDiagonal_norm U R q
239
+ change ‖θ q‖ = ‖q‖ at hn
240
+ rw [hzero, norm_zero] at hn
241
+ exact hq0 (norm_eq_zero.mp hn.symm)
242
+ have map_support (a : Fin (n + 2) → C) (hs : ∀ i, q * a i = a i ∧ a i * q = a i) :
243
+ ∀ i, θ q * θ (a i) = θ (a i) ∧ θ (a i) * θ q = θ (a i) := by
244
+ intro i
245
+ constructor
246
+ · simpa only [map_mul] using congrArg θ (hs i).1
247
+ · simpa only [map_mul] using congrArg θ (hs i).2
248
+ have map_gram {I : Type} [DecidableEq I] (a : I → C)
249
+ (h : ∀ i j, star (a i) * a j = if i = j then q else 0) :
250
+ ∀ i j, star (θ (a i)) * θ (a j) = if i = j then θ q else 0 := by
251
+ intro i j
252
+ rw [← map_star, ← map_mul, h]
253
+ split_ifs <;> simp only [map_zero]
254
+ have hbsD : (∑ i, θ (b i) * star (θ (b i))) = θ q := by
255
+ simpa only [map_sum, map_mul, map_star] using congrArg θ hbs
256
+ let r : Fin 3 → D := fun i => z i * θ q
257
+ have hrs (i : Fin 3) : θ q * r i = r i ∧ r i * θ q = r i := by
258
+ constructor
259
+ · change θ q * (z i * θ q) = z i * θ q
260
+ rw [← mul_assoc, ← (hzq i).eq, mul_assoc, hqqD]
261
+ · change (z i * θ q) * θ q = z i * θ q
262
+ rw [mul_assoc, hqqD]
263
+ have hrg (i j : Fin 3) : star (r i) * r j = if i = j then θ q else 0 := by
264
+ change star (z i * θ q) * (z j * θ q) = _
265
+ rw [star_mul, hqD]
266
+ calc
267
+ _ = θ q * (star (z i) * z j) * θ q := by noncomm_ring
268
+ _ = _ := by
269
+ rw [hz]
270
+ by_cases hij : i = j
271
+ · simpa only [hij, ite_true, mul_one] using hqqD
272
+ · have hne : (i : ℕ) ≠ (j : ℕ) := fun h => hij (Fin.ext h)
273
+ simp only [hne, hij, ite_false, mul_zero, zero_mul]
274
+ have q_commutes (a : C) (ha : q * a = a ∧ a * q = a) : Commute (θ q) (θ a) := by
275
+ change θ q * θ a = θ a * θ q
276
+ rw [← map_mul, ← map_mul, ha.1, ha.2]
277
+ have q_bex : q * (b 0 * ex) = b 0 * ex ∧ (b 0 * ex) * q = b 0 * ex := by
278
+ constructor
279
+ · rw [← mul_assoc, finiteRow_left_support q b hq hqq hb hbs 0]
280
+ · rw [mul_assoc, (hxs (Fin.last (n + 1))).2]
281
+ have q_bey : q * (b 0 * ey) = b 0 * ey ∧ (b 0 * ey) * q = b 0 * ey := by
282
+ constructor
283
+ · rw [← mul_assoc, finiteRow_left_support q b hq hqq hb hbs 0]
284
+ · rw [mul_assoc, (hys (Fin.last (n + 1))).2]
285
+ have hrex : Commute (star (r 0)) (θ ex) := by
286
+ change Commute (star (z 0 * θ q)) (θ ex)
287
+ rw [star_mul, hqD]
288
+ exact (q_commutes ex (hxs _)).mul_left (hzex 0)
289
+ have hrfx : Commute (star (r 1)) (θ (b 0) * θ ex) := by
290
+ rw [← map_mul]
291
+ change Commute (star (z 1 * θ q)) (θ (b 0 * ex))
292
+ rw [star_mul, hqD]
293
+ exact (q_commutes (b 0 * ex) q_bex).mul_left (hzfx 1)
294
+ have hrey : Commute (star (r 0)) (θ ey) := by
295
+ change Commute (star (z 0 * θ q)) (θ ey)
296
+ rw [star_mul, hqD]
297
+ exact (q_commutes ey (hys _)).mul_left (hzey 0)
298
+ have hrfy : Commute (star (r 1)) (θ (b 0) * θ ey) := by
299
+ rw [← map_mul]
300
+ change Commute (star (z 1 * θ q)) (θ (b 0 * ey))
301
+ rw [star_mul, hqD]
302
+ exact (q_commutes (b 0 * ey) q_bey).mul_left (hzfy 1)
303
+ exact ⟨exists_relative_connected_binary_completion (θ q) hqD hqqD hqD0
304
+ (fun i => θ (x i)) (map_support x hxs) (map_gram (I := Fin (n + 2)) x hx)
305
+ (fun j => θ (b j)) (map_gram (I := Fin 2) b hb) hbsD r hrs hrg hrex hrfx,
306
+ exists_relative_connected_binary_completion (θ q) hqD hqqD hqD0
307
+ (fun i => θ (y i)) (map_support y hys) (map_gram (I := Fin (n + 2)) y hy)
308
+ (fun j => θ (b j)) (map_gram (I := Fin 2) b hb) hbsD r hrs hrg hrey hrfy⟩
309
+
310
+ end WeakPureInfiniteness
311
+
312
+ end
313
+
314
+ end OAI
lean/OAI/Analysis/OInfinity/ShrinkPaths.lean ADDED
@@ -0,0 +1,174 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Analysis.OInfinity.MixedComplement
2
+
3
+ namespace OAI
4
+
5
+ /-! # Paths of the actual inserted-unitary shrinks
6
+
7
+ The inverse canonical-shift implementer can be chosen in the identity
8
+ component. Varying that implementer to one preserves both support
9
+ projections of the shrink. This supplies a path to the literal base
10
+ formula; the base fixed-complement extension is not asserted connected.
11
+ -/
12
+
13
+ noncomputable section
14
+ open scoped CStarAlgebra
15
+
16
+ namespace WeakPureInfiniteness
17
+
18
+ variable {E : Type*} [CStarAlgebra E]
19
+
20
+ /-- Retain the connectedness supplied by the canonical-shift construction
21
+ when passing to inverse conjugation and a finite encoded prefix. -/
22
+ lemma exists_connected_canonicalShift_prefix_inverse [Nontrivial E]
23
+ (a : Fin 2 → E)
24
+ (ha : ∀ i j, star (a i) * a j = if i = j then 1 else 0)
25
+ (has : (∑ i, a i * star (a i)) = 1) (m : ℕ) (ε : ℝ) (hε : 0 < ε) :
26
+ ∃ u : unitary E, Joined 1 u ∧ ∀ i ≤ m,
27
+ ‖(u : E) * finiteRowShift a (a 0 ^ i * a 1) * star (u : E) -
28
+ (a 0 ^ i * a 1)‖ < ε := by
29
+ let δ := ε / ((m : ℝ) + 2)
30
+ have hδ : 0 < δ := by dsimp only [δ]; positivity
31
+ obtain ⟨u, hu, huclose⟩ := exists_connected_canonicalShift_conjugacy a ha has δ hδ
32
+ let φ := finiteCuntzDiagonalHom a ha
33
+ have han (j : Fin 2) : ‖a j‖ ≤ 1 := by
34
+ have h := congrArg norm (show star (a j) * a j = 1 by simpa only [ite_true] using ha j j)
35
+ rw [CStarRing.norm_star_mul_self, norm_one] at h
36
+ nlinarith [norm_nonneg (a j)]
37
+ have hun (j : Fin 2) : ‖(u : E) * a j * star (u : E)‖ ≤ 1 := by
38
+ rw [mul_assoc, CStarRing.norm_coe_unitary_mul]
39
+ change ‖a j * (star u : unitary E)‖ ≤ 1
40
+ rw [CStarRing.norm_mul_coe_unitary]
41
+ exact han j
42
+ have hφn (j : Fin 2) : ‖φ (a j)‖ ≤ 1 :=
43
+ (NonUnitalStarAlgHom.norm_apply_le φ _).trans (han j)
44
+ have hclose (i : ℕ) (hi : i ≤ m) :
45
+ ‖(u : E) * (a 0 ^ i * a 1) * star (u : E) - φ (a 0 ^ i * a 1)‖ < ε := by
46
+ let j : Fin (m + 1) := ⟨i, by omega⟩
47
+ have hp := zeroCornerRow_perturbation 1
48
+ ((u : E) * a 0 * star (u : E)) ((u : E) * a 1 * star (u : E))
49
+ (φ (a 0)) (φ (a 1)) δ hδ.le (by simp) (hun 0) (hun 1) (hφn 0)
50
+ (huclose 0).le (huclose 1).le (m + 1) j.castSucc
51
+ rw [← zeroCornerRow_conjugate] at hp
52
+ simp only [zeroCornerRow_castSucc] at hp
53
+ rw [← nonunital_map_pow_mul] at hp
54
+ apply hp.trans_lt
55
+ have he : ((m : ℝ) + 2) * δ = ε := by dsimp only [δ]; field_simp
56
+ push_cast
57
+ nlinarith
58
+ refine ⟨star u, ?_, fun i hi => ?_⟩
59
+ · simpa only [star_one] using hu.map (continuous_star : Continuous (star : unitary E → unitary E))
60
+ · let x := a 0 ^ i * a 1
61
+ have hid : (star (u : E)) * φ x * (u : E) - x =
62
+ star (u : E) * (φ x - (u : E) * x * star (u : E)) * (u : E) := by
63
+ rw [mul_sub, sub_mul]
64
+ have hcan : star (u : E) * ((u : E) * x * star (u : E)) * (u : E) = x := by
65
+ calc
66
+ _ = (star (u : E) * (u : E)) * x * (star (u : E) * (u : E)) := by noncomm_ring
67
+ _ = x := by rw [u.property.1, one_mul, mul_one]
68
+ rw [hcan]
69
+ change ‖star (u : E) * φ x * star (star (u : E)) - x‖ < ε
70
+ rw [star_star, hid, CStarRing.norm_mul_coe_unitary]
71
+ change ‖(star u : unitary E) * (φ x - (u : E) * x * star (u : E))‖ < ε
72
+ rw [CStarRing.norm_coe_unitary_mul, norm_sub_rev]
73
+ exact hclose i hi
74
+
75
+ def binaryShrinkValue (r a : Fin 2 → E) (u : unitary E) : E :=
76
+ let v := (u : E) * finiteCuntzTransfer r a 1
77
+ 1 - star v * v + r 1 * v
78
+
79
+ lemma binaryShrinkValue_continuous (r a : Fin 2 → E) : Continuous (binaryShrinkValue r a) := by
80
+ unfold binaryShrinkValue
81
+ fun_prop
82
+
83
+ lemma binaryShrinkValue_one (r a : Fin 2 → E) :
84
+ binaryShrinkValue r a 1 = 1 - star (finiteCuntzTransfer r a 1) *
85
+ finiteCuntzTransfer r a 1 + r 1 * finiteCuntzTransfer r a 1 := by
86
+ simp only [binaryShrinkValue, OneMemClass.coe_one, one_mul]
87
+
88
+ /-- The actual shrink follows a continuous path with constant initial and
89
+ final projections from its explicit base formula to the required estimate. -/
90
+ lemma exists_binary_shrink_path [Nontrivial E]
91
+ (r a : Fin 2 → E)
92
+ (hr : ∀ i j, star (r i) * r j = if i = j then 1 else 0)
93
+ (ha : ∀ i j, star (a i) * a j = if i = j then 1 else 0)
94
+ (has : (∑ i, a i * star (a i)) = 1)
95
+ (hc : bergRowsCommute a r) (m : ℕ) (ε : ℝ) (hε : 0 < ε) :
96
+ ∃ C : unitInterval → E, Continuous C ∧
97
+ C 0 = binaryShrinkValue r a 1 ∧
98
+ (∀ t, star (C t) * C t = 1 ∧ C t * star (C t) = 1 - r 0 * star (r 0)) ∧
99
+ ∀ i ≤ m, ‖C 1 * (a 0 ^ i * a 1) * star (C 1) -
100
+ (a 0 ^ i * a 1) * (1 - r 0 * star (r 0))‖ < ε := by
101
+ obtain ⟨u, hu, he⟩ := exists_connected_canonicalShift_prefix_inverse a ha has m ε hε
102
+ let p : Path (1 : unitary E) u := hu.somePath
103
+ let C : unitInterval → E := fun t => binaryShrinkValue r a (p t)
104
+ refine ⟨C, (binaryShrinkValue_continuous r a).comp p.continuous, ?_, ?_, ?_⟩
105
+ · change binaryShrinkValue r a (p 0) = _
106
+ rw [p.source]
107
+ · intro t
108
+ exact binary_shift_shrink_products r a hr ha has (p t)
109
+ · intro i hi
110
+ have hx (j : Fin 2) : Commute (a 0 ^ i * a 1) (r j) ∧
111
+ Commute (a 0 ^ i * a 1) (star (r j)) :=
112
+ ⟨((hc 0 j).1.pow_left i).mul_left (hc 1 j).1,
113
+ ((hc 0 j).2.pow_left i).mul_left (hc 1 j).2⟩
114
+ change ‖binaryShrinkValue r a (p 1) * _ * star (binaryShrinkValue r a (p 1)) - _‖ < ε
115
+ rw [p.target]
116
+ exact (binary_shift_shrink_error r a hr ha has u _ hx).trans_lt (he i hi)
117
+
118
+ /-- The same actual deformation inside a projection corner, including both
119
+ support equations at every time. -/
120
+ lemma exists_relative_binary_shrink_path
121
+ (q : E) (hq : star q = q) (hqq : q * q = q) (hq0 : q ≠ 0)
122
+ (r a : Fin 2 → E)
123
+ (hrs : ∀ i, q * r i = r i ∧ r i * q = r i)
124
+ (hasp : ∀ i, q * a i = a i ∧ a i * q = a i)
125
+ (hr : ∀ i j, star (r i) * r j = if i = j then q else 0)
126
+ (ha : ∀ i j, star (a i) * a j = if i = j then q else 0)
127
+ (has : (∑ i, a i * star (a i)) = q)
128
+ (hc : bergRowsCommute a r) (m : ℕ) (ε : ℝ) (hε : 0 < ε) :
129
+ ∃ C : unitInterval → E, Continuous C ∧
130
+ C 0 = q - star (finiteCuntzTransfer r a q) * finiteCuntzTransfer r a q +
131
+ r 1 * finiteCuntzTransfer r a q ∧
132
+ (∀ t, q * C t = C t ∧ C t * q = C t ∧ star (C t) * C t = q ∧
133
+ C t * star (C t) = q - r 0 * star (r 0)) ∧
134
+ ∀ i ≤ m, ‖C 1 * (a 0 ^ i * a 1) * star (C 1) -
135
+ (a 0 ^ i * a 1) * (q - r 0 * star (r 0))‖ < ε := by
136
+ let : NeZero q := ⟨hq0⟩
137
+ let H := ProjectionCorner q hq hqq
138
+ let R : Fin 2 → H := fun i => projectionCornerElement q hq hqq (r i) (hrs i)
139
+ let A : Fin 2 → H := fun i => projectionCornerElement q hq hqq (a i) (hasp i)
140
+ have hR := projectionCornerElement_gram q hq hqq r hrs hr
141
+ have hA := projectionCornerElement_gram q hq hqq a hasp ha
142
+ have hAs := projectionCornerElement_range_sum q hq hqq a hasp has
143
+ have hAR : bergRowsCommute A R := by
144
+ intro i j
145
+ exact ⟨Subtype.ext (hc i j).1.eq, Subtype.ext (hc i j).2.eq⟩
146
+ obtain ⟨C, hC, hC0, hgram, he⟩ := exists_binary_shrink_path R A hR hA hAs hAR m ε hε
147
+ let f := projectionCornerInclusion q hq hqq
148
+ have hf1 : f 1 = q := rfl
149
+ have hfR (i : Fin 2) : f (R i) = r i := rfl
150
+ have htransfer : f (finiteCuntzTransfer R A 1) = finiteCuntzTransfer r a q := by
151
+ simp only [finiteCuntzTransfer, map_sum, map_mul, map_star]
152
+ rfl
153
+ have hfc : Continuous (fun x : H => f x) := continuous_subtype_val
154
+ refine ⟨fun t => f (C t), hfc.comp hC, ?_, ?_, fun i hi => ?_⟩
155
+ · change f (C 0) = _
156
+ rw [hC0, binaryShrinkValue_one, map_add, map_sub, map_mul, map_star, map_mul,
157
+ hf1, htransfer]
158
+ rfl
159
+ · intro t
160
+ exact ⟨(C t).property.1, (C t).property.2,
161
+ congrArg f (hgram t).1, congrArg f (hgram t).2⟩
162
+ · have hpow : f (A 0 ^ i * A 1) = a 0 ^ i * a 1 := by
163
+ rw [nonunital_map_pow_mul]
164
+ rfl
165
+ have hh := he i hi
166
+ change ‖f (C 1 * (A 0 ^ i * A 1) * star (C 1) -
167
+ (A 0 ^ i * A 1) * (1 - R 0 * star (R 0)))‖ < ε at hh
168
+ simpa only [map_sub, map_mul, map_star, hpow, hf1, hfR] using hh
169
+
170
+ end WeakPureInfiniteness
171
+
172
+ end
173
+
174
+ end OAI
lean/OAI/Analysis/OInfinity/Simple.lean ADDED
@@ -0,0 +1,192 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Analysis.OInfinity.TensorApproximation
2
+ import OAI.Analysis.OInfinity.VacuumCorner
3
+
4
+ namespace OAI
5
+
6
+ /-! # Simplicity of O∞ from finite vacuum corners
7
+
8
+ A nonzero Fock coefficient becomes a nonzero vacuum coefficient after a word
9
+ sandwich. Compressing a polynomial by an unused generator gives exactly that
10
+ vacuum coefficient times the unit. Polynomial approximation therefore puts an
11
+ invertible element in every nonzero two-sided ideal.
12
+ -/
13
+
14
+ noncomputable section
15
+ open scoped CStarAlgebra InnerProductSpace
16
+ open Filter Topology
17
+
18
+ namespace WeakPureInfiniteness
19
+
20
+ local instance : SMulWithZero ℂ OInfinity :=
21
+ @MulActionWithZero.toSMulWithZero ℂ OInfinity _ _
22
+ (@Module.toMulActionWithZero ℂ OInfinity _ _ inferInstance)
23
+ local instance : DistribSMul ℂ OInfinity :=
24
+ @DistribMulAction.toDistribSMul ℂ OInfinity _ _
25
+ (@Module.toDistribMulAction ℂ OInfinity _ _ inferInstance)
26
+
27
+ private lemma norm_complex_smul_one {A : Type*} [CStarAlgebra A] [Nontrivial A]
28
+ (c : ℂ) : ‖c • (1 : A)‖ = ‖c‖ := by
29
+ rw [norm_smul, norm_one, mul_one]
30
+
31
+ private lemma norm_contraction_sandwich {A : Type*} [NonUnitalCStarAlgebra A]
32
+ (s a : A) (hs : ‖s‖ ≤ 1) : ‖star s * a * s‖ ≤ ‖a‖ := by
33
+ have hleft : ‖star s * a‖ ≤ ‖s‖ * ‖a‖ := by
34
+ simpa only [norm_star] using norm_mul_le (star s) a
35
+ calc
36
+ _ ≤ (‖s‖ * ‖a‖) * ‖s‖ :=
37
+ (norm_mul_le _ _).trans (mul_le_mul_of_nonneg_right hleft (norm_nonneg _))
38
+ _ ≤ (1 * ‖a‖) * 1 := mul_le_mul
39
+ (mul_le_mul_of_nonneg_right hs (norm_nonneg _)) hs
40
+ (norm_nonneg _) (by positivity)
41
+ _ = ‖a‖ := by rw [one_mul, mul_one]
42
+
43
+ def fockVacuumCoefficient (a : OInfinity) : ℂ :=
44
+ inner ℂ fockVacuum (fockOperatorRepresentation a fockVacuum)
45
+
46
+ lemma fockVacuumCoefficient_sub (a b : OInfinity) :
47
+ fockVacuumCoefficient (a - b) = fockVacuumCoefficient a - fockVacuumCoefficient b := by
48
+ simp only [fockVacuumCoefficient, map_sub, sub_apply, inner_sub_right]
49
+
50
+ lemma fockVacuumCoefficient_norm_le (a : OInfinity) : ‖fockVacuumCoefficient a‖ ≤ ‖a‖ := by
51
+ calc
52
+ _ ≤ ‖fockVacuum‖ * ‖fockOperatorRepresentation a fockVacuum‖ := norm_inner_le_norm _ _
53
+ _ ≤ ‖fockVacuum‖ * (‖fockOperatorRepresentation a‖ * ‖fockVacuum‖) :=
54
+ mul_le_mul_of_nonneg_left ((fockOperatorRepresentation a).le_opNorm _) (norm_nonneg _)
55
+ _ ≤ ‖fockVacuum‖ * (‖a‖ * ‖fockVacuum‖) := by
56
+ gcongr
57
+ exact NonUnitalStarAlgHom.norm_apply_le fockOperatorRepresentation.toNonUnitalStarAlgHom a
58
+ _ = ‖a‖ := by rw [fockVacuum_norm, one_mul, mul_one]
59
+
60
+ lemma finiteFockAlgebraWord_fock {N m : ℕ} (i : FiniteFockIndex N m) :
61
+ fockOperatorRepresentation (finiteFockAlgebraWord i) fockVacuum = finiteFockVector i :=
62
+ oInfinityPositiveWord_fock N i.1.val i.2
63
+
64
+ lemma fockVacuumCoefficient_word_sandwich {N m : ℕ} (a : OInfinity)
65
+ (i j : FiniteFockIndex N m) :
66
+ fockVacuumCoefficient (star (finiteFockAlgebraWord i) * a * finiteFockAlgebraWord j) =
67
+ oInfinityFockCompression N m a i j := by
68
+ unfold fockVacuumCoefficient
69
+ rw [map_mul, map_mul, map_star]
70
+ change inner ℂ fockVacuum
71
+ ((fockOperatorRepresentation (finiteFockAlgebraWord i)).adjoint
72
+ (fockOperatorRepresentation a
73
+ (fockOperatorRepresentation (finiteFockAlgebraWord j) fockVacuum))) = _
74
+ rw [ContinuousLinearMap.adjoint_inner_right, finiteFockAlgebraWord_fock,
75
+ finiteFockAlgebraWord_fock, oInfinityFockCompression_apply]
76
+
77
+ lemma exists_fock_coefficient_ne_zero {a : OInfinity} (ha : a ≠ 0) :
78
+ ∃ n : ℕ, ∃ i j : FiniteFockIndex n (n + 1),
79
+ oInfinityFockCompression n (n + 1) a i j ≠ 0 := by
80
+ by_contra! h
81
+ have hc (n : ℕ) : oInfinityFockCompression n (n + 1) a = 0 := by
82
+ ext i j
83
+ exact h n i j
84
+ have happ (n : ℕ) : oInfinityApproximationSequence n a = 0 := by
85
+ change oInfinityFockReturn n (n + 1) (oInfinityFockCompression n (n + 1) a) = 0
86
+ rw [hc, map_zero]
87
+ have ht := tendsto_iff_norm_sub_tendsto_zero.mp (oInfinityApproximationSequence_tendsto a)
88
+ simp only [happ, zero_sub, norm_neg] at ht
89
+ have hn : ‖a‖ = 0 := tendsto_nhds_unique tendsto_const_nhds ht
90
+ exact ha (norm_eq_zero.mp hn)
91
+
92
+ lemma unusedGenerator_polynomial (c : List (ℕ × Bool) →₀ ℂ) {N : ℕ}
93
+ (hc : ∀ w ∈ c.support, ∀ p ∈ w, p.1 < N) :
94
+ star (oInfinityIsometry N) * cuntzPolynomial oInfinityIsometry c * oInfinityIsometry N =
95
+ fockVacuumCoefficient (cuntzPolynomial oInfinityIsometry c) • 1 := by
96
+ let i : FiniteFockIndex N 0 := ⟨0, fun j => Fin.elim0 j⟩
97
+ have hw : finiteVacuumCorner N 0 i = oInfinityIsometry N := by
98
+ change oInfinityPositiveWord N (fun j : Fin 0 => Fin.elim0 j) * oInfinityIsometry N = _
99
+ rw [oInfinityPositiveWord_zero, one_mul]
100
+ have hv : finiteFockVector i = fockVacuum := rfl
101
+ have h := finiteVacuumCorner_polynomial c hc i i
102
+ rw [hw, oInfinityFockCompression_apply, hv] at h
103
+ exact h
104
+
105
+ lemma oInfinityIsometry_norm_le_one (N : ℕ) : ‖oInfinityIsometry N‖ ≤ 1 := by
106
+ have h := congrArg norm (oInfinityIsometry_relations N N)
107
+ simp only [ite_true, CStarRing.norm_star_mul_self] at h
108
+ nlinarith [norm_nonneg (oInfinityIsometry N), cstar_norm_one_le_one (A := OInfinity)]
109
+
110
+ lemma unusedGenerator_error (a : OInfinity) (c : List (ℕ × Bool) →₀ ℂ) {N : ℕ}
111
+ (hc : ∀ w ∈ c.support, ∀ p ∈ w, p.1 < N) :
112
+ ‖star (oInfinityIsometry N) * a * oInfinityIsometry N - fockVacuumCoefficient a • 1‖ ≤
113
+ 2 * ‖a - cuntzPolynomial oInfinityIsometry c‖ := by
114
+ let p := cuntzPolynomial oInfinityIsometry c
115
+ let s := oInfinityIsometry N
116
+ have hs : ‖s‖ ≤ 1 := oInfinityIsometry_norm_le_one N
117
+ have he : star s * a * s - fockVacuumCoefficient a • 1 =
118
+ star s * (a - p) * s + (fockVacuumCoefficient p - fockVacuumCoefficient a) • 1 := by
119
+ dsimp [s, p]
120
+ rw [mul_sub, sub_mul, unusedGenerator_polynomial c hc, sub_smul]
121
+ abel
122
+ have hfirst : ‖star s * (a - p) * s‖ ≤ ‖a - p‖ :=
123
+ norm_contraction_sandwich s (a - p) hs
124
+ have hsecond : ‖(fockVacuumCoefficient p - fockVacuumCoefficient a) • (1 : OInfinity)‖ ≤
125
+ ‖a - p‖ := by
126
+ calc
127
+ _ = ‖fockVacuumCoefficient p - fockVacuumCoefficient a‖ := norm_complex_smul_one _
128
+ _ = ‖fockVacuumCoefficient (p - a)‖ :=
129
+ congrArg norm (fockVacuumCoefficient_sub p a).symm
130
+ _ ≤ ‖p - a‖ := fockVacuumCoefficient_norm_le _
131
+ _ = ‖a - p‖ := norm_sub_rev _ _
132
+ exact (congrArg norm he).trans_le
133
+ ((norm_add_le _ _).trans ((add_le_add hfirst hsecond).trans_eq (by ring)))
134
+
135
+ lemma twoSidedIdeal_eq_top_of_vacuumCoefficient_ne_zero (I : TwoSidedIdeal OInfinity)
136
+ {a : OInfinity} (ha : a ∈ I) (hv : fockVacuumCoefficient a ≠ 0) : I = ⊤ := by
137
+ let coeff := fockVacuumCoefficient a
138
+ have hcoeff : 0 < ‖coeff‖ := norm_pos_iff.mpr hv
139
+ obtain ⟨c, hc⟩ := Metric.denseRange_iff.mp oInfinityPolynomial_denseRange a
140
+ (‖coeff‖ / 4) (by positivity)
141
+ have hac : ‖a - cuntzPolynomial oInfinityIsometry c‖ < ‖coeff‖ / 4 := by
142
+ simpa only [dist_eq_norm, norm_sub_rev] using hc
143
+ obtain ⟨N, hN⟩ := exists_polynomial_alphabet_bound c
144
+ let z := star (oInfinityIsometry N) * a * oInfinityIsometry N
145
+ have hz : z ∈ I := I.mul_mem_right _ _ (I.mul_mem_left _ _ ha)
146
+ have he : ‖z - coeff • 1‖ < ‖coeff‖ := by
147
+ exact (unusedGenerator_error a c hN).trans_lt (by dsimp [coeff] at *; linarith)
148
+ let y := coeff⁻¹ • z
149
+ have hy : y ∈ I := by
150
+ change coeff⁻¹ • z ∈ I
151
+ rw [Algebra.smul_def]
152
+ exact I.mul_mem_left _ _ hz
153
+ have hsmall : ‖1 - y‖ < 1 := by
154
+ have hid : (1 : OInfinity) - y = coeff⁻¹ • (coeff • 1 - z) := by
155
+ dsimp [y]
156
+ rw [smul_sub, smul_smul, inv_mul_cancel₀ hv, one_smul]
157
+ rw [hid, norm_smul, norm_inv, norm_sub_rev]
158
+ exact (inv_mul_lt_one₀ hcoeff).mpr he
159
+ have hu : IsUnit y := by
160
+ simpa only [Units.val_oneSub, sub_sub_cancel] using (Units.oneSub (1 - y) hsmall).isUnit
161
+ obtain ⟨u, hu⟩ := hu
162
+ have hone := I.mul_mem_left (↑u⁻¹) y hy
163
+ rw [← hu, Units.inv_mul] at hone
164
+ exact I.eq_top hone
165
+
166
+ /-- Every nonzero two-sided ideal of O∞ contains a unit. -/
167
+ theorem oInfinity_twoSidedIdeal_trivial (I : TwoSidedIdeal OInfinity) : I = ⊥ ∨ I = ⊤ := by
168
+ by_cases hI : I = ⊥
169
+ · exact Or.inl hI
170
+ right
171
+ have hex : ∃ a : OInfinity, a ∈ I ∧ a ≠ 0 := by
172
+ by_contra! h
173
+ apply hI
174
+ ext a
175
+ change (a ∈ I ↔ a = 0)
176
+ exact ⟨h a, fun he => by subst a; exact I.zero_mem⟩
177
+ obtain ⟨a, ha, ha0⟩ := hex
178
+ obtain ⟨n, i, j, hij⟩ := exists_fock_coefficient_ne_zero ha0
179
+ let b := star (finiteFockAlgebraWord i) * a * finiteFockAlgebraWord j
180
+ have hb : b ∈ I := I.mul_mem_right _ _ (I.mul_mem_left _ _ ha)
181
+ apply twoSidedIdeal_eq_top_of_vacuumCoefficient_ne_zero I hb
182
+ simpa only [b, fockVacuumCoefficient_word_sandwich] using hij
183
+
184
+ theorem oInfinity_topologicallySimple : Pureness.TopologicallySimple OInfinity := by
185
+ intro I _
186
+ exact oInfinity_twoSidedIdeal_trivial I
187
+
188
+ end WeakPureInfiniteness
189
+
190
+ end
191
+
192
+ end OAI
lean/OAI/Analysis/OInfinity/TailCancellationWitness.lean ADDED
@@ -0,0 +1,240 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Analysis.OInfinity.BufferedRelativeWitness
2
+ import OAI.Analysis.OInfinity.CanonicalBufferAbsorption
3
+ import OAI.Analysis.PureInfiniteness.TailCancellationRows
4
+
5
+ namespace OAI
6
+
7
+ /-! # The zero corner containing the entire remaining source copy
8
+
9
+ The internal isometry `z` has range inside the absorption corner. Its
10
+ complement contains both the full residual source copy and a negative
11
+ part of the target copy. All data below are constructed in the first
12
+ buffer's commutant before applying the second-buffer comparison.
13
+ -/
14
+
15
+ noncomputable section
16
+ open Filter Topology
17
+ open scoped CStarAlgebra
18
+
19
+ namespace WeakPureInfiniteness
20
+
21
+ variable {E : Type*} [CStarAlgebra E]
22
+
23
+ def BufferAbsorptionCorner.map {F : Type*} [CStarAlgebra F]
24
+ (D : BufferAbsorptionCorner E) (φ : E →⋆ₐ[ℂ] F) : BufferAbsorptionCorner F where
25
+ q := φ D.q
26
+ w := φ D.w
27
+ a := φ D.a
28
+ b := φ D.b
29
+ projection := D.projection.map φ
30
+ w_gram := by simpa only [map_mul, map_star, map_one] using congrArg φ D.w_gram
31
+ w_range := by simpa only [map_mul, map_star, map_sub, map_one] using congrArg φ D.w_range
32
+ w_orthogonal := by simpa only [map_mul, map_zero] using congrArg φ D.w_orthogonal
33
+ a_gram := by simpa only [map_mul, map_star] using congrArg φ D.a_gram
34
+ b_gram := by simpa only [map_mul, map_star] using congrArg φ D.b_gram
35
+ orthogonal := by simpa only [map_mul, map_star, map_zero] using congrArg φ D.orthogonal
36
+ ranges := by simpa only [map_add, map_mul, map_star] using congrArg φ D.ranges
37
+
38
+ local instance tailWitnessCentralizerClosed (R : ℕ → E) :
39
+ IsClosed (StarSubalgebra.centralizer ℂ (Set.range R) : Set E) :=
40
+ Set.isClosed_centralizer _
41
+
42
+ /-- The new comparison corner is genuinely a zero corner: its full
43
+ binary row comes from the internal isometry and two orthogonal copies
44
+ inside the original residual range. -/
45
+ lemma exists_tail_cancellation_reference [Nontrivial E]
46
+ (D : BufferAbsorptionCorner E) (s : ℕ → E)
47
+ (hs : ∀ i j, star (s i) * s j = if i = j then 1 else 0)
48
+ (z : E) (hz : star z * z = 1) (hqz : D.q * z = z) :
49
+ (1 - z * star z) ≠ 0 ∧ ∃ b : Fin 2 → E,
50
+ (∀ i j, star (b i) * b j = if i = j then 1 - z * star z else 0) ∧
51
+ (∑ i, b i * star (b i)) = 1 - z * star z := by
52
+ let r : Fin 3 → E := ![z, D.w * s 0, D.w * s 1]
53
+ have hzw : star z * D.w = 0 := by
54
+ have hsq : star z * D.q = star z := by
55
+ simpa only [star_mul, D.projection.isSelfAdjoint.star_eq] using congrArg star hqz
56
+ calc
57
+ _ = (star z * D.q) * D.w := by rw [hsq]
58
+ _ = 0 := by rw [mul_assoc, D.w_orthogonal, mul_zero]
59
+ have hwz : star D.w * z = 0 := by
60
+ simpa only [star_mul, star_star, star_zero] using congrArg star hzw
61
+ have hsg (i j : ℕ) : star (D.w * s i) * (D.w * s j) = if i = j then 1 else 0 := by
62
+ rw [star_mul]
63
+ calc
64
+ _ = star (s i) * (star D.w * D.w) * s j := by noncomm_ring
65
+ _ = _ := by rw [D.w_gram, mul_one, hs]
66
+ have hzws (j : ℕ) : star z * (D.w * s j) = 0 := by rw [← mul_assoc, hzw, zero_mul]
67
+ have hwsz (j : ℕ) : star (D.w * s j) * z = 0 := by
68
+ rw [star_mul, mul_assoc, hwz, mul_zero]
69
+ have hr (i j : Fin 3) : star (r i) * r j = if i = j then 1 else 0 := by
70
+ fin_cases i <;> fin_cases j
71
+ · exact hz
72
+ · exact hzws 0
73
+ · exact hzws 1
74
+ · exact hwsz 0
75
+ · exact hsg 0 0
76
+ · exact hsg 0 1
77
+ · exact hwsz 1
78
+ · exact hsg 1 0
79
+ · exact hsg 1 1
80
+ obtain ⟨hq0, b, hb, hbs, _⟩ := exists_buffer_shrink_range_pair r hr
81
+ exact ⟨hq0, b, hb, hbs⟩
82
+
83
+ /-- The second buffer compares the entire residual source representation
84
+ with the complementary target corner, while fixing the retained full
85
+ subcorner pointwise. -/
86
+ lemma exists_buffered_tail_cancellation [Nontrivial E]
87
+ (U : Ultrafilter ℕ) [Fact ((U : Filter ℕ) ≤ atTop)]
88
+ (R : ℕ → E) (hR : ∀ i j, star (R i) * R j = if i = j then 1 else 0)
89
+ (D : BufferAbsorptionCorner (StarSubalgebra.centralizer ℂ (Set.range R)))
90
+ (s t : ℕ → StarSubalgebra.centralizer ℂ (Set.range R))
91
+ (hs : ∀ i j, star (s i) * s j = if i = j then 1 else 0)
92
+ (ht : ∀ i j, star (t i) * t j = if i = j then 1 else 0)
93
+ (z : StarSubalgebra.centralizer ℂ (Set.range R))
94
+ (hz : star z * z = 1) (hqz : D.q * z = z)
95
+ (hqt : ∀ i, Commute D.q (t i))
96
+ (hzt : ∀ i, Commute z (t i) ∧ Commute (star z) (t i))
97
+ (n : ℕ) (ε : ℝ) (hε : 0 < ε) :
98
+ let d := NormUltra.QuotientAlgebra.diagonalHom (A := E) U
99
+ ∃ v : unitary (NormUltra.QuotientAlgebra (fun _ : ℕ => E) U), Joined 1 v ∧
100
+ ∀ i : Fin (n + 1),
101
+ ‖(v : NormUltra.QuotientAlgebra (fun _ : ℕ => E) U) *
102
+ d (t i * D.q + D.w * s i * star D.w) *
103
+ star (v : NormUltra.QuotientAlgebra (fun _ : ℕ => E) U) - d (t i)‖ < ε := by
104
+ intro d
105
+ let C := StarSubalgebra.centralizer ℂ (Set.range R)
106
+ let F := NormUltra.QuotientAlgebra (fun _ : ℕ => E) U
107
+ let φ : C →⋆ₐ[ℂ] F := d.comp C.subtype
108
+ let G := TailCancellation.geometry D z hz hqz
109
+ have hpt (i : ℕ) : Commute (TailCancellation.full z) (t i) :=
110
+ (hzt i).1.mul_left (hzt i).2
111
+ let x : Fin (n + 2) → C := fun i => TailCancellation.sourceRow D z s t i
112
+ let y : Fin (n + 2) → C := fun i => TailCancellation.targetRow z t i
113
+ have hx (i j : Fin (n + 2)) : star (x i) * x j =
114
+ if i = j then TailCancellation.support z else 0 := by
115
+ simpa only [x, Fin.ext_iff] using TailCancellation.source_gram D z G s t hs ht hqt hpt i j
116
+ have hy (i j : Fin (n + 2)) : star (y i) * y j =
117
+ if i = j then TailCancellation.support z else 0 := by
118
+ simpa only [y, Fin.ext_iff] using TailCancellation.target_gram z G.Q_proj t ht i j
119
+ obtain ⟨hQ0, b, hb, hbs⟩ := exists_tail_cancellation_reference D s hs z hz hqz
120
+ obtain ⟨v, hv, hvp, _, hvi⟩ := exists_buffered_relative_witness U R hR
121
+ (TailCancellation.support z) G.Q_proj.isSelfAdjoint.star_eq G.Q_proj.isIdempotentElem.eq
122
+ hQ0 n x y (fun i => TailCancellation.source_support D z G s t hpt i)
123
+ (fun i => TailCancellation.target_support z G.Q_proj t hpt i) hx hy b hb hbs ε hε
124
+ let D' := D.map φ
125
+ have hz' : star (φ z) * φ z = 1 := by
126
+ simpa only [map_mul, map_star, map_one] using congrArg φ hz
127
+ have hqz' : D'.q * φ z = φ z := by
128
+ simpa only [D', BufferAbsorptionCorner.map, map_mul] using congrArg φ hqz
129
+ let G' := TailCancellation.geometry D' (φ z) hz' hqz'
130
+ have hvp' : (v : F) * TailCancellation.full (φ z) = TailCancellation.full (φ z) := by
131
+ change (v : F) * (1 - φ (TailCancellation.support z)) =
132
+ 1 - φ (TailCancellation.support z) at hvp
133
+ simpa only [TailCancellation.support, TailCancellation.full, map_sub, map_mul,
134
+ map_star, map_one, sub_sub_cancel] using hvp
135
+ have hpt' (i : ℕ) : Commute (TailCancellation.full (φ z)) (φ (t i)) := by
136
+ have h := congrArg φ (hpt i).eq
137
+ change TailCancellation.full (φ z) * φ (t i) = φ (t i) * TailCancellation.full (φ z)
138
+ simpa only [TailCancellation.full, map_mul, map_star] using h
139
+ refine ⟨v, hv, fun i => ?_⟩
140
+ have hi := hvi i
141
+ have he := TailCancellation.recombination_norm D' (φ z) G'
142
+ (fun j => φ (s j)) (fun j => φ (t j)) v hvp' hpt' i
143
+ have hsource : TailCancellation.sourceRow D' (φ z) (fun j => φ (s j))
144
+ (fun j => φ (t j)) i = φ (x i.castSucc) := by
145
+ simp only [TailCancellation.sourceRow, TailCancellation.rest, TailCancellation.full,
146
+ D', BufferAbsorptionCorner.map, x, map_add, map_mul, map_sub, map_star, Fin.val_castSucc]
147
+ have htarget : TailCancellation.targetRow (φ z) (fun j => φ (t j)) i = φ (y i.castSucc) := by
148
+ simp only [TailCancellation.targetRow, TailCancellation.support, TailCancellation.full,
149
+ y, map_mul, map_sub, map_one, map_star, Fin.val_castSucc]
150
+ rw [hsource, htarget] at he
151
+ change ‖(v : F) * φ (t i * D.q + D.w * s i * star D.w) * star (v : F) - φ (t i)‖ < ε
152
+ rw [show φ (t i * D.q + D.w * s i * star D.w) =
153
+ φ (t i) * D'.q + D'.w * φ (s i) * star D'.w by
154
+ simp only [map_add, map_mul, map_star, D', BufferAbsorptionCorner.map]]
155
+ rw [he]
156
+ exact hi
157
+
158
+ /-- Two commuting proper rows in the first buffer's commutant admit
159
+ actual connected finite conjugacy in the next norm ultrapower. -/
160
+ lemma exists_buffered_commuting_rows_conjugacy [Nontrivial E]
161
+ (U : Ultrafilter ℕ) [Fact ((U : Filter ℕ) ≤ atTop)]
162
+ (R : ℕ → E) (hR : ∀ i j, star (R i) * R j = if i = j then 1 else 0)
163
+ (s t : ℕ → StarSubalgebra.centralizer ℂ (Set.range R))
164
+ (hs : ∀ i j, star (s i) * s j = if i = j then 1 else 0)
165
+ (ht : ∀ i j, star (t i) * t j = if i = j then 1 else 0)
166
+ (hst : bergRowsCommute s t) (n : ℕ) (ε : ℝ) (hε : 0 < ε) :
167
+ let d := NormUltra.QuotientAlgebra.diagonalHom (A := E) U
168
+ ∃ v : unitary (NormUltra.QuotientAlgebra (fun _ : ℕ => E) U), Joined 1 v ∧
169
+ ∀ i : Fin (n + 1),
170
+ ‖(v : NormUltra.QuotientAlgebra (fun _ : ℕ => E) U) * d (s i) *
171
+ star (v : NormUltra.QuotientAlgebra (fun _ : ℕ => E) U) - d (t i)‖ < ε := by
172
+ intro d
173
+ let C := StarSubalgebra.centralizer ℂ (Set.range R)
174
+ let F := NormUltra.QuotientAlgebra (fun _ : ℕ => E) U
175
+ let φ : C →⋆ₐ[ℂ] F := d.comp C.subtype
176
+ obtain ⟨D, hanchor, _, hspare, _, _, ⟨z, hz, hqz, hzcomm⟩, hcomm⟩ :=
177
+ exists_canonical_connected_absorption_corner_with_commuting_isometry s hs (n + 1) 1
178
+ (by norm_num)
179
+ have htc (i : ℕ) : ∀ j, Commute (s j) (t i) ∧ Commute (star (s j)) (t i) := by
180
+ intro j
181
+ exact ⟨(hst j i).1, by simpa only [star_star] using (hst j i).2.star_star⟩
182
+ have htcs (i : ℕ) : ∀ j, Commute (s j) (star (t i)) ∧
183
+ Commute (star (s j)) (star (t i)) := by
184
+ intro j
185
+ exact ⟨(hst j i).2, (hst j i).1.star_star⟩
186
+ have hqt (i : ℕ) := (hcomm (t i) (htc i)).1
187
+ have hat (i : ℕ) : Commute (star D.a) (t i) := by
188
+ simpa only [star_star] using (hcomm (star (t i)) (htcs i)).2.2.1.star_star
189
+ have hbt (i : ℕ) : Commute (star D.b) (t i) := by
190
+ simpa only [star_star] using (hcomm (star (t i)) (htcs i)).2.2.2.star_star
191
+ have hzt (i : ℕ) : Commute z (t i) ∧ Commute (star z) (t i) := by
192
+ exact ⟨hzcomm (t i) (htc i), by
193
+ simpa only [star_star] using (hzcomm (star (t i)) (htcs i)).star_star⟩
194
+ have heps : 0 < ε / 2 := by positivity
195
+ obtain ⟨a, ha, hai⟩ := D.exists_proper_vacuum_absorption s t hs ht (n + 1)
196
+ hspare hqt hat hbt (ε / 2) heps
197
+ obtain ⟨v, hv, hvi⟩ := exists_buffered_tail_cancellation U R hR D s t hs ht
198
+ z hz hqz hqt hzt n (ε / 2) heps
199
+ let A : unitary F := Unitary.map (CStarConnectedLift.starMonoidHom φ) a
200
+ have hA : Joined (1 : unitary F) A := by
201
+ have h := (hanchor.trans ha).map (CStarAbsorption.continuous_unitaryMap φ)
202
+ simpa only [map_one] using h
203
+ refine ⟨v * A, by simpa only [one_mul] using hv.mul hA, fun i => ?_⟩
204
+ let c := φ (t i * D.q + D.w * s i * star D.w)
205
+ have hfirst : ‖(A : F) * φ (s i) * star (A : F) - c‖ < ε / 2 := by
206
+ have hn := NonUnitalStarAlgHom.norm_apply_le φ.toNonUnitalStarAlgHom
207
+ ((a : C) * s i * star (a : C) - (t i * D.q + D.w * s i * star D.w))
208
+ have he : φ ((a : C) * s i * star (a : C) -
209
+ (t i * D.q + D.w * s i * star D.w)) =
210
+ (A : F) * φ (s i) * star (A : F) - c := by
211
+ change φ ((a : C) * s i * star (a : C) - _) =
212
+ φ (a : C) * φ (s i) * star (φ (a : C)) - φ _
213
+ simp only [map_sub, map_mul, map_star]
214
+ change ‖φ ((a : C) * s i * star (a : C) -
215
+ (t i * D.q + D.w * s i * star D.w))‖ ≤ _ at hn
216
+ rw [he] at hn
217
+ exact hn.trans_lt (hai i)
218
+ have hsecond : ‖(v : F) * c * star (v : F) - φ (t i)‖ < ε / 2 := hvi i
219
+ have hnorm : ‖(v : F) * ((A : F) * φ (s i) * star (A : F) - c) *
220
+ star (v : F)‖ = ‖(A : F) * φ (s i) * star (A : F) - c‖ := by
221
+ rw [mul_assoc, CStarRing.norm_coe_unitary_mul]
222
+ exact CStarRing.norm_mul_mem_unitary _ (Unitary.star_mem v.property)
223
+ have hsum := norm_add_le
224
+ ((v : F) * ((A : F) * φ (s i) * star (A : F) - c) * star (v : F))
225
+ ((v : F) * c * star (v : F) - φ (t i))
226
+ rw [hnorm] at hsum
227
+ have hid : ((v * A : unitary F) : F) * φ (s i) * star ((v * A : unitary F) : F) - φ (t i) =
228
+ (v : F) * ((A : F) * φ (s i) * star (A : F) - c) * star (v : F) +
229
+ ((v : F) * c * star (v : F) - φ (t i)) := by
230
+ simp only [Submonoid.coe_mul, star_mul]
231
+ noncomm_ring
232
+ change ‖((v * A : unitary F) : F) * φ (s i) * star ((v * A : unitary F) : F) - φ (t i)‖ < ε
233
+ rw [hid]
234
+ exact hsum.trans_lt (by linarith)
235
+
236
+ end WeakPureInfiniteness
237
+
238
+ end
239
+
240
+ end OAI
lean/OAI/Analysis/OInfinity/TensorApproximation.lean ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Analysis.OInfinity.CPAP
2
+ import OAI.Analysis.OInfinity.TensorGram
3
+ import OAI.Analysis.JiangSu.TensorProducts.FaithfulTensorCrossNorm
4
+
5
+ namespace OAI
6
+
7
+ /-! # The finite Fock approximations in arbitrary tensor completions
8
+
9
+ Pointwise convergence is independent of the C*-norm on the algebraic tensor
10
+ product. The uniform compression bound is a separate step in proving
11
+ uniqueness of that norm.
12
+ -/
13
+
14
+ noncomputable section
15
+ open scoped CStarAlgebra TensorProduct
16
+ open Filter Topology
17
+
18
+ namespace WeakPureInfiniteness
19
+
20
+ private lemma linearMap_error_add {V : Type*} [AddCommGroup V] [Module ℂ V]
21
+ (T : V →ₗ[ℂ] V) (x y : V) :
22
+ T (x + y) - (x + y) = (T x - x) + (T y - y) := by
23
+ rw [T.map_add, add_sub_add_comm]
24
+
25
+ local instance : PartialOrder OInfinity := CStarAlgebra.spectralOrder _
26
+ local instance : StarOrderedRing OInfinity := CStarAlgebra.spectralOrderedRing _
27
+
28
+ lemma finiteFockCoefficient_norm_le (N m : ℕ) :
29
+ ‖∑ i : FiniteFockIndex N m,
30
+ star (finiteFockUnweightedCoefficient i) * finiteFockUnweightedCoefficient i‖ ≤ (m : ℝ) + 1 ∧
31
+ ‖∑ i : FiniteFockIndex N m,
32
+ star (finiteFockWeightedCoefficient i) * finiteFockWeightedCoefficient i‖ ≤ (m : ℝ) + 1 := by
33
+ let x : OInfinity := ∑ i : FiniteFockIndex N m,
34
+ star (finiteFockUnweightedCoefficient i) * finiteFockUnweightedCoefficient i
35
+ let y : OInfinity := ∑ i : FiniteFockIndex N m,
36
+ star (finiteFockWeightedCoefficient i) * finiteFockWeightedCoefficient i
37
+ have hx : 0 ≤ x := Finset.sum_nonneg (fun _ _ => star_mul_self_nonneg _)
38
+ have hy : 0 ≤ y := Finset.sum_nonneg (fun _ _ => star_mul_self_nonneg _)
39
+ have he : x + y = ((m : ℝ) + 1) • (1 : OInfinity) := finiteFockCoefficient_normalization N m
40
+ have hn : ‖x + y‖ = (m : ℝ) + 1 := by
41
+ rw [he]
42
+ change ‖(((((m : ℝ) + 1) : ℝ) : ℂ)) • (1 : OInfinity)‖ = _
43
+ rw [norm_smul, norm_one, mul_one, Complex.norm_real, Real.norm_of_nonneg (by positivity)]
44
+ constructor
45
+ · exact (CStarAlgebra.norm_le_norm_of_le_of_nonneg (le_add_of_nonneg_right hy) hx).trans_eq hn
46
+ · exact (CStarAlgebra.norm_le_norm_of_le_of_nonneg (le_add_of_nonneg_left hx) hy).trans_eq hn
47
+
48
+ lemma oInfinityFockReturn_mem_adjoin (N m : ℕ)
49
+ (M : CStarMatrix (FiniteFockIndex N m) (FiniteFockIndex N m) ℂ) :
50
+ oInfinityFockReturn N m M ∈ StarAlgebra.adjoin ℂ (Set.range oInfinityIsometry) := by
51
+ let S := StarAlgebra.adjoin ℂ (Set.range oInfinityIsometry)
52
+ have hgen (i : ℕ) : oInfinityIsometry i ∈ S := StarAlgebra.subset_adjoin ℂ _ ⟨i, rfl⟩
53
+ have hword (k : ℕ) (w : Fin k → Fin N) : oInfinityPositiveWord N w ∈ S := by
54
+ induction k with
55
+ | zero => exact S.one_mem
56
+ | succ k ih => exact S.mul_mem (hgen _) (ih (Fin.tail w))
57
+ have hlevel (k : ℕ) : oInfinityLevel N k ∈ S := by
58
+ induction k with
59
+ | zero => exact S.one_mem
60
+ | succ k ih =>
61
+ change (∑ i : Fin N, oInfinityIsometry i * oInfinityLevel N k *
62
+ star (oInfinityIsometry i)) ∈ S
63
+ exact S.sum_mem (fun i _ => S.mul_mem (S.mul_mem (hgen _) ih) (S.star_mem' (hgen _)))
64
+ have hvac : oInfinityFiniteVacuum N ∈ S := S.sub_mem S.one_mem (hlevel 1)
65
+ have hu (i : FiniteFockIndex N m) : finiteFockUnweightedCoefficient i ∈ S :=
66
+ S.star_mem' (hword _ i.2)
67
+ have hw (i : FiniteFockIndex N m) : finiteFockWeightedCoefficient i ∈ S :=
68
+ S.smul_mem (S.mul_mem hvac (S.star_mem' (hword _ i.2))) _
69
+ have hgram (c : FiniteFockIndex N m → OInfinity) (hc : ∀ i, c i ∈ S) :
70
+ cuntzGramMap (finiteFockCuntzFamily N m) (finiteFockCuntzFamily_relations N m) c M ∈ S := by
71
+ rw [cuntzGramMap_apply]
72
+ exact S.sum_mem (fun i _ => S.sum_mem (fun j _ =>
73
+ S.smul_mem (S.mul_mem (S.star_mem' (hc i)) (hc j)) _))
74
+ change (((((m : ℝ) + 1)⁻¹ : ℝ) : ℂ) •
75
+ (cuntzGramMap (finiteFockCuntzFamily N m) (finiteFockCuntzFamily_relations N m)
76
+ finiteFockUnweightedCoefficient M +
77
+ cuntzGramMap (finiteFockCuntzFamily N m) (finiteFockCuntzFamily_relations N m)
78
+ finiteFockWeightedCoefficient M)) ∈ S
79
+ exact S.smul_mem (S.add_mem (hgram _ hu) (hgram _ hw)) _
80
+
81
+ lemma exists_oInfinityApproximation_polynomial (n : ℕ) (a : OInfinity) :
82
+ ∃ c : List (ℕ × Bool) →₀ ℂ,
83
+ cuntzPolynomial oInfinityIsometry c = oInfinityApproximationSequence n a := by
84
+ apply exists_cuntzPolynomial_of_mem_adjoin
85
+ exact oInfinityFockReturn_mem_adjoin n (n + 1) (oInfinityFockCompression n (n + 1) a)
86
+
87
+ theorem fockOperatorRepresentation_injective : Function.Injective fockOperatorRepresentation := by
88
+ apply (injective_iff_map_eq_zero _).mpr
89
+ intro a ha
90
+ have hcompression (N m : ℕ) : oInfinityFockCompression N m a = 0 := by
91
+ ext i j
92
+ rw [oInfinityFockCompression_apply, ha]
93
+ simp
94
+ have happ (n : ℕ) : oInfinityApproximationSequence n a = 0 := by
95
+ change oInfinityFockReturn n (n + 1) (oInfinityFockCompression n (n + 1) a) = 0
96
+ rw [hcompression, map_zero]
97
+ have ht := tendsto_iff_norm_sub_tendsto_zero.mp (oInfinityApproximationSequence_tendsto a)
98
+ simp only [happ, zero_sub, norm_neg] at ht
99
+ apply norm_eq_zero.mp
100
+ exact tendsto_nhds_unique tendsto_const_nhds ht
101
+
102
+ variable {B : Type*} [CStarAlgebra B]
103
+
104
+ def oInfinityTensorApproximation (n : ℕ) :
105
+ OInfinity ⊗[ℂ] B →ₗ[ℂ] OInfinity ⊗[ℂ] B :=
106
+ TensorProduct.map (oInfinityApproximationSequence n).toLinearMap LinearMap.id
107
+
108
+ @[simp] lemma oInfinityTensorApproximation_tmul (n : ℕ) (a : OInfinity) (b : B) :
109
+ oInfinityTensorApproximation n (a ⊗ₜ[ℂ] b) =
110
+ oInfinityApproximationSequence n a ⊗ₜ[ℂ] b :=
111
+ TensorProduct.map_tmul _ _ _ _
112
+
113
+ lemma oInfinityTensorApproximation_tmul_error
114
+ (p : Pureness.CStarAlgebraNorm (OInfinity ⊗[ℂ] B)) (n : ℕ) (a : OInfinity) (b : B) :
115
+ p.toAlgebraNorm (oInfinityTensorApproximation n (a ⊗ₜ[ℂ] b) - a ⊗ₜ[ℂ] b) =
116
+ ‖oInfinityApproximationSequence n a - a‖ * ‖b‖ := by
117
+ rw [oInfinityTensorApproximation_tmul, ← TensorProduct.sub_tmul,
118
+ NuclearUnitization.cstar_norm_tmul]
119
+
120
+ theorem oInfinityTensorApproximation_error_tendsto
121
+ (p : Pureness.CStarAlgebraNorm (OInfinity ⊗[ℂ] B)) (x : OInfinity ⊗[ℂ] B) :
122
+ Tendsto (fun n => p.toAlgebraNorm (oInfinityTensorApproximation n x - x)) atTop
123
+ (𝓝 0) := by
124
+ induction x using TensorProduct.inductionOn with
125
+ | tmul a b =>
126
+ simpa only [oInfinityTensorApproximation_tmul_error, zero_mul] using
127
+ (tendsto_iff_norm_sub_tendsto_zero.mp (oInfinityApproximationSequence_tendsto a)).mul_const ‖b‖
128
+ | add x y hx hy =>
129
+ refine squeeze_zero
130
+ (g := fun n => p.toAlgebraNorm (oInfinityTensorApproximation n x - x) +
131
+ p.toAlgebraNorm (oInfinityTensorApproximation n y - y))
132
+ (fun n => apply_nonneg p.toAlgebraNorm _) ?_ ?_
133
+ · intro n
134
+ have he := linearMap_error_add (oInfinityTensorApproximation n) x y
135
+ exact (congrArg p.toAlgebraNorm he).trans_le (map_add_le_add p.toAlgebraNorm _ _)
136
+ · simpa only [zero_add] using hx.add hy
137
+
138
+ end WeakPureInfiniteness
139
+
140
+ end
141
+
142
+ end OAI
lean/OAI/Analysis/OInfinity/TensorGram.lean ADDED
@@ -0,0 +1,223 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Analysis.PureInfiniteness.CuntzGramMap
2
+
3
+ namespace OAI
4
+
5
+ /-! # Matrix-valued Gram return maps for the O∞ tensor approximation
6
+
7
+ The corner formulation also works in a nonunital tensor completion: the common
8
+ initial projection need only act identically on the matrix coefficients.
9
+ -/
10
+
11
+ noncomputable section
12
+ open scoped CStarAlgebra ComplexOrder
13
+
14
+ namespace WeakPureInfiniteness
15
+
16
+ variable {B E I : Type*} [NonUnitalCStarAlgebra B] [NonUnitalCStarAlgebra E]
17
+ [Fintype I] [DecidableEq I]
18
+
19
+ local instance oInfinityTensorGramLocal1 : PartialOrder B := CStarAlgebra.spectralOrder _
20
+ local instance oInfinityTensorGramLocal2 : StarOrderedRing B := CStarAlgebra.spectralOrderedRing _
21
+
22
+ def supportedCuntzMatrixLinear (r : I → E) (σ : B →⋆ₙₐ[ℂ] E) :
23
+ CStarMatrix I I B →ₗ[ℂ] E where
24
+ toFun M := ∑ i, ∑ j, r i * σ (M i j) * star (r j)
25
+ map_add' M N := by
26
+ simp only [CStarMatrix.add_apply, map_add, mul_add, add_mul, Finset.sum_add_distrib]
27
+ map_smul' c M := by
28
+ simp only [CStarMatrix.smul_apply, map_smul, mul_smul_comm, smul_mul_assoc,
29
+ Finset.smul_sum, RingHom.id_apply]
30
+
31
+ omit [Fintype I] in
32
+ lemma supportedCuntzMatrix_term_mul (r : I → E) (e : E) (σ : B →⋆ₙₐ[ℂ] E)
33
+ (hr : ∀ i j, star (r i) * r j = if i = j then e else 0)
34
+ (he : ∀ b, e * σ b = σ b) (M N : CStarMatrix I I B) (i j k l : I) :
35
+ (r i * σ (M i j) * star (r j)) * (r k * σ (N k l) * star (r l)) =
36
+ if j = k then r i * σ (M i j * N k l) * star (r l) else 0 := by
37
+ calc
38
+ _ = r i * σ (M i j) * (star (r j) * r k) * σ (N k l) * star (r l) := by
39
+ noncomm_ring
40
+ _ = _ := by
41
+ rw [hr]
42
+ split_ifs with h
43
+ · rw [mul_assoc (r i * σ (M i j)) e, he, map_mul]
44
+ simp only [mul_assoc]
45
+ · simp
46
+
47
+ def supportedCuntzMatrixHom (r : I → E) (e : E) (σ : B →⋆ₙₐ[ℂ] E)
48
+ (hr : ∀ i j, star (r i) * r j = if i = j then e else 0)
49
+ (he : ∀ b, e * σ b = σ b) : CStarMatrix I I B →⋆ₙₐ[ℂ] E where
50
+ toFun := supportedCuntzMatrixLinear r σ
51
+ map_zero' := by simp [supportedCuntzMatrixLinear]
52
+ map_add' := map_add _
53
+ map_smul' := map_smul _
54
+ map_mul' M N := by
55
+ change (∑ i, ∑ j, r i * σ ((M * N) i j) * star (r j)) =
56
+ (∑ i, ∑ j, r i * σ (M i j) * star (r j)) *
57
+ (∑ i, ∑ j, r i * σ (N i j) * star (r j))
58
+ simp only [CStarMatrix.mul_apply, map_sum, Finset.mul_sum, Finset.sum_mul]
59
+ simp only [supportedCuntzMatrix_term_mul r e σ hr he, Finset.sum_ite_eq',
60
+ Finset.mem_univ, ite_true]
61
+ calc
62
+ _ = ∑ i, ∑ k, ∑ j, r i * σ (M i k * N k j) * star (r j) := by
63
+ apply Finset.sum_congr rfl
64
+ intro i _
65
+ exact Finset.sum_comm
66
+ _ = ∑ k, ∑ i, ∑ j, r i * σ (M i k * N k j) * star (r j) := Finset.sum_comm
67
+ _ = _ := by
68
+ apply Finset.sum_congr rfl
69
+ intro k _
70
+ exact Finset.sum_comm
71
+ map_star' M := by
72
+ change (∑ i, ∑ j, r i * σ ((star M) i j) * star (r j)) =
73
+ star (∑ i, ∑ j, r i * σ (M i j) * star (r j))
74
+ simp only [CStarMatrix.star_apply, map_star, star_sum, star_mul, star_star, mul_assoc]
75
+ exact Finset.sum_comm
76
+
77
+ lemma supportedCuntzMatrixHom_apply (r : I → E) (e : E) (σ : B →⋆ₙₐ[ℂ] E)
78
+ (hr : ∀ i j, star (r i) * r j = if i = j then e else 0)
79
+ (he : ∀ b, e * σ b = σ b) (M : CStarMatrix I I B) :
80
+ supportedCuntzMatrixHom r e σ hr he M =
81
+ ∑ i, ∑ j, r i * σ (M i j) * star (r j) := rfl
82
+
83
+ lemma supportedCuntzMatrixHom_entry (r : I → E) (e : E) (σ : B →⋆ₙₐ[ℂ] E)
84
+ (hr : ∀ i j, star (r i) * r j = if i = j then e else 0)
85
+ (he : ∀ b, e * σ b = σ b) (heStar : star e = e)
86
+ (M : CStarMatrix I I B) (i j : I) :
87
+ star (r i) * supportedCuntzMatrixHom r e σ hr he M * r j = σ (M i j) := by
88
+ have he' (b : B) : σ b * e = σ b := by
89
+ simpa only [star_mul, map_star, star_star, heStar] using congrArg star (he (star b))
90
+ have hterm (k l : I) :
91
+ star (r i) * (r k * σ (M k l) * star (r l)) * r j =
92
+ if i = k then (if l = j then σ (M k l) else 0) else 0 := by
93
+ calc
94
+ _ = (star (r i) * r k) * σ (M k l) * (star (r l) * r j) := by noncomm_ring
95
+ _ = _ := by
96
+ rw [hr, hr]
97
+ split_ifs <;> simp [he, he']
98
+ rw [supportedCuntzMatrixHom_apply]
99
+ simp only [Finset.mul_sum, Finset.sum_mul, hterm, Finset.sum_ite_irrel,
100
+ Finset.sum_const_zero, Finset.sum_ite_eq', Finset.sum_ite_eq, Finset.mem_univ, ite_true]
101
+
102
+ lemma supportedCuntzMatrixHom_injective (r : I → E) (e : E) (σ : B →⋆ₙₐ[ℂ] E)
103
+ (hr : ∀ i j, star (r i) * r j = if i = j then e else 0)
104
+ (he : ∀ b, e * σ b = σ b) (heStar : star e = e)
105
+ (hσ : Function.Injective σ) :
106
+ Function.Injective (supportedCuntzMatrixHom r e σ hr he) := by
107
+ apply (injective_iff_map_eq_zero _).mpr
108
+ intro M hM
109
+ ext i j
110
+ apply hσ
111
+ have h := supportedCuntzMatrixHom_entry r e σ hr he heStar M i j
112
+ rw [hM, mul_zero, zero_mul] at h
113
+ simpa only [CStarMatrix.zero_apply, map_zero] using h.symm
114
+
115
+ lemma supportedCuntz_rangeProjection (r : I → E) (e : E)
116
+ (hr : ∀ i j, star (r i) * r j = if i = j then e else 0)
117
+ (hre : ∀ i, r i * e = r i) : IsStarProjection (∑ i, r i * star (r i)) := by
118
+ apply isStarProjection_iff'.mpr
119
+ constructor
120
+ · have hterm (i j : I) : (r i * star (r i)) * (r j * star (r j)) =
121
+ if i = j then r i * star (r i) else 0 := by
122
+ calc
123
+ _ = r i * (star (r i) * r j) * star (r j) := by noncomm_ring
124
+ _ = _ := by
125
+ rw [hr]
126
+ split_ifs with hij
127
+ · subst j; rw [hre]
128
+ · simp
129
+ simp only [Finset.sum_mul, Finset.mul_sum, hterm, Finset.sum_ite_eq',
130
+ Finset.mem_univ, ite_true]
131
+ · simp only [star_sum, star_mul, star_star]
132
+
133
+ lemma supportedCuntzMatrixHom_of_entries (r : I → E) (e : E) (σ : B →⋆ₙₐ[ℂ] E)
134
+ (hr : ∀ i j, star (r i) * r j = if i = j then e else 0)
135
+ (he : ∀ b, e * σ b = σ b) (x : E) (M : CStarMatrix I I B)
136
+ (hentry : ∀ i j, star (r i) * x * r j = σ (M i j)) :
137
+ supportedCuntzMatrixHom r e σ hr he M =
138
+ (∑ i, r i * star (r i)) * x * (∑ i, r i * star (r i)) := by
139
+ rw [supportedCuntzMatrixHom_apply]
140
+ simp only [Finset.sum_mul, Finset.mul_sum]
141
+ conv_rhs => rw [Finset.sum_comm]
142
+ apply Finset.sum_congr rfl
143
+ intro i _
144
+ apply Finset.sum_congr rfl
145
+ intro j _
146
+ rw [← hentry]
147
+ simp only [mul_assoc]
148
+
149
+ lemma supportedCuntz_compression_norm_le (r : I → E) (e : E) (σ : B →⋆ₙₐ[ℂ] E)
150
+ (hr : ∀ i j, star (r i) * r j = if i = j then e else 0)
151
+ (he : ∀ b, e * σ b = σ b) (heStar : star e = e)
152
+ (hre : ∀ i, r i * e = r i) (hσ : Function.Injective σ)
153
+ (x : E) (M : CStarMatrix I I B)
154
+ (hentry : ∀ i j, star (r i) * x * r j = σ (M i j)) : ‖M‖ ≤ ‖x‖ := by
155
+ let P := ∑ i, r i * star (r i)
156
+ have hP : ‖P‖ ≤ 1 := IsStarProjection.norm_le _ (supportedCuntz_rangeProjection r e hr hre)
157
+ have hnorm := NonUnitalStarAlgHom.norm_map (supportedCuntzMatrixHom r e σ hr he)
158
+ (supportedCuntzMatrixHom_injective r e σ hr he heStar hσ) M
159
+ rw [← hnorm, supportedCuntzMatrixHom_of_entries r e σ hr he x M hentry]
160
+ calc
161
+ ‖P * x * P‖ ≤ ‖P‖ * ‖x‖ * ‖P‖ := norm_mul₃_le
162
+ _ ≤ 1 * ‖x‖ * 1 := mul_le_mul (mul_le_mul_of_nonneg_right hP (norm_nonneg _)) hP
163
+ (norm_nonneg _) (by positivity)
164
+ _ = ‖x‖ := by ring
165
+
166
+ lemma supportedCuntz_gram_apply (r v : I → E) (e : E) (σ : B →⋆ₙₐ[ℂ] E)
167
+ (hr : ∀ i j, star (r i) * r j = if i = j then e else 0)
168
+ (he : ∀ b, e * σ b = σ b) (heStar : star e = e)
169
+ (hv : ∀ i, e * v i = v i) (M : CStarMatrix I I B) :
170
+ star (∑ i, r i * v i) * supportedCuntzMatrixHom r e σ hr he M *
171
+ (∑ i, r i * v i) = ∑ i, ∑ j, star (v i) * σ (M i j) * v j := by
172
+ have hv' (i : I) : star (v i) * e = star (v i) := by
173
+ simpa only [star_mul, heStar] using congrArg star (hv i)
174
+ have hl (i : I) : star (∑ j, r j * v j) * r i = star (v i) := by
175
+ simp only [star_sum, Finset.sum_mul, star_mul, mul_assoc, hr]
176
+ simp only [mul_ite, mul_zero, Finset.sum_ite_eq', Finset.mem_univ, ite_true, hv']
177
+ have hh (j : I) : star (r j) * (∑ i, r i * v i) = v j := by
178
+ simp only [Finset.mul_sum, ← mul_assoc, hr]
179
+ simp [hv]
180
+ rw [supportedCuntzMatrixHom_apply]
181
+ conv_lhs => arg 1; rw [Finset.mul_sum]
182
+ rw [Finset.sum_mul]
183
+ apply Finset.sum_congr rfl
184
+ intro i _
185
+ conv_lhs => arg 1; rw [Finset.mul_sum]
186
+ rw [Finset.sum_mul]
187
+ apply Finset.sum_congr rfl
188
+ intro j _
189
+ calc
190
+ _ = (star (∑ k, r k * v k) * r i) * σ (M i j) *
191
+ (star (r j) * (∑ k, r k * v k)) := by noncomm_ring
192
+ _ = _ := by rw [hl, hh]
193
+
194
+ lemma supportedCuntz_gram_norm_le (r v : I → E) (e : E) (σ : B →⋆ₙₐ[ℂ] E)
195
+ (hr : ∀ i j, star (r i) * r j = if i = j then e else 0)
196
+ (he : ∀ b, e * σ b = σ b) (hv : ∀ i, e * v i = v i)
197
+ (M : CStarMatrix I I B) :
198
+ ‖star (∑ i, r i * v i) * supportedCuntzMatrixHom r e σ hr he M *
199
+ (∑ i, r i * v i)‖ ≤ ‖∑ i, star (v i) * v i‖ * ‖M‖ := by
200
+ let t := ∑ i, r i * v i
201
+ have ht : star t * t = ∑ i, star (v i) * v i := by
202
+ simp only [t, star_sum, Finset.sum_mul, Finset.mul_sum, star_mul]
203
+ have hh (i j : I) : (star (v i) * star (r i)) * (r j * v j) =
204
+ if i = j then star (v i) * v i else 0 := by
205
+ rw [mul_assoc, ← mul_assoc (star (r i)), hr]
206
+ split_ifs with hij
207
+ · subst j
208
+ rw [hv]
209
+ · simp
210
+ simp only [hh, Finset.sum_ite_eq', Finset.mem_univ, ite_true]
211
+ calc
212
+ _ ≤ (‖t‖ * ‖t‖) * ‖supportedCuntzMatrixHom r e σ hr he M‖ := by
213
+ exact norm_mul₃_le.trans_eq (by rw [norm_star]; ring)
214
+ _ = ‖∑ i, star (v i) * v i‖ * ‖supportedCuntzMatrixHom r e σ hr he M‖ := by
215
+ rw [← CStarRing.norm_star_mul_self, ht]
216
+ _ ≤ _ := mul_le_mul_of_nonneg_left
217
+ (NonUnitalStarAlgHom.norm_apply_le _ M) (norm_nonneg _)
218
+
219
+ end WeakPureInfiniteness
220
+
221
+ end
222
+
223
+ end OAI
lean/OAI/Analysis/OInfinity/TensorNorm.lean ADDED
@@ -0,0 +1,487 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Analysis.OInfinity.TensorApproximation
2
+ import OAI.Analysis.OInfinity.VacuumCorner
3
+
4
+ namespace OAI
5
+
6
+ /-! # Tensor-norm nuclearity of O∞
7
+
8
+ Finite unused-generator corners control the Fock matrix in every C*-completion
9
+ of the algebraic tensor product. The two Gram summands of the return map give
10
+ a uniform factor-two norm comparison, and the C*-identity removes that factor.
11
+ This proves the tensor-norm nuclearity input used by the absorption criterion.
12
+ -/
13
+
14
+ noncomputable section
15
+ open scoped CStarAlgebra TensorProduct
16
+ open Filter Topology
17
+
18
+ namespace WeakPureInfiniteness
19
+
20
+ private lemma algebraNorm_le_sub_add {R : Type*} [Ring R] [Algebra ℂ R]
21
+ (p : AlgebraNorm ℂ R) (x y : R) : p x ≤ p (x - y) + p y := by
22
+ simpa only [sub_add_cancel] using map_add_le_add p (x - y) y
23
+
24
+ private lemma algebraNorm_le_rev_sub_add {R : Type*} [Ring R] [Algebra ℂ R]
25
+ (p : AlgebraNorm ℂ R) (x y : R) : p x ≤ p (y - x) + p y := by
26
+ simpa only [map_sub_rev p] using algebraNorm_le_sub_add p x y
27
+
28
+ private lemma algebraNorm_le_of_approximation {R : Type*} [Ring R] [Algebra ℂ R]
29
+ (p : AlgebraNorm ℂ R) (x : R) (y : ℕ → R) (C : ℝ)
30
+ (ht : Tendsto (fun n => p (y n - x)) atTop (𝓝 0))
31
+ (hb : ∀ᶠ n : ℕ in atTop, p (y n) ≤ C) : p x ≤ C := by
32
+ have hupper : ∀ᶠ n : ℕ in atTop, p x ≤ p (y n - x) + C := by
33
+ filter_upwards [hb] with n hn
34
+ exact (algebraNorm_le_rev_sub_add p x (y n)).trans (add_le_add_right hn _)
35
+ simpa only [zero_add] using ge_of_tendsto (ht.add_const C) hupper
36
+
37
+ private lemma map_smul_mul {A E : Type*} [NonUnitalCStarAlgebra A]
38
+ [NonUnitalCStarAlgebra E] (R : A →⋆ₙₐ[ℂ] E) (c : ℂ) (a : A) (z : E) :
39
+ R (c • a) * z = c • (R a * z) := by
40
+ calc
41
+ R (c • a) * z = (c • R a) * z := congrArg (fun x : E => x * z) (map_smul R c a)
42
+ _ = _ := smul_mul_assoc c (R a) z
43
+
44
+ private lemma map_scaled_sum_mul {A E : Type*} [NonUnitalCStarAlgebra A]
45
+ [NonUnitalCStarAlgebra E] (R : A →⋆ₙₐ[ℂ] E) (c : ℂ) (a b : A) (z : E) :
46
+ R (c • (a + b)) * z = c • (R a * z + R b * z) := by
47
+ rw [map_smul_mul]
48
+ exact congrArg (fun x : E => c • x)
49
+ ((congrArg (fun x : E => x * z) (map_add R a b)).trans (add_mul (R a) (R b) z))
50
+
51
+ private lemma map_star_sandwich {A E : Type*} [NonUnitalCStarAlgebra A]
52
+ [NonUnitalCStarAlgebra E] (R : A →⋆ₙₐ[ℂ] E) (x a y : A) :
53
+ star (R x) * R a * R y = R (star x * a * y) := by
54
+ rw [map_mul, map_mul, map_star]
55
+
56
+ private lemma map_scalar_unit_mul {A B E : Type*} [CStarAlgebra A] [CStarAlgebra B]
57
+ [NonUnitalCStarAlgebra E] (R : A →⋆ₙₐ[ℂ] E) (S : B →⋆ₙₐ[ℂ] E)
58
+ (hsupport : ∀ b, R 1 * S b = S b) (c : ℂ) (b : B) :
59
+ R (c • (1 : A)) * S b = S (c • b) := by
60
+ calc
61
+ _ = c • (R 1 * S b) := map_smul_mul R c 1 (S b)
62
+ _ = c • S b := congrArg (fun x : E => c • x) (hsupport b)
63
+ _ = S (c • b) := (map_smul S c b).symm
64
+
65
+ variable {B E : Type*} [CStarAlgebra B] [NonUnitalCStarAlgebra E]
66
+
67
+ local instance oInfinityTensorNormLocal1 : PartialOrder B := CStarAlgebra.spectralOrder _
68
+ local instance oInfinityTensorNormLocal2 : StarOrderedRing B := CStarAlgebra.spectralOrderedRing _
69
+ local instance oInfinityTensorNormLocal3 : PartialOrder OInfinity := CStarAlgebra.spectralOrder _
70
+ local instance oInfinityTensorNormLocal4 : StarOrderedRing OInfinity := CStarAlgebra.spectralOrderedRing _
71
+
72
+ def fockTensorCoefficient (N m : ℕ) (a : OInfinity) :
73
+ B →ₗ[ℂ] CStarMatrix (FiniteFockIndex N m) (FiniteFockIndex N m) B where
74
+ toFun b := CStarMatrix.ofMatrix (fun i j => oInfinityFockCompression N m a i j • b)
75
+ map_add' b c := by
76
+ ext i j
77
+ change oInfinityFockCompression N m a i j • (b + c) =
78
+ oInfinityFockCompression N m a i j • b + oInfinityFockCompression N m a i j • c
79
+ exact smul_add _ _ _
80
+ map_smul' c b := by
81
+ ext i j
82
+ exact smul_comm _ _ _
83
+
84
+ def fockTensorBilinear (N m : ℕ) :
85
+ OInfinity →ₗ[ℂ] B →ₗ[ℂ] CStarMatrix (FiniteFockIndex N m) (FiniteFockIndex N m) B where
86
+ toFun := fockTensorCoefficient N m
87
+ map_add' a b := by
88
+ ext c i j
89
+ change oInfinityFockCompression N m (a + b) i j • c = _
90
+ rw [map_add, CStarMatrix.add_apply, add_smul]
91
+ rfl
92
+ map_smul' c a := by
93
+ ext b i j
94
+ change oInfinityFockCompression N m (c • a) i j • b = _
95
+ rw [map_smul, CStarMatrix.smul_apply]
96
+ exact mul_smul _ _ _
97
+
98
+ def fockTensorMatrix (N m : ℕ) :
99
+ OInfinity ⊗[ℂ] B →ₗ[ℂ] CStarMatrix (FiniteFockIndex N m) (FiniteFockIndex N m) B :=
100
+ TensorProduct.lift (fockTensorBilinear N m)
101
+
102
+ @[simp] lemma fockTensorMatrix_tmul (N m : ℕ) (a : OInfinity) (b : B)
103
+ (i j : FiniteFockIndex N m) :
104
+ fockTensorMatrix N m (a ⊗ₜ[ℂ] b) i j = oInfinityFockCompression N m a i j • b := rfl
105
+
106
+ def tensorCommutingBilinear {A : Type*} [NonUnitalCStarAlgebra A]
107
+ (R : A →⋆ₙₐ[ℂ] E) (S : B →⋆ₙₐ[ℂ] E) : A →ₗ[ℂ] B →ₗ[ℂ] E where
108
+ toFun a :=
109
+ { toFun b := R a * S b
110
+ map_add' b c := by rw [map_add, mul_add]
111
+ map_smul' c b := by rw [map_smul, mul_smul_comm]; rfl }
112
+ map_add' a b := by
113
+ ext c
114
+ change R (a + b) * S c = R a * S c + R b * S c
115
+ exact (congrArg (fun x : E => x * S c) (map_add R a b)).trans (add_mul _ _ _)
116
+ map_smul' c a := by
117
+ ext b
118
+ change R (c • a) * S b = c • (R a * S b)
119
+ exact map_smul_mul R c a (S b)
120
+
121
+ def tensorCommutingEval {A : Type*} [NonUnitalCStarAlgebra A]
122
+ (R : A →⋆ₙₐ[ℂ] E) (S : B →⋆ₙₐ[ℂ] E) : A ⊗[ℂ] B →ₗ[ℂ] E := TensorProduct.lift (tensorCommutingBilinear R S)
123
+
124
+ @[simp] lemma tensorCommutingEval_tmul {A : Type*} [NonUnitalCStarAlgebra A]
125
+ (R : A →⋆ₙₐ[ℂ] E) (S : B →⋆ₙₐ[ℂ] E) (a : A) (b : B) : tensorCommutingEval R S (a ⊗ₜ[ℂ] b) = R a * S b := rfl
126
+
127
+ lemma commuting_vacuum_compression (R : OInfinity →⋆ₙₐ[ℂ] E) (S : B →⋆ₙₐ[ℂ] E)
128
+ (hcomm : ∀ a b, Commute (R a) (S b)) (hsupport : ∀ b, R 1 * S b = S b)
129
+ {N m : ℕ} (c : List (ℕ × Bool) →₀ ℂ)
130
+ (hc : ∀ w ∈ c.support, ∀ p ∈ w, p.1 < N) (b : B)
131
+ (i j : FiniteFockIndex N m) :
132
+ star (R (finiteVacuumCorner N m i)) *
133
+ tensorCommutingEval R S (cuntzPolynomial oInfinityIsometry c ⊗ₜ[ℂ] b) *
134
+ R (finiteVacuumCorner N m j) =
135
+ S (fockTensorMatrix N m (cuntzPolynomial oInfinityIsometry c ⊗ₜ[ℂ] b) i j) := by
136
+ rw [tensorCommutingEval_tmul, fockTensorMatrix_tmul]
137
+ calc
138
+ _ = (star (R (finiteVacuumCorner N m i)) * R (cuntzPolynomial oInfinityIsometry c)) *
139
+ (S b * R (finiteVacuumCorner N m j)) := by noncomm_ring
140
+ _ = (star (R (finiteVacuumCorner N m i)) * R (cuntzPolynomial oInfinityIsometry c) *
141
+ R (finiteVacuumCorner N m j)) * S b := by
142
+ rw [(hcomm _ b).symm.eq]
143
+ simp only [mul_assoc]
144
+ _ = R (star (finiteVacuumCorner N m i) * cuntzPolynomial oInfinityIsometry c *
145
+ finiteVacuumCorner N m j) * S b :=
146
+ congrArg (fun z : E => z * S b) (map_star_sandwich R _ _ _)
147
+ _ = R (oInfinityFockCompression N m (cuntzPolynomial oInfinityIsometry c) i j • 1) * S b :=
148
+ congrArg (fun z : OInfinity => R z * S b) (finiteVacuumCorner_polynomial c hc i j)
149
+ _ = _ := map_scalar_unit_mul R S hsupport _ b
150
+
151
+ def polynomialTensorSum (l : List ((List (ℕ × Bool) →₀ ℂ) × B)) : OInfinity ⊗[ℂ] B :=
152
+ (l.map fun t => cuntzPolynomial oInfinityIsometry t.1 ⊗ₜ[ℂ] t.2).sum
153
+
154
+ lemma exists_tensorApproximation_polynomialSum (n : ℕ) (x : OInfinity ⊗[ℂ] B) :
155
+ ∃ l : List ((List (ℕ × Bool) →₀ ℂ) × B),
156
+ oInfinityTensorApproximation n x = polynomialTensorSum l := by
157
+ induction x using TensorProduct.inductionOn with
158
+ | tmul a b =>
159
+ obtain ⟨c, hc⟩ := exists_oInfinityApproximation_polynomial n a
160
+ refine ⟨[(c, b)], ?_⟩
161
+ simp only [oInfinityTensorApproximation_tmul, polynomialTensorSum, List.map_cons,
162
+ List.map_nil, List.sum_cons, List.sum_nil, add_zero, hc]
163
+ | add x y hx hy =>
164
+ obtain ⟨l, hl⟩ := hx
165
+ obtain ⟨k, hk⟩ := hy
166
+ refine ⟨l ++ k, ?_⟩
167
+ simp only [map_add, hl, hk, polynomialTensorSum, List.map_append, List.sum_append]
168
+
169
+ omit [CStarAlgebra B] in
170
+ lemma exists_polynomialTensor_alphabet_bound (l : List ((List (ℕ × Bool) →₀ ℂ) × B)) :
171
+ ∃ N : ℕ, ∀ t ∈ l, ∀ w ∈ t.1.support, ∀ p ∈ w, p.1 < N := by
172
+ induction l with
173
+ | nil => exact ⟨0, by simp⟩
174
+ | cons t l ih =>
175
+ obtain ⟨N, hN⟩ := exists_polynomial_alphabet_bound t.1
176
+ obtain ⟨M, hM⟩ := ih
177
+ refine ⟨max N M, ?_⟩
178
+ intro u hu w hw p hp
179
+ rcases List.mem_cons.mp hu with rfl | hu
180
+ · exact (hN w hw p hp).trans_le (le_max_left _ _)
181
+ · exact (hM u hu w hw p hp).trans_le (le_max_right _ _)
182
+
183
+ lemma commuting_vacuum_compression_list (R : OInfinity →⋆ₙₐ[ℂ] E) (S : B →⋆ₙₐ[ℂ] E)
184
+ (hcomm : ∀ a b, Commute (R a) (S b)) (hsupport : ∀ b, R 1 * S b = S b)
185
+ {N m : ℕ} (l : List ((List (ℕ × Bool) →₀ ℂ) × B))
186
+ (hl : ∀ t ∈ l, ∀ w ∈ t.1.support, ∀ p ∈ w, p.1 < N)
187
+ (i j : FiniteFockIndex N m) :
188
+ star (R (finiteVacuumCorner N m i)) * tensorCommutingEval R S (polynomialTensorSum l) *
189
+ R (finiteVacuumCorner N m j) = S (fockTensorMatrix N m (polynomialTensorSum l) i j) := by
190
+ induction l with
191
+ | nil => simp [polynomialTensorSum]
192
+ | cons t l ih =>
193
+ have ht := commuting_vacuum_compression R S hcomm hsupport t.1
194
+ (hl t (List.mem_cons_self ..)) t.2 i j
195
+ have htail := ih (fun u hu => hl u (List.mem_cons_of_mem _ hu))
196
+ simpa only [polynomialTensorSum, List.map_cons, List.sum_cons, map_add, mul_add,
197
+ add_mul, CStarMatrix.add_apply] using congrArg₂ (· + ·) ht htail
198
+
199
+ lemma fockTensorMatrix_polynomial_norm_le (R : OInfinity →⋆ₙₐ[ℂ] E) (S : B →⋆ₙₐ[ℂ] E)
200
+ (hcomm : ∀ a b, Commute (R a) (S b)) (hsupport : ∀ b, R 1 * S b = S b)
201
+ (hS : Function.Injective S) {N m : ℕ} (l : List ((List (ℕ × Bool) →₀ ℂ) × B))
202
+ (hl : ∀ t ∈ l, ∀ w ∈ t.1.support, ∀ p ∈ w, p.1 < N) :
203
+ ‖fockTensorMatrix N m (polynomialTensorSum l)‖ ≤
204
+ ‖tensorCommutingEval R S (polynomialTensorSum l)‖ := by
205
+ let r (i : FiniteFockIndex N m) := R (finiteVacuumCorner N m i)
206
+ have hr (i j : FiniteFockIndex N m) : star (r i) * r j = if i = j then R 1 else 0 := by
207
+ dsimp [r]
208
+ rw [← map_star, ← map_mul, finiteVacuumCorner_relations]
209
+ split_ifs <;> simp only [map_zero]
210
+ have heStar : star (R 1) = R 1 := by rw [← map_star, star_one]
211
+ have hre (i : FiniteFockIndex N m) : r i * R 1 = r i := by
212
+ dsimp [r]
213
+ rw [← map_mul, mul_one]
214
+ exact supportedCuntz_compression_norm_le r (R 1) S hr hsupport heStar hre hS _ _
215
+ (commuting_vacuum_compression_list R S hcomm hsupport l hl)
216
+
217
+ lemma mappedFockCuntz_relations (R : OInfinity →⋆ₙₐ[ℂ] E) (N m : ℕ)
218
+ (i j : FiniteFockIndex N m) :
219
+ star (R (finiteFockCuntzFamily N m i)) * R (finiteFockCuntzFamily N m j) =
220
+ if i = j then R 1 else 0 := by
221
+ rw [← map_star, ← map_mul, finiteFockCuntzFamily_relations]
222
+ split_ifs <;> simp only [map_zero]
223
+
224
+ def representedFockGram (R : OInfinity →⋆ₙₐ[ℂ] E) (S : B →⋆ₙₐ[ℂ] E)
225
+ (hsupport : ∀ b, R 1 * S b = S b) (N m : ℕ)
226
+ (c : FiniteFockIndex N m → OInfinity) :
227
+ CStarMatrix (FiniteFockIndex N m) (FiniteFockIndex N m) B →L[ℂ] E :=
228
+ (ContinuousLinearMap.mulLeftRight ℂ E
229
+ (star (∑ i, R (finiteFockCuntzFamily N m i) * R (c i)))
230
+ (∑ i, R (finiteFockCuntzFamily N m i) * R (c i))).comp
231
+ (starHomContinuousLinear (supportedCuntzMatrixHom
232
+ (fun i => R (finiteFockCuntzFamily N m i)) (R 1) S
233
+ (mappedFockCuntz_relations R N m) hsupport))
234
+
235
+ lemma representedFockGram_apply (R : OInfinity →⋆ₙₐ[ℂ] E) (S : B →⋆ₙₐ[ℂ] E)
236
+ (hsupport : ∀ b, R 1 * S b = S b) (N m : ℕ)
237
+ (c : FiniteFockIndex N m → OInfinity)
238
+ (M : CStarMatrix (FiniteFockIndex N m) (FiniteFockIndex N m) B) :
239
+ representedFockGram R S hsupport N m c M =
240
+ ∑ i, ∑ j, star (R (c i)) * S (M i j) * R (c j) := by
241
+ have heStar : star (R 1) = R 1 := by rw [← map_star, star_one]
242
+ have hv (i : FiniteFockIndex N m) : R 1 * R (c i) = R (c i) := by
243
+ rw [← map_mul, one_mul]
244
+ exact supportedCuntz_gram_apply _ _ _ _ (mappedFockCuntz_relations R N m)
245
+ hsupport heStar hv M
246
+
247
+ lemma representedFockGram_norm_le (R : OInfinity →⋆ₙₐ[ℂ] E) (S : B →⋆ₙₐ[ℂ] E)
248
+ (hsupport : ∀ b, R 1 * S b = S b) (N m : ℕ)
249
+ (c : FiniteFockIndex N m → OInfinity)
250
+ (M : CStarMatrix (FiniteFockIndex N m) (FiniteFockIndex N m) B) :
251
+ ‖representedFockGram R S hsupport N m c M‖ ≤
252
+ ‖∑ i, star (c i) * c i‖ * ‖M‖ := by
253
+ have hv (i : FiniteFockIndex N m) : R 1 * R (c i) = R (c i) := by
254
+ rw [← map_mul, one_mul]
255
+ have h := supportedCuntz_gram_norm_le (fun i => R (finiteFockCuntzFamily N m i))
256
+ (fun i => R (c i)) (R 1) S (mappedFockCuntz_relations R N m) hsupport hv M
257
+ have he : (∑ i, star (R (c i)) * R (c i)) = R (∑ i, star (c i) * c i) := by
258
+ simp only [map_sum, map_mul, map_star]
259
+ have hR : ‖∑ i, star (R (c i)) * R (c i)‖ ≤ ‖∑ i, star (c i) * c i‖ := by
260
+ rw [he]
261
+ exact NonUnitalStarAlgHom.norm_apply_le R _
262
+ exact h.trans (mul_le_mul_of_nonneg_right hR (norm_nonneg _))
263
+
264
+ lemma representedFockGram_tmul (R : OInfinity →⋆ₙₐ[ℂ] E) (S : B →⋆ₙₐ[ℂ] E)
265
+ (hcomm : ∀ a b, Commute (R a) (S b)) (hsupport : ∀ b, R 1 * S b = S b)
266
+ (N m : ℕ) (c : FiniteFockIndex N m → OInfinity) (a : OInfinity) (b : B) :
267
+ representedFockGram R S hsupport N m c (fockTensorMatrix N m (a ⊗ₜ[ℂ] b)) =
268
+ R (cuntzGramMap (finiteFockCuntzFamily N m) (finiteFockCuntzFamily_relations N m)
269
+ c (oInfinityFockCompression N m a)) * S b := by
270
+ rw [representedFockGram_apply, cuntzGramMap_apply]
271
+ simp only [fockTensorMatrix_tmul, map_sum, map_smul, Finset.sum_mul, smul_mul_assoc]
272
+ apply Finset.sum_congr rfl
273
+ intro i _
274
+ apply Finset.sum_congr rfl
275
+ intro j _
276
+ rw [mul_smul_comm, smul_mul_assoc, map_mul, map_star]
277
+ congr 1
278
+ calc
279
+ _ = star (R (c i)) * (S b * R (c j)) := mul_assoc _ _ _
280
+ _ = _ := by rw [(hcomm (c j) b).symm.eq]; simp only [mul_assoc]
281
+
282
+ def representedFockReturn (R : OInfinity →⋆ₙₐ[ℂ] E) (S : B →⋆ₙₐ[ℂ] E)
283
+ (hsupport : ∀ b, R 1 * S b = S b) (N m : ℕ) :
284
+ CStarMatrix (FiniteFockIndex N m) (FiniteFockIndex N m) B →L[ℂ] E :=
285
+ (((((m : ℝ) + 1)⁻¹ : ℝ) : ℂ)) •
286
+ (representedFockGram R S hsupport N m finiteFockUnweightedCoefficient +
287
+ representedFockGram R S hsupport N m finiteFockWeightedCoefficient)
288
+
289
+ lemma representedFockReturn_norm_le (R : OInfinity →⋆ₙₐ[ℂ] E) (S : B →⋆ₙₐ[ℂ] E)
290
+ (hsupport : ∀ b, R 1 * S b = S b) (N m : ℕ)
291
+ (M : CStarMatrix (FiniteFockIndex N m) (FiniteFockIndex N m) B) :
292
+ ‖representedFockReturn R S hsupport N m M‖ ≤ 2 * ‖M‖ := by
293
+ have hK : 0 < (m : ℝ) + 1 := by positivity
294
+ have hu := (representedFockGram_norm_le R S hsupport N m finiteFockUnweightedCoefficient M).trans
295
+ (mul_le_mul_of_nonneg_right (finiteFockCoefficient_norm_le N m).1 (norm_nonneg M))
296
+ have hw := (representedFockGram_norm_le R S hsupport N m finiteFockWeightedCoefficient M).trans
297
+ (mul_le_mul_of_nonneg_right (finiteFockCoefficient_norm_le N m).2 (norm_nonneg M))
298
+ change ‖(((((m : ℝ) + 1)⁻¹ : ℝ) : ℂ)) •
299
+ (representedFockGram R S hsupport N m finiteFockUnweightedCoefficient M +
300
+ representedFockGram R S hsupport N m finiteFockWeightedCoefficient M)‖ ≤ _
301
+ rw [norm_smul, Complex.norm_real, Real.norm_of_nonneg (inv_nonneg.mpr hK.le)]
302
+ calc
303
+ _ ≤ ((m : ℝ) + 1)⁻¹ * (((m : ℝ) + 1) * ‖M‖ + ((m : ℝ) + 1) * ‖M‖) :=
304
+ mul_le_mul_of_nonneg_left ((norm_add_le _ _).trans (add_le_add hu hw)) (inv_nonneg.mpr hK.le)
305
+ _ = _ := by field_simp [hK.ne']; ring
306
+
307
+ lemma representedFockReturn_tmul (R : OInfinity →⋆ₙₐ[ℂ] E) (S : B →⋆ₙₐ[ℂ] E)
308
+ (hcomm : ∀ a b, Commute (R a) (S b)) (hsupport : ∀ b, R 1 * S b = S b)
309
+ (N m : ℕ) (a : OInfinity) (b : B) :
310
+ representedFockReturn R S hsupport N m (fockTensorMatrix N m (a ⊗ₜ[ℂ] b)) =
311
+ R (oInfinityFockApproximation N m a) * S b := by
312
+ change (((((m : ℝ) + 1)⁻¹ : ℝ) : ℂ)) •
313
+ (representedFockGram R S hsupport N m finiteFockUnweightedCoefficient
314
+ (fockTensorMatrix N m (a ⊗ₜ[ℂ] b)) +
315
+ representedFockGram R S hsupport N m finiteFockWeightedCoefficient
316
+ (fockTensorMatrix N m (a ⊗ₜ[ℂ] b))) = _
317
+ rw [representedFockGram_tmul R S hcomm, representedFockGram_tmul R S hcomm]
318
+ change _ = R ((((((m : ℝ) + 1)⁻¹ : ℝ) : ℂ)) •
319
+ (cuntzGramMap (finiteFockCuntzFamily N m) (finiteFockCuntzFamily_relations N m)
320
+ finiteFockUnweightedCoefficient (oInfinityFockCompression N m a) +
321
+ cuntzGramMap (finiteFockCuntzFamily N m) (finiteFockCuntzFamily_relations N m)
322
+ finiteFockWeightedCoefficient (oInfinityFockCompression N m a))) * S b
323
+ exact (map_scaled_sum_mul R _ _ _ (S b)).symm
324
+
325
+ lemma representedFockReturn_approximation (R : OInfinity →⋆ₙₐ[ℂ] E) (S : B →⋆ₙₐ[ℂ] E)
326
+ (hcomm : ∀ a b, Commute (R a) (S b)) (hsupport : ∀ b, R 1 * S b = S b)
327
+ (n : ℕ) (x : OInfinity ⊗[ℂ] B) :
328
+ representedFockReturn R S hsupport n (n + 1) (fockTensorMatrix n (n + 1) x) =
329
+ tensorCommutingEval R S (oInfinityTensorApproximation n x) := by
330
+ induction x using TensorProduct.inductionOn with
331
+ | tmul a b =>
332
+ simpa only [oInfinityTensorApproximation_tmul, tensorCommutingEval_tmul,
333
+ oInfinityApproximationSequence] using
334
+ representedFockReturn_tmul R S hcomm hsupport n (n + 1) a b
335
+ | add x y hx hy => simp only [map_add, hx, hy]
336
+
337
+ lemma tensor_norm_bound_of_approximation
338
+ (p q : Pureness.CStarAlgebraNorm (OInfinity ⊗[ℂ] B)) (x : OInfinity ⊗[ℂ] B)
339
+ {C : ℝ} (hC : 0 ≤ C)
340
+ (hb : ∀ n, q.toAlgebraNorm (oInfinityTensorApproximation n x) ≤
341
+ C * p.toAlgebraNorm (oInfinityTensorApproximation n x)) :
342
+ q.toAlgebraNorm x ≤ C * p.toAlgebraNorm x := by
343
+ have hupper (n : ℕ) : q.toAlgebraNorm x ≤
344
+ q.toAlgebraNorm (oInfinityTensorApproximation n x - x) +
345
+ C * (p.toAlgebraNorm (oInfinityTensorApproximation n x - x) + p.toAlgebraNorm x) := by
346
+ have hq := algebraNorm_le_rev_sub_add q.toAlgebraNorm x (oInfinityTensorApproximation n x)
347
+ have hp := algebraNorm_le_sub_add p.toAlgebraNorm (oInfinityTensorApproximation n x) x
348
+ exact hq.trans (add_le_add_right ((hb n).trans (mul_le_mul_of_nonneg_left hp hC)) _)
349
+ have ht := (oInfinityTensorApproximation_error_tendsto q x).add
350
+ (((oInfinityTensorApproximation_error_tendsto p x).add_const (p.toAlgebraNorm x)).const_mul C)
351
+ simpa only [zero_add] using ge_of_tendsto ht (Filter.Eventually.of_forall hupper)
352
+
353
+ local instance (priority := 2000) tensorNormFastNonAssoc
354
+ {A : Type*} [CStarAlgebra A] (p : Pureness.CStarAlgebraNorm (A ⊗[ℂ] B)) :
355
+ NonUnitalNonAssocSemiring p.Completion :=
356
+ (Pureness.CStarAlgebraNorm.completionCStarAlgebra p).toNonUnitalNonAssocSemiring
357
+
358
+ local instance (priority := 2000) tensorNormFastAddMonoid
359
+ {A : Type*} [CStarAlgebra A] (p : Pureness.CStarAlgebraNorm (A ⊗[ℂ] B)) : AddMonoid p.Completion :=
360
+ (Pureness.CStarAlgebraNorm.completionCStarAlgebra p).toAddMonoid
361
+
362
+ local instance (priority := 2000) tensorNormFastAddCommGroup
363
+ {A : Type*} [CStarAlgebra A] (p : Pureness.CStarAlgebraNorm (A ⊗[ℂ] B)) :
364
+ AddCommGroup p.Completion :=
365
+ (Pureness.CStarAlgebraNorm.completionCStarAlgebra p).toAddCommGroup
366
+
367
+ local instance (priority := 2000) tensorNormFastModule
368
+ {A : Type*} [CStarAlgebra A] (p : Pureness.CStarAlgebraNorm (A ⊗[ℂ] B)) : Module ℂ p.Completion :=
369
+ (Pureness.CStarAlgebraNorm.completionCStarAlgebra p).toNormedSpace.toModule
370
+
371
+ local instance (priority := 2000) tensorNormFastDistribMulAction
372
+ {A : Type*} [CStarAlgebra A] (p : Pureness.CStarAlgebraNorm (A ⊗[ℂ] B)) : DistribMulAction ℂ p.Completion :=
373
+ (tensorNormFastModule p).toDistribMulAction
374
+
375
+ local instance (priority := 2000) tensorNormFastNorm
376
+ {A : Type*} [CStarAlgebra A] (p : Pureness.CStarAlgebraNorm (A ⊗[ℂ] B)) : Norm p.Completion :=
377
+ (Pureness.CStarAlgebraNorm.completionCStarAlgebra p).toNorm
378
+
379
+ def tensorNormLeft {A : Type*} [CStarAlgebra A]
380
+ (p : Pureness.CStarAlgebraNorm (A ⊗[ℂ] B)) :
381
+ A →⋆ₙₐ[ℂ] p.Completion where
382
+ toFun a := p.completionMap (a ⊗ₜ[ℂ] (1 : B))
383
+ map_zero' := by simp
384
+ map_add' a b := by simp [TensorProduct.add_tmul]
385
+ map_smul' z a := by
386
+ rw [← TensorProduct.smul_tmul']
387
+ exact p.completionMap.map_smul z _
388
+ map_mul' a b := by rw [← map_mul]; simp
389
+ map_star' a := by rw [← map_star]; simp
390
+
391
+ def tensorNormRight {A : Type*} [CStarAlgebra A]
392
+ (p : Pureness.CStarAlgebraNorm (A ⊗[ℂ] B)) :
393
+ B →⋆ₙₐ[ℂ] p.Completion where
394
+ toFun b := p.completionMap ((1 : A) ⊗ₜ[ℂ] b)
395
+ map_zero' := by simp
396
+ map_add' a b := by simp [TensorProduct.tmul_add]
397
+ map_smul' z a := by
398
+ rw [TensorProduct.tmul_smul]
399
+ exact p.completionMap.map_smul z _
400
+ map_mul' a b := by rw [← map_mul]; simp
401
+ map_star' a := by rw [← map_star]; simp
402
+
403
+ lemma tensorNorm_commute {A : Type*} [CStarAlgebra A]
404
+ (p : Pureness.CStarAlgebraNorm (A ⊗[ℂ] B)) (a : A) (b : B) : Commute (tensorNormLeft p a) (tensorNormRight p b) := by
405
+ exact ((Commute.one_right a).tmul (Commute.one_left b)).map p.completionMap
406
+
407
+ lemma tensorNorm_support {A : Type*} [CStarAlgebra A]
408
+ (p : Pureness.CStarAlgebraNorm (A ⊗[ℂ] B))
409
+ (b : B) : tensorNormLeft p 1 * tensorNormRight p b = tensorNormRight p b := by
410
+ change p.completionMap (1 ⊗ₜ[ℂ] 1) * p.completionMap (1 ⊗ₜ[ℂ] b) = _
411
+ rw [← map_mul]
412
+ simp only [Algebra.TensorProduct.tmul_mul_tmul, one_mul]
413
+ rfl
414
+
415
+ lemma tensorNormRight_injective {A : Type*} [CStarAlgebra A] [Nontrivial A]
416
+ (p : Pureness.CStarAlgebraNorm (A ⊗[ℂ] B)) :
417
+ Function.Injective (tensorNormRight p) := by
418
+ apply (injective_iff_map_eq_zero _).mpr
419
+ intro b hb
420
+ have hn : ‖b‖ = 0 := by
421
+ have he := congrArg norm hb
422
+ change ‖p.completionMap ((1 : A) ⊗ₜ[ℂ] b)‖ = ‖(0 : p.Completion)‖ at he
423
+ rw [p.completionMap_norm, NuclearUnitization.cstar_norm_tmul, norm_one,
424
+ one_mul, norm_zero] at he
425
+ exact he
426
+ exact norm_eq_zero.mp hn
427
+
428
+ lemma tensorNorm_eval {A : Type*} [CStarAlgebra A]
429
+ (p : Pureness.CStarAlgebraNorm (A ⊗[ℂ] B)) (x : A ⊗[ℂ] B) :
430
+ tensorCommutingEval (tensorNormLeft p) (tensorNormRight p) x = p.completionMap x := by
431
+ induction x using TensorProduct.inductionOn with
432
+ | tmul a b =>
433
+ change p.completionMap (a ⊗ₜ[ℂ] 1) * p.completionMap (1 ⊗ₜ[ℂ] b) = _
434
+ rw [← map_mul]
435
+ simp only [Algebra.TensorProduct.tmul_mul_tmul, mul_one, one_mul]
436
+ | add x y hx hy => simp only [map_add, hx, hy]
437
+
438
+ lemma tensorNorm_fock_return_bound
439
+ (q : Pureness.CStarAlgebraNorm (OInfinity ⊗[ℂ] B)) (n : ℕ) (x : OInfinity ⊗[ℂ] B) :
440
+ q.toAlgebraNorm (oInfinityTensorApproximation n x) ≤
441
+ 2 * ‖fockTensorMatrix n (n + 1) x‖ := by
442
+ rw [← q.completionMap_norm, ← tensorNorm_eval, ← representedFockReturn_approximation
443
+ _ _ (tensorNorm_commute q) (tensorNorm_support q)]
444
+ exact representedFockReturn_norm_le _ _ _ _ _ _
445
+
446
+ lemma tensorNorm_polynomial_bound
447
+ (p q : Pureness.CStarAlgebraNorm (OInfinity ⊗[ℂ] B))
448
+ (l : List ((List (ℕ × Bool) →₀ ℂ) × B)) :
449
+ q.toAlgebraNorm (polynomialTensorSum l) ≤ 2 * p.toAlgebraNorm (polynomialTensorSum l) := by
450
+ obtain ⟨N, hN⟩ := exists_polynomialTensor_alphabet_bound l
451
+ have hb : ∀ᶠ n : ℕ in atTop,
452
+ q.toAlgebraNorm (oInfinityTensorApproximation n (polynomialTensorSum l)) ≤
453
+ 2 * p.toAlgebraNorm (polynomialTensorSum l) := by
454
+ filter_upwards [eventually_ge_atTop N] with n hn
455
+ have hc := fockTensorMatrix_polynomial_norm_le (tensorNormLeft p) (tensorNormRight p)
456
+ (tensorNorm_commute p) (tensorNorm_support p) (tensorNormRight_injective p)
457
+ (m := n + 1) l (fun t ht w hw a ha => (hN t ht w hw a ha).trans_le hn)
458
+ rw [tensorNorm_eval, p.completionMap_norm] at hc
459
+ exact (tensorNorm_fock_return_bound q n _).trans (mul_le_mul_of_nonneg_left hc (by norm_num))
460
+ exact algebraNorm_le_of_approximation q.toAlgebraNorm (polynomialTensorSum l)
461
+ (fun n => oInfinityTensorApproximation n (polynomialTensorSum l))
462
+ (2 * p.toAlgebraNorm (polynomialTensorSum l))
463
+ (oInfinityTensorApproximation_error_tendsto q (polynomialTensorSum l)) hb
464
+
465
+ lemma tensorNorm_uniform_bound
466
+ (p q : Pureness.CStarAlgebraNorm (OInfinity ⊗[ℂ] B)) (x : OInfinity ⊗[ℂ] B) :
467
+ q.toAlgebraNorm x ≤ 2 * p.toAlgebraNorm x := by
468
+ apply tensor_norm_bound_of_approximation p q x (by norm_num)
469
+ intro n
470
+ obtain ⟨l, hl⟩ := exists_tensorApproximation_polynomialSum n x
471
+ rw [hl]
472
+ exact tensorNorm_polynomial_bound p q l
473
+
474
+ /-- The Fock approximation and unused-generator corners give uniqueness of every
475
+ C*-norm on the algebraic tensor product with `OInfinity`. -/
476
+ theorem oInfinity_isNuclear : Pureness.IsNuclear OInfinity := by
477
+ intro B _
478
+ constructor
479
+ intro p q
480
+ exact Pureness.CStarAlgebraNorm.eq_of_mutual_bound p q
481
+ ⟨2, tensorNorm_uniform_bound q p⟩ ⟨2, tensorNorm_uniform_bound p q⟩
482
+
483
+ end WeakPureInfiniteness
484
+
485
+ end
486
+
487
+ end OAI
lean/OAI/Analysis/OInfinity/ToeplitzCompression.lean ADDED
@@ -0,0 +1,157 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import Mathlib
2
+
3
+ namespace OAI
4
+
5
+ /-! # Finite Toeplitz rows compressed by an almost central projection
6
+
7
+ These are the quantitative estimates in the projection-splitting step for a
8
+ finite row of canonical O∞ isometries. In addition to almost centrality, a
9
+ coisometric compression needs small compression of the original vacuum
10
+ projection. No projection with these properties is assumed to exist here.
11
+ -/
12
+
13
+ noncomputable section
14
+ open scoped CStarAlgebra
15
+
16
+ namespace WeakPureInfiniteness
17
+
18
+ variable {E I : Type*} [CStarAlgebra E] [Fintype I] [DecidableEq I]
19
+
20
+ /-- Compression in the ambient algebra, with relative unit `q`. -/
21
+ def toeplitzRowCompression (q : E) (s : I → E) (i : I) : E := q * s i * q
22
+
23
+ /-- The defect of the finite isometry row before compression. -/
24
+ def toeplitzRowVacuum (s : I → E) : E := 1 - ∑ i, s i * star (s i)
25
+
26
+ private lemma compression_projection_norm (q : E) (hq : q * q = q)
27
+ (hqs : star q = q) : ‖q‖ ≤ 1 :=
28
+ IsStarProjection.norm_le q (isStarProjection_iff'.mpr ⟨hq, hqs⟩)
29
+
30
+ private lemma compression_contract_mul_left (q x : E) (hq : ‖q‖ ≤ 1) :
31
+ ‖q * x‖ ≤ ‖x‖ :=
32
+ (norm_mul_le q x).trans (mul_le_of_le_one_left (norm_nonneg x) hq)
33
+
34
+ private lemma compression_contract_mul_right (q x : E) (hq : ‖q‖ ≤ 1) :
35
+ ‖x * q‖ ≤ ‖x‖ :=
36
+ (norm_mul_le x q).trans (mul_le_of_le_one_right (norm_nonneg x) hq)
37
+
38
+ /-- The adjoint has the same commutator error. -/
39
+ lemma toeplitz_star_commutator_norm (q x : E) (hqs : star q = q) :
40
+ ‖q * star x - star x * q‖ = ‖q * x - x * q‖ := by
41
+ have h : q * star x - star x * q = -star (q * x - x * q) := by
42
+ rw [star_sub, star_mul, star_mul, hqs]
43
+ abel
44
+ rw [h, norm_neg, norm_star]
45
+
46
+ omit [Fintype I] in
47
+ /-- Exact defect formula for the compressed Gram matrix. -/
48
+ lemma toeplitzRowCompression_gram (q : E) (s : I → E)
49
+ (hq : q * q = q) (hqs : star q = q)
50
+ (hs : ∀ i j, star (s i) * s j = if i = j then 1 else 0) (i j : I) :
51
+ star (toeplitzRowCompression q s i) * toeplitzRowCompression q s j -
52
+ (if i = j then q else 0) =
53
+ q * star (s i) * (q * s j - s j * q) * q := by
54
+ have hij : q * (star (s i) * s j) * q = if i = j then q else 0 := by
55
+ rw [hs]
56
+ split_ifs
57
+ · simpa only [mul_one] using hq
58
+ · simp only [mul_zero, zero_mul]
59
+ rw [← hij]
60
+ simp only [toeplitzRowCompression, star_mul, hqs]
61
+ noncomm_ring
62
+ simp only [← mul_assoc q q, hq]
63
+
64
+ omit [Fintype I] in
65
+ /-- Every Gram entry is controlled by one generator commutator. -/
66
+ lemma toeplitzRowCompression_gram_bound (q : E) (s : I → E)
67
+ (hq : q * q = q) (hqs : star q = q)
68
+ (hs : ∀ i j, star (s i) * s j = if i = j then 1 else 0)
69
+ (hns : ∀ i, ‖s i‖ ≤ 1) (δ : ℝ)
70
+ (hcomm : ∀ i, ‖q * s i - s i * q‖ ≤ δ) (i j : I) :
71
+ ‖star (toeplitzRowCompression q s i) * toeplitzRowCompression q s j -
72
+ (if i = j then q else 0)‖ ≤ δ := by
73
+ rw [toeplitzRowCompression_gram q s hq hqs hs]
74
+ have hnq := compression_projection_norm q hq hqs
75
+ calc
76
+ _ ≤ ‖q * star (s i) * (q * s j - s j * q)‖ :=
77
+ compression_contract_mul_right _ _ hnq
78
+ _ ≤ ‖star (s i) * (q * s j - s j * q)‖ := by
79
+ rw [mul_assoc]
80
+ exact compression_contract_mul_left _ _ hnq
81
+ _ ≤ ‖q * s j - s j * q‖ :=
82
+ compression_contract_mul_left _ _ (by simpa only [norm_star] using hns i)
83
+ _ ≤ δ := hcomm j
84
+
85
+ omit [DecidableEq I] in
86
+ /-- The coisometry defect contains the compressed original vacuum explicitly. -/
87
+ lemma toeplitzRowCompression_coisometry (q : E) (s : I → E)
88
+ (hq : q * q = q) (hqs : star q = q) :
89
+ (∑ i, toeplitzRowCompression q s i * star (toeplitzRowCompression q s i)) - q =
90
+ (∑ i, q * s i * (q * star (s i) - star (s i) * q) * q) -
91
+ q * toeplitzRowVacuum s * q := by
92
+ have hterm (i : I) :
93
+ toeplitzRowCompression q s i * star (toeplitzRowCompression q s i) =
94
+ q * s i * (q * star (s i) - star (s i) * q) * q +
95
+ q * (s i * star (s i)) * q := by
96
+ simp only [toeplitzRowCompression, star_mul, hqs]
97
+ noncomm_ring
98
+ simp only [← mul_assoc q q, hq]
99
+ abel
100
+ simp_rw [hterm]
101
+ rw [Finset.sum_add_distrib]
102
+ unfold toeplitzRowVacuum
103
+ rw [mul_sub, sub_mul, mul_one, hq, Finset.mul_sum, Finset.sum_mul]
104
+ abel
105
+
106
+ omit [DecidableEq I] in
107
+ /-- Approximate centrality and small vacuum compression give the finite
108
+ coisometry estimate used before perturbing a Toeplitz row to a Cuntz row. -/
109
+ lemma toeplitzRowCompression_coisometry_bound (q : E) (s : I → E)
110
+ (hq : q * q = q) (hqs : star q = q) (hns : ∀ i, ‖s i‖ ≤ 1)
111
+ (δ : ℝ) (hcomm : ∀ i, ‖q * s i - s i * q‖ ≤ δ) :
112
+ ‖(∑ i, toeplitzRowCompression q s i * star (toeplitzRowCompression q s i)) - q‖ ≤
113
+ (Fintype.card I : ℝ) * δ + ‖q * toeplitzRowVacuum s * q‖ := by
114
+ rw [toeplitzRowCompression_coisometry q s hq hqs]
115
+ apply (norm_sub_le _ _).trans
116
+ apply add_le_add _ le_rfl
117
+ calc
118
+ _ ≤ ∑ i, ‖q * s i * (q * star (s i) - star (s i) * q) * q‖ :=
119
+ norm_sum_le _ _
120
+ _ ≤ ∑ _i : I, δ := by
121
+ apply Finset.sum_le_sum
122
+ intro i _
123
+ calc
124
+ _ ≤ ‖q * s i * (q * star (s i) - star (s i) * q)‖ :=
125
+ compression_contract_mul_right _ _ (compression_projection_norm q hq hqs)
126
+ _ ≤ ‖s i * (q * star (s i) - star (s i) * q)‖ := by
127
+ rw [mul_assoc]
128
+ exact compression_contract_mul_left _ _ (compression_projection_norm q hq hqs)
129
+ _ ≤ ‖q * star (s i) - star (s i) * q‖ :=
130
+ compression_contract_mul_left _ _ (hns i)
131
+ _ = ‖q * s i - s i * q‖ := toeplitz_star_commutator_norm q (s i) hqs
132
+ _ ≤ δ := hcomm i
133
+ _ = (Fintype.card I : ℝ) * δ := by simp only [Finset.sum_const, Finset.card_univ, nsmul_eq_mul]
134
+
135
+ /-- The two relative compressions recover each generator up to twice its
136
+ commutator error. No smallness is asserted for either complementary projection. -/
137
+ lemma toeplitz_complementary_compression_bound (q x : E)
138
+ (hq : q * q = q) (hqs : star q = q) :
139
+ ‖q * x * q + (1 - q) * x * (1 - q) - x‖ ≤ 2 * ‖q * x - x * q‖ := by
140
+ have hnq := compression_projection_norm q hq hqs
141
+ have hnp : ‖1 - q‖ ≤ 1 := compression_projection_norm (1 - q)
142
+ (by noncomm_ring [hq]) (by rw [star_sub, star_one, hqs])
143
+ have he : q * x * q + (1 - q) * x * (1 - q) - x =
144
+ (q * x - x * q) * q - (q * x - x * q) * (1 - q) := by
145
+ noncomm_ring [hq]
146
+ rw [he]
147
+ calc
148
+ _ ≤ ‖(q * x - x * q) * q‖ + ‖(q * x - x * q) * (1 - q)‖ := norm_sub_le _ _
149
+ _ ≤ ‖q * x - x * q‖ + ‖q * x - x * q‖ :=
150
+ add_le_add (compression_contract_mul_right _ _ hnq) (compression_contract_mul_right _ _ hnp)
151
+ _ = 2 * ‖q * x - x * q‖ := by ring
152
+
153
+ end WeakPureInfiniteness
154
+
155
+ end
156
+
157
+ end OAI
lean/OAI/Analysis/OInfinity/TransportedBuffer.lean ADDED
@@ -0,0 +1,118 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Analysis.OInfinity.BufferAnchor
2
+ import Mathlib.Algebra.Star.UnitaryStarAlgAut
3
+
4
+ namespace OAI
5
+
6
+ /-! # Transporting the explicit absorption anchor
7
+
8
+ The canonical Fock split transports its corner by a connected unitary,
9
+ but transports its complementary isometry by left multiplication. This
10
+ asymmetric transport still preserves connectedness of the absorption
11
+ anchor: its anchor is conjugate to a value of the original rotation path.
12
+ -/
13
+
14
+ noncomputable section
15
+ open scoped CStarAlgebra
16
+
17
+ namespace WeakPureInfiniteness
18
+
19
+ variable {E : Type*} [CStarAlgebra E]
20
+
21
+ namespace BufferAbsorptionCorner
22
+
23
+ /-- Corner coefficients are conjugated, whereas the complementary
24
+ isometry is moved by left multiplication, as in the finite Fock split. -/
25
+ def transported (D : BufferAbsorptionCorner E) (u : unitary E) : BufferAbsorptionCorner E := by
26
+ let F := Unitary.conjStarAlgAut ℂ E u
27
+ refine {
28
+ q := F D.q
29
+ w := (u : E) * D.w
30
+ a := F D.a
31
+ b := F D.b
32
+ projection := isStarProjection_iff'.mpr ⟨?_, ?_⟩
33
+ w_gram := ?_
34
+ w_range := ?_
35
+ w_orthogonal := ?_
36
+ a_gram := ?_
37
+ b_gram := ?_
38
+ orthogonal := ?_
39
+ ranges := ?_
40
+ }
41
+ · rw [← map_mul, D.projection.isIdempotentElem.eq]
42
+ · rw [← map_star, D.projection.isSelfAdjoint.star_eq]
43
+ · rw [star_mul]
44
+ calc
45
+ _ = star D.w * (star (u : E) * (u : E)) * D.w := by noncomm_ring
46
+ _ = 1 := by rw [Unitary.star_mul_self_of_mem u.property, mul_one, D.w_gram]
47
+ · calc
48
+ _ = (u : E) * (D.w * star D.w) * star (u : E) := by rw [star_mul]; noncomm_ring
49
+ _ = F (1 - D.q) := by rw [D.w_range]; rfl
50
+ _ = 1 - F D.q := by rw [map_sub, map_one]
51
+ · change ((u : E) * D.q * star (u : E)) * ((u : E) * D.w) = 0
52
+ calc
53
+ _ = (u : E) * D.q * (star (u : E) * (u : E)) * D.w := by noncomm_ring
54
+ _ = 0 := by rw [Unitary.star_mul_self_of_mem u.property, mul_one,
55
+ mul_assoc, D.w_orthogonal, mul_zero]
56
+ · rw [← map_star, ← map_mul, D.a_gram]
57
+ · rw [← map_star, ← map_mul, D.b_gram]
58
+ · rw [← map_star, ← map_mul, D.orthogonal, map_zero]
59
+ · rw [← map_star, ← map_star, ← map_mul, ← map_mul, ← map_add, D.ranges]
60
+
61
+ lemma transported_q (D : BufferAbsorptionCorner E) (u : unitary E) :
62
+ (D.transported u).q = (u : E) * D.q * star (u : E) := rfl
63
+
64
+ lemma transported_w (D : BufferAbsorptionCorner E) (u : unitary E) :
65
+ (D.transported u).w = (u : E) * D.w := rfl
66
+
67
+ lemma transported_a (D : BufferAbsorptionCorner E) (u : unitary E) :
68
+ (D.transported u).a = (u : E) * D.a * star (u : E) := rfl
69
+
70
+ lemma transported_b (D : BufferAbsorptionCorner E) (u : unitary E) :
71
+ (D.transported u).b = (u : E) * D.b * star (u : E) := rfl
72
+
73
+ /-- Exact asymmetric transport identity for the anchor. -/
74
+ lemma transported_anchor (D : BufferAbsorptionCorner E) (u : unitary E) :
75
+ (D.transported u).anchor = u * D.rotation u * star u := by
76
+ apply Subtype.ext
77
+ change star ((u : E) * D.a * star (u : E)) +
78
+ ((u : E) * D.w) * 1 *
79
+ (star ((u : E) * D.b * star (u : E)) +
80
+ (1 - (u : E) * D.q * star (u : E))) =
81
+ ((u : E) * (star D.a + D.w * (u : E) * (star D.b + (1 - D.q)))) * star (u : E)
82
+ simp only [star_mul, star_star, mul_one]
83
+ calc
84
+ _ = (u : E) * star D.a * star (u : E) +
85
+ (u : E) * D.w * (u : E) * star D.b * star (u : E) +
86
+ (u : E) * D.w - (u : E) * D.w * (u : E) * D.q * star (u : E) := by
87
+ noncomm_ring
88
+ _ = (u : E) * star D.a * star (u : E) +
89
+ (u : E) * D.w * (u : E) * star D.b * star (u : E) +
90
+ (u : E) * D.w * ((u : E) * star (u : E)) -
91
+ (u : E) * D.w * (u : E) * D.q * star (u : E) := by
92
+ rw [Unitary.mul_star_self_of_mem u.property, mul_one]
93
+ _ = _ := by noncomm_ring
94
+
95
+ /-- The anchor remains connected for the actual transported Fock corner;
96
+ no path in a corner stabilizer is inferred from an ambient endpoint. -/
97
+ lemma transported_anchor_joined (D : BufferAbsorptionCorner E) (u : unitary E)
98
+ (hD : Joined (1 : unitary E) D.anchor) (hu : Joined (1 : unitary E) u) :
99
+ Joined (1 : unitary E) (D.transported u).anchor := by
100
+ have hrot : Joined (1 : unitary E) (D.rotation u) := by
101
+ have h := (hD.trans (D.absorption_joined_anchor u hu)).mul hu
102
+ have he : D.absorption u * u = D.rotation u := by
103
+ apply Subtype.ext
104
+ change ((D.rotation u : E) * star (u : E)) * (u : E) = (D.rotation u : E)
105
+ rw [mul_assoc, Unitary.star_mul_self_of_mem u.property, mul_one]
106
+ simpa only [one_mul, he] using h
107
+ have hus : Joined (1 : unitary E) (star u) := by
108
+ simpa only [star_one] using
109
+ hu.map (continuous_star : Continuous (star : unitary E → unitary E))
110
+ simpa only [one_mul, D.transported_anchor u] using (hu.mul hrot).mul hus
111
+
112
+ end BufferAbsorptionCorner
113
+
114
+ end WeakPureInfiniteness
115
+
116
+ end
117
+
118
+ end OAI
lean/OAI/Analysis/OInfinity/VacuumBufferAbsorption.lean ADDED
@@ -0,0 +1,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Analysis.OInfinity.ProperBufferAbsorption
2
+ import OAI.Analysis.OInfinity.FiniteRowCompletion
3
+
4
+ namespace OAI
5
+
6
+ /-! # Absorption with a canonical vacuum spare
7
+
8
+ A second unused source isometry is orthogonal to every word in the finite
9
+ Fock sum. It therefore completes that sum to a connected ambient unitary
10
+ without requiring the target corner to commute with the source row. The
11
+ commutation requirements on the tested target entries remain explicit.
12
+ -/
13
+
14
+ noncomputable section
15
+ open scoped CStarAlgebra
16
+
17
+ namespace WeakPureInfiniteness
18
+
19
+ variable {E I : Type*} [CStarAlgebra E] [Fintype I] [DecidableEq I]
20
+
21
+ /-- The second source spare replaces source-corner commutation in the
22
+ connected Fock completion. Only the selected target entries must commute
23
+ with the fixed binary coefficients. -/
24
+ lemma BufferAbsorptionCorner.exists_vacuum_absorption_on [Nontrivial E]
25
+ (D : BufferAbsorptionCorner E) (s t : I → E) (r z : E) (P : I → Prop)
26
+ (hrr : star r * r = 1) (hr : ∀ i, star r * s i = 0)
27
+ (hs : ∀ i j, star (s i) * s j = if i = j then 1 else 0)
28
+ (hzz : star z * z = 1) (hqz : D.q * z = 0)
29
+ (hzr : star z * r = 0) (hzs : ∀ i, star z * s i = 0)
30
+ (htq : ∀ i, t i * D.q = t i) (ht : ∑ i, t i * star (t i) = D.q)
31
+ (htt : ∀ i j, star (t i) * t j = if i = j then D.q else 0)
32
+ (hat : ∀ i, P i → Commute (star D.a) (t i))
33
+ (hbt : ∀ i, P i → Commute (star D.b) (t i))
34
+ (ε : ℝ) (hε : 0 < ε) :
35
+ ∃ W : unitary E, Joined D.anchor W ∧
36
+ ∀ i, P i → ‖(W : E) * s i - (t i + D.w * s i * star D.w) * (W : E)‖ < ε := by
37
+ let δ := ε / 6
38
+ have hδ : 0 < δ := by dsimp only [δ]; positivity
39
+ obtain ⟨m, hm⟩ := exists_nat_gt (2 / δ ^ 2)
40
+ have hsmall : 2 / ((m : ℝ) + 1) < δ ^ 2 := by
41
+ have hδsq : 0 < δ ^ 2 := sq_pos_of_pos hδ
42
+ have hm' : 2 < (m : ℝ) * δ ^ 2 := (div_lt_iff₀ hδsq).mp hm
43
+ apply (div_lt_iff₀ (by positivity : 0 < (m : ℝ) + 1)).mpr
44
+ nlinarith
45
+ let v := finiteRowIsometry s t r D.q m
46
+ have hvg : star v * v = D.q := finiteRowIsometry_gram s t r D.q
47
+ D.projection.isIdempotentElem.eq D.projection.isSelfAdjoint.star_eq hrr hr hs htq ht m
48
+ have hvq : v * D.q = v := relativeIsometry_mul_support v D.q hvg
49
+ D.projection.isSelfAdjoint.star_eq D.projection.isIdempotentElem.eq
50
+ have hvz : star v * z = 0 := by
51
+ simpa only [star_mul, star_star, star_zero] using congrArg star
52
+ (finiteRowIsometry_unused s t r D.q z hzr hzs m)
53
+ obtain ⟨u, hu, _, huv⟩ := exists_explicit_connected_unitary_extension v z
54
+ (by rw [mul_assoc, hvg, hvq]) hzz (by rw [hvg]; exact hqz)
55
+ (by rw [mul_assoc, hvz, mul_zero])
56
+ have huq : (u : E) * D.q = v := by simpa only [hvg] using huv
57
+ have hvn : ‖v‖ ≤ 1 := finiteRowIsometry_norm_le s t r D.q
58
+ D.projection.isIdempotentElem.eq D.projection.isSelfAdjoint.star_eq hrr hr hs htq ht m
59
+ refine ⟨D.absorption u, D.absorption_joined_anchor u hu, ?_⟩
60
+ intro i hi
61
+ have hf : ‖s i * v - v * t i‖ < δ := by
62
+ have h := finiteRowIsometry_forward_norm_sq s t r D.q
63
+ D.projection.isIdempotentElem.eq D.projection.isSelfAdjoint.star_eq
64
+ hrr hr hs htq ht htt m i
65
+ change ‖s i * v - v * t i‖ ^ 2 ≤ _ at h
66
+ nlinarith [norm_nonneg (s i * v - v * t i)]
67
+ have hb : ‖star v * s i - t i * star v‖ < δ := by
68
+ have h := finiteRowIsometry_backward_norm_sq s t r D.q
69
+ D.projection.isIdempotentElem.eq D.projection.isSelfAdjoint.star_eq
70
+ hrr hr hs htq ht htt m i
71
+ have he : star v * s i - t i * star v =
72
+ star (star (s i) * v - v * star (t i)) := by
73
+ simp only [star_sub, star_mul, star_star]
74
+ rw [he, norm_star]
75
+ have hone : ((m : ℝ) + 1)⁻¹ ≤ 2 / ((m : ℝ) + 1) := by
76
+ rw [← one_div]
77
+ exact div_le_div_of_nonneg_right (by norm_num) (by positivity)
78
+ change ‖star (s i) * v - v * star (t i)‖ ^ 2 ≤ _ at h
79
+ nlinarith [norm_nonneg (star (s i) * v - v * star (t i))]
80
+ calc
81
+ _ ≤ 2 * ‖s i * v - v * t i‖ + 3 * ‖star v * s i - t i * star v‖ :=
82
+ D.absorption_error_bound u v (s i) (t i) huq (htq i) (hat i hi) (hbt i hi) hvn
83
+ _ < ε := by dsimp only [δ] at hf hb; linarith
84
+
85
+
86
+ /-- Canonical source rows supply both required spare isometries. The
87
+ only geometric condition on the target corner is its annihilation of the
88
+ second unused generator, as provided by the canonical vacuum split. -/
89
+ lemma BufferAbsorptionCorner.exists_canonical_vacuum_absorption [Nontrivial E]
90
+ (D : BufferAbsorptionCorner E) (s : ℕ → E)
91
+ (hs : ∀ i j, star (s i) * s j = if i = j then 1 else 0)
92
+ (n : ℕ) (t : Fin n → E)
93
+ (hqz : D.q * s (n + 1) = 0)
94
+ (htq : ∀ i, t i * D.q = t i) (ht : ∑ i, t i * star (t i) = D.q)
95
+ (htt : ∀ i j, star (t i) * t j = if i = j then D.q else 0)
96
+ (hat : ∀ i, Commute (star D.a) (t i))
97
+ (hbt : ∀ i, Commute (star D.b) (t i))
98
+ (ε : ℝ) (hε : 0 < ε) :
99
+ ∃ W : unitary E, Joined D.anchor W ∧
100
+ ∀ i : Fin n,
101
+ ‖(W : E) * s i - (t i + D.w * s i * star D.w) * (W : E)‖ < ε := by
102
+ have hsource (i j : Fin n) : star (s i) * s j = if i = j then 1 else 0 := by
103
+ simpa only [Fin.ext_iff] using hs i j
104
+ have hroot (i : Fin n) : star (s n) * s i = 0 := by
105
+ rw [hs, ite_eq_right (by omega)]
106
+ have hspare (i : Fin n) : star (s (n + 1)) * s i = 0 := by
107
+ rw [hs, ite_eq_right (by omega)]
108
+ obtain ⟨W, hW, hWi⟩ := D.exists_vacuum_absorption_on (fun i : Fin n => s i) t
109
+ (s n) (s (n + 1)) (fun _ => True)
110
+ (by simpa only [ite_true] using hs n n) hroot hsource
111
+ (by simpa only [ite_true] using hs (n + 1) (n + 1)) hqz
112
+ (by rw [hs, ite_eq_right (by omega)]) hspare htq ht htt
113
+ (fun i _ => hat i) (fun i _ => hbt i) ε hε
114
+ exact ⟨W, hW, fun i => hWi i True.intro⟩
115
+
116
+
117
+ end WeakPureInfiniteness
118
+
119
+ end
120
+
121
+ end OAI
lean/OAI/Analysis/OInfinity/VacuumCorner.lean ADDED
@@ -0,0 +1,282 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Analysis.OInfinity.FockRangeProjection
2
+
3
+ namespace OAI
4
+
5
+ /-! # Finite Fock coefficients from an unused Cuntz generator
6
+
7
+ For words in the first `N` generators, the next generator has exactly the
8
+ vacuum annihilation relations. This realizes every finite Fock compression
9
+ of such a word as a corner in the Cuntz algebra itself.
10
+ -/
11
+
12
+ noncomputable section
13
+ open scoped CStarAlgebra InnerProductSpace
14
+
15
+ namespace WeakPureInfiniteness
16
+
17
+ local instance : SMulWithZero ℂ OInfinity :=
18
+ @MulActionWithZero.toSMulWithZero ℂ OInfinity _ _
19
+ (@Module.toMulActionWithZero ℂ OInfinity _ _ inferInstance)
20
+ local instance : DistribSMul ℂ OInfinity :=
21
+ @DistribMulAction.toDistribSMul ℂ OInfinity _ _
22
+ (@Module.toDistribMulAction ℂ OInfinity _ _ inferInstance)
23
+
24
+ def oInfinityVacuumWord (N : ℕ) : List (Fin N) → OInfinity
25
+ | [] => oInfinityIsometry N
26
+ | p :: w => oInfinityIsometry p * oInfinityVacuumWord N w
27
+
28
+ lemma oInfinityVacuumWord_relations (N : ℕ) (v w : List (Fin N)) :
29
+ star (oInfinityVacuumWord N v) * oInfinityVacuumWord N w =
30
+ if v = w then 1 else 0 := by
31
+ induction v generalizing w with
32
+ | nil =>
33
+ cases w with
34
+ | nil => simp [oInfinityVacuumWord, oInfinityIsometry_relations]
35
+ | cons q w =>
36
+ simp only [oInfinityVacuumWord, (List.cons_ne_nil q w).symm, ite_false]
37
+ rw [← mul_assoc, oInfinityIsometry_relations,
38
+ ite_eq_right (ne_of_gt q.isLt), zero_mul]
39
+ | cons p v ih =>
40
+ cases w with
41
+ | nil =>
42
+ simp only [oInfinityVacuumWord, star_mul, List.cons_ne_nil, ite_false]
43
+ rw [mul_assoc, oInfinityIsometry_relations, ite_eq_right (ne_of_lt p.isLt), mul_zero]
44
+ | cons q w =>
45
+ change star (oInfinityIsometry p * oInfinityVacuumWord N v) *
46
+ (oInfinityIsometry q * oInfinityVacuumWord N w) = _
47
+ rw [star_mul]
48
+ calc
49
+ _ = star (oInfinityVacuumWord N v) *
50
+ (star (oInfinityIsometry p) * oInfinityIsometry q) * oInfinityVacuumWord N w := by
51
+ noncomm_ring
52
+ _ = _ := by
53
+ rw [oInfinityIsometry_relations]
54
+ by_cases hpq : p = q
55
+ · subst q
56
+ simp only [ite_true, mul_one, ih, List.cons.injEq, true_and]
57
+ · have hpq' : p.val ≠ q.val := fun h => hpq (Fin.ext h)
58
+ simp [hpq', hpq]
59
+
60
+ def finiteAlphabetWord (N : ℕ) (z : List (Fin N × Bool)) : OInfinity :=
61
+ cuntzWord oInfinityIsometry (z.map fun p => (p.1.val, p.2))
62
+
63
+ @[simp] lemma finiteAlphabetWord_nil (N : ℕ) : finiteAlphabetWord N [] = 1 := rfl
64
+
65
+ @[simp] lemma finiteAlphabetWord_cons (N : ℕ) (p : Fin N) (b : Bool)
66
+ (z : List (Fin N × Bool)) :
67
+ finiteAlphabetWord N ((p, b) :: z) =
68
+ (if b then oInfinityIsometry p else star (oInfinityIsometry p)) * finiteAlphabetWord N z := rfl
69
+
70
+ def finiteAlphabetPop {N : ℕ} (p : Fin N) : List (Fin N) → Option (List (Fin N))
71
+ | [] => none
72
+ | q :: w => if p = q then some w else none
73
+
74
+ def finiteAlphabetRun (N : ℕ) : List (Fin N × Bool) → List (Fin N) → Option (List (Fin N))
75
+ | [], w => some w
76
+ | (p, true) :: z, w => (finiteAlphabetRun N z w).map (List.cons p)
77
+ | (p, false) :: z, w => (finiteAlphabetRun N z w).bind (finiteAlphabetPop p)
78
+
79
+ def vacuumRunValue {N : ℕ} (v : Option (List (Fin N))) : OInfinity :=
80
+ v.elim 0 (oInfinityVacuumWord N)
81
+
82
+ lemma oInfinityVacuumWord_annihilate {N : ℕ} (p : Fin N) (w : List (Fin N)) :
83
+ star (oInfinityIsometry p) * oInfinityVacuumWord N w =
84
+ vacuumRunValue (finiteAlphabetPop p w) := by
85
+ cases w with
86
+ | nil =>
87
+ simp only [oInfinityVacuumWord, oInfinityIsometry_relations,
88
+ ite_eq_right (ne_of_lt p.isLt), finiteAlphabetPop, vacuumRunValue, Option.elim_none]
89
+ | cons q w =>
90
+ rw [oInfinityVacuumWord, ← mul_assoc, oInfinityIsometry_relations]
91
+ by_cases hpq : p = q
92
+ · subst q
93
+ simp [finiteAlphabetPop, vacuumRunValue]
94
+ · have hpq' : p.val ≠ q.val := fun h => hpq (Fin.ext h)
95
+ simp [hpq', hpq, finiteAlphabetPop, vacuumRunValue]
96
+
97
+ lemma finiteAlphabetWord_vacuum_action {N : ℕ} (z : List (Fin N × Bool))
98
+ (w : List (Fin N)) :
99
+ finiteAlphabetWord N z * oInfinityVacuumWord N w =
100
+ vacuumRunValue (finiteAlphabetRun N z w) := by
101
+ induction z with
102
+ | nil => simp [finiteAlphabetRun, vacuumRunValue]
103
+ | cons pb z ih =>
104
+ rcases pb with ⟨p, b⟩
105
+ cases b with
106
+ | false =>
107
+ change (star (oInfinityIsometry p) * finiteAlphabetWord N z) *
108
+ oInfinityVacuumWord N w = _
109
+ rw [mul_assoc, ih]
110
+ cases hrun : finiteAlphabetRun N z w with
111
+ | none => simp [finiteAlphabetRun, hrun, vacuumRunValue]
112
+ | some v =>
113
+ simpa only [finiteAlphabetRun, hrun, Option.bind_some, vacuumRunValue,
114
+ Option.elim_some] using oInfinityVacuumWord_annihilate p v
115
+ | true =>
116
+ change (oInfinityIsometry p * finiteAlphabetWord N z) *
117
+ oInfinityVacuumWord N w = _
118
+ rw [mul_assoc, ih]
119
+ cases hrun : finiteAlphabetRun N z w with
120
+ | none => simp [finiteAlphabetRun, hrun, vacuumRunValue]
121
+ | some v => simp [finiteAlphabetRun, hrun, vacuumRunValue, oInfinityVacuumWord]
122
+
123
+ def finiteAlphabetBasis {N : ℕ} (w : List (Fin N)) : FockSpace :=
124
+ lp.single 2 (w.map Fin.val) 1
125
+
126
+ def fockRunValue {N : ℕ} (v : Option (List (Fin N))) : FockSpace :=
127
+ v.elim 0 finiteAlphabetBasis
128
+
129
+ lemma finiteAlphabetBasis_create {N : ℕ} (p : Fin N) (w : List (Fin N)) :
130
+ fockShift p (finiteAlphabetBasis w) = finiteAlphabetBasis (p :: w) := by
131
+ simp only [finiteAlphabetBasis, fockShift_single, List.map_cons]
132
+
133
+ lemma finiteAlphabetBasis_annihilate {N : ℕ} (p : Fin N) (w : List (Fin N)) :
134
+ (fockShift p).toContinuousLinearMap.adjoint (finiteAlphabetBasis w) =
135
+ fockRunValue (finiteAlphabetPop p w) := by
136
+ cases w with
137
+ | nil => simp [finiteAlphabetBasis, fockShift_adjoint_single_nil, finiteAlphabetPop, fockRunValue]
138
+ | cons q w =>
139
+ simp only [finiteAlphabetBasis, List.map_cons, fockShift_adjoint_single_cons,
140
+ finiteAlphabetPop]
141
+ by_cases hpq : p = q
142
+ · subst q; simp [fockRunValue, finiteAlphabetBasis]
143
+ · have hpq' : p.val ≠ q.val := fun h => hpq (Fin.ext h)
144
+ simp [hpq', hpq, fockRunValue]
145
+
146
+ lemma finiteAlphabetWord_fock_action {N : ℕ} (z : List (Fin N × Bool))
147
+ (w : List (Fin N)) :
148
+ fockOperatorRepresentation (finiteAlphabetWord N z) (finiteAlphabetBasis w) =
149
+ fockRunValue (finiteAlphabetRun N z w) := by
150
+ induction z with
151
+ | nil => simp [finiteAlphabetRun, fockRunValue]
152
+ | cons pb z ih =>
153
+ rcases pb with ⟨p, b⟩
154
+ cases b with
155
+ | false =>
156
+ change (fockOperatorRepresentation (star (oInfinityIsometry p) * finiteAlphabetWord N z))
157
+ (finiteAlphabetBasis w) = _
158
+ rw [map_mul, mul_apply_eq_comp, ih]
159
+ change (fockShift p).toContinuousLinearMap.adjoint (fockRunValue (finiteAlphabetRun N z w)) = _
160
+ cases hrun : finiteAlphabetRun N z w with
161
+ | none => simp [finiteAlphabetRun, hrun, fockRunValue]
162
+ | some v =>
163
+ simpa only [finiteAlphabetRun, hrun, Option.bind_some, fockRunValue,
164
+ Option.elim_some] using finiteAlphabetBasis_annihilate p v
165
+ | true =>
166
+ change (fockOperatorRepresentation (oInfinityIsometry p * finiteAlphabetWord N z))
167
+ (finiteAlphabetBasis w) = _
168
+ rw [map_mul, mul_apply_eq_comp, ih]
169
+ change fockShift p (fockRunValue (finiteAlphabetRun N z w)) = _
170
+ cases hrun : finiteAlphabetRun N z w with
171
+ | none => simp [finiteAlphabetRun, hrun, fockRunValue]
172
+ | some v =>
173
+ simpa only [finiteAlphabetRun, hrun, Option.map_some, fockRunValue,
174
+ Option.elim_some] using finiteAlphabetBasis_create p v
175
+
176
+ lemma finiteAlphabetBasis_inner {N : ℕ} (v w : List (Fin N)) :
177
+ inner ℂ (finiteAlphabetBasis v) (finiteAlphabetBasis w) = if v = w then 1 else 0 := by
178
+ have he : v.map Fin.val = w.map Fin.val ↔ v = w :=
179
+ (List.map_injective_iff.mpr Fin.val_injective).eq_iff
180
+ simp [finiteAlphabetBasis, lp.inner_single_left, lp.single_apply, Pi.single_apply, he]
181
+
182
+ lemma finiteAlphabetWord_coefficient {N : ℕ} (z : List (Fin N × Bool))
183
+ (v w : List (Fin N)) :
184
+ star (oInfinityVacuumWord N v) * finiteAlphabetWord N z * oInfinityVacuumWord N w =
185
+ (inner ℂ (finiteAlphabetBasis v)
186
+ (fockOperatorRepresentation (finiteAlphabetWord N z) (finiteAlphabetBasis w))) •
187
+ (1 : OInfinity) := by
188
+ rw [mul_assoc, finiteAlphabetWord_vacuum_action, finiteAlphabetWord_fock_action]
189
+ cases hrun : finiteAlphabetRun N z w with
190
+ | none => simp [vacuumRunValue, fockRunValue]
191
+ | some t =>
192
+ simp only [vacuumRunValue, fockRunValue, Option.elim_some,
193
+ oInfinityVacuumWord_relations, finiteAlphabetBasis_inner]
194
+ split_ifs <;> simp
195
+
196
+ lemma oInfinityVacuumWord_ofFn (N k : ℕ) (w : Fin k → Fin N) :
197
+ oInfinityVacuumWord N (List.ofFn w) =
198
+ oInfinityPositiveWord N w * oInfinityIsometry N := by
199
+ induction k with
200
+ | zero => simp [oInfinityVacuumWord]
201
+ | succ k ih =>
202
+ rw [List.ofFn_succ]
203
+ change oInfinityIsometry (w 0) * oInfinityVacuumWord N (List.ofFn (Fin.tail w)) =
204
+ (oInfinityIsometry (w 0) * oInfinityPositiveWord N (Fin.tail w)) * oInfinityIsometry N
205
+ rw [ih, mul_assoc]
206
+
207
+ def finiteVacuumCorner (N m : ℕ) (i : FiniteFockIndex N m) : OInfinity :=
208
+ finiteFockAlgebraWord i * oInfinityIsometry N
209
+
210
+ lemma finiteVacuumCorner_relations (N m : ℕ) (i j : FiniteFockIndex N m) :
211
+ star (finiteVacuumCorner N m i) * finiteVacuumCorner N m j =
212
+ if i = j then 1 else 0 := by
213
+ have he : List.ofFn i.2 = List.ofFn j.2 ↔ i = j := by
214
+ constructor
215
+ · intro h
216
+ apply finiteFockWord_injective N m
217
+ have hh := congrArg (List.map Fin.val) h
218
+ simpa only [List.map_ofFn, Function.comp_def, finiteFockWord] using hh
219
+ · rintro rfl; rfl
220
+ change star (oInfinityPositiveWord N i.2 * oInfinityIsometry N) *
221
+ (oInfinityPositiveWord N j.2 * oInfinityIsometry N) = _
222
+ rw [← oInfinityVacuumWord_ofFn, ← oInfinityVacuumWord_ofFn, oInfinityVacuumWord_relations]
223
+ simp only [he]
224
+
225
+ lemma finiteVacuumCorner_compression {N m : ℕ} (z : List (Fin N × Bool))
226
+ (i j : FiniteFockIndex N m) :
227
+ star (finiteVacuumCorner N m i) * finiteAlphabetWord N z * finiteVacuumCorner N m j =
228
+ oInfinityFockCompression N m (finiteAlphabetWord N z) i j • (1 : OInfinity) := by
229
+ have hi : finiteVacuumCorner N m i = oInfinityVacuumWord N (List.ofFn i.2) :=
230
+ (oInfinityVacuumWord_ofFn N i.1.val i.2).symm
231
+ have hj : finiteVacuumCorner N m j = oInfinityVacuumWord N (List.ofFn j.2) :=
232
+ (oInfinityVacuumWord_ofFn N j.1.val j.2).symm
233
+ rw [hi, hj, finiteAlphabetWord_coefficient, oInfinityFockCompression_apply]
234
+ simp only [finiteAlphabetBasis, finiteFockVector, finiteFockWord, List.map_ofFn, Function.comp_def]
235
+
236
+ lemma exists_finiteAlphabet_lift {N : ℕ} (w : List (ℕ × Bool))
237
+ (hw : ∀ p ∈ w, p.1 < N) :
238
+ ∃ z : List (Fin N × Bool), z.map (fun p => (p.1.val, p.2)) = w := by
239
+ induction w with
240
+ | nil => exact ⟨[], rfl⟩
241
+ | cons p w ih =>
242
+ obtain ⟨z, hz⟩ := ih (fun q hq => hw q (List.mem_cons_of_mem _ hq))
243
+ refine ⟨(⟨p.1, hw p (List.mem_cons_self ..)⟩, p.2) :: z, ?_⟩
244
+ simp only [List.map_cons, hz, Prod.mk.eta]
245
+
246
+ lemma finiteVacuumCorner_cuntzWord {N m : ℕ} (w : List (ℕ × Bool))
247
+ (hw : ∀ p ∈ w, p.1 < N) (i j : FiniteFockIndex N m) :
248
+ star (finiteVacuumCorner N m i) * cuntzWord oInfinityIsometry w * finiteVacuumCorner N m j =
249
+ oInfinityFockCompression N m (cuntzWord oInfinityIsometry w) i j • (1 : OInfinity) := by
250
+ obtain ⟨z, rfl⟩ := exists_finiteAlphabet_lift w hw
251
+ exact finiteVacuumCorner_compression z i j
252
+
253
+ lemma finiteVacuumCorner_polynomial {N m : ℕ} (c : List (ℕ × Bool) →₀ ℂ)
254
+ (hc : ∀ w ∈ c.support, ∀ p ∈ w, p.1 < N) (i j : FiniteFockIndex N m) :
255
+ star (finiteVacuumCorner N m i) * cuntzPolynomial oInfinityIsometry c *
256
+ finiteVacuumCorner N m j =
257
+ oInfinityFockCompression N m (cuntzPolynomial oInfinityIsometry c) i j • (1 : OInfinity) := by
258
+ have hentry (f : List (ℕ × Bool) → CStarMatrix (FiniteFockIndex N m) (FiniteFockIndex N m) ℂ) :
259
+ (∑ w ∈ c.support, f w) i j = ∑ w ∈ c.support, f w i j :=
260
+ map_sum (matrixEntryLinear i j) f c.support
261
+ simp only [cuntzPolynomial, Finsupp.sum, Finset.mul_sum, Finset.sum_mul,
262
+ mul_smul_comm, smul_mul_assoc, map_sum, map_smul, hentry,
263
+ CStarMatrix.smul_apply, Finset.sum_smul]
264
+ apply Finset.sum_congr rfl
265
+ intro w hw
266
+ rw [finiteVacuumCorner_cuntzWord w (hc w hw), smul_smul, smul_eq_mul]
267
+
268
+ lemma exists_polynomial_alphabet_bound (c : List (ℕ × Bool) →₀ ℂ) :
269
+ ∃ N : ℕ, ∀ w ∈ c.support, ∀ p ∈ w, p.1 < N := by
270
+ let s := c.support.biUnion (fun w => w.toFinset.image Prod.fst)
271
+ refine ⟨s.sup id + 1, ?_⟩
272
+ intro w hw p hp
273
+ apply Nat.lt_succ_of_le
274
+ apply Finset.le_sup (f := id)
275
+ exact Finset.mem_biUnion.mpr ⟨w, hw,
276
+ Finset.mem_image.mpr ⟨p, List.mem_toFinset.mpr hp, rfl⟩⟩
277
+
278
+ end WeakPureInfiniteness
279
+
280
+ end
281
+
282
+ end OAI
lean/OAI/Analysis/OInfinity/VacuumSplit.lean ADDED
@@ -0,0 +1,271 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Analysis.OInfinity.FiniteRowCompletion
2
+
3
+ namespace OAI
4
+
5
+ /-! # A concrete almost central split of a canonical finite O∞ row
6
+
7
+ The corner and its coisometric row are constructed from unused canonical
8
+ isometries and the finite word sum. Its complement is the range of an actual
9
+ isometry. Thus the vacuum compression and the complement are both controlled
10
+ without assuming a projection-classification theorem.
11
+ -/
12
+
13
+ noncomputable section
14
+ open scoped CStarAlgebra
15
+
16
+ namespace WeakPureInfiniteness
17
+
18
+ variable {E : Type*} [CStarAlgebra E]
19
+
20
+ private lemma transported_row {J : Type*} [Fintype J] [DecidableEq J]
21
+ (v q : E) (t : J → E) (hv : star v * v = q) (hvq : v * q = v)
22
+ (htl : ∀ i, q * t i = t i) (htr : ∀ i, t i * q = t i)
23
+ (htt : ∀ i j, star (t i) * t j = if i = j then q else 0)
24
+ (ht : ∑ i, t i * star (t i) = q) :
25
+ (∀ i j, star (v * t i * star v) * (v * t j * star v) =
26
+ if i = j then v * star v else 0) ∧
27
+ (∑ i, (v * t i * star v) * star (v * t i * star v)) = v * star v := by
28
+ constructor
29
+ · intro i j
30
+ calc
31
+ _ = v * star (t i) * (star v * v) * t j * star v := by
32
+ simp only [star_mul, star_star]
33
+ noncomm_ring
34
+ _ = v * (star (t i) * t j) * star v := by rw [hv, mul_assoc (v * star (t i)), htl]; noncomm_ring
35
+ _ = _ := by rw [htt]; split_ifs <;> simp only [hvq, mul_zero, zero_mul]
36
+ · have he (i : J) : (v * t i * star v) * star (v * t i * star v) =
37
+ v * (t i * star (t i)) * star v := by
38
+ simp only [star_mul, star_star]
39
+ calc
40
+ _ = v * (t i * q) * star (t i) * star v := by
41
+ rw [← hv]; noncomm_ring
42
+ _ = _ := by rw [htr]; noncomm_ring
43
+ simp only [he, ← Finset.mul_sum, ← Finset.sum_mul, ht, hvq]
44
+
45
+ private lemma transported_zeroCornerRow (q a b v : E)
46
+ (hqq : q * q = q) (hqa : q * a = a) (hqb : q * b = b) (hbq : b * q = b)
47
+ (hvg : star v * v = q) (hvq : v * q = v) :
48
+ ∀ n i, v * zeroCornerRow q a b n i * star v =
49
+ zeroCornerRow (v * star v) (v * a * star v) (v * b * star v) n i := by
50
+ intro n
51
+ induction n with
52
+ | zero => intro i; change v * q * star v = v * star v; rw [hvq]
53
+ | succ n ih =>
54
+ intro i
55
+ refine Fin.cases rfl (fun j => ?_) i
56
+ change v * (a * zeroCornerRow q a b n j) * star v =
57
+ (v * a * star v) * zeroCornerRow (v * star v) (v * a * star v) (v * b * star v) n j
58
+ rw [← ih j]
59
+ calc
60
+ _ = v * a * (q * zeroCornerRow q a b n j) * star v := by
61
+ rw [(zeroCornerRow_support q a b hqq hqa hqb hbq n j).1]
62
+ noncomm_ring
63
+ _ = _ := by rw [← hvg]; noncomm_ring
64
+
65
+ /-- The explicit finite split, retaining its transported binary generators. -/
66
+ lemma exists_canonical_vacuum_split_with_pair_and_isometry [Nontrivial E] (s : ℕ → E)
67
+ (hs : ∀ i j, star (s i) * s j = if i = j then 1 else 0)
68
+ (n : ℕ) (ε : ℝ) (hε : 0 < ε) :
69
+ ∃ (f w : E) (g : Fin (n + 1) → E),
70
+ f ≠ 0 ∧ star f = f ∧ f * f = f ∧
71
+ star w * w = 1 ∧ w * star w = 1 - f ∧
72
+ (∀ i j, star (g i) * g j = if i = j then f else 0) ∧
73
+ (∑ i, g i * star (g i)) = f ∧
74
+ (∀ i : Fin (n + 1), ‖s i * f - f * s i‖ < ε) ∧
75
+ (∀ i : Fin (n + 1), ‖f * s i * f - g i‖ < ε) ∧
76
+ ‖f * (1 - ∑ i : Fin (n + 1), s i * star (s i)) * f‖ < ε ∧
77
+ f * s (n + 2) = 0 ∧
78
+ ∃ A B : E, star A * A = f ∧ star B * B = f ∧ star A * B = 0 ∧
79
+ A * star A + B * star B = f ∧
80
+ (∀ i, g i = zeroCornerRow f A B n i) ∧
81
+ ∃ z : E, star z * z = 1 ∧ f * z = z := by
82
+ let z := s (n + 2)
83
+ let r := s (n + 1)
84
+ let q := 1 - z * star z
85
+ have hz : star z * z = 1 := by simpa only [z, ite_true] using hs (n + 2) (n + 2)
86
+ have hrr : star r * r = 1 := by simpa only [r, ite_true] using hs (n + 1) (n + 1)
87
+ have hqstar : star q = q := by simp only [q, star_sub, star_one, star_mul, star_star]
88
+ have hqq : q * q = q := by
89
+ have hzz : (z * star z) * (z * star z) = z * star z := by
90
+ calc
91
+ _ = z * (star z * z) * star z := by noncomm_ring
92
+ _ = _ := by rw [hz, mul_one]
93
+ dsimp only [q]
94
+ noncomm_ring [hzz]
95
+ have hz₁ : star z * s (n + 3) = 0 := by simp only [z, hs, show n + 2 ≠ n + 3 by omega, ite_false]
96
+ have hz₂ : star z * s (n + 4) = 0 := by simp only [z, hs, show n + 2 ≠ n + 4 by omega, ite_false]
97
+ have h₁₂ : star (s (n + 3)) * s (n + 4) = 0 := by simp only [hs, show n + 3 ≠ n + 4 by omega, ite_false]
98
+ obtain ⟨a, b, u₀, _hu₀, _ha, _hb, _hu₀eq, haa, hbb, hab, habsum⟩ :=
99
+ exists_zero_corner_cuntz_pair z (s (n + 3)) (s (n + 4)) hz
100
+ (by simpa using hs (n + 3) (n + 3)) (by simpa using hs (n + 4) (n + 4))
101
+ hz₁ hz₂ h₁₂
102
+ change star a * a = q at haa
103
+ change star b * b = q at hbb
104
+ change a * star a + b * star b = q at habsum
105
+ obtain ⟨hqa, haq, hqb, hbq⟩ := relativeCuntzPair_support q a b hqstar hqq haa hbb hab habsum
106
+ let t := zeroCornerRow q a b n
107
+ have htl (i : Fin (n + 1)) : q * t i = t i := (zeroCornerRow_support q a b hqq hqa hqb hbq n i).1
108
+ have htr (i : Fin (n + 1)) : t i * q = t i := (zeroCornerRow_support q a b hqq hqa hqb hbq n i).2
109
+ have htt : ∀ i j, star (t i) * t j = if i = j then q else 0 :=
110
+ zeroCornerRow_gram q a b hqstar hqq haa hbb hab hqa hqb hbq n
111
+ have ht : ∑ i, t i * star (t i) = q := zeroCornerRow_range_sum q a b hqstar hqq haq habsum n
112
+ let s' (i : Fin (n + 1)) := s i
113
+ have hs' (i j : Fin (n + 1)) : star (s' i) * s' j = if i = j then 1 else 0 := by
114
+ simpa only [s', Fin.ext_iff] using hs i j
115
+ have hri (i : Fin (n + 1)) : star r * s' i = 0 := by
116
+ change star (s (n + 1)) * s i = 0
117
+ rw [hs, ite_eq_right (by omega)]
118
+ have hzi (i : Fin (n + 1)) : star z * s' i = 0 := by
119
+ change star (s (n + 2)) * s i = 0
120
+ rw [hs, ite_eq_right (by omega)]
121
+ have hzr : star z * r = 0 := by simp only [z, r, hs, show n + 2 ≠ n + 1 by omega, ite_false]
122
+ obtain ⟨m, hm⟩ := exists_nat_one_div_lt (show (0 : ℝ) < min ε ((ε / 4) ^ 2) by positivity)
123
+ have hmε : ((m : ℝ) + 1)⁻¹ < ε := by simpa only [one_div] using hm.trans_le (min_le_left _ _)
124
+ have hmSq : ((m : ℝ) + 1)⁻¹ < (ε / 4) ^ 2 := by simpa only [one_div] using hm.trans_le (min_le_right _ _)
125
+ let v := finiteRowIsometry s' t r q m
126
+ let f := finiteRowRange s' t r q m
127
+ have hvg : star v * v = q := finiteRowIsometry_gram s' t r q hqq hqstar hrr hri hs' htr ht m
128
+ have hvq : v * q = v := relativeIsometry_mul_support v q hvg hqstar hqq
129
+ have hfv : f * v = v := by change (v * star v) * v = v; rw [mul_assoc, hvg, hvq]
130
+ obtain ⟨u, _hu, _hueq, _huq, huw, hwrange⟩ :=
131
+ exists_connected_finiteRowCompletion s' t r q z hqq hqstar hrr hri hs' htr ht hz hzr hzi rfl m
132
+ let g (i : Fin (n + 1)) := v * t i * star v
133
+ have hg := transported_row v q t hvg hvq htl htr htt ht
134
+ have hqne : q ≠ 0 := by
135
+ intro hq0
136
+ have hqa₁ : q * s (n + 3) = s (n + 3) := by
137
+ dsimp only [q]
138
+ rw [sub_mul, one_mul, mul_assoc, hz₁, mul_zero, sub_zero]
139
+ rw [hq0, zero_mul] at hqa₁
140
+ have hx := hs (n + 3) (n + 3)
141
+ rw [← hqa₁, star_zero, zero_mul, ite_eq_left rfl] at hx
142
+ exact zero_ne_one hx
143
+ refine ⟨f, (u : E) * z, g, ?_, finiteRowRange_star s' t r q m,
144
+ finiteRowRange_sq s' t r q hqq hqstar hrr hri hs' htr ht m, huw, hwrange,
145
+ hg.1, hg.2, ?_, ?_, ?_, ?_⟩
146
+ · intro hf
147
+ have hv0 : v = 0 := by rw [← hfv, hf, zero_mul]
148
+ have hq0 : q = 0 := by rw [← hvg, hv0, star_zero, zero_mul]
149
+ exact hqne hq0
150
+ · intro i
151
+ have hbound := finiteRowRange_commutator_bound s' t r q hqq hqstar hrr hri hs' htr ht htt m i
152
+ have hsqrt₁ := Real.sq_sqrt (show 0 ≤ ((m : ℝ) + 1)⁻¹ by positivity)
153
+ have hsqrt₂ := Real.sq_sqrt (show 0 ≤ 2 / ((m : ℝ) + 1) by positivity)
154
+ have hc : 2 / ((m : ℝ) + 1) = 2 * ((m : ℝ) + 1)⁻¹ := by rw [div_eq_mul_inv]
155
+ have h₁ : Real.sqrt (((m : ℝ) + 1)⁻¹) < ε / 4 := by nlinarith [Real.sqrt_nonneg (((m : ℝ) + 1)⁻¹)]
156
+ have h₂ : Real.sqrt (2 / ((m : ℝ) + 1)) < ε / 2 := by
157
+ have hsqrt₂' := hsqrt₂.trans hc
158
+ nlinarith [Real.sqrt_nonneg (2 / ((m : ℝ) + 1))]
159
+ exact hbound.trans_lt (by linarith)
160
+ · intro i
161
+ have hcomp : f * s i * f = (((m : ℝ) / ((m : ℝ) + 1) : ℝ) : ℂ) • g i := by
162
+ calc
163
+ _ = v * (star v * s' i * v) * star v := by change (v * star v) * s' i * (v * star v) = _; noncomm_ring
164
+ _ = _ := by
165
+ rw [finiteRowIsometry_compression s' t r q hqq hqstar hrr hri hs' htr ht m i,
166
+ mul_smul_comm, smul_mul_assoc]
167
+ have hgn : ‖g i‖ ≤ 1 := by
168
+ have he := congrArg norm (hg.1 i i)
169
+ simp only [ite_true, CStarRing.norm_star_mul_self] at he
170
+ change ‖g i‖ * ‖g i‖ = ‖f‖ at he
171
+ have hfn : ‖f‖ ≤ 1 := IsStarProjection.norm_le _ (isStarProjection_iff'.mpr
172
+ ⟨finiteRowRange_sq s' t r q hqq hqstar hrr hri hs' htr ht m, finiteRowRange_star s' t r q m⟩)
173
+ nlinarith [norm_nonneg (g i)]
174
+ have he : f * s i * f - g i = -(((((m : ℝ) + 1)⁻¹ : ℝ) : ℂ) • g i) := by
175
+ rw [hcomp]
176
+ have hc : ((m : ℝ) / ((m : ℝ) + 1)) - 1 = -((m : ℝ) + 1)⁻¹ := by
177
+ have hn : (m : ℝ) + 1 ≠ 0 := by positivity
178
+ field_simp
179
+ ring
180
+ calc
181
+ _ = (((m : ℝ) / ((m : ℝ) + 1) - 1 : ℝ) : ℂ) • g i := by push_cast; module
182
+ _ = _ := by rw [hc, Complex.ofReal_neg, neg_smul]
183
+ rw [he, norm_neg, norm_smul, Complex.norm_real, Real.norm_eq_abs,
184
+ abs_of_nonneg (by positivity : 0 ≤ ((m : ℝ) + 1)⁻¹)]
185
+ exact (mul_le_of_le_one_right (by positivity) hgn).trans_lt hmε
186
+ · exact (finiteRowRange_vacuum_norm s' t r q hqq hqstar hrr hri hs' htr ht m).trans_lt hmε
187
+ · refine ⟨finiteRowRange_unused s' t r q z hzr hzi m, ?_⟩
188
+ let pair : Fin 2 → E := ![a, b]
189
+ have hba : star b * a = 0 := by
190
+ simpa only [star_mul, star_star, star_zero] using congrArg star hab
191
+ have hpl (i : Fin 2) : q * pair i = pair i := by
192
+ fin_cases i
193
+ · exact hqa
194
+ · exact hqb
195
+ have hpr (i : Fin 2) : pair i * q = pair i := by
196
+ fin_cases i
197
+ · exact haq
198
+ · exact hbq
199
+ have hpg (i j : Fin 2) : star (pair i) * pair j = if i = j then q else 0 := by
200
+ fin_cases i <;> fin_cases j <;> simp [pair, haa, hbb, hab, hba]
201
+ have hps : ∑ i, pair i * star (pair i) = q := by
202
+ simpa only [Fin.sum_univ_two, pair, Matrix.cons_val_zero, Matrix.cons_val_one,
203
+ Matrix.cons_val_fin_one] using habsum
204
+ have hpair := transported_row v q pair hvg hvq hpl hpr hpg hps
205
+ have hvf : v * star v = f := rfl
206
+ refine ⟨v * a * star v, v * b * star v, ?_, ?_, ?_, ?_, ?_, ?_⟩
207
+ · simpa only [pair, Matrix.cons_val_zero, ite_true, hvf] using hpair.1 0 0
208
+ · simpa only [pair, Matrix.cons_val_one, Matrix.cons_val_fin_one, ite_true, hvf] using hpair.1 1 1
209
+ · simpa only [pair, Matrix.cons_val_zero, Matrix.cons_val_one,
210
+ Matrix.cons_val_fin_one, Fin.zero_ne_one, ite_false] using hpair.1 0 1
211
+ · simpa only [Fin.sum_univ_two, pair, Matrix.cons_val_zero, Matrix.cons_val_one,
212
+ Matrix.cons_val_fin_one, hvf] using hpair.2
213
+ · intro i
214
+ exact transported_zeroCornerRow q a b v hqq hqa hqb hbq hvg hvq n i
215
+ · have hqz : q * s (n + 3) = s (n + 3) := by
216
+ dsimp only [q]
217
+ rw [sub_mul, one_mul, mul_assoc, hz₁, mul_zero, sub_zero]
218
+ refine ⟨v * s (n + 3), ?_, ?_⟩
219
+ · rw [star_mul]
220
+ calc
221
+ _ = star (s (n + 3)) * (star v * v) * s (n + 3) := by noncomm_ring
222
+ _ = 1 := by
223
+ rw [hvg, mul_assoc, hqz]
224
+ simpa only [ite_true] using hs (n + 3) (n + 3)
225
+ · rw [← mul_assoc, hfv]
226
+
227
+ /-- The explicit finite split, retaining its transported binary generators. -/
228
+ lemma exists_canonical_vacuum_split_with_pair [Nontrivial E] (s : ℕ → E)
229
+ (hs : ∀ i j, star (s i) * s j = if i = j then 1 else 0)
230
+ (n : ℕ) (ε : ℝ) (hε : 0 < ε) :
231
+ ∃ (f w : E) (g : Fin (n + 1) → E),
232
+ f ≠ 0 ∧ star f = f ∧ f * f = f ∧
233
+ star w * w = 1 ∧ w * star w = 1 - f ∧
234
+ (∀ i j, star (g i) * g j = if i = j then f else 0) ∧
235
+ (∑ i, g i * star (g i)) = f ∧
236
+ (∀ i : Fin (n + 1), ‖s i * f - f * s i‖ < ε) ∧
237
+ (∀ i : Fin (n + 1), ‖f * s i * f - g i‖ < ε) ∧
238
+ ‖f * (1 - ∑ i : Fin (n + 1), s i * star (s i)) * f‖ < ε ∧
239
+ f * s (n + 2) = 0 ∧
240
+ ∃ A B : E, star A * A = f ∧ star B * B = f ∧ star A * B = 0 ∧
241
+ A * star A + B * star B = f ∧
242
+ ∀ i, g i = zeroCornerRow f A B n i := by
243
+ obtain ⟨f, w, g, hf, hfs, hff, hw, hwr, hg, hgs, hc, hfg, hfv, hfz,
244
+ A, B, hA, hB, hAB, hsum, he, _hz⟩ :=
245
+ exists_canonical_vacuum_split_with_pair_and_isometry s hs n ε hε
246
+ exact ⟨f, w, g, hf, hfs, hff, hw, hwr, hg, hgs, hc, hfg, hfv, hfz,
247
+ A, B, hA, hB, hAB, hsum, he⟩
248
+
249
+ /-- Every finite canonical row admits the explicit vacuum-killing split.
250
+ The returned row is coisometric in `f`, and an actual isometry fills `1-f`. -/
251
+ lemma exists_canonical_vacuum_split [Nontrivial E] (s : ℕ → E)
252
+ (hs : ∀ i j, star (s i) * s j = if i = j then 1 else 0)
253
+ (n : ℕ) (ε : ℝ) (hε : 0 < ε) :
254
+ ∃ (f w : E) (g : Fin (n + 1) → E),
255
+ f ≠ 0 ∧ star f = f ∧ f * f = f ∧
256
+ star w * w = 1 ∧ w * star w = 1 - f ∧
257
+ (∀ i j, star (g i) * g j = if i = j then f else 0) ∧
258
+ (∑ i, g i * star (g i)) = f ∧
259
+ (∀ i : Fin (n + 1), ‖s i * f - f * s i‖ < ε) ∧
260
+ (∀ i : Fin (n + 1), ‖f * s i * f - g i‖ < ε) ∧
261
+ ‖f * (1 - ∑ i : Fin (n + 1), s i * star (s i)) * f‖ < ε ∧
262
+ f * s (n + 2) = 0 := by
263
+ obtain ⟨f, w, g, hf, hfs, hff, hw, hwr, hg, hgs, hc, hfg, hfv, hfz, _hp⟩ :=
264
+ exists_canonical_vacuum_split_with_pair s hs n ε hε
265
+ exact ⟨f, w, g, hf, hfs, hff, hw, hwr, hg, hgs, hc, hfg, hfv, hfz⟩
266
+
267
+ end WeakPureInfiniteness
268
+
269
+ end
270
+
271
+ end OAI
lean/OAI/Analysis/OInfinity/ZeroCorner.lean ADDED
@@ -0,0 +1,427 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Analysis.OInfinity.CentralIsometries
2
+
3
+ namespace OAI
4
+
5
+ /-! # An explicit coisometric pair in the complementary corner
6
+
7
+ Three orthogonal isometries suffice to construct two relative isometries
8
+ whose ranges add up to `1 - r₀ * star r₀`. The construction uses the checked
9
+ two-swap completion, with its connected unitary retained explicitly. The
10
+ unit of this pair is the stated corner projection, not the ambient unit.
11
+ -/
12
+
13
+ noncomputable section
14
+ open scoped CStarAlgebra
15
+
16
+ namespace WeakPureInfiniteness
17
+
18
+ variable {E : Type*} [CStarAlgebra E]
19
+
20
+ lemma partialIsometrySwap_commutes (a y : E)
21
+ (ha : Commute a y) (hastar : Commute (star a) y) :
22
+ Commute (partialIsometrySwap a) y := by
23
+ exact (ha.add_left hastar).add_left
24
+ (((Commute.one_left y).sub_left (hastar.mul_left ha)).sub_left (ha.mul_left hastar))
25
+
26
+ lemma partialIsometryCompletion_commutes (r p v y : E)
27
+ (hr : Commute r y) (hrstar : Commute (star r) y)
28
+ (hp : Commute p y) (hpstar : Commute (star p) y)
29
+ (hv : Commute v y) (hvstar : Commute (star v) y) :
30
+ Commute (partialIsometryCompletion r p v) y := by
31
+ apply Commute.mul_left
32
+ · apply partialIsometrySwap_commutes
33
+ · exact hv.mul_left hrstar
34
+ · simpa only [star_mul, star_star] using hr.mul_left hvstar
35
+ · apply partialIsometrySwap_commutes
36
+ · exact hr.mul_left hp
37
+ · simpa only [star_mul] using hpstar.mul_left hrstar
38
+
39
+ lemma exists_zero_corner_cuntz_pair [Nontrivial E] (r₀ r₁ r₂ : E)
40
+ (h₀ : star r₀ * r₀ = 1) (h₁ : star r₁ * r₁ = 1) (h₂ : star r₂ * r₂ = 1)
41
+ (h₀₁ : star r₀ * r₁ = 0) (h₀₂ : star r₀ * r₂ = 0) (h₁₂ : star r₁ * r₂ = 0) :
42
+ let q := 1 - r₀ * star r₀
43
+ ∃ (a b : E) (u : unitary E), Joined (1 : unitary E) u ∧
44
+ a = r₁ * q ∧ b = (u : E) * q ∧
45
+ (u : E) = partialIsometryCompletion r₂ (r₀ * star r₀)
46
+ (((r₀ * star r₀) + r₁ * q) * star r₀) ∧
47
+ star a * a = q ∧ star b * b = q ∧ star a * b = 0 ∧
48
+ a * star a + b * star b = q := by
49
+ intro q
50
+ let p := r₀ * star r₀
51
+ let a := r₁ * q
52
+ let z := p + a
53
+ let v := z * star r₀
54
+ have hpstar : star p = p := by simp only [p, star_mul, star_star]
55
+ have hpp : p * p = p := by
56
+ dsimp only [p]
57
+ rw [mul_assoc, ← mul_assoc (star r₀), h₀, one_mul]
58
+ have hqstar : star q = q := by change star (1 - p) = 1 - p; rw [star_sub, star_one, hpstar]
59
+ have hqq : q * q = q := by change (1 - p) * (1 - p) = 1 - p; noncomm_ring [hpp]
60
+ have hpq : p * q = 0 := by change p * (1 - p) = 0; noncomm_ring [hpp]
61
+ have hqp : q * p = 0 := by change (1 - p) * p = 0; noncomm_ring [hpp]
62
+ have hpr₁ : p * r₁ = 0 := by
63
+ change (r₀ * star r₀) * r₁ = 0
64
+ rw [mul_assoc, h₀₁, mul_zero]
65
+ have hr₁p : star r₁ * p = 0 := by
66
+ simpa only [star_mul, hpstar, star_zero] using congrArg star hpr₁
67
+ have hpa : p * a = 0 := by dsimp only [a]; rw [← mul_assoc, hpr₁, zero_mul]
68
+ have hasp : star a * p = 0 := by
69
+ simpa only [star_mul, hpstar, star_zero] using congrArg star hpa
70
+ have hqa : q * a = a := by change (1 - p) * a = a; rw [sub_mul, one_mul, hpa, sub_zero]
71
+ have haq : a * q = a := by dsimp only [a]; rw [mul_assoc, hqq]
72
+ have haas : star a * a = q := by
73
+ dsimp only [a]
74
+ rw [star_mul, hqstar]
75
+ calc
76
+ _ = q * (star r₁ * r₁) * q := by noncomm_ring
77
+ _ = q := by rw [h₁, mul_one, hqq]
78
+ have hziso : star z * z = 1 := by
79
+ change star (p + a) * (p + a) = 1
80
+ rw [star_add, hpstar, add_mul, mul_add, mul_add, hpp, hpa, hasp, haas]
81
+ change p + 0 + (0 + (1 - p)) = 1
82
+ noncomm_ring
83
+ have hztarget : z * star z = p + a * star a := by
84
+ change (p + a) * star (p + a) = p + a * star a
85
+ rw [star_add, hpstar]
86
+ have hap : a * p = 0 := by dsimp only [a]; rw [mul_assoc, hqp, mul_zero]
87
+ have hpas' : p * star a = 0 := by
88
+ simpa only [star_mul, hpstar, star_zero] using congrArg star hap
89
+ noncomm_ring [hpp, hap, hpas']
90
+ have hvsource : star v * v = p := by
91
+ change star (z * star r₀) * (z * star r₀) = p
92
+ rw [star_mul, star_star]
93
+ calc
94
+ _ = r₀ * (star z * z) * star r₀ := by noncomm_ring
95
+ _ = p := by rw [hziso, mul_one]
96
+ have hvtarget : v * star v = p + a * star a := by
97
+ change (z * star r₀) * star (z * star r₀) = _
98
+ rw [star_mul, star_star]
99
+ calc
100
+ _ = z * (star r₀ * r₀) * star z := by noncomm_ring
101
+ _ = _ := by rw [h₀, mul_one, hztarget]
102
+ have hvpartial : v * star v * v = v := by
103
+ change (z * star r₀) * star (z * star r₀) * (z * star r₀) = z * star r₀
104
+ rw [star_mul, star_star]
105
+ calc
106
+ _ = z * (star r₀ * r₀) * (star z * z) * star r₀ := by noncomm_ring
107
+ _ = _ := by rw [h₀, hziso, mul_one, mul_one]
108
+ have hpr₂ : p * r₂ = 0 := by
109
+ change (r₀ * star r₀) * r₂ = 0
110
+ rw [mul_assoc, h₀₂, mul_zero]
111
+ have hasr₂ : star a * r₂ = 0 := by
112
+ dsimp only [a]
113
+ rw [star_mul, mul_assoc, h₁₂, mul_zero]
114
+ have hvr₂ : (v * star v) * r₂ = 0 := by
115
+ rw [hvtarget, add_mul, hpr₂, mul_assoc, hasr₂, mul_zero, add_zero]
116
+ obtain ⟨u, hu, hueq, huvp⟩ := exists_explicit_connected_unitary_extension v r₂
117
+ hvpartial h₂ (by rw [hvsource]; exact hpr₂) hvr₂
118
+ have hup : (u : E) * p = v := by simpa only [hvsource] using huvp
119
+ have hupu : (u : E) * p * star (u : E) = p + a * star a := by
120
+ calc
121
+ _ = ((u : E) * p) * star ((u : E) * p) := by
122
+ rw [star_mul, hpstar]
123
+ symm
124
+ calc
125
+ _ = (u : E) * (p * p) * star (u : E) := by noncomm_ring
126
+ _ = _ := by rw [hpp]
127
+ _ = _ := by rw [hup, hvtarget]
128
+ let b := (u : E) * q
129
+ have hbsource : star b * b = q := by
130
+ dsimp only [b]
131
+ rw [star_mul, hqstar]
132
+ calc
133
+ _ = q * (star (u : E) * (u : E)) * q := by noncomm_ring
134
+ _ = q := by rw [Unitary.coe_star_mul_self, mul_one, hqq]
135
+ have hbtarget : b * star b = q - a * star a := by
136
+ dsimp only [b]
137
+ rw [star_mul, hqstar]
138
+ calc
139
+ _ = (u : E) * q * star (u : E) := by
140
+ calc
141
+ _ = (u : E) * (q * q) * star (u : E) := by noncomm_ring
142
+ _ = _ := by rw [hqq]
143
+ _ = 1 - (p + a * star a) := by
144
+ change (u : E) * (1 - p) * star (u : E) = _
145
+ rw [mul_sub, sub_mul, mul_one, Unitary.mul_star_self_of_mem u.property, hupu]
146
+ _ = _ := by change 1 - (p + a * star a) = (1 - p) - a * star a; abel
147
+ have hbq : b * q = b := by dsimp only [b]; rw [mul_assoc, hqq]
148
+ have hbpartial : b * star b * b = b := by rw [mul_assoc, hbsource, hbq]
149
+ have haapartial : (a * star a) * (a * star a) = a * star a := by
150
+ calc
151
+ _ = a * (star a * a) * star a := by noncomm_ring
152
+ _ = _ := by rw [haas, haq]
153
+ have haaq : (a * star a) * q = a * star a := by
154
+ have h := congrArg star hqa
155
+ simpa only [star_mul, hqstar, mul_assoc] using congrArg (fun y => a * y) h
156
+ have habproj : (a * star a) * (b * star b) = 0 := by
157
+ rw [hbtarget, mul_sub, haaq, haapartial, sub_self]
158
+ have haab : (a * star a) * b = 0 := by
159
+ rw [← hbpartial, ← mul_assoc, habproj, zero_mul]
160
+ have hab : star a * b = 0 := by
161
+ apply (CStarRing.star_mul_self_eq_zero_iff _).mp
162
+ rw [star_mul, star_star]
163
+ calc
164
+ _ = star b * ((a * star a) * b) := by noncomm_ring
165
+ _ = 0 := by rw [haab, mul_zero]
166
+ refine ⟨a, b, u, hu, rfl, rfl, ?_, haas, hbsource, hab, ?_⟩
167
+ · simpa only [hvsource] using hueq
168
+ · rw [hbtarget]
169
+ abel
170
+
171
+ /-- The zero-corner completion is a fixed finite polynomial, so it retains
172
+ exact commutation with every element commuting with the three input
173
+ isometries and their adjoints. -/
174
+ lemma zeroCornerCompletion_commutes (r₀ r₁ r₂ y : E)
175
+ (h₀ : Commute r₀ y) (h₀s : Commute (star r₀) y)
176
+ (h₁ : Commute r₁ y) (h₁s : Commute (star r₁) y)
177
+ (h₂ : Commute r₂ y) (h₂s : Commute (star r₂) y) :
178
+ Commute (partialIsometryCompletion r₂ (r₀ * star r₀)
179
+ (((r₀ * star r₀) + r₁ * (1 - r₀ * star r₀)) * star r₀)) y := by
180
+ have hp := h₀.mul_left h₀s
181
+ have hps : Commute (star (r₀ * star r₀)) y := by
182
+ simpa only [star_mul, star_star] using hp
183
+ have hq := (Commute.one_left y).sub_left hp
184
+ have hqs : Commute (star (1 - r₀ * star r₀)) y := by
185
+ simpa only [star_sub, star_one, star_mul, star_star] using hq
186
+ apply partialIsometryCompletion_commutes _ _ _ _ h₂ h₂s hp hps
187
+ · exact (hp.add_left (h₁.mul_left hq)).mul_left h₀s
188
+ · simpa only [star_mul, star_add, star_star] using
189
+ h₀.mul_left (hps.add_left (hqs.mul_left h₁s))
190
+
191
+ private structure ZeroCornerControl (x a : E) (N C : ℝ) : Prop where
192
+ norm_bound : ‖a‖ ≤ N
193
+ bound : ‖a * x - x * a‖ ≤ C
194
+ star_bound : ‖star a * x - x * star a‖ ≤ C
195
+
196
+ private lemma zeroCornerControl_one [Nontrivial E] (x : E) : ZeroCornerControl x 1 1 0 := by
197
+ constructor <;> simp
198
+
199
+ private lemma zeroCornerControl_star {x a : E} {N C : ℝ}
200
+ (h : ZeroCornerControl x a N C) : ZeroCornerControl x (star a) N C := by
201
+ exact ⟨by simpa only [norm_star] using h.norm_bound, h.star_bound,
202
+ by simpa only [star_star] using h.bound⟩
203
+
204
+ private lemma zeroCornerControl_add {x a b : E} {N M C D : ℝ}
205
+ (ha : ZeroCornerControl x a N C) (hb : ZeroCornerControl x b M D) :
206
+ ZeroCornerControl x (a + b) (N + M) (C + D) := by
207
+ constructor
208
+ · exact (norm_add_le _ _).trans (add_le_add ha.norm_bound hb.norm_bound)
209
+ · have he : (a + b) * x - x * (a + b) = (a * x - x * a) + (b * x - x * b) := by
210
+ noncomm_ring
211
+ rw [he]
212
+ exact (norm_add_le _ _).trans (add_le_add ha.bound hb.bound)
213
+ · have he : star (a + b) * x - x * star (a + b) =
214
+ (star a * x - x * star a) + (star b * x - x * star b) := by
215
+ rw [star_add]; noncomm_ring
216
+ rw [he]
217
+ exact (norm_add_le _ _).trans (add_le_add ha.star_bound hb.star_bound)
218
+
219
+ private lemma zeroCornerControl_sub {x a b : E} {N M C D : ℝ}
220
+ (ha : ZeroCornerControl x a N C) (hb : ZeroCornerControl x b M D) :
221
+ ZeroCornerControl x (a - b) (N + M) (C + D) := by
222
+ constructor
223
+ · exact (norm_sub_le _ _).trans (add_le_add ha.norm_bound hb.norm_bound)
224
+ · have he : (a - b) * x - x * (a - b) = (a * x - x * a) - (b * x - x * b) := by
225
+ noncomm_ring
226
+ rw [he]
227
+ exact (norm_sub_le _ _).trans (add_le_add ha.bound hb.bound)
228
+ · have he : star (a - b) * x - x * star (a - b) =
229
+ (star a * x - x * star a) - (star b * x - x * star b) := by
230
+ rw [star_sub]; noncomm_ring
231
+ rw [he]
232
+ exact (norm_sub_le _ _).trans (add_le_add ha.star_bound hb.star_bound)
233
+
234
+ private lemma zeroCornerControl_mul_bound {x a b : E} {N M C D : ℝ}
235
+ (haN : ‖a‖ ≤ N) (hbM : ‖b‖ ≤ M)
236
+ (ha : ‖a * x - x * a‖ ≤ C) (hb : ‖b * x - x * b‖ ≤ D) :
237
+ ‖(a * b) * x - x * (a * b)‖ ≤ N * D + C * M := by
238
+ have hC : 0 ≤ C := (norm_nonneg _).trans ha
239
+ have hD : 0 ≤ D := (norm_nonneg _).trans hb
240
+ have he : (a * b) * x - x * (a * b) =
241
+ a * (b * x - x * b) + (a * x - x * a) * b := by noncomm_ring
242
+ rw [he]
243
+ calc
244
+ _ ≤ ‖a * (b * x - x * b)‖ + ‖(a * x - x * a) * b‖ := norm_add_le _ _
245
+ _ ≤ ‖a‖ * ‖b * x - x * b‖ + ‖a * x - x * a‖ * ‖b‖ :=
246
+ add_le_add (norm_mul_le _ _) (norm_mul_le _ _)
247
+ _ ≤ N * D + C * M := add_le_add
248
+ (mul_le_mul haN hb (norm_nonneg _) ((norm_nonneg _).trans haN))
249
+ (mul_le_mul ha hbM (norm_nonneg _) hC)
250
+
251
+ private lemma zeroCornerControl_mul {x a b : E} {N M C D : ℝ}
252
+ (ha : ZeroCornerControl x a N C) (hb : ZeroCornerControl x b M D) :
253
+ ZeroCornerControl x (a * b) (N * M) (N * D + C * M) := by
254
+ constructor
255
+ · exact (norm_mul_le _ _).trans
256
+ (mul_le_mul ha.norm_bound hb.norm_bound (norm_nonneg _) ((norm_nonneg _).trans ha.norm_bound))
257
+ · exact zeroCornerControl_mul_bound ha.norm_bound hb.norm_bound ha.bound hb.bound
258
+ · rw [star_mul]
259
+ have h := zeroCornerControl_mul_bound
260
+ (zeroCornerControl_star hb).norm_bound (zeroCornerControl_star ha).norm_bound
261
+ hb.star_bound ha.star_bound
262
+ convert h using 1; ring
263
+
264
+ private lemma zeroCornerControl_swap [Nontrivial E] {x a : E} {N C : ℝ}
265
+ (ha : ZeroCornerControl x a N C) :
266
+ ZeroCornerControl x (partialIsometrySwap a)
267
+ (N + N + (1 + N * N + N * N))
268
+ (C + C + (0 + (N * C + C * N) + (N * C + C * N))) := by
269
+ exact zeroCornerControl_add (zeroCornerControl_add ha (zeroCornerControl_star ha))
270
+ (zeroCornerControl_sub (zeroCornerControl_sub (zeroCornerControl_one x)
271
+ (zeroCornerControl_mul (zeroCornerControl_star ha) ha))
272
+ (zeroCornerControl_mul ha (zeroCornerControl_star ha)))
273
+
274
+ /-- A uniform polynomial estimate, valid before the Cuntz relations are used.
275
+ The deliberately coarse constant keeps the input tolerance independent of
276
+ the test element and of the ambient algebra. -/
277
+ lemma zeroCornerCompletion_commutator_bound [Nontrivial E] (r₀ r₁ r₂ x : E) (δ : ℝ)
278
+ (hN : ∀ r ∈ ({r₀, r₁, r₂} : Set E), ‖r‖ ≤ 1)
279
+ (hC : ∀ r ∈ ({r₀, r₁, r₂} : Set E),
280
+ ‖r * x - x * r‖ ≤ δ ∧ ‖star r * x - x * star r‖ ≤ δ) :
281
+ let U := partialIsometryCompletion r₂ (r₀ * star r₀)
282
+ (((r₀ * star r₀) + r₁ * (1 - r₀ * star r₀)) * star r₀)
283
+ ‖U * x - x * U‖ ≤ 1290 * δ ∧ ‖star U * x - x * star U‖ ≤ 1290 * δ := by
284
+ have h₀ : ZeroCornerControl x r₀ 1 δ :=
285
+ ⟨hN r₀ (by simp), (hC r₀ (by simp)).1, (hC r₀ (by simp)).2⟩
286
+ have h₁ : ZeroCornerControl x r₁ 1 δ :=
287
+ ⟨hN r₁ (by simp), (hC r₁ (by simp)).1, (hC r₁ (by simp)).2⟩
288
+ have h₂ : ZeroCornerControl x r₂ 1 δ :=
289
+ ⟨hN r₂ (by simp), (hC r₂ (by simp)).1, (hC r₂ (by simp)).2⟩
290
+ have hp := zeroCornerControl_mul h₀ (zeroCornerControl_star h₀)
291
+ have hq := zeroCornerControl_sub (zeroCornerControl_one x) hp
292
+ have hz := zeroCornerControl_add hp (zeroCornerControl_mul h₁ hq)
293
+ have hv := zeroCornerControl_mul hz (zeroCornerControl_star h₀)
294
+ have hA := zeroCornerControl_swap (zeroCornerControl_mul hv (zeroCornerControl_star h₂))
295
+ have hB := zeroCornerControl_swap (zeroCornerControl_mul h₂ hp)
296
+ have hU := zeroCornerControl_mul hA hB
297
+ dsimp only [partialIsometryCompletion]
298
+ constructor
299
+ · convert hU.bound using 1; ring
300
+ · convert hU.star_bound using 1; ring
301
+
302
+ lemma zeroCornerPair_commutator_bound [Nontrivial E] (r₀ r₁ r₂ x : E) (δ : ℝ) (hδ : 0 ≤ δ)
303
+ (hN : ∀ r ∈ ({r₀, r₁, r₂} : Set E), ‖r‖ ≤ 1)
304
+ (hC : ∀ r ∈ ({r₀, r₁, r₂} : Set E),
305
+ ‖r * x - x * r‖ ≤ δ ∧ ‖star r * x - x * star r‖ ≤ δ)
306
+ (u : unitary E)
307
+ (hu : (u : E) = partialIsometryCompletion r₂ (r₀ * star r₀)
308
+ (((r₀ * star r₀) + r₁ * (1 - r₀ * star r₀)) * star r₀)) :
309
+ let q := 1 - r₀ * star r₀
310
+ ‖(r₁ * q) * x - x * (r₁ * q)‖ ≤ 2582 * δ ∧
311
+ ‖((u : E) * q) * x - x * ((u : E) * q)‖ ≤ 2582 * δ := by
312
+ have h₀ : ZeroCornerControl x r₀ 1 δ :=
313
+ ⟨hN r₀ (by simp), (hC r₀ (by simp)).1, (hC r₀ (by simp)).2⟩
314
+ have h₁ : ZeroCornerControl x r₁ 1 δ :=
315
+ ⟨hN r₁ (by simp), (hC r₁ (by simp)).1, (hC r₁ (by simp)).2⟩
316
+ have hq := zeroCornerControl_sub (zeroCornerControl_one x)
317
+ (zeroCornerControl_mul h₀ (zeroCornerControl_star h₀))
318
+ have hubounds := zeroCornerCompletion_commutator_bound r₀ r₁ r₂ x δ hN hC
319
+ have hU : ZeroCornerControl x (u : E) 1 (1290 * δ) := by
320
+ refine ⟨(CStarRing.norm_coe_unitary u).le, ?_, ?_⟩
321
+ · simpa only [hu] using hubounds.1
322
+ · simpa only [hu] using hubounds.2
323
+ constructor
324
+ · have hb := (zeroCornerControl_mul h₁ hq).bound
325
+ nlinarith
326
+ · have hb := (zeroCornerControl_mul hU hq).bound
327
+ nlinarith
328
+
329
+ private lemma zeroCorner_star_commutator_norm (a x : E) :
330
+ ‖star a * x - x * star a‖ = ‖a * star x - star x * a‖ := by
331
+ rw [← norm_star (a * star x - star x * a)]
332
+ simp only [star_sub, star_mul, star_star]
333
+ exact norm_sub_rev _ _
334
+
335
+ /-- Global central rows produce a coisometric pair in their complementary
336
+ corner with arbitrarily small finite-set commutators. The corner unit is
337
+ kept explicit in the conclusion. -/
338
+ lemma exists_approximately_central_zero_corner_pair [Nontrivial E] (s t : ℕ → E)
339
+ (hs : ∀ i j, star (s i) * s j = if i = j then 1 else 0)
340
+ (hc : ∀ i j, Commute (s i) (t j) ∧ Commute (s i) (star (t j)))
341
+ (n : ℕ) (δ : ℝ) (hδ : 0 < δ) :
342
+ ∃ (q a b : E), q ≠ 0 ∧ star q = q ∧ q * q = q ∧
343
+ star a * a = q ∧ star b * b = q ∧ star a * b = 0 ∧
344
+ a * star a + b * star b = q ∧
345
+ (∀ i < n, ‖a * s i - s i * a‖ < δ ∧ ‖b * s i - s i * b‖ < δ ∧
346
+ ‖a * star (s i) - star (s i) * a‖ < δ ∧
347
+ ‖b * star (s i) - star (s i) * b‖ < δ) ∧
348
+ ∀ k, Commute a (t k) ∧ Commute b (t k) ∧
349
+ Commute a (star (t k)) ∧ Commute b (star (t k)) := by
350
+ let η := δ / 3000
351
+ have hη : 0 < η := by dsimp only [η]; positivity
352
+ obtain ⟨r, hr, hcomm, hother⟩ := exists_approximately_central_cuntz_row s t hs hc n η hη
353
+ have hiso (j : ℕ) : star (r j) * r j = 1 := by simpa using hr j j
354
+ have hnorm (j : ℕ) : ‖r j‖ = 1 := by
355
+ have h := congrArg norm (hiso j)
356
+ rw [CStarRing.norm_star_mul_self, norm_one] at h
357
+ nlinarith [norm_nonneg (r j)]
358
+ let q := 1 - r 0 * star (r 0)
359
+ obtain ⟨a, b, u, hujoin, ha, hb, hu, haa, hbb, hab, hsum⟩ :=
360
+ exists_zero_corner_cuntz_pair (r 0) (r 1) (r 2) (hiso 0) (hiso 1) (hiso 2)
361
+ (by simpa using hr 0 1) (by simpa using hr 0 2) (by simpa using hr 1 2)
362
+ have hqstar : star q = q := by simp only [q, star_sub, star_one, star_mul, star_star]
363
+ have hp : (r 0 * star (r 0)) * (r 0 * star (r 0)) = r 0 * star (r 0) := by
364
+ rw [mul_assoc, ← mul_assoc (star (r 0)), hiso, one_mul]
365
+ have hqq : q * q = q := by dsimp only [q]; noncomm_ring [hp]
366
+ have hqne : q ≠ 0 := by
367
+ intro hzero
368
+ have hqr : q * r 1 = r 1 := by
369
+ dsimp only [q]
370
+ rw [sub_mul, one_mul, mul_assoc, show star (r 0) * r 1 = 0 by simpa using hr 0 1,
371
+ mul_zero, sub_zero]
372
+ rw [hzero, zero_mul] at hqr
373
+ have hz := hiso 1
374
+ rw [← hqr, star_zero, zero_mul] at hz
375
+ exact zero_ne_one hz
376
+ have hN : ∀ z ∈ ({r 0, r 1, r 2} : Set E), ‖z‖ ≤ 1 := by
377
+ intro z hz
378
+ simp only [Set.mem_insert_iff, Set.mem_singleton_iff] at hz
379
+ rcases hz with rfl | rfl | rfl <;> exact (hnorm _).le
380
+ refine ⟨q, a, b, hqne, hqstar, hqq, haa, hbb, hab, hsum, ?_, ?_⟩
381
+ · intro i hi
382
+ have hC : ∀ z ∈ ({r 0, r 1, r 2} : Set E),
383
+ ‖z * s i - s i * z‖ ≤ η ∧ ‖star z * s i - s i * star z‖ ≤ η := by
384
+ intro z hz
385
+ have hz' (j : ℕ) : ‖r j * s i - s i * r j‖ ≤ η ∧
386
+ ‖star (r j) * s i - s i * star (r j)‖ ≤ η := by
387
+ exact ⟨(hcomm j i hi).1.le,
388
+ by rw [zeroCorner_star_commutator_norm]; exact (hcomm j i hi).2.le⟩
389
+ simp only [Set.mem_insert_iff, Set.mem_singleton_iff] at hz
390
+ rcases hz with rfl | rfl | rfl <;> exact hz' _
391
+ have hCs : ∀ z ∈ ({r 0, r 1, r 2} : Set E),
392
+ ‖z * star (s i) - star (s i) * z‖ ≤ η ∧
393
+ ‖star z * star (s i) - star (s i) * star z‖ ≤ η := by
394
+ intro z hz
395
+ have hz' (j : ℕ) : ‖r j * star (s i) - star (s i) * r j‖ ≤ η ∧
396
+ ‖star (r j) * star (s i) - star (s i) * star (r j)‖ ≤ η := by
397
+ exact ⟨(hcomm j i hi).2.le, by
398
+ rw [zeroCorner_star_commutator_norm, star_star]
399
+ exact (hcomm j i hi).1.le⟩
400
+ simp only [Set.mem_insert_iff, Set.mem_singleton_iff] at hz
401
+ rcases hz with rfl | rfl | rfl <;> exact hz' _
402
+ have hsmall : 2582 * η < δ := by dsimp only [η]; nlinarith
403
+ have h₁ := zeroCornerPair_commutator_bound (r 0) (r 1) (r 2) (s i) η hη.le hN hC u hu
404
+ have h₂ := zeroCornerPair_commutator_bound (r 0) (r 1) (r 2) (star (s i)) η hη.le hN hCs u hu
405
+ dsimp only at h₁ h₂
406
+ rw [← ha, ← hb] at h₁ h₂
407
+ exact ⟨h₁.1.trans_lt hsmall, h₁.2.trans_lt hsmall,
408
+ h₂.1.trans_lt hsmall, h₂.2.trans_lt hsmall⟩
409
+ · intro k
410
+ have hpoly (y : E) (hry : ∀ j, Commute (r j) y ∧ Commute (star (r j)) y) :
411
+ Commute a y ∧ Commute b y := by
412
+ have hqc := (Commute.one_left y).sub_left ((hry 0).1.mul_left (hry 0).2)
413
+ have huc : Commute (u : E) y := by
414
+ rw [hu]
415
+ exact zeroCornerCompletion_commutes _ _ _ _
416
+ (hry 0).1 (hry 0).2 (hry 1).1 (hry 1).2 (hry 2).1 (hry 2).2
417
+ exact ⟨by rw [ha]; exact (hry 1).1.mul_left hqc,
418
+ by rw [hb]; exact huc.mul_left hqc⟩
419
+ have h₁ := hpoly (t k) (fun j => ⟨(hother j k).1, (hother j k).2.star_left⟩)
420
+ have h₂ := hpoly (star (t k)) (fun j => ⟨(hother j k).2, (hother j k).1.star_star⟩)
421
+ exact ⟨h₁.1, h₁.2, h₂.1, h₂.2⟩
422
+
423
+ end WeakPureInfiniteness
424
+
425
+ end
426
+
427
+ end OAI
lean/OAI/Analysis/OInfinity/ZeroCornerRows.lean ADDED
@@ -0,0 +1,280 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Analysis.OInfinity.ZeroCorner
2
+
3
+ namespace OAI
4
+
5
+ /-! # Finite Cuntz rows in the explicit complementary corner
6
+
7
+ Repeatedly splitting the first range of a relative Cuntz pair produces every
8
+ finite row size. All ranges still sum to the same projection `q`; the
9
+ complement `1 - q` is retained. The commutator estimate grows only linearly
10
+ with the number of splittings.
11
+ -/
12
+
13
+ noncomputable section
14
+ open scoped CStarAlgebra
15
+
16
+ namespace WeakPureInfiniteness
17
+
18
+ variable {E : Type*} [CStarAlgebra E]
19
+
20
+ /-- Right support follows from the relative isometry equation. -/
21
+ lemma relativeIsometry_mul_support (a q : E) (ha : star a * a = q)
22
+ (hqstar : star q = q) (hqq : q * q = q) : a * q = a := by
23
+ have hz : star (a * q - a) * (a * q - a) = 0 := by
24
+ rw [star_sub, star_mul, hqstar]
25
+ calc
26
+ _ = q * (star a * a) * q - q * (star a * a) - (star a * a) * q + star a * a := by
27
+ noncomm_ring
28
+ _ = 0 := by simp only [ha, hqq]; abel
29
+ exact sub_eq_zero.mp ((CStarRing.star_mul_self_eq_zero_iff _).mp hz)
30
+
31
+ lemma relativeCuntzPair_support (q a b : E) (hqstar : star q = q) (hqq : q * q = q)
32
+ (ha : star a * a = q) (hb : star b * b = q) (hab : star a * b = 0)
33
+ (hsum : a * star a + b * star b = q) :
34
+ q * a = a ∧ a * q = a ∧ q * b = b ∧ b * q = b := by
35
+ have haq := relativeIsometry_mul_support a q ha hqstar hqq
36
+ have hbq := relativeIsometry_mul_support b q hb hqstar hqq
37
+ have hba : star b * a = 0 := by
38
+ simpa only [star_mul, star_star, star_zero] using congrArg star hab
39
+ refine ⟨?_, haq, ?_, hbq⟩
40
+ · rw [← hsum, add_mul, mul_assoc, ha, haq, mul_assoc, hba, mul_zero, add_zero]
41
+ · rw [← hsum, add_mul, mul_assoc, hab, mul_zero, zero_add, mul_assoc, hb, hbq]
42
+
43
+ /-- At stage zero the row is the corner unit. Every successor replaces it
44
+ by `b` followed by the old row multiplied on the left by `a`. -/
45
+ def zeroCornerRow (q a b : E) : (n : ℕ) → Fin (n + 1) → E
46
+ | 0, _ => q
47
+ | n + 1, i => Fin.cases b (fun j => a * zeroCornerRow q a b n j) i
48
+
49
+ lemma zeroCornerRow_support (q a b : E) (hqq : q * q = q)
50
+ (hqa : q * a = a) (hqb : q * b = b) (hbq : b * q = b) :
51
+ ∀ n i, q * zeroCornerRow q a b n i = zeroCornerRow q a b n i ∧
52
+ zeroCornerRow q a b n i * q = zeroCornerRow q a b n i := by
53
+ intro n
54
+ induction n with
55
+ | zero => intro i; exact ⟨hqq, hqq⟩
56
+ | succ n ih =>
57
+ intro i
58
+ refine Fin.cases ?_ (fun j => ?_) i
59
+ · exact ⟨hqb, hbq⟩
60
+ · change q * (a * zeroCornerRow q a b n j) = a * zeroCornerRow q a b n j ∧
61
+ (a * zeroCornerRow q a b n j) * q = a * zeroCornerRow q a b n j
62
+ exact ⟨by rw [← mul_assoc, hqa], by rw [mul_assoc, (ih j).2]⟩
63
+
64
+ lemma zeroCornerRow_gram (q a b : E) (hqstar : star q = q) (hqq : q * q = q)
65
+ (ha : star a * a = q) (hb : star b * b = q) (hab : star a * b = 0)
66
+ (hqa : q * a = a) (hqb : q * b = b) (hbq : b * q = b) :
67
+ ∀ n i j, star (zeroCornerRow q a b n i) * zeroCornerRow q a b n j =
68
+ if i = j then q else 0 := by
69
+ have hba : star b * a = 0 := by
70
+ simpa only [star_mul, star_star, star_zero] using congrArg star hab
71
+ intro n
72
+ induction n with
73
+ | zero =>
74
+ intro i j
75
+ have hij : i = j := by omega
76
+ simp only [zeroCornerRow, hqstar, hqq, hij, ite_true]
77
+ | succ n ih =>
78
+ intro i j
79
+ refine Fin.cases ?_ (fun i => ?_) i
80
+ · refine Fin.cases ?_ (fun j => ?_) j
81
+ · simpa only [zeroCornerRow, Fin.cases_zero, ite_true] using hb
82
+ · simp only [zeroCornerRow, Fin.cases_zero, Fin.cases_succ, (Fin.succ_ne_zero j).symm,
83
+ ite_false, ← mul_assoc, hba, zero_mul]
84
+ · refine Fin.cases ?_ (fun j => ?_) j
85
+ · simp only [zeroCornerRow, Fin.cases_zero, Fin.cases_succ, Fin.succ_ne_zero,
86
+ ite_false, star_mul, mul_assoc, hab, mul_zero]
87
+ · simp only [zeroCornerRow, Fin.cases_succ, star_mul, Fin.succ_inj]
88
+ calc
89
+ _ = star (zeroCornerRow q a b n i) * (star a * a) *
90
+ zeroCornerRow q a b n j := by noncomm_ring
91
+ _ = star (zeroCornerRow q a b n i) * (q * zeroCornerRow q a b n j) := by
92
+ rw [ha, mul_assoc]
93
+ _ = _ := by
94
+ rw [(zeroCornerRow_support q a b hqq hqa hqb hbq n j).1, ih]
95
+
96
+ lemma zeroCornerRow_range_sum (q a b : E) (hqstar : star q = q) (hqq : q * q = q)
97
+ (haq : a * q = a) (hsum : a * star a + b * star b = q) :
98
+ ∀ n, ∑ i, zeroCornerRow q a b n i * star (zeroCornerRow q a b n i) = q := by
99
+ intro n
100
+ induction n with
101
+ | zero =>
102
+ change (∑ _i : Fin 1, q * star q) = q
103
+ rw [Fin.sum_univ_one, hqstar, hqq]
104
+ | succ n ih =>
105
+ rw [Fin.sum_univ_succ]
106
+ simp only [zeroCornerRow, Fin.cases_zero, Fin.cases_succ, star_mul]
107
+ calc
108
+ _ = b * star b + a * (∑ i, zeroCornerRow q a b n i *
109
+ star (zeroCornerRow q a b n i)) * star a := by
110
+ rw [Finset.mul_sum, Finset.sum_mul]
111
+ congr 1
112
+ apply Finset.sum_congr rfl
113
+ intro i _
114
+ noncomm_ring
115
+ _ = q := by rw [ih, haq, add_comm, hsum]
116
+
117
+ lemma zeroCornerRow_norm_le (q a b : E) (hq : ‖q‖ ≤ 1) (ha : ‖a‖ ≤ 1) (hb : ‖b‖ ≤ 1) :
118
+ ∀ n i, ‖zeroCornerRow q a b n i‖ ≤ 1 := by
119
+ intro n
120
+ induction n with
121
+ | zero => intro i; exact hq
122
+ | succ n ih =>
123
+ intro i
124
+ refine Fin.cases hb (fun j => ?_) i
125
+ exact (norm_mul_le _ _).trans (by
126
+ simpa only [one_mul] using mul_le_mul ha (ih j)
127
+ (norm_nonneg (zeroCornerRow q a b n j)) zero_le_one)
128
+
129
+ private lemma row_product_commutator_le (a b x : E)
130
+ (ha : ‖a‖ ≤ 1) (hb : ‖b‖ ≤ 1) :
131
+ ‖(a * b) * x - x * (a * b)‖ ≤ ‖a * x - x * a‖ + ‖b * x - x * b‖ := by
132
+ have he : (a * b) * x - x * (a * b) =
133
+ (a * x - x * a) * b + a * (b * x - x * b) := by noncomm_ring
134
+ rw [he]
135
+ calc
136
+ _ ≤ ‖(a * x - x * a) * b‖ + ‖a * (b * x - x * b)‖ := norm_add_le _ _
137
+ _ ≤ ‖a * x - x * a‖ * ‖b‖ + ‖a‖ * ‖b * x - x * b‖ :=
138
+ add_le_add (norm_mul_le _ _) (norm_mul_le _ _)
139
+ _ ≤ _ := add_le_add
140
+ (by simpa only [mul_one] using mul_le_mul_of_nonneg_left hb (norm_nonneg _))
141
+ (by simpa only [one_mul] using mul_le_mul_of_nonneg_right ha (norm_nonneg _))
142
+
143
+ /-- Each splitting costs at most one extra input commutator. -/
144
+ lemma zeroCornerRow_commutator_bound (q a b x : E) (δ γ : ℝ) (hδ : 0 ≤ δ) (hγ : 0 ≤ γ)
145
+ (hq : ‖q‖ ≤ 1) (ha : ‖a‖ ≤ 1) (hb : ‖b‖ ≤ 1)
146
+ (hqc : ‖q * x - x * q‖ ≤ γ) (hac : ‖a * x - x * a‖ ≤ δ)
147
+ (hbc : ‖b * x - x * b‖ ≤ δ) :
148
+ ∀ n i, ‖zeroCornerRow q a b n i * x - x * zeroCornerRow q a b n i‖ ≤
149
+ (n : ℝ) * δ + γ := by
150
+ intro n
151
+ induction n with
152
+ | zero => intro i; simpa only [zeroCornerRow, Nat.cast_zero, zero_mul, zero_add] using hqc
153
+ | succ n ih =>
154
+ intro i
155
+ refine Fin.cases ?_ (fun j => ?_) i
156
+ · change ‖b * x - x * b‖ ≤ _
157
+ have hn : 0 ≤ (n : ℝ) * δ := mul_nonneg (Nat.cast_nonneg n) hδ
158
+ exact hbc.trans (by rw [Nat.cast_add, Nat.cast_one]; nlinarith)
159
+ · change ‖(a * zeroCornerRow q a b n j) * x - x * (a * zeroCornerRow q a b n j)‖ ≤ _
160
+ have hp := row_product_commutator_le a (zeroCornerRow q a b n j) x ha
161
+ (zeroCornerRow_norm_le q a b hq ha hb n j)
162
+ have hi := ih j
163
+ rw [Nat.cast_add, Nat.cast_one]
164
+ linarith
165
+
166
+ lemma zeroCornerRow_commutes (q a b x : E) (hq : Commute q x)
167
+ (ha : Commute a x) (hb : Commute b x) :
168
+ ∀ n i, Commute (zeroCornerRow q a b n i) x := by
169
+ intro n
170
+ induction n with
171
+ | zero => intro i; exact hq
172
+ | succ n ih =>
173
+ intro i
174
+ exact Fin.cases hb (fun j => ha.mul_left (ih j)) i
175
+
176
+
177
+ private lemma projection_norm_le_one (q : E) (hqstar : star q = q) (hqq : q * q = q) :
178
+ ‖q‖ ≤ 1 := by
179
+ have h : ‖star q * q‖ = ‖q‖ * ‖q‖ := CStarRing.norm_star_mul_self
180
+ rw [hqstar, hqq] at h
181
+ nlinarith [norm_nonneg q]
182
+
183
+ private lemma relativeIsometry_norm_le_one (a q : E) (ha : star a * a = q)
184
+ (hq : ‖q‖ ≤ 1) : ‖a‖ ≤ 1 := by
185
+ have h := congrArg norm ha
186
+ rw [CStarRing.norm_star_mul_self] at h
187
+ nlinarith [norm_nonneg a]
188
+
189
+ private lemma row_star_commutator_norm (a x : E) :
190
+ ‖star a * x - x * star a‖ = ‖a * star x - star x * a‖ := by
191
+ rw [← norm_star (a * star x - star x * a)]
192
+ simp only [star_sub, star_mul, star_star]
193
+ exact norm_sub_rev _ _
194
+
195
+ private lemma pair_projection_commutator_le (q a b x : E) (δ : ℝ)
196
+ (hsum : a * star a + b * star b = q) (ha : ‖a‖ ≤ 1) (hb : ‖b‖ ≤ 1)
197
+ (hac : ‖a * x - x * a‖ ≤ δ) (hasc : ‖star a * x - x * star a‖ ≤ δ)
198
+ (hbc : ‖b * x - x * b‖ ≤ δ) (hbsc : ‖star b * x - x * star b‖ ≤ δ) :
199
+ ‖q * x - x * q‖ ≤ 4 * δ := by
200
+ have he : q * x - x * q =
201
+ ((a * star a) * x - x * (a * star a)) +
202
+ ((b * star b) * x - x * (b * star b)) := by rw [← hsum]; noncomm_ring
203
+ rw [he]
204
+ have h₁ := row_product_commutator_le a (star a) x ha (by simpa only [norm_star] using ha)
205
+ have h₂ := row_product_commutator_le b (star b) x hb (by simpa only [norm_star] using hb)
206
+ exact (norm_add_le _ _).trans (by linarith)
207
+
208
+ /-- Every finite size occurs in a nonzero approximately central corner.
209
+ Choosing `m = 2*k+1` gives an even row of size `2*k+2`. -/
210
+ lemma exists_approximately_central_finite_corner_row [Nontrivial E]
211
+ (s t : ℕ → E)
212
+ (hs : ∀ i j, star (s i) * s j = if i = j then 1 else 0)
213
+ (hc : ∀ i j, Commute (s i) (t j) ∧ Commute (s i) (star (t j)))
214
+ (n m : ℕ) (δ : ℝ) (hδ : 0 < δ) :
215
+ ∃ (q : E) (v : Fin (m + 1) → E),
216
+ q ≠ 0 ∧ star q = q ∧ q * q = q ∧
217
+ (∀ i j, star (v i) * v j = if i = j then q else 0) ∧
218
+ (∑ i, v i * star (v i)) = q ∧
219
+ (∀ i, q * v i = v i ∧ v i * q = v i) ∧
220
+ (∀ i k, k < n → ‖v i * s k - s k * v i‖ < δ ∧
221
+ ‖v i * star (s k) - star (s k) * v i‖ < δ) ∧
222
+ ∀ i k, Commute (v i) (t k) ∧ Commute (v i) (star (t k)) := by
223
+ let η := δ / ((m : ℝ) + 5)
224
+ have hη : 0 < η := by dsimp only [η]; positivity
225
+ obtain ⟨q, a, b, hqne, hqstar, hqq, haa, hbb, hab, hsum, hcomm, hother⟩ :=
226
+ exists_approximately_central_zero_corner_pair s t hs hc n η hη
227
+ obtain ⟨hqa, haq, hqb, hbq⟩ := relativeCuntzPair_support q a b hqstar hqq haa hbb hab hsum
228
+ have hqn := projection_norm_le_one q hqstar hqq
229
+ have han := relativeIsometry_norm_le_one a q haa hqn
230
+ have hbn := relativeIsometry_norm_le_one b q hbb hqn
231
+ refine ⟨q, zeroCornerRow q a b m, hqne, hqstar, hqq,
232
+ zeroCornerRow_gram q a b hqstar hqq haa hbb hab hqa hqb hbq m,
233
+ zeroCornerRow_range_sum q a b hqstar hqq haq hsum m,
234
+ zeroCornerRow_support q a b hqq hqa hqb hbq m, ?_, ?_⟩
235
+ · intro i k hk
236
+ have h := hcomm k hk
237
+ have hasc : ‖star a * s k - s k * star a‖ ≤ η := by
238
+ rw [row_star_commutator_norm]
239
+ exact h.2.2.1.le
240
+ have hbsc : ‖star b * s k - s k * star b‖ ≤ η := by
241
+ rw [row_star_commutator_norm]
242
+ exact h.2.2.2.le
243
+ have hascs : ‖star a * star (s k) - star (s k) * star a‖ ≤ η := by
244
+ rw [row_star_commutator_norm, star_star]
245
+ exact h.1.le
246
+ have hbscs : ‖star b * star (s k) - star (s k) * star b‖ ≤ η := by
247
+ rw [row_star_commutator_norm, star_star]
248
+ exact h.2.1.le
249
+ have hqc := pair_projection_commutator_le q a b (s k) η hsum han hbn
250
+ h.1.le hasc h.2.1.le hbsc
251
+ have hqcs := pair_projection_commutator_le q a b (star (s k)) η hsum han hbn
252
+ h.2.2.1.le hascs h.2.2.2.le hbscs
253
+ have h₁ := zeroCornerRow_commutator_bound q a b (s k) η (4 * η) hη.le
254
+ (by positivity) hqn han hbn hqc h.1.le h.2.1.le m i
255
+ have h₂ := zeroCornerRow_commutator_bound q a b (star (s k)) η (4 * η) hη.le
256
+ (by positivity) hqn han hbn hqcs h.2.2.1.le h.2.2.2.le m i
257
+ have hsmall : (m : ℝ) * η + 4 * η < δ := by
258
+ have hmul : η * ((m : ℝ) + 5) = δ := by
259
+ dsimp only [η]
260
+ exact div_mul_cancel₀ δ (by positivity)
261
+ nlinarith
262
+ exact ⟨h₁.trans_lt hsmall, h₂.trans_lt hsmall⟩
263
+ · intro i k
264
+ have h := hother k
265
+ have has : Commute (star a) (t k) := h.2.2.1.star_left
266
+ have hbs : Commute (star b) (t k) := h.2.2.2.star_left
267
+ have hqc : Commute q (t k) := by
268
+ rw [← hsum]
269
+ exact (h.1.mul_left has).add_left (h.2.1.mul_left hbs)
270
+ have hqcs : Commute q (star (t k)) := by
271
+ rw [← hsum]
272
+ exact (h.2.2.1.mul_left h.1.star_star).add_left (h.2.2.2.mul_left h.2.1.star_star)
273
+ exact ⟨zeroCornerRow_commutes q a b (t k) hqc h.1 h.2.1 m i,
274
+ zeroCornerRow_commutes q a b (star (t k)) hqcs h.2.2.1 h.2.2.2 m i⟩
275
+
276
+ end WeakPureInfiniteness
277
+
278
+ end
279
+
280
+ end OAI
lean/OAI/Analysis/OInfinity/ZeroUnitBuffer.lean ADDED
@@ -0,0 +1,194 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Analysis.OInfinity.NegativeGlobal
2
+ import OAI.Analysis.OInfinity.CentralBuffer
3
+
4
+ namespace OAI
5
+
6
+ /-! # Shrinking zero-unit rows against the actual third buffer
7
+
8
+ The initial corner, its complementary isometry and the isometry inside it
9
+ remain explicit. These are the data supplied by the finite vacuum split;
10
+ no equivalence of arbitrary projections is assumed.
11
+ -/
12
+
13
+ noncomputable section
14
+ open scoped CStarAlgebra
15
+
16
+ namespace WeakPureInfiniteness
17
+
18
+ variable {E : Type*} [CStarAlgebra E]
19
+
20
+ /-- A full binary row in any supported corner can be shrunk against an
21
+ orthogonal commuting buffer row, with no change in its finite-word error. -/
22
+ lemma exists_commuting_binary_corner_shrink
23
+ (q : E) (hq : star q = q) (hqq : q * q = q) (hq0 : q ≠ 0)
24
+ (a r : Fin 2 → E)
25
+ (ha : ∀ i j, star (a i) * a j = if i = j then q else 0)
26
+ (has : (∑ i, a i * star (a i)) = q)
27
+ (hr : ∀ i j, star (r i) * r j = if i = j then 1 else 0)
28
+ (har : bergRowsCommute a r)
29
+ (hqr : ∀ j, Commute q (r j))
30
+ (m : ℕ) (ε : ℝ) (hε : 0 < ε) :
31
+ ∃ c : E, q * c = c ∧ c * q = c ∧ star c * c = q ∧
32
+ c * star c = q * (1 - r 0 * star (r 0)) ∧
33
+ ∀ i ≤ m, ‖c * (a 0 ^ i * a 1) * star c -
34
+ (a 0 ^ i * a 1) * (1 - r 0 * star (r 0))‖ < ε := by
35
+ let R : Fin 2 → E := fun i => r i * q
36
+ have hasp (i : Fin 2) : q * a i = a i ∧ a i * q = a i :=
37
+ ⟨finiteRow_left_support q a hq hqq ha has i,
38
+ finiteRow_right_support q a hq hqq ha i⟩
39
+ have hRsp (i : Fin 2) : q * R i = R i ∧ R i * q = R i := by
40
+ constructor
41
+ · change q * (r i * q) = r i * q
42
+ rw [← mul_assoc, (hqr i).eq, mul_assoc, hqq]
43
+ · change (r i * q) * q = r i * q
44
+ rw [mul_assoc, hqq]
45
+ have hR (i j : Fin 2) : star (R i) * R j = if i = j then q else 0 := by
46
+ change star (r i * q) * (r j * q) = _
47
+ rw [star_mul, hq]
48
+ calc
49
+ _ = q * (star (r i) * r j) * q := by noncomm_ring
50
+ _ = _ := by rw [hr]; split_ifs <;> simp only [mul_one, mul_zero, zero_mul, hqq]
51
+ have haR : bergRowsCommute a R := by
52
+ intro i j
53
+ have haq : Commute (a i) q := (hasp i).2.trans (hasp i).1.symm
54
+ constructor
55
+ · exact (har i j).1.mul_right haq
56
+ · change Commute (a i) (star (r j * q))
57
+ rw [star_mul, hq]
58
+ exact haq.mul_right (har i j).2
59
+ have hfinal : q - R 0 * star (R 0) = q * (1 - r 0 * star (r 0)) := by
60
+ change q - (r 0 * q) * star (r 0 * q) = _
61
+ rw [star_mul, hq]
62
+ have he : (r 0 * q) * (q * star (r 0)) = q * (r 0 * star (r 0)) := by
63
+ calc
64
+ _ = r 0 * (q * q) * star (r 0) := by noncomm_ring
65
+ _ = _ := by rw [hqq, ← (hqr 0).eq]; noncomm_ring
66
+ rw [he]
67
+ noncomm_ring
68
+ obtain ⟨c, hcl, hcr, hcg, hcc, he⟩ := exists_relative_binary_encoded_shrink
69
+ q hq hqq hq0 R a hRsp hasp hR ha has haR m ε hε
70
+ refine ⟨c, hcl, hcr, hcg, hcc.trans hfinal, fun i hi => ?_⟩
71
+ have hxq : (a 0 ^ i * a 1) * q = a 0 ^ i * a 1 := by
72
+ rw [mul_assoc, (hasp 1).2]
73
+ have hh := he i hi
74
+ have hsimp : (a 0 ^ i * a 1) * (q * (1 - r 0 * star (r 0))) =
75
+ (a 0 ^ i * a 1) * (1 - r 0 * star (r 0)) := by
76
+ rw [← mul_assoc, hxq]
77
+ rw [hfinal, hsimp] at hh
78
+ exact hh
79
+
80
+ /-- Every element of the buffer's closed row algebra inherits its exact
81
+ commutation with the supplied finite construction data. -/
82
+ lemma closedCanonicalRowAlgebra_commutes_element
83
+ (r : ℕ → E) (x : E)
84
+ (hx : ∀ i, Commute (r i) x ∧ Commute (star (r i)) x)
85
+ (b : closedCanonicalRowAlgebra r) : Commute (b : E) x := by
86
+ have hxc : x ∈ StarSubalgebra.centralizer ℂ (Set.range r) := by
87
+ apply (StarSubalgebra.mem_centralizer_iff ℂ).mpr
88
+ rintro _ ⟨i, rfl⟩
89
+ exact ⟨(hx i).1.eq, (hx i).2.eq⟩
90
+ have hbc : (b : E) ∈ StarSubalgebra.centralizer ℂ
91
+ (StarSubalgebra.centralizer ℂ (Set.range r) : Set E) :=
92
+ StarSubalgebra.topologicalClosure_adjoin_le_centralizer_centralizer ℂ (Set.range r) b.property
93
+ exact (((StarSubalgebra.mem_centralizer_iff ℂ).mp hbc) x hxc).1.symm
94
+
95
+ /-- The explicit complement isometry and an isometry inside `q` give the
96
+ reverse shrink. The initial corner is `p`; the final corner is exactly `pq`.
97
+ No equivalence of an unspecified complementary projection is required. -/
98
+ lemma exists_complementary_binary_corner_shrink
99
+ (p q w z : E)
100
+ (hp : star p = p) (hpp : p * p = p) (hp0 : p ≠ 0)
101
+ (hw : star w * w = 1) (hww : w * star w = 1 - q)
102
+ (hz : star z * z = 1) (hqz : q * z = z)
103
+ (hpw : Commute p w) (hpz : Commute p z)
104
+ (b : Fin 2 → E)
105
+ (hb : ∀ i j, star (b i) * b j = if i = j then p else 0)
106
+ (hbs : (∑ i, b i * star (b i)) = p)
107
+ (hbw : ∀ i, Commute (b i) w ∧ Commute (b i) (star w))
108
+ (hbz : ∀ i, Commute (b i) z ∧ Commute (b i) (star z))
109
+ (m : ℕ) (ε : ℝ) (hε : 0 < ε) :
110
+ ∃ d : E, p * d = d ∧ d * p = d ∧ star d * d = p ∧
111
+ d * star d = p * q ∧
112
+ ∀ i ≤ m, ‖d * (b 0 ^ i * b 1) * star d - (b 0 ^ i * b 1) * q‖ < ε := by
113
+ let v : Fin 2 → E := ![w, z]
114
+ have hwz : star w * z = 0 := by
115
+ have hwq : star w * q = 0 := by
116
+ calc
117
+ _ = star w * (1 - w * star w) := by rw [hww]; noncomm_ring
118
+ _ = 0 := by rw [mul_sub, mul_one, ← mul_assoc, hw, one_mul, sub_self]
119
+ calc
120
+ _ = star w * (q * z) := by rw [hqz]
121
+ _ = 0 := by rw [← mul_assoc, hwq, zero_mul]
122
+ have hzw : star z * w = 0 := by
123
+ simpa only [star_mul, star_star, star_zero] using congrArg star hwz
124
+ have hv : ∀ i j, star (v i) * v j = if i = j then 1 else 0 := by
125
+ intro i j
126
+ fin_cases i <;> fin_cases j <;> simp [v, hw, hz, hwz, hzw]
127
+ have hbv : bergRowsCommute b v := by
128
+ intro i j
129
+ fin_cases j
130
+ · exact hbw i
131
+ · exact hbz i
132
+ have hpv (i : Fin 2) : Commute p (v i) := by
133
+ fin_cases i
134
+ · exact hpw
135
+ · exact hpz
136
+ obtain ⟨d, hdl, hdr, hdg, hdf, he⟩ :=
137
+ exists_commuting_binary_corner_shrink p hp hpp hp0 b v hb hbs hv hbv hpv m ε hε
138
+ have hfinal : 1 - v 0 * star (v 0) = q := by
139
+ change 1 - w * star w = q
140
+ rw [hww]
141
+ noncomm_ring
142
+ refine ⟨d, hdl, hdr, hdg, ?_, fun i hi => ?_⟩
143
+ · exact hdf.trans (congrArg (fun x : E => p * x) hfinal)
144
+ · simpa only [hfinal] using he i hi
145
+
146
+ /-- A third canonical row supplies its finite binary encoding inside the
147
+ closed buffer algebra. Consequently all supplied construction data commute
148
+ with the encoding, including their adjoints. -/
149
+ lemma exists_buffer_binary_encoding [Nontrivial E]
150
+ (r : ℕ → E)
151
+ (hr : ∀ i j, star (r i) * r j = if i = j then 1 else 0)
152
+ (m : ℕ) :
153
+ ∃ b : Fin 2 → closedCanonicalRowAlgebra r,
154
+ (∀ i j, star (b i : E) * (b j : E) =
155
+ if i = j then canonicalTailProjection r 1 else 0) ∧
156
+ (∑ i, (b i : E) * star (b i : E)) = canonicalTailProjection r 1 ∧
157
+ ∀ i ≤ m, (b 0 : E) ^ i * (b 1 : E) = canonicalNegativeRow r i := by
158
+ let C := closedCanonicalRowAlgebra r
159
+ let R : ℕ → C := fun i => ⟨r i, mem_closedCanonicalRowAlgebra r i⟩
160
+ have hR (i j : ℕ) : star (R i) * R j = if i = j then 1 else 0 := by
161
+ by_cases hij : i = j
162
+ · rw [ite_eq_left hij]
163
+ apply Subtype.ext
164
+ change star (r i) * r j = 1
165
+ simpa only [ite_eq_left hij] using hr i j
166
+ · rw [ite_eq_right hij]
167
+ apply Subtype.ext
168
+ change star (r i) * r j = 0
169
+ simpa only [ite_eq_right hij] using hr i j
170
+ obtain ⟨b0, b1, h0, h1, h01, hsum, he⟩ :=
171
+ exists_canonicalNegative_binary_encoding R hR m
172
+ let b : Fin 2 → C := ![b0, b1]
173
+ have h10 : star b1 * b0 = 0 := by
174
+ simpa only [star_mul, star_star, star_zero] using congrArg star h01
175
+ have hb (i j : Fin 2) : star (b i) * b j =
176
+ if i = j then canonicalTailProjection R 1 else 0 := by
177
+ fin_cases i <;> fin_cases j <;> simp [b, h0, h1, h01, h10]
178
+ refine ⟨b, fun i j => ?_, ?_, fun i hi => ?_⟩
179
+ · have h := congrArg C.subtype (hb i j)
180
+ simpa only [map_mul, map_star, apply_ite, map_zero,
181
+ StarSubalgebra.subtype_apply, canonicalTailProjection_coe] using h
182
+ · have h := congrArg C.subtype hsum
183
+ simpa only [Fin.sum_univ_two, b, Matrix.cons_val_zero, Matrix.cons_val_one,
184
+ map_add, map_mul, map_star, StarSubalgebra.subtype_apply,
185
+ canonicalTailProjection_coe] using h
186
+ · have h := congrArg C.subtype (he i hi)
187
+ simpa only [map_mul, map_pow, StarSubalgebra.subtype_apply,
188
+ canonicalNegativeRow_coe, b, Matrix.cons_val_zero, Matrix.cons_val_one] using h
189
+
190
+ end WeakPureInfiniteness
191
+
192
+ end
193
+
194
+ end OAI
lean/OAI/Analysis/OInfinity/ZeroUnitComparison.lean ADDED
@@ -0,0 +1,331 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Analysis.OInfinity.ZeroUnitBuffer
2
+
3
+ namespace OAI
4
+
5
+ /-! # Zero-unit finite comparison with a concrete central buffer
6
+
7
+ The two complementary isometries remain supplied as actual elements. The
8
+ common-corner restriction uses only the closed algebra of the buffer and
9
+ its commutant, so no arbitrary-map uniqueness theorem is invoked.
10
+ -/
11
+
12
+ noncomputable section
13
+ open scoped CStarAlgebra
14
+
15
+ namespace WeakPureInfiniteness
16
+
17
+ variable {E : Type*} [CStarAlgebra E]
18
+
19
+ /-- Elements in the closed buffer algebra commute with its full star
20
+ commutant, not just with individual row generators. -/
21
+ lemma bufferAlgebra_commutes_commutant (r : ℕ → E)
22
+ (x : StarSubalgebra.centralizer ℂ (Set.range r))
23
+ (y : closedCanonicalRowAlgebra r) : Commute (x : E) (y : E) := by
24
+ have hy : (y : E) ∈ StarSubalgebra.centralizer ℂ
25
+ (StarSubalgebra.centralizer ℂ (Set.range r) : Set E) :=
26
+ StarSubalgebra.topologicalClosure_adjoin_le_centralizer_centralizer ℂ (Set.range r) y.property
27
+ exact (((StarSubalgebra.mem_centralizer_iff ℂ).mp hy) x x.property).1
28
+
29
+ /-- Restrict a full binary row in the buffer commutant and its finite
30
+ buffer encoding to their actual common unit, then compare them there. -/
31
+ lemma exists_buffer_common_binary_comparison
32
+ (r : ℕ → E)
33
+ (q : StarSubalgebra.centralizer ℂ (Set.range r))
34
+ (p : closedCanonicalRowAlgebra r)
35
+ (hq : star q = q) (hqq : q * q = q)
36
+ (hp : star p = p) (hpp : p * p = p)
37
+ (hqp0 : (q : E) * (p : E) ≠ 0)
38
+ (a : Fin 2 → StarSubalgebra.centralizer ℂ (Set.range r))
39
+ (b : Fin 2 → closedCanonicalRowAlgebra r)
40
+ (ha : ∀ i j, star (a i) * a j = if i = j then q else 0)
41
+ (hb : ∀ i j, star (b i) * b j = if i = j then p else 0)
42
+ (has : (∑ i, a i * star (a i)) = q)
43
+ (hbs : (∑ i, b i * star (b i)) = p)
44
+ (m : ℕ) (ε : ℝ) (hε : 0 < ε) :
45
+ ∃ u : unitary E, Joined (1 : unitary E) u ∧
46
+ (u : E) * (1 - (q : E) * (p : E)) = 1 - (q : E) * (p : E) ∧
47
+ (1 - (q : E) * (p : E)) * (u : E) = 1 - (q : E) * (p : E) ∧
48
+ ∀ i ≤ m, ‖(u : E) * (((a 0 : E) ^ i * (a 1 : E)) * (p : E)) *
49
+ star (u : E) - ((b 0 : E) ^ i * (b 1 : E)) * (q : E)‖ < ε := by
50
+ let C := StarSubalgebra.centralizer ℂ (Set.range r)
51
+ let D := closedCanonicalRowAlgebra r
52
+ let : IsClosed (C : Set E) := Set.isClosed_centralizer _
53
+ have hc (x : C) (y : D) : Commute (x : E) (y : E) :=
54
+ bufferAlgebra_commutes_commutant r x y
55
+ let f := commutingProjectionRestriction C (p : E)
56
+ (congrArg D.subtype hp) (congrArg D.subtype hpp) (fun x => hc x p)
57
+ let g := commutingProjectionRestriction D (q : E)
58
+ (congrArg C.subtype hq) (congrArg C.subtype hqq) (fun y => (hc q y).symm)
59
+ have hrestr := restrict_commuting_binary_rows C D hc q p hq hqq hp hpp a b ha hb has hbs
60
+ change (∀ i j, star (f (a i)) * f (a j) = if i = j then (q : E) * (p : E) else 0) ∧
61
+ (∀ i j, star (g (b i)) * g (b j) = if i = j then (q : E) * (p : E) else 0) ∧
62
+ (∑ i, f (a i) * star (f (a i))) = (q : E) * (p : E) ∧
63
+ (∑ i, g (b i) * star (g (b i))) = (q : E) * (p : E) ∧
64
+ bergRowsCommute (fun i => f (a i)) (fun i => g (b i)) at hrestr
65
+ have hqp : Commute (q : E) (p : E) := hc q p
66
+ have hqs : star (q : E) = (q : E) := congrArg C.subtype hq
67
+ have hps : star (p : E) = (p : E) := congrArg D.subtype hp
68
+ have hq2 : (q : E) * (q : E) = (q : E) := congrArg C.subtype hqq
69
+ have hp2 : (p : E) * (p : E) = (p : E) := congrArg D.subtype hpp
70
+ have hstar : star ((q : E) * (p : E)) = (q : E) * (p : E) := by
71
+ rw [star_mul, hqs, hps, hqp.eq]
72
+ have hsq : ((q : E) * (p : E)) * ((q : E) * (p : E)) = (q : E) * (p : E) := by
73
+ calc
74
+ _ = (q : E) * ((p : E) * (q : E)) * (p : E) := by noncomm_ring
75
+ _ = _ := by rw [← hqp.eq, ← mul_assoc, hq2, mul_assoc, hp2]
76
+ obtain ⟨u, hu, hur, hul, he⟩ := exists_relative_binary_power_conjugacy
77
+ ((q : E) * (p : E)) hstar hsq hqp0
78
+ (fun i => f (a i)) (fun i => g (b i))
79
+ hrestr.1 hrestr.2.1 hrestr.2.2.1 hrestr.2.2.2.1 hrestr.2.2.2.2 m ε hε
80
+ refine ⟨u, hu, hur, hul, fun i hi => ?_⟩
81
+ have haev : f (a 0) ^ i * f (a 1) = ((a 0 : E) ^ i * (a 1 : E)) * (p : E) := by
82
+ rw [← nonunital_map_pow_mul]
83
+ change ((a 0 ^ i * a 1 : C) : E) * (p : E) = _
84
+ rfl
85
+ have hbev : g (b 0) ^ i * g (b 1) = ((b 0 : E) ^ i * (b 1 : E)) * (q : E) := by
86
+ rw [← nonunital_map_pow_mul]
87
+ change ((b 0 ^ i * b 1 : D) : E) * (q : E) = _
88
+ rfl
89
+ simpa only [haev, hbev] using he i hi
90
+
91
+ /-- Compare the finite encoding of a zero-unit row with the actual negative
92
+ buffer row. Both a complement isometry and an isometry inside the initial
93
+ corner are retained as concrete data. The resulting ambient unitary is
94
+ connected to one; this does not compare the original unsplit generators. -/
95
+ lemma exists_zeroUnit_buffer_comparison_with_unit [Nontrivial E]
96
+ (r : ℕ → E)
97
+ (hr : ∀ i j, star (r i) * r j = if i = j then 1 else 0)
98
+ (q w z : StarSubalgebra.centralizer ℂ (Set.range r))
99
+ (hq : star q = q) (hqq : q * q = q) (hq0 : q ��� 0)
100
+ (hw : star w * w = 1) (hww : w * star w = 1 - q)
101
+ (hz : star z * z = 1) (hqz : q * z = z)
102
+ (a : Fin 2 → StarSubalgebra.centralizer ℂ (Set.range r))
103
+ (ha : ∀ i j, star (a i) * a j = if i = j then q else 0)
104
+ (has : (∑ i, a i * star (a i)) = q)
105
+ (m : ℕ) (ε : ℝ) (hε : 0 < ε) :
106
+ ∃ u : unitary E, Joined (1 : unitary E) u ∧
107
+ (u : E) * (q : E) * star (u : E) = canonicalTailProjection r 1 ∧
108
+ ∀ i ≤ m, ‖(u : E) * ((a 0 : E) ^ i * (a 1 : E)) * star (u : E) -
109
+ canonicalNegativeRow r i‖ < ε := by
110
+ let C := StarSubalgebra.centralizer ℂ (Set.range r)
111
+ let D := closedCanonicalRowAlgebra r
112
+ let : IsClosed (C : Set E) := Set.isClosed_centralizer _
113
+ let R : ℕ → D := fun i => ⟨r i, mem_closedCanonicalRowAlgebra r i⟩
114
+ have hR (i j : ℕ) : star (R i) * R j = if i = j then 1 else 0 := by
115
+ by_cases hij : i = j
116
+ · rw [ite_eq_left hij]
117
+ apply Subtype.ext
118
+ change star (r i) * r j = 1
119
+ simpa only [ite_eq_left hij] using hr i j
120
+ · rw [ite_eq_right hij]
121
+ apply Subtype.ext
122
+ change star (r i) * r j = 0
123
+ simpa only [ite_eq_right hij] using hr i j
124
+ let p := canonicalTailProjection R 1
125
+ let P := canonicalTailProjection r 1
126
+ have hpc : (p : E) = P := canonicalTailProjection_coe D R 1
127
+ have hp : star p = p := canonicalTailProjection_star R 1
128
+ have hpp : p * p = p := canonicalTailProjection_idempotent R hR 1
129
+ have hP : star P = P := canonicalTailProjection_star r 1
130
+ have hPP : P * P = P := canonicalTailProjection_idempotent r hr 1
131
+ have hP0 : P ≠ 0 := canonicalTailProjection_ne_zero r hr 1
132
+ have hPdef : P = 1 - r 0 * star (r 0) := by
133
+ dsimp only [P]
134
+ rw [show (1 : ℕ) = 0 + 1 by rfl, canonicalTailProjection_succ, canonicalTailProjection_zero]
135
+ have hqE : star (q : E) = (q : E) := congrArg C.subtype hq
136
+ have hqqE : (q : E) * (q : E) = (q : E) := congrArg C.subtype hqq
137
+ have hq0E : (q : E) ≠ 0 := fun h => hq0 (Subtype.ext h)
138
+ have hwE : star (w : E) * (w : E) = 1 := congrArg C.subtype hw
139
+ have hwwE : (w : E) * star (w : E) = 1 - (q : E) := congrArg C.subtype hww
140
+ have hzE : star (z : E) * (z : E) = 1 := congrArg C.subtype hz
141
+ have hqzE : (q : E) * (z : E) = (z : E) := congrArg C.subtype hqz
142
+ have hcomm (x : C) (y : D) : Commute (x : E) (y : E) :=
143
+ bufferAlgebra_commutes_commutant r x y
144
+ have hxrow (x : C) (j : ℕ) : Commute (x : E) (r j) ∧ Commute (x : E) (star (r j)) := by
145
+ have h := (StarSubalgebra.mem_centralizer_iff ℂ).mp x.property (r j) ⟨j, rfl⟩
146
+ exact ⟨h.1.symm, h.2.symm⟩
147
+ have hqP : Commute (q : E) P := by simpa only [hpc] using hcomm q p
148
+ have hzP : Commute (z : E) P := by simpa only [hpc] using hcomm z p
149
+ have hPw : Commute P (w : E) := by simpa only [hpc] using (hcomm w p).symm
150
+ have hPz : Commute P (z : E) := hzP.symm
151
+ have hqP0 : (q : E) * P ≠ 0 := by
152
+ let v := (z : E) * r 1
153
+ have hv : star v * v = 1 := by
154
+ dsimp only [v]
155
+ rw [star_mul]
156
+ calc
157
+ _ = star (r 1) * (star (z : E) * (z : E)) * r 1 := by noncomm_ring
158
+ _ = 1 := by rw [hzE, mul_one]; simpa only [ite_true] using hr 1 1
159
+ have hPr : P * r 1 = r 1 := by
160
+ simpa only [Nat.lt_irrefl, ite_false] using canonicalTailProjection_mul_generator r hr 1 1
161
+ have hs : ((q : E) * P) * v = v := by
162
+ dsimp only [v]
163
+ calc
164
+ _ = (q : E) * (P * (z : E)) * r 1 := by noncomm_ring
165
+ _ = ((q : E) * (z : E)) * (P * r 1) := by rw [← hzP.eq]; noncomm_ring
166
+ _ = _ := by rw [hqzE, hPr]
167
+ intro hzero
168
+ have hv0 : v = 0 := by simpa only [hzero, zero_mul] using hs.symm
169
+ have h10 : (1 : E) = 0 := by simpa only [hv0, star_zero, zero_mul] using hv.symm
170
+ exact one_ne_zero h10
171
+ obtain ⟨b0, b1, hb0, hb1, hb01, hbs, hbe⟩ :=
172
+ exists_canonicalNegative_binary_encoding R hR m
173
+ let b : Fin 2 → D := ![b0, b1]
174
+ have hb10 : star b1 * b0 = 0 := by
175
+ simpa only [star_mul, star_star, star_zero] using congrArg star hb01
176
+ have hb (i j : Fin 2) : star (b i) * b j = if i = j then p else 0 := by
177
+ fin_cases i <;> fin_cases j <;> simp [b, p, hb0, hb1, hb01, hb10]
178
+ have hbs' : (∑ i, b i * star (b i)) = p := by
179
+ simpa only [Fin.sum_univ_two, b, Matrix.cons_val_zero, Matrix.cons_val_one] using hbs
180
+ let A : Fin 2 → E := fun i => a i
181
+ let B : Fin 2 → E := fun i => b i
182
+ have haE (i j : Fin 2) : star (A i) * A j = if i = j then (q : E) else 0 := by
183
+ have h := congrArg C.subtype (ha i j)
184
+ simpa only [map_mul, map_star, apply_ite, map_zero, StarSubalgebra.subtype_apply] using h
185
+ have hasE : (∑ i, A i * star (A i)) = (q : E) := by
186
+ have h := congrArg C.subtype has
187
+ simpa only [map_sum, map_mul, map_star, StarSubalgebra.subtype_apply] using h
188
+ have hbE (i j : Fin 2) : star (B i) * B j = if i = j then P else 0 := by
189
+ have h := congrArg D.subtype (hb i j)
190
+ simpa only [map_mul, map_star, apply_ite, map_zero, StarSubalgebra.subtype_apply, hpc] using h
191
+ have hbsE : (∑ i, B i * star (B i)) = P := by
192
+ have h := congrArg D.subtype hbs'
193
+ simpa only [map_sum, map_mul, map_star, StarSubalgebra.subtype_apply, hpc] using h
194
+ let δ := ε / 3
195
+ have hδ : 0 < δ := by dsimp only [δ]; positivity
196
+ obtain ⟨c, _hcL, hcq, hcg, hcc, hec⟩ := exists_commuting_binary_corner_shrink
197
+ (q : E) hqE hqqE hq0E A (fun i : Fin 2 => r i) haE hasE
198
+ (fun i j => by simpa only [Fin.ext_iff] using hr i j)
199
+ (fun i j => hxrow (a i) j) (fun j => (hxrow q j).1) m δ hδ
200
+ simp only [Fin.val_zero] at hcc hec
201
+ rw [← hPdef] at hcc
202
+ have hbw (i : Fin 2) : Commute (B i) (w : E) ∧ Commute (B i) (star (w : E)) :=
203
+ ⟨(hcomm w (b i)).symm, (hcomm (star w) (b i)).symm⟩
204
+ have hbz (i : Fin 2) : Commute (B i) (z : E) ∧ Commute (B i) (star (z : E)) :=
205
+ ⟨(hcomm z (b i)).symm, (hcomm (star z) (b i)).symm⟩
206
+ obtain ⟨d, _hdL, hdp, hdg, hdd, hed⟩ := exists_complementary_binary_corner_shrink
207
+ P (q : E) (w : E) (z : E) hP hPP hP0 hwE hwwE hzE hqzE hPw hPz
208
+ B hbE hbsE hbw hbz m δ hδ
209
+ have hdd' : d * star d = (q : E) * P := hdd.trans hqP.eq.symm
210
+ have hqpc : (q : E) * (p : E) ≠ 0 := by simpa only [hpc] using hqP0
211
+ obtain ⟨v, _hv, hvr, hvl, hev⟩ := exists_buffer_common_binary_comparison
212
+ r q p hq hqq hp hpp hqpc a b ha hb has hbs' m δ hδ
213
+ have hvR : Commute (v : E) ((q : E) * P) := by
214
+ have h := hvr.trans hvl.symm
215
+ rw [mul_sub, sub_mul, mul_one, one_mul] at h
216
+ change (v : E) * ((q : E) * P) = ((q : E) * P) * (v : E)
217
+ simpa only [hpc] using sub_right_inj.mp h
218
+ let W := star d * (v : E) * c
219
+ obtain ⟨hWq, hWP, hWright⟩ := commonCornerTransfer_products
220
+ (q : E) P ((q : E) * P) c d v hcg hcc hcq hdg hdd' hdp hvR
221
+ have hdn : ‖d‖ ≤ 1 := by
222
+ have hn := congrArg norm hdg
223
+ rw [CStarRing.norm_star_mul_self] at hn
224
+ have hPn : ‖P‖ ≤ 1 := IsStarProjection.norm_le P (isStarProjection_iff'.mpr ⟨hPP, hP⟩)
225
+ nlinarith [norm_nonneg d]
226
+ have hclose (i : ℕ) (hi : i ≤ m) :
227
+ ‖W * (A 0 ^ i * A 1) * star W - (B 0 ^ i * B 1)‖ < ε := by
228
+ have hbl : P * (B 0 ^ i * B 1) = B 0 ^ i * B 1 := by
229
+ have hs0 := finiteRow_left_support P B hP hPP hbE hbsE 0
230
+ have hs1 := finiteRow_left_support P B hP hPP hbE hbsE 1
231
+ cases i with
232
+ | zero => simpa only [pow_zero, one_mul] using hs1
233
+ | succ i =>
234
+ calc
235
+ _ = (P * B 0) * (B 0 ^ i * B 1) := by rw [pow_succ']; noncomm_ring
236
+ _ = _ := by rw [hs0, pow_succ']; noncomm_ring
237
+ have hbr : (B 0 ^ i * B 1) * P = B 0 ^ i * B 1 := by
238
+ rw [mul_assoc, finiteRow_right_support P B hP hPP hbE 1]
239
+ have hvclose := hev i hi
240
+ rw [hpc] at hvclose
241
+ have hcclose := hec i hi
242
+ rw [← hPdef] at hcclose
243
+ have he := commonCornerTransfer_error P c d (A 0 ^ i * A 1) (B 0 ^ i * B 1)
244
+ ((A 0 ^ i * A 1) * P) ((B 0 ^ i * B 1) * (q : E)) v hdg hbl hbr hdn δ
245
+ hcclose (hed i hi) hvclose
246
+ exact he.trans_eq (by dsimp only [δ]; ring)
247
+ let spare := (w : E) * r 0
248
+ have hsGram : star spare * spare = 1 := by
249
+ dsimp only [spare]
250
+ rw [star_mul]
251
+ calc
252
+ _ = star (r 0) * (star (w : E) * (w : E)) * r 0 := by noncomm_ring
253
+ _ = 1 := by rw [hwE, mul_one]; simpa only [ite_true] using hr 0 0
254
+ have hqw : (q : E) * (w : E) = 0 := by
255
+ calc
256
+ _ = (1 - (w : E) * star (w : E)) * (w : E) := by rw [hwwE]; noncomm_ring
257
+ _ = 0 := by rw [sub_mul, one_mul, mul_assoc, hwE, mul_one, sub_self]
258
+ have hqsp : (q : E) * spare = 0 := by dsimp only [spare]; rw [← mul_assoc, hqw, zero_mul]
259
+ have hPsp : P * spare = 0 := by
260
+ have hPr : P * r 0 = 0 := by
261
+ simpa only [show (0 : ℕ) < 1 by omega, ite_true] using canonicalTailProjection_mul_generator r hr 1 0
262
+ dsimp only [spare]
263
+ rw [← mul_assoc, hPw.eq, mul_assoc, hPr, mul_zero]
264
+ have hWpartial : W * star W * W = W := by rw [mul_assoc, hWq, hWright]
265
+ obtain ⟨u, hu, _huEq, huq⟩ := exists_explicit_connected_unitary_extension W spare
266
+ hWpartial hsGram (by rw [hWq]; exact hqsp) (by rw [hWP]; exact hPsp)
267
+ have huq' : (u : E) * (q : E) = W := by
268
+ have hWq' : star W * W = (q : E) := hWq
269
+ rw [hWq'] at huq
270
+ exact huq
271
+ have huRange : (u : E) * (q : E) * star (u : E) = P := by
272
+ have hstar := congrArg star huq'
273
+ rw [star_mul, hqE] at hstar
274
+ calc
275
+ _ = (u : E) * ((q : E) * (q : E)) * star (u : E) := by rw [hqqE]
276
+ _ = ((u : E) * (q : E)) * ((q : E) * star (u : E)) := by noncomm_ring
277
+ _ = P := by rw [huq', hstar]; exact hWP
278
+ refine ⟨u, hu, huRange, fun i hi => ?_⟩
279
+ have hxl : (q : E) * (A 0 ^ i * A 1) = A 0 ^ i * A 1 := by
280
+ have hs0 := finiteRow_left_support (q : E) A hqE hqqE haE hasE 0
281
+ have hs1 := finiteRow_left_support (q : E) A hqE hqqE haE hasE 1
282
+ cases i with
283
+ | zero => simpa only [pow_zero, one_mul] using hs1
284
+ | succ i =>
285
+ calc
286
+ _ = ((q : E) * A 0) * (A 0 ^ i * A 1) := by rw [pow_succ']; noncomm_ring
287
+ _ = _ := by rw [hs0, pow_succ']; noncomm_ring
288
+ have hxr : (A 0 ^ i * A 1) * (q : E) = A 0 ^ i * A 1 := by
289
+ rw [mul_assoc, finiteRow_right_support (q : E) A hqE hqqE haE 1]
290
+ have hue : (u : E) * (A 0 ^ i * A 1) * star (u : E) =
291
+ W * (A 0 ^ i * A 1) * star W := by
292
+ calc
293
+ _ = ((u : E) * (q : E)) * (A 0 ^ i * A 1) * star ((u : E) * (q : E)) := by
294
+ rw [star_mul, hqE]
295
+ symm
296
+ calc
297
+ _ = (u : E) * ((q : E) * (A 0 ^ i * A 1) * (q : E)) * star (u : E) := by noncomm_ring
298
+ _ = _ := by rw [hxl, hxr]
299
+ _ = _ := by rw [huq']
300
+ have hbeE : B 0 ^ i * B 1 = canonicalNegativeRow r i := by
301
+ have h := congrArg D.subtype (hbe i hi)
302
+ simpa only [map_pow, map_mul, StarSubalgebra.subtype_apply, canonicalNegativeRow_coe,
303
+ B, b, Matrix.cons_val_zero, Matrix.cons_val_one] using h
304
+ change ‖(u : E) * (A 0 ^ i * A 1) * star (u : E) - canonicalNegativeRow r i‖ < ε
305
+ rw [hue, ← hbeE]
306
+ exact hclose i hi
307
+
308
+ /-- The comparison-only form preserves the original finite interface. -/
309
+ lemma exists_zeroUnit_buffer_comparison [Nontrivial E]
310
+ (r : ℕ → E)
311
+ (hr : ∀ i j, star (r i) * r j = if i = j then 1 else 0)
312
+ (q w z : StarSubalgebra.centralizer ℂ (Set.range r))
313
+ (hq : star q = q) (hqq : q * q = q) (hq0 : q ≠ 0)
314
+ (hw : star w * w = 1) (hww : w * star w = 1 - q)
315
+ (hz : star z * z = 1) (hqz : q * z = z)
316
+ (a : Fin 2 → StarSubalgebra.centralizer ℂ (Set.range r))
317
+ (ha : ∀ i j, star (a i) * a j = if i = j then q else 0)
318
+ (has : (∑ i, a i * star (a i)) = q)
319
+ (m : ℕ) (ε : ℝ) (hε : 0 < ε) :
320
+ ∃ u : unitary E, Joined (1 : unitary E) u ∧
321
+ ∀ i ≤ m, ‖(u : E) * ((a 0 : E) ^ i * (a 1 : E)) * star (u : E) -
322
+ canonicalNegativeRow r i‖ < ε := by
323
+ obtain ⟨u, hu, _, he⟩ := exists_zeroUnit_buffer_comparison_with_unit
324
+ r hr q w z hq hqq hq0 hw hww hz hqz a ha has m ε hε
325
+ exact ⟨u, hu, he⟩
326
+
327
+ end WeakPureInfiniteness
328
+
329
+ end
330
+
331
+ end OAI
lean/OAI/Analysis/OInfinity/ZeroUnitCompletion.lean ADDED
@@ -0,0 +1,368 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Analysis.OInfinity.NegativeBinary
2
+
3
+ namespace OAI
4
+
5
+ /-! # Finite range completion in a zero unit corner
6
+
7
+ A proper finite row and an orthogonal spare are combined with a concrete
8
+ coisometric row. The resulting isometry fills exactly the missing range.
9
+ The construction is algebraic and does not use projection classification.
10
+ -/
11
+
12
+ noncomputable section
13
+ open scoped CStarAlgebra
14
+
15
+ namespace WeakPureInfiniteness
16
+
17
+ variable {E : Type*} [CStarAlgebra E]
18
+
19
+ /-- Turn a coisometry into an isometry by moving its initial support into
20
+ one specified isometric range. -/
21
+ lemma coisometry_range_filler (A y : E)
22
+ (hA : A * star A = 1) (hy : star y * y = 1)
23
+ (hpy : (star A * A) * y = y) :
24
+ let C := 1 - star A * A + y * A
25
+ star C * C = 1 ∧ C * star C = 1 - star A * A + y * star y := by
26
+ intro C
27
+ let p := star A * A
28
+ let e := 1 - p
29
+ have hp : star p = p := by simp only [p, star_mul, star_star]
30
+ have hpp : p * p = p := by
31
+ change (star A * A) * (star A * A) = star A * A
32
+ calc
33
+ _ = star A * (A * star A) * A := by noncomm_ring
34
+ _ = _ := by rw [hA, mul_one]
35
+ have he : star e = e := by simp only [e, star_sub, star_one, hp]
36
+ have hee : e * e = e := by dsimp only [e]; noncomm_ring [hpp]
37
+ have hey : e * y = 0 := by
38
+ change (1 - p) * y = 0
39
+ rw [sub_mul, one_mul, hpy, sub_self]
40
+ have hAe : A * e = 0 := by
41
+ have hAp : A * p = A := by
42
+ change A * (star A * A) = A
43
+ rw [← mul_assoc, hA, one_mul]
44
+ dsimp only [e]
45
+ rw [mul_sub, mul_one, hAp, sub_self]
46
+ have h1 : e * (y * A) = 0 := by rw [← mul_assoc, hey, zero_mul]
47
+ have h2 : star (y * A) * e = 0 := by
48
+ have hh := congrArg star h1
49
+ simpa only [star_mul, he, star_zero] using hh
50
+ have h3 : (y * A) * e = 0 := by rw [mul_assoc, hAe, mul_zero]
51
+ have h4 : e * star (y * A) = 0 := by
52
+ have hh := congrArg star h3
53
+ simpa only [star_mul, he, star_zero] using hh
54
+ have hyy : star (y * A) * (y * A) = p := by
55
+ rw [star_mul]
56
+ calc
57
+ _ = star A * (star y * y) * A := by noncomm_ring
58
+ _ = p := by rw [hy, mul_one]
59
+ have haa : (y * A) * star (y * A) = y * star y := by
60
+ rw [star_mul]
61
+ calc
62
+ _ = y * (A * star A) * star y := by noncomm_ring
63
+ _ = _ := by rw [hA, mul_one]
64
+ constructor
65
+ · change star (e + y * A) * (e + y * A) = 1
66
+ rw [star_add, he, add_mul, mul_add, mul_add, hee, h1, h2, hyy]
67
+ dsimp only [e]
68
+ noncomm_ring
69
+ · change (e + y * A) * star (e + y * A) = e + y * star y
70
+ rw [star_add, he, add_mul, mul_add, mul_add, hee, h4, h3, haa]
71
+ abel
72
+
73
+ /-- A full finite target row fills the defect of an arbitrary finite
74
+ proper row with its given orthogonal spare. -/
75
+ lemma finite_zero_unit_range_completion {n : ℕ}
76
+ (x : Fin n → E) (y : E) (a : Fin (n + 1) → E)
77
+ (hx : ∀ i j, star (x i) * x j = if i = j then 1 else 0)
78
+ (hy : star y * y = 1) (hyx : ∀ i, star y * x i = 0)
79
+ (ha : ∀ i j, star (a i) * a j = if i = j then 1 else 0)
80
+ (has : (∑ i, a i * star (a i)) = 1) :
81
+ ∃ C : E, star C * C = 1 ∧
82
+ C * star C = 1 - ∑ i, x i * star (x i) := by
83
+ let r : Fin (n + 1) → E := Fin.cons y x
84
+ have hr : ∀ i j, star (r i) * r j = if i = j then 1 else 0 := by
85
+ intro i j
86
+ refine Fin.cases ?_ (fun i => ?_) i <;> refine Fin.cases ?_ (fun j => ?_) j
87
+ · simpa only [r, Fin.cons_zero, ite_true] using hy
88
+ · simp only [r, Fin.cons_zero, Fin.cons_succ, hyx, (Fin.succ_ne_zero j).symm, ite_false]
89
+ · have hh := congrArg star (hyx i)
90
+ simpa only [r, Fin.cons_zero, Fin.cons_succ, star_mul, star_star, star_zero,
91
+ Fin.succ_ne_zero, ite_false] using hh
92
+ · simpa only [r, Fin.cons_succ, Fin.succ_inj] using hx i j
93
+ let A := finiteCuntzTransfer r a 1
94
+ have hAst : star A = finiteCuntzTransfer a r 1 := by
95
+ simpa only [A, star_one] using finiteCuntzTransfer_star r a 1
96
+ have hAA : A * star A = 1 := by
97
+ have hh := finiteCuntzTransfer_star_mul a r hr 1
98
+ rw [← hAst, star_star] at hh
99
+ simpa only [star_one, one_mul, mul_one, has] using hh
100
+ have hAA' : star A * A = ∑ i, r i * star (r i) := by
101
+ simpa only [A, star_one, one_mul, mul_one] using
102
+ finiteCuntzTransfer_star_mul r a ha 1
103
+ have hpy : (star A * A) * y = y := by
104
+ rw [hAA']
105
+ have hh := finiteRowPermutation_mul_row 1 r (by simp) (by simp) hr 1 0
106
+ simpa only [finiteRowPermutation, Equiv.Perm.one_apply, r, Fin.cons_zero] using hh
107
+ obtain ⟨hC, hC'⟩ := coisometry_range_filler A y hAA hy hpy
108
+ refine ⟨1 - star A * A + y * A, hC, ?_⟩
109
+ rw [hC', hAA', Fin.sum_univ_succ]
110
+ simp only [r, Fin.cons_zero, Fin.cons_succ]
111
+ abel
112
+
113
+ /-- A coisometric binary pair supplies every finite target size, so only
114
+ an actual orthogonal spare is needed to fill the prescribed proper row. -/
115
+ lemma finite_zero_unit_completion_from_binary {n : ℕ}
116
+ (x : Fin n → E) (y a b : E)
117
+ (hx : ∀ i j, star (x i) * x j = if i = j then 1 else 0)
118
+ (hy : star y * y = 1) (hyx : ∀ i, star y * x i = 0)
119
+ (ha : star a * a = 1) (hb : star b * b = 1) (hab : star a * b = 0)
120
+ (hsum : a * star a + b * star b = 1) :
121
+ ∃ C : E, star C * C = 1 ∧
122
+ C * star C = 1 - ∑ i, x i * star (x i) := by
123
+ exact finite_zero_unit_range_completion x y (zeroCornerRow 1 a b n) hx hy hyx
124
+ (zeroCornerRow_gram 1 a b (star_one _) (one_mul _) ha hb hab
125
+ (one_mul _) (one_mul _) (mul_one _) n)
126
+ (zeroCornerRow_range_sum 1 a b (star_one _) (one_mul _) (mul_one _) hsum n)
127
+
128
+ /-- Appending the concrete missing-range isometry gives a full finite row. -/
129
+ lemma finite_zero_unit_full_row {n : ℕ}
130
+ (x : Fin n → E) (y a b : E)
131
+ (hx : ∀ i j, star (x i) * x j = if i = j then 1 else 0)
132
+ (hy : star y * y = 1) (hyx : ∀ i, star y * x i = 0)
133
+ (ha : star a * a = 1) (hb : star b * b = 1) (hab : star a * b = 0)
134
+ (hsum : a * star a + b * star b = 1) :
135
+ ∃ r : Fin (n + 1) → E,
136
+ (∀ i : Fin n, r i.succ = x i) ∧
137
+ (∀ i j, star (r i) * r j = if i = j then 1 else 0) ∧
138
+ (∑ i, r i * star (r i)) = 1 := by
139
+ obtain ⟨C, hC, hCr⟩ := finite_zero_unit_completion_from_binary x y a b
140
+ hx hy hyx ha hb hab hsum
141
+ have hPx (i : Fin n) : (∑ j, x j * star (x j)) * x i = x i := by
142
+ simpa only [finiteRowPermutation, Equiv.Perm.one_apply] using
143
+ finiteRowPermutation_mul_row 1 x (by simp) (by simp) hx 1 i
144
+ have horth (i : Fin n) : star C * x i = 0 := by
145
+ have hr : (C * star C) * x i = 0 := by
146
+ rw [hCr, sub_mul, one_mul, hPx, sub_self]
147
+ have hh := congrArg (fun z => star C * z) hr
148
+ simpa only [← mul_assoc, hC, one_mul, mul_zero] using hh
149
+ let r : Fin (n + 1) → E := Fin.cons C x
150
+ refine ⟨r, fun i => rfl, ?_, ?_⟩
151
+ · intro i j
152
+ refine Fin.cases ?_ (fun i => ?_) i <;> refine Fin.cases ?_ (fun j => ?_) j
153
+ · simpa only [r, Fin.cons_zero, ite_true] using hC
154
+ · simp only [r, Fin.cons_zero, Fin.cons_succ, horth, (Fin.succ_ne_zero j).symm, ite_false]
155
+ · have hh := congrArg star (horth i)
156
+ simpa only [r, Fin.cons_zero, Fin.cons_succ, star_mul, star_star, star_zero,
157
+ Fin.succ_ne_zero, ite_false] using hh
158
+ · simpa only [r, Fin.cons_succ, Fin.succ_inj] using hx i j
159
+ · rw [Fin.sum_univ_succ]
160
+ simp only [r, Fin.cons_zero, Fin.cons_succ, hCr]
161
+ abel
162
+
163
+ /-- A countable orthogonal row in a zero-unit algebra has an exact binary
164
+ encoding of each prescribed finite prefix. The next row element is the spare. -/
165
+ lemma exists_zero_unit_binary_encoding
166
+ (x : ℕ → E)
167
+ (hx : ∀ i j, star (x i) * x j = if i = j then 1 else 0)
168
+ (a b : E) (ha : star a * a = 1) (hb : star b * b = 1)
169
+ (hab : star a * b = 0) (hsum : a * star a + b * star b = 1) (m : ℕ) :
170
+ ∃ A B : E, star A * A = 1 ∧ star B * B = 1 ∧ star A * B = 0 ∧
171
+ A * star A + B * star B = 1 ∧ ∀ i ≤ m, A ^ i * B = x i := by
172
+ have fill (n : ℕ) : ∃ r : Fin (n + 1) → E,
173
+ (∀ i : Fin n, r i.succ = x i) ∧
174
+ (∀ i j, star (r i) * r j = if i = j then 1 else 0) ∧
175
+ (∑ i, r i * star (r i)) = 1 := by
176
+ refine finite_zero_unit_full_row (fun i : Fin n => x i) (x n) a b
177
+ ?_ ?_ ?_ ha hb hab hsum
178
+ · intro i j
179
+ simpa only [Fin.ext_iff] using hx i j
180
+ · simpa only [ite_true] using hx n n
181
+ · intro i
182
+ have hne : n ≠ (i : ℕ) := Nat.ne_of_gt i.isLt
183
+ simpa only [hne, ite_false] using hx n i
184
+ obtain ⟨r, hrleaf, hr, hrs⟩ := fill m
185
+ obtain ⟨R, hRleaf, hR, hRs⟩ := fill (m + 1)
186
+ obtain ⟨A, B, hA, hB, hAB, hsum', hB0, hstep⟩ :=
187
+ successive_full_rows_binary m r R hr hR hrs hRs
188
+ have hBx : B = x 0 := hB0.trans (hRleaf 0)
189
+ refine ⟨A, B, hA, hB, hAB, hsum', ?_⟩
190
+ intro i
191
+ induction i with
192
+ | zero => intro _; simpa only [pow_zero, one_mul] using hBx
193
+ | succ i ih =>
194
+ intro hi
195
+ rw [pow_succ', mul_assoc, ih (by omega)]
196
+ have h := hstep (⟨i, by omega⟩ : Fin m)
197
+ rw [hrleaf, hRleaf] at h
198
+ exact h
199
+
200
+ /-- The same explicit filler in a supported corner with its actual unit
201
+ `q`. No relation between `q` and the ambient identity is needed. -/
202
+ lemma relative_zero_unit_completion {n : ℕ}
203
+ (q : E) (hq : star q = q) (hqq : q * q = q)
204
+ (x : Fin n → E) (y a b : E)
205
+ (hxs : ∀ i, q * x i = x i ∧ x i * q = x i)
206
+ (hys : q * y = y ∧ y * q = y)
207
+ (hx : ∀ i j, star (x i) * x j = if i = j then q else 0)
208
+ (hy : star y * y = q) (hyx : ∀ i, star y * x i = 0)
209
+ (ha : star a * a = q) (hb : star b * b = q) (hab : star a * b = 0)
210
+ (hsum : a * star a + b * star b = q) :
211
+ ∃ C : E, q * C = C ∧ C * q = C ∧ star C * C = q ∧
212
+ C * star C = q - ∑ i, x i * star (x i) := by
213
+ obtain ⟨hqa, haq, hqb, hbq⟩ := relativeCuntzPair_support q a b hq hqq ha hb hab hsum
214
+ let x' : Fin n → ProjectionCorner q hq hqq := fun i =>
215
+ projectionCornerElement q hq hqq (x i) (hxs i)
216
+ let y' : ProjectionCorner q hq hqq := projectionCornerElement q hq hqq y hys
217
+ let a' : ProjectionCorner q hq hqq := projectionCornerElement q hq hqq a ⟨hqa, haq⟩
218
+ let b' : ProjectionCorner q hq hqq := projectionCornerElement q hq hqq b ⟨hqb, hbq⟩
219
+ have hx' : ∀ i j, star (x' i) * x' j = if i = j then 1 else 0 :=
220
+ projectionCornerElement_gram q hq hqq x hxs hx
221
+ have hy' : star y' * y' = 1 := Subtype.ext hy
222
+ have hyx' (i : Fin n) : star y' * x' i = 0 := Subtype.ext (hyx i)
223
+ have ha' : star a' * a' = 1 := Subtype.ext ha
224
+ have hb' : star b' * b' = 1 := Subtype.ext hb
225
+ have hab' : star a' * b' = 0 := Subtype.ext hab
226
+ have hsum' : a' * star a' + b' * star b' = 1 := Subtype.ext hsum
227
+ obtain ⟨C, hC, hCC⟩ := finite_zero_unit_completion_from_binary x' y' a' b'
228
+ hx' hy' hyx' ha' hb' hab' hsum'
229
+ refine ⟨C, C.property.1, C.property.2,
230
+ congrArg (fun z : ProjectionCorner q hq hqq => (z : E)) hC, ?_⟩
231
+ have h := congrArg (projectionCornerInclusion q hq hqq) hCC
232
+ simp only [map_sub, map_sum, map_mul, map_star, projectionCornerInclusion_one] at h
233
+ exact h
234
+
235
+ /-- Exact finite binary encoding in the given corner. The countable
236
+ proper row supplies its own next unused isometry at every finite stage. -/
237
+ lemma exists_relative_zero_unit_binary_encoding
238
+ (q : E) (hq : star q = q) (hqq : q * q = q)
239
+ (x : ℕ → E) (a b : E)
240
+ (hxs : ∀ i, q * x i = x i ∧ x i * q = x i)
241
+ (hx : ∀ i j, star (x i) * x j = if i = j then q else 0)
242
+ (ha : star a * a = q) (hb : star b * b = q) (hab : star a * b = 0)
243
+ (hsum : a * star a + b * star b = q) (m : ℕ) :
244
+ ∃ A B : E, q * A = A ∧ A * q = A ∧ q * B = B ∧ B * q = B ∧
245
+ star A * A = q ∧ star B * B = q ∧ star A * B = 0 ∧
246
+ A * star A + B * star B = q ∧ ∀ i ≤ m, A ^ i * B = x i := by
247
+ obtain ⟨hqa, haq, hqb, hbq⟩ := relativeCuntzPair_support q a b hq hqq ha hb hab hsum
248
+ let x' : ℕ → ProjectionCorner q hq hqq := fun i =>
249
+ projectionCornerElement q hq hqq (x i) (hxs i)
250
+ let a' : ProjectionCorner q hq hqq := projectionCornerElement q hq hqq a ⟨hqa, haq⟩
251
+ let b' : ProjectionCorner q hq hqq := projectionCornerElement q hq hqq b ⟨hqb, hbq⟩
252
+ have hx' (i j : ℕ) : star (x' i) * x' j = if i = j then 1 else 0 := by
253
+ by_cases hij : i = j
254
+ · rw [ite_eq_left hij]
255
+ apply Subtype.ext
256
+ change star (x i) * x j = q
257
+ simpa only [ite_eq_left hij] using hx i j
258
+ · rw [ite_eq_right hij]
259
+ apply Subtype.ext
260
+ change star (x i) * x j = 0
261
+ simpa only [ite_eq_right hij] using hx i j
262
+ obtain ⟨A, B, hA, hB, hAB, hsum', hencode⟩ := exists_zero_unit_binary_encoding x' hx' a' b'
263
+ (Subtype.ext ha) (Subtype.ext hb) (Subtype.ext hab) (Subtype.ext hsum) m
264
+ refine ⟨A, B, A.property.1, A.property.2, B.property.1, B.property.2,
265
+ congrArg (fun z : ProjectionCorner q hq hqq => (z : E)) hA,
266
+ congrArg (fun z : ProjectionCorner q hq hqq => (z : E)) hB,
267
+ congrArg (fun z : ProjectionCorner q hq hqq => (z : E)) hAB,
268
+ congrArg (fun z : ProjectionCorner q hq hqq => (z : E)) hsum', ?_⟩
269
+ have hpow (i : ℕ) : ((A ^ i * B : ProjectionCorner q hq hqq) : E) =
270
+ (A : E) ^ i * (B : E) := by
271
+ induction i with
272
+ | zero => simp only [pow_zero, one_mul]
273
+ | succ i ih =>
274
+ rw [pow_succ', mul_assoc, pow_succ', mul_assoc]
275
+ change (A : E) * ((A ^ i * B : ProjectionCorner q hq hqq) : E) = _
276
+ rw [ih]
277
+ intro i hi
278
+ have h := congrArg (fun z : ProjectionCorner q hq hqq => (z : E)) (hencode i hi)
279
+ rw [hpow] at h
280
+ exact h
281
+
282
+ /-- On elements commuting with the initial projection, the filler has
283
+ an exact two-corner formula. This records the term that must be controlled
284
+ by the canonical-shift implementer. -/
285
+ lemma coisometry_range_filler_conjugation (A y x : E)
286
+ (hA : A * star A = 1) (hx : Commute (star A * A) x) :
287
+ let C := 1 - star A * A + y * A
288
+ C * x * star C = (1 - star A * A) * x + y * (A * x * star A) * star y := by
289
+ intro C
290
+ let p := star A * A
291
+ let e := 1 - p
292
+ have hp : star p = p := by simp only [p, star_mul, star_star]
293
+ have hpp : p * p = p := by
294
+ change (star A * A) * (star A * A) = star A * A
295
+ calc
296
+ _ = star A * (A * star A) * A := by noncomm_ring
297
+ _ = _ := by rw [hA, mul_one]
298
+ have he : star e = e := by simp only [e, star_sub, star_one, hp]
299
+ have hee : e * e = e := by dsimp only [e]; noncomm_ring [hpp]
300
+ have hex : Commute e x := (Commute.one_left x).sub_left hx
301
+ have hAe : A * e = 0 := by
302
+ have hAp : A * p = A := by
303
+ change A * (star A * A) = A
304
+ rw [← mul_assoc, hA, one_mul]
305
+ dsimp only [e]
306
+ rw [mul_sub, mul_one, hAp, sub_self]
307
+ have hestar : e * star A = 0 := by
308
+ simpa only [star_mul, he, star_zero] using congrArg star hAe
309
+ have hexe : e * x * e = e * x := by
310
+ rw [hex.eq, mul_assoc, hee, ← hex.eq]
311
+ have hexA : e * x * star A = 0 := by
312
+ rw [hex.eq, mul_assoc, hestar, mul_zero]
313
+ have hAxe : A * x * e = 0 := by
314
+ rw [mul_assoc, ← hex.eq, ← mul_assoc, hAe, zero_mul]
315
+ change (e + y * A) * x * star (e + y * A) = e * x + y * (A * x * star A) * star y
316
+ rw [star_add, star_mul, he]
317
+ calc
318
+ _ = e * x * e + (e * x * star A) * star y +
319
+ y * (A * x * e) + y * (A * x * star A) * star y := by noncomm_ring
320
+ _ = _ := by rw [hexe, hexA, hAxe]; simp only [zero_mul, mul_zero, add_zero]
321
+
322
+ /-- The concrete binary shift filler accepts any unitary inserted before
323
+ the coisometry. Its final projection is independent of that insertion. -/
324
+ lemma binary_shift_shrink_products (r a : Fin 2 → E)
325
+ (hr : ∀ i j, star (r i) * r j = if i = j then 1 else 0)
326
+ (ha : ∀ i j, star (a i) * a j = if i = j then 1 else 0)
327
+ (has : (∑ i, a i * star (a i)) = 1) (u : unitary E) :
328
+ let v := (u : E) * finiteCuntzTransfer r a 1
329
+ let C := 1 - star v * v + r 1 * v
330
+ star C * C = 1 ∧ C * star C = 1 - r 0 * star (r 0) := by
331
+ intro v C
332
+ let A := finiteCuntzTransfer r a 1
333
+ have hAs : star A = finiteCuntzTransfer a r 1 := by
334
+ simpa only [A, star_one] using finiteCuntzTransfer_star r a 1
335
+ have hAA : A * star A = 1 := by
336
+ have hh := finiteCuntzTransfer_star_mul a r hr 1
337
+ rw [← hAs, star_star] at hh
338
+ simpa only [star_one, one_mul, mul_one, has] using hh
339
+ have hAp : star A * A = ∑ i, r i * star (r i) := by
340
+ simpa only [A, star_one, one_mul, mul_one] using
341
+ finiteCuntzTransfer_star_mul r a ha 1
342
+ have hvv : v * star v = 1 := by
343
+ change ((u : E) * A) * star ((u : E) * A) = 1
344
+ rw [star_mul]
345
+ calc
346
+ _ = (u : E) * (A * star A) * star (u : E) := by noncomm_ring
347
+ _ = 1 := by rw [hAA, mul_one, u.property.2]
348
+ have hvp : star v * v = ∑ i, r i * star (r i) := by
349
+ change star ((u : E) * A) * ((u : E) * A) = _
350
+ rw [star_mul]
351
+ calc
352
+ _ = star A * (star (u : E) * (u : E)) * A := by noncomm_ring
353
+ _ = _ := by rw [u.property.1, mul_one, hAp]
354
+ have hv1 : (star v * v) * r 1 = r 1 := by
355
+ rw [hvp]
356
+ simpa only [finiteRowPermutation, Equiv.Perm.one_apply] using
357
+ finiteRowPermutation_mul_row 1 r (by simp) (by simp) hr 1 1
358
+ obtain ⟨hC, hCC⟩ := coisometry_range_filler v (r 1) hvv
359
+ (by simpa only [ite_true] using hr 1 1) hv1
360
+ refine ⟨hC, ?_⟩
361
+ rw [hCC, hvp, Fin.sum_univ_two]
362
+ abel
363
+
364
+ end WeakPureInfiniteness
365
+
366
+ end
367
+
368
+ end OAI
lean/OAI/Analysis/OInfinity/ZeroUnitRows.lean ADDED
@@ -0,0 +1,138 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Analysis.OInfinity.ZeroUnitComparison
2
+
3
+ namespace OAI
4
+
5
+ /-! # Finite proper-row comparison through the zero-unit buffer
6
+
7
+ Only one unused row element is needed for the finite binary encoding.
8
+ The unit and complementary isometries remain explicit throughout.
9
+ -/
10
+
11
+ noncomputable section
12
+ open scoped CStarAlgebra
13
+
14
+ namespace WeakPureInfiniteness
15
+
16
+ variable {E : Type*} [CStarAlgebra E]
17
+
18
+ /-- The binary encoding construction needs only the tested finite prefix
19
+ and its next unused isometry, rather than a countable row extension. -/
20
+ lemma exists_finite_zero_unit_binary_encoding (n : ℕ)
21
+ (x : Fin (n + 2) → E)
22
+ (hx : ∀ i j, star (x i) * x j = if i = j then 1 else 0)
23
+ (a b : E) (ha : star a * a = 1) (hb : star b * b = 1)
24
+ (hab : star a * b = 0) (hsum : a * star a + b * star b = 1) :
25
+ ∃ A B : E, star A * A = 1 ∧ star B * B = 1 ∧ star A * B = 0 ∧
26
+ A * star A + B * star B = 1 ∧
27
+ ∀ i : Fin (n + 1), A ^ (i : ℕ) * B = x i.castSucc := by
28
+ have fill (l : ℕ) (hl : l ≤ n + 1) :
29
+ ∃ r : Fin (l + 1) → E,
30
+ (∀ i : Fin l, r i.succ = x ⟨i, by omega⟩) ∧
31
+ (∀ i j, star (r i) * r j = if i = j then 1 else 0) ∧
32
+ (∑ i, r i * star (r i)) = 1 := by
33
+ refine finite_zero_unit_full_row (fun i : Fin l => x ⟨i, by omega⟩)
34
+ (x ⟨l, by omega⟩) a b ?_ ?_ ?_ ha hb hab hsum
35
+ · intro i j
36
+ simpa only [Fin.mk.injEq, Fin.ext_iff] using hx ⟨i, by omega⟩ ⟨j, by omega⟩
37
+ · simpa only [ite_true] using hx ⟨l, by omega⟩ ⟨l, by omega⟩
38
+ · intro i
39
+ have hne : (⟨l, by omega⟩ : Fin (n + 2)) ≠ ⟨i, by omega⟩ := by
40
+ intro h
41
+ have he := congrArg Fin.val h
42
+ change l = (i : ℕ) at he
43
+ have hi := i.isLt
44
+ omega
45
+ simpa only [ite_eq_right hne] using hx ⟨l, by omega⟩ ⟨i, by omega⟩
46
+ obtain ⟨r, hrleaf, hr, hrs⟩ := fill n (by omega)
47
+ obtain ⟨R, hRleaf, hR, hRs⟩ := fill (n + 1) (by omega)
48
+ obtain ⟨A, B, hA, hB, hAB, hsum', hB0, hstep⟩ :=
49
+ successive_full_rows_binary n r R hr hR hrs hRs
50
+ have hencode (i : ℕ) (hi : i ≤ n) : A ^ i * B = x ⟨i, by omega⟩ := by
51
+ induction i with
52
+ | zero => simpa only [pow_zero, one_mul, Fin.val_zero] using hB0.trans (hRleaf 0)
53
+ | succ i ih =>
54
+ rw [pow_succ', mul_assoc, ih (by omega)]
55
+ have h := hstep (⟨i, by omega⟩ : Fin n)
56
+ rw [hrleaf, hRleaf] at h
57
+ exact h
58
+ refine ⟨A, B, hA, hB, hAB, hsum', fun i => ?_⟩
59
+ exact hencode i (by omega)
60
+
61
+ /-- Finite encoding in an actual projection corner. In particular this
62
+ applies to a proper prefix of the finite coisometric vacuum-split row. -/
63
+ lemma exists_relative_finite_zero_unit_binary_encoding (n : ℕ)
64
+ (q : E) (hq : star q = q) (hqq : q * q = q)
65
+ (x : Fin (n + 2) → E) (a b : E)
66
+ (hxs : ∀ i, q * x i = x i ∧ x i * q = x i)
67
+ (hx : ∀ i j, star (x i) * x j = if i = j then q else 0)
68
+ (ha : star a * a = q) (hb : star b * b = q) (hab : star a * b = 0)
69
+ (hsum : a * star a + b * star b = q) :
70
+ ∃ A B : E, q * A = A ∧ A * q = A ∧ q * B = B ∧ B * q = B ∧
71
+ star A * A = q ∧ star B * B = q ∧ star A * B = 0 ∧
72
+ A * star A + B * star B = q ∧
73
+ ∀ i : Fin (n + 1), A ^ (i : ℕ) * B = x i.castSucc := by
74
+ obtain ⟨hqa, haq, hqb, hbq⟩ := relativeCuntzPair_support q a b hq hqq ha hb hab hsum
75
+ let x' : Fin (n + 2) → ProjectionCorner q hq hqq := fun i =>
76
+ projectionCornerElement q hq hqq (x i) (hxs i)
77
+ let a' : ProjectionCorner q hq hqq := projectionCornerElement q hq hqq a ⟨hqa, haq⟩
78
+ let b' : ProjectionCorner q hq hqq := projectionCornerElement q hq hqq b ⟨hqb, hbq⟩
79
+ have hx' : ∀ i j, star (x' i) * x' j = if i = j then 1 else 0 :=
80
+ projectionCornerElement_gram q hq hqq x hxs hx
81
+ obtain ⟨A, B, hA, hB, hAB, hsum', he⟩ := exists_finite_zero_unit_binary_encoding n x' hx'
82
+ a' b' (Subtype.ext ha) (Subtype.ext hb) (Subtype.ext hab) (Subtype.ext hsum)
83
+ refine ⟨A, B, A.property.1, A.property.2, B.property.1, B.property.2,
84
+ congrArg (fun z : ProjectionCorner q hq hqq => (z : E)) hA,
85
+ congrArg (fun z : ProjectionCorner q hq hqq => (z : E)) hB,
86
+ congrArg (fun z : ProjectionCorner q hq hqq => (z : E)) hAB,
87
+ congrArg (fun z : ProjectionCorner q hq hqq => (z : E)) hsum', fun i => ?_⟩
88
+ let f := projectionCornerInclusion q hq hqq
89
+ have hh := congrArg f (he i)
90
+ rw [nonunital_map_pow_mul] at hh
91
+ exact hh
92
+
93
+ /-- A finite proper row in the buffer commutant has a connected ambient
94
+ comparison with the corresponding negative buffer prefix. Its initial unit
95
+ is carried to the buffer unit exactly. -/
96
+ lemma exists_finite_zeroUnit_buffer_comparison [Nontrivial E]
97
+ (r : ℕ → E)
98
+ (hr : ∀ i j, star (r i) * r j = if i = j then 1 else 0)
99
+ (q w z : StarSubalgebra.centralizer ℂ (Set.range r))
100
+ (hq : star q = q) (hqq : q * q = q) (hq0 : q ≠ 0)
101
+ (hw : star w * w = 1) (hww : w * star w = 1 - q)
102
+ (hz : star z * z = 1) (hqz : q * z = z)
103
+ (n : ℕ) (x : Fin (n + 2) → StarSubalgebra.centralizer ℂ (Set.range r))
104
+ (hxs : ∀ i, q * x i = x i ∧ x i * q = x i)
105
+ (hx : ∀ i j, star (x i) * x j = if i = j then q else 0)
106
+ (a b : StarSubalgebra.centralizer ℂ (Set.range r))
107
+ (ha : star a * a = q) (hb : star b * b = q) (hab : star a * b = 0)
108
+ (hsum : a * star a + b * star b = q)
109
+ (ε : ℝ) (hε : 0 < ε) :
110
+ ∃ u : unitary E, Joined (1 : unitary E) u ∧
111
+ (u : E) * (q : E) * star (u : E) = canonicalTailProjection r 1 ∧
112
+ ∀ i : Fin (n + 1), ‖(u : E) * (x i.castSucc : E) * star (u : E) -
113
+ canonicalNegativeRow r i‖ < ε := by
114
+ let C := StarSubalgebra.centralizer ℂ (Set.range r)
115
+ let : IsClosed (C : Set E) := Set.isClosed_centralizer _
116
+ obtain ⟨A, B, _hAl, _hAr, _hBl, _hBr, hA, hB, hAB, hsum', he⟩ :=
117
+ exists_relative_finite_zero_unit_binary_encoding n q hq hqq x a b hxs hx ha hb hab hsum
118
+ let c : Fin 2 → C := ![A, B]
119
+ have hBA : star B * A = 0 := by
120
+ simpa only [star_mul, star_star, star_zero] using congrArg star hAB
121
+ have hc (i j : Fin 2) : star (c i) * c j = if i = j then q else 0 := by
122
+ fin_cases i <;> fin_cases j <;> simp [c, hA, hB, hAB, hBA]
123
+ have hcs : (∑ i, c i * star (c i)) = q := by
124
+ simpa only [Fin.sum_univ_two, c, Matrix.cons_val_zero, Matrix.cons_val_one] using hsum'
125
+ obtain ⟨u, hu, huq, huclose⟩ := exists_zeroUnit_buffer_comparison_with_unit
126
+ r hr q w z hq hqq hq0 hw hww hz hqz c hc hcs n ε hε
127
+ refine ⟨u, hu, huq, fun i => ?_⟩
128
+ have heE : (A : E) ^ (i : ℕ) * (B : E) = (x i.castSucc : E) := by
129
+ have hh := congrArg C.subtype (he i)
130
+ simpa only [map_pow, map_mul, StarSubalgebra.subtype_apply] using hh
131
+ have hh := huclose i (by omega)
132
+ simpa only [c, Matrix.cons_val_zero, Matrix.cons_val_one, heE] using hh
133
+
134
+ end WeakPureInfiniteness
135
+
136
+ end
137
+
138
+ end OAI
lean/OAI/Analysis/OperatorAlgebra/AntiunitaryCPConjugation.lean ADDED
@@ -0,0 +1,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Analysis.ModularRecovery.TomitaResolvent
2
+ import OAI.Analysis.Nuclearity.CPWeakOperatorUltralimit
3
+
4
+ namespace OAI
5
+
6
+ /-! Conjugating an operator-valued completely positive map on both sides
7
+ by an involutive antiunitary preserves complete positivity. This is the
8
+ operator calculation needed to transfer a commutant expectation across
9
+ Tomita conjugation. -/
10
+
11
+ noncomputable section
12
+ open scoped InnerProductSpace CStarAlgebra ComplexOrder ComplexConjugate
13
+
14
+ namespace WeakPureInfiniteness
15
+
16
+ variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
17
+
18
+ def antiunitaryConjugate (J : H ≃ₗᵢ⋆[ℂ] H) (T : H →L[ℂ] H) : H →L[ℂ] H where
19
+ toFun x := J (T (J x))
20
+ map_add' _ _ := by simp only [map_add]
21
+ map_smul' c x := by
22
+ simp only [map_smulₛₗ, starRingEnd_self_apply, RingHom.id_apply]
23
+ cont := J.continuous.comp (T.continuous.comp J.continuous)
24
+
25
+ omit [CompleteSpace H] in
26
+ @[simp] lemma antiunitaryConjugate_apply (J : H ≃ₗᵢ⋆[ℂ] H) (T : H →L[ℂ] H) (x : H) :
27
+ antiunitaryConjugate J T x = J (T (J x)) := rfl
28
+
29
+ omit [CompleteSpace H] in
30
+ @[simp] lemma antiunitaryConjugate_add (J : H ≃ₗᵢ⋆[ℂ] H) (T U : H →L[ℂ] H) :
31
+ antiunitaryConjugate J (T + U) = antiunitaryConjugate J T + antiunitaryConjugate J U := by
32
+ ext x
33
+ simp only [antiunitaryConjugate_apply, add_apply, map_add]
34
+
35
+ omit [CompleteSpace H] in
36
+ @[simp] lemma antiunitaryConjugate_smul (J : H ≃ₗᵢ⋆[ℂ] H) (c : ℂ) (T : H →L[ℂ] H) :
37
+ antiunitaryConjugate J (c • T) = star c • antiunitaryConjugate J T := by
38
+ ext x
39
+ simp only [antiunitaryConjugate_apply, smul_apply,
40
+ map_smulₛₗ, starRingEnd_apply]
41
+
42
+ omit [CompleteSpace H] in
43
+ lemma antiunitaryConjugate_involutive (J : H ≃ₗᵢ⋆[ℂ] H) (hJ : Function.Involutive J)
44
+ (T : H →L[ℂ] H) : antiunitaryConjugate J (antiunitaryConjugate J T) = T := by
45
+ ext x
46
+ simp only [antiunitaryConjugate_apply]
47
+ rw [hJ x, hJ (T x)]
48
+
49
+ omit [CompleteSpace H] in
50
+ lemma antiunitaryConjugate_norm_le (J : H ≃ₗᵢ⋆[ℂ] H) (T : H →L[ℂ] H) :
51
+ ‖antiunitaryConjugate J T‖ ≤ ‖T‖ := by
52
+ apply ContinuousLinearMap.opNorm_le_bound _ (norm_nonneg T)
53
+ intro x
54
+ simpa only [antiunitaryConjugate_apply, J.norm_map] using T.le_opNorm (J x)
55
+
56
+ def antiunitaryMatrix (J : H ≃ₗᵢ⋆[ℂ] H) {n : Type*}
57
+ (X : CStarMatrix n n (H →L[ℂ] H)) : CStarMatrix n n (H →L[ℂ] H) :=
58
+ CStarMatrix.ofMatrix (fun i j => antiunitaryConjugate J (X i j))
59
+
60
+ lemma antiunitaryMatrix_nonneg (J : H ≃ₗᵢ⋆[ℂ] H) (hJ : Function.Involutive J)
61
+ {n : Type*} [Fintype n] (X : CStarMatrix n n (H →L[ℂ] H)) (hX : 0 ≤ X) :
62
+ 0 ≤ antiunitaryMatrix J X := by
63
+ apply (NonUnitalStarAlgHom.map_le_map_iff
64
+ (matrixOperatorHom (n := n) (H := H)) matrixOperator_injective).mp
65
+ rw [map_zero]
66
+ apply ContinuousLinearMap.nonneg_iff_isPositive.mpr
67
+ rw [ContinuousLinearMap.isPositive_iff_complex]
68
+ intro x
69
+ let y : PiLp 2 (fun _ : n => H) := WithLp.toLp 2 (fun i => J (x i))
70
+ have he : inner ℂ (matrixOperator (antiunitaryMatrix J X) x) x =
71
+ star (inner ℂ (matrixOperator X y) y) := by
72
+ simp only [PiLp.inner_apply, matrixOperator_apply, sum_inner, star_sum]
73
+ apply Finset.sum_congr rfl
74
+ intro i _
75
+ apply Finset.sum_congr rfl
76
+ intro j _
77
+ change inner ℂ (J (X i j (J (x j)))) (x i) =
78
+ star (inner ℂ (X i j (J (x j))) (J (x i)))
79
+ conv_lhs => rw [← hJ (x i)]
80
+ exact BoundedRecovery.antiunitary_inner J _ _
81
+ have hp := (ContinuousLinearMap.nonneg_iff_isPositive.mp
82
+ (map_nonneg (matrixOperatorHom (n := n) (H := H)) hX)).inner_nonneg_left y
83
+ have hn : 0 ≤ inner ℂ (matrixOperator (antiunitaryMatrix J X) x) x := by
84
+ rw [he]
85
+ exact star_nonneg_iff.mpr hp
86
+ exact ⟨Complex.ext rfl hn.2, hn.1⟩
87
+
88
+ def antiunitaryCPConjugate (J : H ≃ₗᵢ⋆[ℂ] H)
89
+ (P : (H →L[ℂ] H) →L[ℂ] (H →L[ℂ] H)) :
90
+ (H →L[ℂ] H) →L[ℂ] (H →L[ℂ] H) :=
91
+ LinearMap.mkContinuous
92
+ { toFun := fun T => antiunitaryConjugate J (P (antiunitaryConjugate J T))
93
+ map_add' := by intros; simp only [antiunitaryConjugate_add, map_add]
94
+ map_smul' := by intros; simp only [antiunitaryConjugate_smul, map_smul, star_star,
95
+ RingHom.id_apply] }
96
+ ‖P‖ (fun T => (antiunitaryConjugate_norm_le J _).trans
97
+ ((P.le_opNorm _).trans (mul_le_mul_of_nonneg_left
98
+ (antiunitaryConjugate_norm_le J T) (norm_nonneg P))))
99
+
100
+ lemma antiunitaryCPConjugate_norm_le (J : H ≃ₗᵢ⋆[ℂ] H)
101
+ (P : (H →L[ℂ] H) →L[ℂ] (H →L[ℂ] H)) :
102
+ ‖antiunitaryCPConjugate J P‖ ≤ ‖P‖ :=
103
+ LinearMap.mkContinuous_norm_le _ (norm_nonneg P) _
104
+
105
+ lemma antiunitaryCPConjugate_cp (J : H ≃ₗᵢ⋆[ℂ] H) (hJ : Function.Involutive J)
106
+ (P : (H →L[ℂ] H) →L[ℂ] (H →L[ℂ] H)) (hP : CompletelyPositive P) :
107
+ CompletelyPositive (antiunitaryCPConjugate J P) := by
108
+ intro n X hX
109
+ exact antiunitaryMatrix_nonneg J hJ (matrixLinearMap P (antiunitaryMatrix J X))
110
+ (hP n _ (antiunitaryMatrix_nonneg J hJ X hX))
111
+
112
+ end WeakPureInfiniteness
113
+
114
+ end
115
+
116
+ end OAI
lean/OAI/Analysis/OperatorAlgebra/AntiunitaryOperatorIdentities.lean ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Analysis.OperatorAlgebra.AntiunitaryCPConjugation
2
+
3
+ namespace OAI
4
+
5
+ /-! Multiplication and adjoints under an actual involutive antiunitary. -/
6
+ noncomputable section
7
+ open scoped InnerProductSpace ComplexConjugate
8
+ namespace WeakPureInfiniteness
9
+
10
+ variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
11
+
12
+ omit [CompleteSpace H] in
13
+ lemma antiunitaryConjugate_mul (J : H ≃ₗᵢ⋆[ℂ] H) (hJ : Function.Involutive J)
14
+ (a b : H →L[ℂ] H) :
15
+ antiunitaryConjugate J (a * b) = antiunitaryConjugate J a * antiunitaryConjugate J b := by
16
+ apply ContinuousLinearMap.ext
17
+ intro x
18
+ simp only [antiunitaryConjugate_apply, mul_apply_eq_comp]
19
+ rw [hJ (b (J x))]
20
+
21
+ lemma antiunitaryConjugate_star (J : H ≃ₗᵢ⋆[ℂ] H) (hJ : Function.Involutive J)
22
+ (a : H →L[ℂ] H) :
23
+ antiunitaryConjugate J (star a) = star (antiunitaryConjugate J a) := by
24
+ apply (ContinuousLinearMap.eq_adjoint_iff _ _).mpr
25
+ intro x y
26
+ change inner ℂ (J (star a (J x))) y = inner ℂ x (J (a (J y)))
27
+ calc
28
+ _ = star (inner ℂ (star a (J x)) (J y)) := by
29
+ conv_lhs => rw [← hJ y]
30
+ exact BoundedRecovery.antiunitary_inner J _ _
31
+ _ = star (inner ℂ (J x) (a (J y))) :=
32
+ congrArg star (ContinuousLinearMap.adjoint_inner_left a (J y) (J x))
33
+ _ = _ := by
34
+ have h := BoundedRecovery.antiunitary_inner J (J x) (a (J y))
35
+ simpa only [hJ x] using h.symm
36
+
37
+ lemma antiunitaryConjugate_isStarProjection (J : H ≃ₗᵢ⋆[ℂ] H)
38
+ (hJ : Function.Involutive J) (p : H →L[ℂ] H) (hp : IsStarProjection p) :
39
+ IsStarProjection (antiunitaryConjugate J p) where
40
+ isSelfAdjoint := by
41
+ change star (antiunitaryConjugate J p) = antiunitaryConjugate J p
42
+ rw [← antiunitaryConjugate_star J hJ, hp.isSelfAdjoint.star_eq]
43
+ isIdempotentElem := by
44
+ change antiunitaryConjugate J p * antiunitaryConjugate J p = antiunitaryConjugate J p
45
+ rw [← antiunitaryConjugate_mul J hJ]
46
+ exact congrArg (antiunitaryConjugate J) hp.isIdempotentElem
47
+
48
+ end WeakPureInfiniteness
49
+
50
+ end
51
+
52
+ end OAI
lean/OAI/Analysis/OperatorAlgebra/BicommutantStrongStar.lean ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Analysis.IrrationalRotation.Operators.BicommutantDensity
2
+
3
+ namespace OAI
4
+
5
+ /-! Finite simultaneous strong approximation of an operator and its adjoint.
6
+ Only the algebraic star subalgebra is used; no norm bound is asserted. -/
7
+
8
+ noncomputable section
9
+ open scoped BigOperators InnerProductSpace
10
+
11
+ namespace WeakPureInfiniteness
12
+ open Invariant233.BicommutantDensity
13
+
14
+ variable {H I : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H]
15
+ [CompleteSpace H] [Fintype I]
16
+
17
+ private def pairedOrbit (A : StarSubalgebra ℂ (H →L[ℂ] H)) (x y : I → H) :
18
+ A →ₗ[ℝ] PiLp 2 (fun _ : I ⊕ I => H) where
19
+ toFun a := WithLp.toLp 2 (Sum.elim (fun i => (a : H →L[ℂ] H) (x i))
20
+ (fun i => (star (a : H →L[ℂ] H)) (y i)))
21
+ map_add' a b := by ext i; cases i <;> simp
22
+ map_smul' t a := by
23
+ ext i
24
+ cases i <;> simp [StarModule.star_smul]
25
+
26
+ theorem pairedOrbit_mem_closure
27
+ (A : StarSubalgebra ℂ (H →L[ℂ] H)) {T : H →L[ℂ] H}
28
+ (hT : T ∈ Set.centralizer (Set.centralizer (A : Set (H →L[ℂ] H))))
29
+ (x y : I → H) :
30
+ WithLp.toLp 2 (Sum.elim (fun i => T (x i)) (fun i => star T (y i))) ∈
31
+ closure (Set.range (fun a : A => pairedOrbit A x y a)) := by
32
+ classical
33
+ let : InnerProductSpace ℝ (PiLp 2 (fun _ : I ⊕ I => H)) :=
34
+ InnerProductSpace.rclikeToReal ℂ _
35
+ let R := (pairedOrbit A x y).range
36
+ change _ ∈ R.topologicalClosure
37
+ rw [← R.orthogonal_orthogonal_eq_closure]
38
+ apply (Rᗮ.mem_orthogonal _).mpr
39
+ intro η hη
40
+ let ζ : PiLp 2 (fun _ : I ⊕ I => H) :=
41
+ WithLp.toLp 2 (Sum.elim x (fun i => η (.inr i)))
42
+ let g : PiLp 2 (fun _ : I ⊕ I => H) → ℝ := fun z =>
43
+ ∑ i, (inner ℂ (η (.inl i)) (z (.inl i))).re +
44
+ ∑ i, (inner ℂ (z (.inr i)) (y i)).re
45
+ have hg : Continuous g := by dsimp [g]; fun_prop
46
+ have hadj (a : H →L[ℂ] H) (i : I) :
47
+ inner ℂ (η (.inr i)) (star a (y i)) = inner ℂ (a (η (.inr i))) (y i) := by
48
+ rw [ContinuousLinearMap.star_eq_adjoint, ContinuousLinearMap.adjoint_inner_right]
49
+ have hzero (a : A) : g (amplify (I ⊕ I) (a : H →L[ℂ] H) ζ) = 0 := by
50
+ have hz := (R.mem_orthogonal' η).mp hη (pairedOrbit A x y a) ⟨a, rfl⟩
51
+ rw [real_inner_eq_re_inner ℂ, PiLp.inner_apply] at hz
52
+ simpa [g, ζ, pairedOrbit, Fintype.sum_sum_type, Complex.re_sum, hadj] using hz
53
+ have hcl : amplify (I ⊕ I) T ζ ∈
54
+ closure (Set.range (fun a : A => amplify (I ⊕ I) (a : H →L[ℂ] H) ζ)) := by
55
+ apply Metric.mem_closure_iff.mpr
56
+ intro ε hε
57
+ obtain ⟨a, ha, hclose⟩ := exists_amplified_approximation A hT ζ hε
58
+ exact ⟨_, ⟨⟨a, ha⟩, rfl⟩, by simpa [dist_eq_norm, norm_sub_rev] using hclose⟩
59
+ have hclosed : IsClosed {z : PiLp 2 (fun _ : I ⊕ I => H) | g z = 0} :=
60
+ isClosed_eq hg continuous_const
61
+ have ht : g (amplify (I ⊕ I) T ζ) = 0 :=
62
+ hclosed.closure_subset_iff.mpr (by rintro _ ⟨a, rfl⟩; exact hzero a) hcl
63
+ rw [real_inner_eq_re_inner ℂ, PiLp.inner_apply]
64
+ simpa [g, ζ, Fintype.sum_sum_type, Complex.re_sum, hadj] using ht
65
+
66
+ theorem exists_finite_strongStar_approximation
67
+ (A : StarSubalgebra ℂ (H →L[ℂ] H)) {T : H →L[ℂ] H}
68
+ (hT : T ∈ Set.centralizer (Set.centralizer (A : Set (H →L[ℂ] H))))
69
+ (x y : I → H) {ε : ℝ} (hε : 0 < ε) :
70
+ ∃ a : H →L[ℂ] H, a ∈ A ∧
71
+ (∀ i, ‖a (x i) - T (x i)‖ < ε) ∧
72
+ (∀ i, ‖star a (y i) - star T (y i)‖ < ε) := by
73
+ obtain ⟨z, ⟨a, rfl⟩, hclose⟩ := Metric.mem_closure_iff.mp
74
+ (pairedOrbit_mem_closure A hT x y) ε hε
75
+ rw [dist_eq_norm] at hclose
76
+ rw [norm_sub_rev] at hclose
77
+ refine ⟨a, a.property, ?_, ?_⟩
78
+ · intro i
79
+ have h := PiLp.norm_apply_le
80
+ (pairedOrbit A x y a - WithLp.toLp 2
81
+ (Sum.elim (fun i => T (x i)) (fun i => star T (y i)))) (.inl i)
82
+ exact h.trans_lt hclose
83
+ · intro i
84
+ have h := PiLp.norm_apply_le
85
+ (pairedOrbit A x y a - WithLp.toLp 2
86
+ (Sum.elim (fun i => T (x i)) (fun i => star T (y i)))) (.inr i)
87
+ exact h.trans_lt hclose
88
+
89
+ end WeakPureInfiniteness
90
+
91
+ end
92
+
93
+ end OAI
lean/OAI/Analysis/OperatorAlgebra/CanonicalLpOperations.lean ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Analysis.OperatorAlgebra.LpOperatorStructure
2
+ import OAI.Analysis.OperatorAlgebra.LpOperatorTensorBound
3
+
4
+ namespace OAI
5
+
6
+ /-! Algebraic and norm identities for the canonical L² operator conversion. -/
7
+ noncomputable section
8
+ open MeasureTheory
9
+ namespace WeakPureInfiniteness
10
+ variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H]
11
+
12
+ lemma canonicalLpOperator_norm (T : HilbertOperatorSpace (Lp H 2 (volume : Measure ℝ))) :
13
+ ‖canonicalLpOperator T‖ = ‖T‖ := rfl
14
+
15
+ lemma norm_le_canonicalLpOperator
16
+ (T : Lp H 2 (volume : Measure ℝ) →L[ℂ] Lp H 2 (volume : Measure ℝ))
17
+ {c : ℝ} (h : c ≤ ‖T‖) : c ≤ ‖canonicalLpOperator T‖ :=
18
+ h.trans_eq (canonicalLpOperator_norm T).symm
19
+
20
+ lemma canonicalLpOperator_sum {I : Type*} [Fintype I]
21
+ (T : I → HilbertOperatorSpace (Lp H 2 (volume : Measure ℝ))) :
22
+ canonicalLpOperator (∑ i, T i) = ∑ i, canonicalLpOperator (T i) := by
23
+ classical
24
+ apply ContinuousLinearMap.ext
25
+ intro x
26
+ simp only [canonicalLpOperator_apply, sum_apply]
27
+
28
+ lemma canonicalLpOperator_tensor_bound [CompleteSpace H] {I : Type*} [Fintype I]
29
+ (l r a b : I → HilbertOperatorSpace (Lp H 2 (volume : Measure ℝ)))
30
+ (h : hilbertOperatorTensorBound l r a b) :
31
+ ‖∑ i, canonicalLpOperator (l i) * canonicalLpOperator (r i)‖ ≤
32
+ ‖∑ i, minimalElementary (canonicalLpOperator (a i))
33
+ (MulOpposite.op (canonicalLpOperator (b i)))‖ := by
34
+ simpa only [canonicalLpOperator_eq] using lp_operator_tensor_bound l r a b h
35
+
36
+ lemma canonicalLpOperator_sum_bound [CompleteSpace H] {I : Type*} [Fintype I]
37
+ (l r a b : I → Lp H 2 (volume : Measure ℝ) →L[ℂ] Lp H 2 (volume : Measure ℝ))
38
+ (h : ‖canonicalLpOperator (∑ i, l i * r i)‖ ≤
39
+ ‖∑ i, minimalElementary (canonicalLpOperator (a i))
40
+ (MulOpposite.op (canonicalLpOperator (b i)))‖) :
41
+ ‖∑ i, l i * r i‖ ≤ ‖∑ i, minimalElementary (a i) (MulOpposite.op (b i))‖ := by
42
+ simpa only [canonicalLpOperator_eq] using h
43
+
44
+ end WeakPureInfiniteness
45
+
46
+ end
47
+
48
+ end OAI
lean/OAI/Analysis/OperatorAlgebra/ComplexSymmetricMean.lean ADDED
@@ -0,0 +1,118 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Analysis.ModularRecovery.Mean
2
+
3
+ namespace OAI
4
+
5
+ /-! The complex linear version of the proved symmetric-interval mean.
6
+ It is positive, normalized and translation invariant for a free ultrafilter. -/
7
+
8
+ noncomputable section
9
+ open Filter
10
+ open scoped ComplexOrder
11
+
12
+ namespace WeakPureInfiniteness
13
+ open BoundedRecovery
14
+
15
+ private def meanRealPart (f : BoundedContinuousFunction ℝ ℂ) :
16
+ BoundedContinuousFunction ℝ ℝ := Complex.reCLM.compLeftContinuousBounded ℝ f
17
+
18
+ private def meanImagPart (f : BoundedContinuousFunction ℝ ℂ) :
19
+ BoundedContinuousFunction ℝ ℝ := Complex.imCLM.compLeftContinuousBounded ℝ f
20
+
21
+ def complexSymmetricMean (ω : Ultrafilter ℕ) (f : BoundedContinuousFunction ℝ ℂ) : ℂ :=
22
+ (fixedMean ω (meanRealPart f) : ℂ) + (fixedMean ω (meanImagPart f) : ℂ) * Complex.I
23
+
24
+ lemma complexSymmetricMean_add (ω : Ultrafilter ℕ)
25
+ (f g : BoundedContinuousFunction ℝ ℂ) :
26
+ complexSymmetricMean ω (f + g) = complexSymmetricMean ω f + complexSymmetricMean ω g := by
27
+ have hr : meanRealPart (f + g) = meanRealPart f + meanRealPart g := by ext t; simp [meanRealPart]
28
+ have hi : meanImagPart (f + g) = meanImagPart f + meanImagPart g := by ext t; simp [meanImagPart]
29
+ unfold complexSymmetricMean
30
+ rw [hr, hi]
31
+ change ((meanCLM ω) (meanRealPart f + meanRealPart g) : ℂ) +
32
+ ((meanCLM ω) (meanImagPart f + meanImagPart g) : ℂ) * Complex.I = _
33
+ rw [map_add, map_add]
34
+ simp only [Complex.ofReal_add, meanCLM_apply]
35
+ ring
36
+
37
+ lemma complexSymmetricMean_smul (ω : Ultrafilter ℕ)
38
+ (c : ℂ) (f : BoundedContinuousFunction ℝ ℂ) :
39
+ complexSymmetricMean ω (c • f) = c * complexSymmetricMean ω f := by
40
+ have hr : meanRealPart (c • f) = c.re • meanRealPart f - c.im • meanImagPart f := by
41
+ ext t
42
+ simp [meanRealPart, meanImagPart, Complex.mul_re]
43
+ have hi : meanImagPart (c • f) = c.re • meanImagPart f + c.im • meanRealPart f := by
44
+ ext t
45
+ simp [meanRealPart, meanImagPart, Complex.mul_im]
46
+ unfold complexSymmetricMean
47
+ rw [hr, hi]
48
+ change ((meanCLM ω) (c.re • meanRealPart f - c.im • meanImagPart f) : ℂ) +
49
+ ((meanCLM ω) (c.re • meanImagPart f + c.im • meanRealPart f) : ℂ) * Complex.I = _
50
+ rw [map_sub, map_add, map_smul, map_smul, map_smul, map_smul]
51
+ apply Complex.ext <;> simp [Complex.mul_re, Complex.mul_im]
52
+
53
+ lemma complexSymmetricMean_norm_le (ω : Ultrafilter ℕ)
54
+ (f : BoundedContinuousFunction ℝ ℂ) : ‖complexSymmetricMean ω f‖ ≤ 2 * ‖f‖ := by
55
+ have hr : ‖meanRealPart f‖ ≤ ‖f‖ := by
56
+ apply (BoundedContinuousFunction.norm_le (norm_nonneg f)).mpr
57
+ intro t
58
+ exact (Complex.abs_re_le_norm (f t)).trans (f.norm_coe_le_norm t)
59
+ have hi : ‖meanImagPart f‖ ≤ ‖f‖ := by
60
+ apply (BoundedContinuousFunction.norm_le (norm_nonneg f)).mpr
61
+ intro t
62
+ exact (Complex.abs_im_le_norm (f t)).trans (f.norm_coe_le_norm t)
63
+ calc
64
+ _ ≤ ‖(fixedMean ω (meanRealPart f) : ℂ)‖ +
65
+ ‖(fixedMean ω (meanImagPart f) : ℂ) * Complex.I‖ := norm_add_le _ _
66
+ _ = ‖fixedMean ω (meanRealPart f)‖ + ‖fixedMean ω (meanImagPart f)‖ := by simp
67
+ _ ≤ ‖f‖ + ‖f‖ := add_le_add ((norm_fixedMean_le ω _).trans hr) ((norm_fixedMean_le ω _).trans hi)
68
+ _ = _ := by ring
69
+
70
+ def complexSymmetricMeanCLM (ω : Ultrafilter ℕ) : BoundedContinuousFunction ℝ ℂ →L[ℂ] ℂ :=
71
+ LinearMap.mkContinuous
72
+ { toFun := complexSymmetricMean ω
73
+ map_add' := complexSymmetricMean_add ω
74
+ map_smul' := complexSymmetricMean_smul ω }
75
+ 2 (complexSymmetricMean_norm_le ω)
76
+
77
+ lemma complexSymmetricMean_const (ω : Ultrafilter ℕ) (hω : (ω : Filter ℕ) ≤ atTop) (c : ℂ) :
78
+ complexSymmetricMean ω (BoundedContinuousFunction.const ℝ c) = c := by
79
+ have hr : meanRealPart (BoundedContinuousFunction.const ℝ c) =
80
+ BoundedContinuousFunction.const ℝ c.re := rfl
81
+ have hi : meanImagPart (BoundedContinuousFunction.const ℝ c) =
82
+ BoundedContinuousFunction.const ℝ c.im := rfl
83
+ simp only [complexSymmetricMean, hr, hi, BoundedContinuousFunction.const_apply,
84
+ fixedMean_const ω hω, Complex.re_add_im]
85
+
86
+ def complexTranslateBCF (f : BoundedContinuousFunction ℝ ℂ) (s : ℝ) :
87
+ BoundedContinuousFunction ℝ ℂ :=
88
+ f.compContinuous ⟨fun t => t + s, continuous_id.add continuous_const⟩
89
+
90
+ lemma complexSymmetricMean_translate (ω : Ultrafilter ℕ) (hω : (ω : Filter ℕ) ≤ atTop)
91
+ (f : BoundedContinuousFunction ℝ ℂ) (s : ℝ) :
92
+ complexSymmetricMean ω (complexTranslateBCF f s) = complexSymmetricMean ω f := by
93
+ have hr : meanRealPart (complexTranslateBCF f s) = translateBCF (meanRealPart f) s := rfl
94
+ have hi : meanImagPart (complexTranslateBCF f s) = translateBCF (meanImagPart f) s := rfl
95
+ simp only [complexSymmetricMean, hr, hi, fixedMean_translate ω hω]
96
+
97
+ lemma complexSymmetricMean_nonneg (ω : Ultrafilter ℕ) (hω : (ω : Filter ℕ) ≤ atTop)
98
+ (f : BoundedContinuousFunction ℝ ℂ) (hf : ∀ t, 0 ≤ f t) :
99
+ 0 ≤ complexSymmetricMean ω f := by
100
+ have hi : meanImagPart f = 0 := by
101
+ ext t
102
+ exact (Complex.le_def.mp (hf t)).2.symm
103
+ have hr : 0 ≤ fixedMean ω (meanRealPart f) := by
104
+ have h := fixedMean_mono ω (BoundedContinuousFunction.const ℝ 0) (meanRealPart f)
105
+ (fun t => (Complex.le_def.mp (hf t)).1)
106
+ change fixedMean ω (fun _ : ℝ => 0) ≤ _ at h
107
+ rw [fixedMean_const ω hω] at h
108
+ exact h
109
+ simp only [complexSymmetricMean, hi]
110
+ have hz : fixedMean ω (0 : BoundedContinuousFunction ℝ ℝ) = 0 := (meanCLM ω).map_zero
111
+ rw [hz, Complex.ofReal_zero, zero_mul, add_zero]
112
+ exact_mod_cast hr
113
+
114
+ end WeakPureInfiniteness
115
+
116
+ end
117
+
118
+ end OAI
lean/OAI/Analysis/OperatorAlgebra/ContinuousLpFieldNorm.lean ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Analysis.ModularTheory.LpFaithful
2
+
3
+ namespace OAI
4
+
5
+ /-! A continuous operator field is bounded pointwise by its represented L2
6
+ operator. The proof tests a constant vector on a small positive-measure interval. -/
7
+ noncomputable section
8
+ open MeasureTheory Set
9
+ open scoped Topology ENNReal
10
+ namespace WeakPureInfiniteness
11
+
12
+ variable {H : Type*} [NormedAddCommGroup H] [NormedSpace ℂ H]
13
+
14
+ lemma continuousLpField_apply_norm_le
15
+ (T : Lp H 2 (volume : Measure ℝ) →L[ℂ] Lp H 2 (volume : Measure ℝ))
16
+ (F : ℝ → H →L[ℂ] H)
17
+ (hF : ∀ f, T f =ᵐ[volume] fun t => F t (f t))
18
+ (t₀ : ℝ) (x : H) (hc : ContinuousAt (fun t => F t x) t₀) :
19
+ ‖F t₀ x‖ ≤ ‖T‖ * ‖x‖ := by
20
+ by_contra hn
21
+ have hn' : ‖T‖ * ‖x‖ < ‖F t₀ x‖ := lt_of_not_ge hn
22
+ let c := (‖T‖ * ‖x‖ + ‖F t₀ x‖) / 2
23
+ have hc₁ : ‖T‖ * ‖x‖ < c := by dsimp [c]; linarith
24
+ have hc₂ : c < ‖F t₀ x‖ := by dsimp [c]; linarith
25
+ have hc₀ : 0 ≤ c := (mul_nonneg (norm_nonneg _) (norm_nonneg _)).trans hc₁.le
26
+ obtain ⟨δ, hδ, hd⟩ := Metric.continuousAt_iff.mp hc.norm
27
+ (‖F t₀ x‖ - c) (sub_pos.mpr hc₂)
28
+ let l := t₀ - δ / 2
29
+ let r := t₀ + δ / 2
30
+ have hlr : l < r := by dsimp [l, r]; linarith
31
+ have hs : MeasurableSet (Ioo l r) := measurableSet_Ioo
32
+ have hm : volume (Ioo l r) ≠ ⊤ := by simp
33
+ let f : Lp H 2 (volume : Measure ℝ) := indicatorConstLp 2 hs hm x
34
+ let g : Lp ℝ 2 (volume : Measure ℝ) := indicatorConstLp 2 hs hm c
35
+ have he : ‖g‖ ≤ ‖T f‖ := by
36
+ apply Lp.norm_le_norm_of_ae_le
37
+ filter_upwards [hF f,
38
+ indicatorConstLp_coeFn (p := 2) (hs := hs) (hμs := hm) (c := x),
39
+ indicatorConstLp_coeFn (p := 2) (hs := hs) (hμs := hm) (c := c)]
40
+ with t hT hf hg
41
+ change ‖g t‖ ≤ ‖T f t‖
42
+ rw [hg]
43
+ by_cases ht : t ∈ Ioo l r
44
+ · rw [indicator_of_mem ht, Real.norm_eq_abs, abs_of_nonneg hc₀, hT]
45
+ have hft : f t = x := hf.trans (indicator_of_mem ht _)
46
+ rw [hft]
47
+ have htδ : dist t t₀ < δ := by
48
+ rw [Real.dist_eq, abs_lt]
49
+ dsimp [l, r] at ht
50
+ constructor <;> linarith [ht.1, ht.2]
51
+ have hnorm := hd htδ
52
+ rw [Real.dist_eq] at hnorm
53
+ have hbelow := (abs_lt.mp hnorm).1
54
+ linarith
55
+ · rw [indicator_of_notMem ht, norm_zero]
56
+ exact norm_nonneg _
57
+ have he' := he.trans (T.le_opNorm f)
58
+ have hr : 0 < volume.real (Ioo l r) := by
59
+ rw [Real.volume_real_Ioo_of_le hlr.le]
60
+ exact sub_pos.mpr hlr
61
+ have hw : 0 < volume.real (Ioo l r) ^ (1 / (2 : ℝ≥0∞).toReal) :=
62
+ Real.rpow_pos_of_pos hr _
63
+ change ‖indicatorConstLp 2 hs hm c‖ ≤ ‖T‖ * ‖indicatorConstLp 2 hs hm x‖ at he'
64
+ rw [norm_indicatorConstLp (by norm_num) (by norm_num),
65
+ norm_indicatorConstLp (by norm_num) (by norm_num), Real.norm_eq_abs,
66
+ abs_of_nonneg hc₀, ← mul_assoc] at he'
67
+ exact (not_le_of_gt hc₁) ((mul_le_mul_iff_left₀ hw).mp he')
68
+
69
+ lemma continuousLpField_norm_le
70
+ (T : Lp H 2 (volume : Measure ℝ) →L[ℂ] Lp H 2 (volume : Measure ℝ))
71
+ (F : ℝ → H →L[ℂ] H)
72
+ (hF : ∀ f, T f =ᵐ[volume] fun t => F t (f t))
73
+ (t₀ : ℝ) (hc : ∀ x, ContinuousAt (fun t => F t x) t₀) :
74
+ ‖F t₀‖ ≤ ‖T‖ :=
75
+ (F t₀).opNorm_le_bound (norm_nonneg T)
76
+ (fun x => continuousLpField_apply_norm_le T F hF t₀ x (hc x))
77
+
78
+ end WeakPureInfiniteness
79
+
80
+ end
81
+
82
+ end OAI
lean/OAI/Analysis/OperatorAlgebra/CyclicCoefficientApproximation.lean ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Analysis.PureInfiniteness.NonunitalFunctionalRepresentation
2
+ import OAI.Analysis.Nuclearity.UnitizedCoefficients
3
+
4
+ namespace OAI
5
+
6
+ /-! The finite cyclic-vector approximation in KR02 Lemma 7.18. The cyclic
7
+ representation is on the unitization, so this applies to nonunital algebras
8
+ without assuming cyclicity of their restricted representations. -/
9
+
10
+ noncomputable section
11
+ open scoped BigOperators InnerProductSpace Topology ComplexOrder
12
+
13
+ namespace WeakPureInfiniteness
14
+
15
+ variable {D H I J : Type*} [NonUnitalCStarAlgebra D]
16
+ [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
17
+ [Fintype I] [Fintype J]
18
+
19
+ lemma finite_quadratic_coefficient_approximation
20
+ (π : Unitization ℂ D →⋆ₐ[ℂ] (H →L[ℂ] H)) (ξ : H)
21
+ (hcyc : DenseRange (fun a => π a ξ))
22
+ (L : J → I → I → H →L[ℂ] H) (k : I → H) (ε : ℝ) (hε : 0 < ε) :
23
+ ∃ a : I → Unitization ℂ D,
24
+ ‖(fun j => ∑ i, ∑ r, ⟪k i, L j i r (k r)⟫_ℂ) -
25
+ (fun j => ∑ i, ∑ r, ⟪π (a i) ξ, L j i r (π (a r) ξ)⟫_ℂ)‖ < ε := by
26
+ let Q : (I → H) → J → ℂ := fun z j => ∑ i, ∑ r, ⟪z i, L j i r (z r)⟫_ℂ
27
+ have hQ : Continuous Q := by
28
+ apply continuous_pi
29
+ intro j
30
+ fun_prop
31
+ have hQat : ContinuousAt Q k := hQ.continuousAt
32
+ obtain ⟨δ, hδ, hclose⟩ := Metric.continuousAt_iff.mp hQat ε hε
33
+ have hd : DenseRange (fun a : I → Unitization ℂ D => fun i => π (a i) ξ) :=
34
+ DenseRange.piMap (fun _ => hcyc)
35
+ obtain ⟨a, ha⟩ := Metric.denseRange_iff.mp hd k δ hδ
36
+ refine ⟨a, ?_⟩
37
+ have h := hclose (by simpa only [dist_comm] using ha)
38
+ simpa only [dist_eq_norm, norm_sub_rev, Q] using h
39
+
40
+ lemma unitized_coefficient_representation
41
+ {B : Type*} [NonUnitalCStarAlgebra B]
42
+ (π : Unitization ℂ D →⋆ₐ[ℂ] (H →L[ℂ] H)) (ξ : H)
43
+ (T : B → D) (a : I → Unitization ℂ D) (c : I → B) (b : B)
44
+ (e : H →L[ℂ] H) (he : ∀ d, Commute (π d) e) :
45
+ ⟪ξ, π ((unitizedCoefficientEnlargement T a c b : D) : Unitization ℂ D) (e ξ)⟫_ℂ =
46
+ ∑ i, ∑ j, ⟪π (a i) ξ,
47
+ π ((T (star (c i) * b * c j) : D) : Unitization ℂ D) (e (π (a j) ξ))⟫_ℂ := by
48
+ rw [inr_unitizedCoefficientEnlargement]
49
+ simp only [map_sum, sum_apply, inner_sum, map_mul, map_star,
50
+ ContinuousLinearMap.star_eq_adjoint, mul_apply_eq_comp]
51
+ apply Finset.sum_congr rfl
52
+ intro i _
53
+ apply Finset.sum_congr rfl
54
+ intro j _
55
+ rw [ContinuousLinearMap.adjoint_inner_right]
56
+ congr 2
57
+ exact congrArg (fun f : H →L[ℂ] H => f ξ) (he (a j)).eq
58
+
59
+ end WeakPureInfiniteness
60
+
61
+ end
62
+
63
+ end OAI
lean/OAI/Analysis/OperatorAlgebra/CyclicGNSUnitary.lean ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Analysis.OperatorAlgebra.CyclicStateNorm
2
+
3
+ namespace OAI
4
+
5
+ /-! The concrete cyclic vector realization of a positive functional is
6
+ unitarily equivalent to its GNS space. -/
7
+
8
+ noncomputable section
9
+ open scoped InnerProductSpace ComplexOrder
10
+ open UniformSpace
11
+
12
+ namespace WeakPureInfiniteness
13
+
14
+ variable {A H : Type*} [CStarAlgebra A] [PartialOrder A] [StarOrderedRing A]
15
+ [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
16
+ (φ : A →ₚ[ℂ] ℂ) (π : A →⋆ₐ[ℂ] (H →L[ℂ] H)) (ξ : H)
17
+ (hφ : ∀ a, φ a = inner ℂ ξ (π a ξ))
18
+
19
+ def cyclicPreGNSIsometry : φ.PreGNS →ₗᵢ[ℂ] H where
20
+ toFun x := π (φ.ofPreGNS x) ξ
21
+ map_add' x y := by simp only [map_add, add_apply]
22
+ map_smul' c x := by simp only [map_smul, smul_apply, RingHom.id_apply]
23
+ norm_map' x := by
24
+ change ‖π (φ.ofPreGNS x) ξ‖ = ‖x‖
25
+ have h := cyclic_vector_norm_eq_preGNS π (StarAlgHom.id ℂ A) φ ξ
26
+ (fun a => hφ a) (φ.ofPreGNS x)
27
+ change ‖π (φ.ofPreGNS x) ξ‖ = ‖φ.toPreGNS (φ.ofPreGNS x)‖ at h
28
+ simpa only [PositiveLinearMap.toPreGNS_ofPreGNS] using h
29
+
30
+ def cyclicGNSIsometry : φ.GNS →ₗᵢ[ℂ] H :=
31
+ (cyclicPreGNSIsometry φ π ξ hφ).fromCompletion
32
+
33
+ @[simp] lemma cyclicGNSIsometry_coe (x : φ.PreGNS) :
34
+ cyclicGNSIsometry φ π ξ hφ (x : φ.GNS) = π (φ.ofPreGNS x) ξ := by
35
+ rw [cyclicGNSIsometry, LinearIsometry.fromCompletion_apply_coe]
36
+ rfl
37
+
38
+ @[simp] lemma cyclicGNSIsometry_vector (a : A) :
39
+ cyclicGNSIsometry φ π ξ hφ (φ.toPreGNS a : φ.GNS) = π a ξ := by
40
+ rw [cyclicGNSIsometry_coe, PositiveLinearMap.ofPreGNS_toPreGNS]
41
+
42
+ theorem cyclicGNSIsometry_surjective (hξ : DenseRange (fun a => π a ξ)) :
43
+ Function.Surjective (cyclicGNSIsometry φ π ξ hφ) := by
44
+ let V := cyclicGNSIsometry φ π ξ hφ
45
+ have hc : IsClosed (Set.range V) := V.isometry.isClosedEmbedding.isClosed_range
46
+ have hr : Set.range (fun a => π a ξ) ⊆ Set.range V := by
47
+ rintro _ ⟨a, rfl⟩
48
+ exact ⟨(φ.toPreGNS a : φ.GNS), cyclicGNSIsometry_vector φ π ξ hφ a⟩
49
+ have hall : Set.univ ⊆ Set.range V := by
50
+ rw [← hξ.closure_range]
51
+ exact closure_minimal hr hc
52
+ intro x
53
+ exact hall (Set.mem_univ x)
54
+
55
+ def cyclicGNSUnitary (hξ : DenseRange (fun a => π a ξ)) : φ.GNS ≃ₗᵢ[ℂ] H :=
56
+ LinearIsometryEquiv.ofSurjective (cyclicGNSIsometry φ π ξ hφ)
57
+ (cyclicGNSIsometry_surjective φ π ξ hφ hξ)
58
+
59
+ theorem cyclicGNSIsometry_intertwines (a : A) (η : φ.GNS) :
60
+ cyclicGNSIsometry φ π ξ hφ (φ.gnsStarAlgHom a η) =
61
+ π a (cyclicGNSIsometry φ π ξ hφ η) := by
62
+ induction η using Completion.induction_on with
63
+ | hp => exact isClosed_eq (by fun_prop) (by fun_prop)
64
+ | ih x =>
65
+ change cyclicGNSIsometry φ π ξ hφ (φ.gnsNonUnitalStarAlgHom a x) = _
66
+ rw [PositiveLinearMap.gnsNonUnitalStarAlgHom_apply_coe,
67
+ cyclicGNSIsometry_coe, cyclicGNSIsometry_coe]
68
+ simp only [PositiveLinearMap.leftMulMapPreGNS_apply,
69
+ PositiveLinearMap.ofPreGNS_toPreGNS, map_mul, mul_apply_eq_comp]
70
+
71
+ theorem cyclicGNSUnitary_conjugates (hξ : DenseRange (fun a => π a ξ)) (a : A) :
72
+ (cyclicGNSUnitary φ π ξ hφ hξ).conjStarAlgEquiv (φ.gnsStarAlgHom a) = π a := by
73
+ ext η
74
+ rw [LinearIsometryEquiv.conjStarAlgEquiv_apply_apply]
75
+ change cyclicGNSIsometry φ π ξ hφ
76
+ (φ.gnsStarAlgHom a ((cyclicGNSUnitary φ π ξ hφ hξ).symm η)) = π a η
77
+ rw [cyclicGNSIsometry_intertwines]
78
+ change π a ((cyclicGNSUnitary φ π ξ hφ hξ)
79
+ ((cyclicGNSUnitary φ π ξ hφ hξ).symm η)) = π a η
80
+ rw [LinearIsometryEquiv.apply_symm_apply]
81
+
82
+ end WeakPureInfiniteness
83
+
84
+ end
85
+
86
+ end OAI
lean/OAI/Analysis/OperatorAlgebra/CyclicSeparatingCompression.lean ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Analysis.OperatorAlgebra.IntertwinerCompression
2
+ import OAI.Analysis.OperatorAlgebra.IsometricCornerOperators
3
+ import OAI.Analysis.ModularRecovery.TomitaFundamental
4
+
5
+ namespace OAI
6
+
7
+ /-! A separating vector remains separating on its cyclic subrepresentation.
8
+ The proof compresses the actual commuting operators and uses their dense
9
+ orbit, rather than assuming the compressed bicommutant is a normal image. -/
10
+ noncomputable section
11
+ open scoped Topology
12
+ namespace WeakPureInfiniteness
13
+ open BoundedRecovery
14
+
15
+ variable {A H K : Type*} [CStarAlgebra A]
16
+ [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
17
+ [NormedAddCommGroup K] [InnerProductSpace ℂ K] [CompleteSpace K]
18
+
19
+ lemma separating_compression (π : A →⋆ₐ[ℂ] (H →L[ℂ] H))
20
+ (ρ : A →⋆ₐ[ℂ] (K →L[ℂ] K)) (W : K →ₗᵢ[ℂ] H)
21
+ (hW : ∀ a, W.toContinuousLinearMap.comp (ρ a) = (π a).comp W.toContinuousLinearMap)
22
+ (M : VonNeumannAlgebra H) (hπ : ∀ a, π a ∈ M) (ξ : K)
23
+ (hsep : ∀ T : H →L[ℂ] H, T ∈ M → T (W ξ) = 0 → T = 0)
24
+ (U : K →L[ℂ] K)
25
+ (hU : ∀ R : K →L[ℂ] K, (∀ a, Commute (ρ a) R) → Commute R U)
26
+ (hzero : U ξ = 0) : U = 0 := by
27
+ have hd := commutant_cyclic M (W ξ) hsep
28
+ have hv (x : H) : U (W.toContinuousLinearMap.adjoint x) = 0 := by
29
+ apply closure_minimal (s := (operatorOrbit M.commutant (W ξ) : Set H)) ?_
30
+ (isClosed_eq (U.continuous.comp W.toContinuousLinearMap.adjoint.continuous)
31
+ continuous_const) (hd x)
32
+ rintro _ ⟨T, hT, rfl⟩
33
+ have hTπ (a : A) : Commute (π a) T :=
34
+ VonNeumannAlgebra.mem_commutant_iff.mp hT (π a) (hπ a)
35
+ have hc := hU (isometricCornerCompress W T)
36
+ (fun a => intertwiner_compression_commutes ρ π W.toContinuousLinearMap hW T hTπ a)
37
+ have he := congrArg (fun V : K →L[ℂ] K => V ξ) hc.eq
38
+ change W.toContinuousLinearMap.adjoint (T (W (U ξ))) =
39
+ U (W.toContinuousLinearMap.adjoint (T (W ξ))) at he
40
+ rw [hzero, map_zero, map_zero, map_zero] at he
41
+ exact he.symm
42
+ apply ContinuousLinearMap.ext
43
+ intro x
44
+ have he := hv (W x)
45
+ rwa [isometricCorner_adjoint_apply] at he
46
+
47
+ end WeakPureInfiniteness
48
+
49
+ end
50
+
51
+ end OAI
lean/OAI/Analysis/OperatorAlgebra/CyclicStandardIntertwiner.lean ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Analysis.PureInfiniteness.NormalizedSeparatingSequence
2
+ import OAI.Analysis.OperatorAlgebra.GNSSeparableCyclic
3
+
4
+ namespace OAI
5
+
6
+ /-! The application-specific standard representation and bounded intertwiner
7
+ for a tested vector of a representation of a separable C*-algebra. -/
8
+ noncomputable section
9
+ open TopologicalSpace
10
+ open scoped ComplexOrder
11
+ namespace WeakPureInfiniteness
12
+ open BoundedRecovery KirchbergRordam.GenericRW.GroupedFactors
13
+
14
+ universe u v
15
+ variable {A : Type u} {H : Type v} [CStarAlgebra A]
16
+ [PartialOrder A] [StarOrderedRing A] [SeparableSpace A]
17
+ [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
18
+
19
+ theorem exists_cyclic_standard_intertwiner
20
+ (π : A →⋆ₐ[ℂ] (H →L[ℂ] H)) (ξ : H) (hξ : ‖ξ‖ = 1) :
21
+ ∃ (K : ComplexHilbert.{u}) (S : StandardModularData K)
22
+ (ρ : A →⋆ₐ[ℂ] (K →L[ℂ] K)) (V : K →L[ℂ] H),
23
+ S.M = bicommutant ρ.range ∧ ‖V‖ ≤ 3 ∧ V S.xi = ξ ∧
24
+ ∀ a, V.comp (ρ a) = (π a).comp V := by
25
+ let f₀ := vectorPositiveFunctional π ξ
26
+ let K₀ := gnsHilbert f₀
27
+ let ρ₀ : A →⋆ₐ[ℂ] (K₀ →L[ℂ] K₀) := gnsBundledHom f₀
28
+ let ξ₀ : K₀ := gnsVector f₀ 1
29
+ let W₀ : K₀ →ₗᵢ[ℂ] H := cyclicBundledGNSIsometry f₀ π ξ
30
+ (vectorPositiveFunctional_apply π ξ)
31
+ have hW₀ : W₀ ξ₀ = ξ := cyclicBundledGNSIsometry_one f₀ π ξ _
32
+ have hξ₀ : ‖ξ₀‖ = 1 := by
33
+ rw [← W₀.norm_map ξ₀, hW₀, hξ]
34
+ let : SeparableSpace K₀ := gns_separable_of_cyclic f₀ π ξ
35
+ (vectorPositiveFunctional_apply π ξ)
36
+ let d : ℕ → K₀ := TopologicalSpace.denseSeq K₀
37
+ have hd : DenseRange d := TopologicalSpace.denseRange_denseSeq K₀
38
+ let Ω := separatingSequence ξ₀ d
39
+ let ω := normalizedSeparatingSequence ξ₀ d
40
+ let f₁ := vectorPositiveFunctional (sequenceAmplification ρ₀) ω
41
+ let K₁ := gnsHilbert f₁
42
+ let ρ₁ : A →⋆ₐ[ℂ] (K₁ →L[ℂ] K₁) := gnsBundledHom f₁
43
+ let W₁ : K₁ →ₗᵢ[ℂ] SequenceHilbert K₀ :=
44
+ cyclicBundledGNSIsometry f₁ (sequenceAmplification ρ₀) ω
45
+ (vectorPositiveFunctional_apply _ _)
46
+ let D := sequenceStandardGNSData ρ₀ ξ₀ hξ₀ d hd
47
+ let S : StandardModularData K₁ := D.toStandardModularData
48
+ let V : K₁ →L[ℂ] H := (‖Ω‖ : ℂ) •
49
+ (W₀.toContinuousLinearMap.comp
50
+ ((lp.evalCLM ℂ (fun _ : ℕ => K₀) 2 0).comp W₁.toContinuousLinearMap))
51
+ have hV (x : K₁) : V x = (‖Ω‖ : ℂ) • W₀ (W₁ x 0) := rfl
52
+ have hΩn : ‖Ω‖ ≤ 3 := by
53
+ have h := separatingSequence_norm_le ξ₀ d
54
+ change ‖Ω‖ ≤ ‖ξ₀‖ + 2 at h
55
+ rw [hξ₀] at h
56
+ norm_num at h ⊢
57
+ exact h
58
+ have hΩ : ‖Ω‖ ≠ 0 := norm_ne_zero_iff.mpr (separatingSequence_ne_zero ξ₀ hξ₀ d)
59
+ refine ⟨K₁, S, ρ₁, V, rfl, ?_, ?_, ?_⟩
60
+ · apply ContinuousLinearMap.opNorm_le_bound V (by norm_num)
61
+ intro x
62
+ rw [hV, norm_smul, Complex.norm_real, Real.norm_eq_abs,
63
+ abs_of_nonneg (norm_nonneg Ω), W₀.norm_map]
64
+ calc
65
+ ‖Ω‖ * ‖W₁ x 0‖ ≤ ‖Ω‖ * ‖W₁ x‖ :=
66
+ mul_le_mul_of_nonneg_left (lp.norm_apply_le_norm (by norm_num) _ _) (norm_nonneg _)
67
+ _ = ‖Ω‖ * ‖x‖ := by rw [W₁.norm_map]
68
+ _ ≤ 3 * ‖x‖ := mul_le_mul_of_nonneg_right hΩn (norm_nonneg _)
69
+ · change V (gnsVector f₁ 1) = ξ
70
+ rw [hV, cyclicBundledGNSIsometry_one]
71
+ change (‖Ω‖ : ℂ) • W₀ (((‖Ω‖⁻¹ : ℝ) : ℂ) • Ω 0) = ξ
72
+ rw [separatingSequence_zero, map_smul, smul_smul, ← Complex.ofReal_mul,
73
+ mul_inv_cancel₀ hΩ, Complex.ofReal_one, one_smul, hW₀]
74
+ · intro a
75
+ apply ContinuousLinearMap.ext
76
+ intro x
77
+ rw [ContinuousLinearMap.comp_apply, ContinuousLinearMap.comp_apply, hV, hV, map_smul]
78
+ congr 1
79
+ have h₁ := congrArg (fun T : K₁ →L[ℂ] SequenceHilbert K₀ => T x)
80
+ (cyclicBundledGNSIsometry_intertwines f₁ (sequenceAmplification ρ₀) ω
81
+ (vectorPositiveFunctional_apply _ _) a)
82
+ have h₀ := congrArg (fun T : K₀ →L[ℂ] H => T (W₁ x 0))
83
+ (cyclicBundledGNSIsometry_intertwines f₀ π ξ
84
+ (vectorPositiveFunctional_apply _ _) a)
85
+ change W₀ (W₁ (ρ₁ a x) 0) = π a (W₀ (W₁ x 0))
86
+ rw [show W₁ (ρ₁ a x) = sequenceAmplification ρ₀ a (W₁ x) from h₁]
87
+ exact h₀
88
+
89
+ end WeakPureInfiniteness
90
+
91
+ end
92
+
93
+ end OAI
lean/OAI/Analysis/OperatorAlgebra/CyclicStateNorm.lean ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import Mathlib.Analysis.CStarAlgebra.GelfandNaimarkSegal
2
+ import Mathlib.Analysis.InnerProductSpace.Adjoint
3
+ import Mathlib.Tactic
4
+
5
+ namespace OAI
6
+
7
+ /-! A cyclic representation is bounded by any C*-representation carrying
8
+ the same cyclic vector state. The source algebra need not carry a norm. -/
9
+
10
+ noncomputable section
11
+ open scoped InnerProductSpace ComplexOrder
12
+
13
+ namespace WeakPureInfiniteness
14
+
15
+ variable {A B H : Type*} [Ring A] [StarRing A] [Algebra ℂ A]
16
+ [CStarAlgebra B] [PartialOrder B] [StarOrderedRing B]
17
+ [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
18
+
19
+ lemma cyclic_vector_norm_eq_preGNS (π : A →⋆ₐ[ℂ] (H →L[ℂ] H))
20
+ (q : A →⋆ₐ[ℂ] B) (φ : B →ₚ[ℂ] ℂ) (ξ : H)
21
+ (hφ : ∀ a, φ (q a) = inner ℂ ξ (π a ξ)) (b : A) :
22
+ ‖π b ξ‖ = ‖φ.toPreGNS (q b)‖ := by
23
+ rw [PositiveLinearMap.preGNS_norm_def,
24
+ PositiveLinearMap.ofPreGNS_toPreGNS, ← map_star q, ← map_mul q, hφ]
25
+ simp only [map_mul, map_star, mul_apply_eq_comp,
26
+ ContinuousLinearMap.star_eq_adjoint, ContinuousLinearMap.adjoint_inner_right,
27
+ ]
28
+ have hnorm : (inner ℂ (π b ξ) (π b ξ)).re = ‖π b ξ‖ ^ 2 :=
29
+ inner_self_eq_norm_sq (𝕜 := ℂ) (π b ξ)
30
+ rw [hnorm, Real.sqrt_sq (norm_nonneg _)]
31
+
32
+ theorem cyclic_representation_norm_le (π : A →⋆ₐ[ℂ] (H →L[ℂ] H))
33
+ (q : A →⋆ₐ[ℂ] B) (φ : B →ₚ[ℂ] ℂ) (ξ : H)
34
+ (hξ : DenseRange (fun a => π a ξ))
35
+ (hφ : ∀ a, φ (q a) = inner ℂ ξ (π a ξ)) (a : A) :
36
+ ‖π a‖ ≤ ‖q a‖ := by
37
+ have hn := cyclic_vector_norm_eq_preGNS π q φ ξ hφ
38
+ have hmul : ‖φ.leftMulMapPreGNS (q a)‖ ≤ ‖q a‖ := by
39
+ unfold PositiveLinearMap.leftMulMapPreGNS
40
+ exact LinearMap.mkContinuous_norm_le _ (norm_nonneg _) _
41
+ refine (π a).opNorm_le_bound (norm_nonneg _) ?_
42
+ refine isClosed_property hξ (isClosed_le (by fun_prop) (by fun_prop)) ?_
43
+ intro b
44
+ calc
45
+ ‖π a (π b ξ)‖ = ‖π (a * b) ξ‖ := by rw [map_mul]; rfl
46
+ _ = ‖φ.toPreGNS (q (a * b))‖ := hn (a * b)
47
+ _ = ‖φ.leftMulMapPreGNS (q a) (φ.toPreGNS (q b))‖ := by
48
+ simp only [map_mul, PositiveLinearMap.leftMulMapPreGNS_apply,
49
+ PositiveLinearMap.ofPreGNS_toPreGNS]
50
+ _ ≤ ‖φ.leftMulMapPreGNS (q a)‖ * ‖φ.toPreGNS (q b)‖ :=
51
+ (φ.leftMulMapPreGNS (q a)).le_opNorm _
52
+ _ ≤ ‖q a‖ * ‖φ.toPreGNS (q b)‖ :=
53
+ mul_le_mul_of_nonneg_right hmul (norm_nonneg _)
54
+ _ = ‖q a‖ * ‖π b ξ‖ := by rw [hn b]
55
+
56
+ end WeakPureInfiniteness
57
+
58
+ end
59
+
60
+ end OAI
lean/OAI/Analysis/OperatorAlgebra/DensityQuadraticCompression.lean ADDED
@@ -0,0 +1,103 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Analysis.OperatorAlgebra.DensityRootTrace
2
+
3
+ namespace OAI
4
+
5
+ /-! Passing the density-root trace identity through a common finite
6
+ support, without finite-dimensionality of the represented Hilbert space. -/
7
+
8
+ noncomputable section
9
+ open scoped TensorProduct InnerProductSpace
10
+
11
+ namespace WeakPureInfiniteness
12
+
13
+ variable {H E F K : Type*}
14
+ [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
15
+ [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E]
16
+ [NormedAddCommGroup F] [InnerProductSpace ℂ F] [CompleteSpace F]
17
+ [NormedAddCommGroup K] [InnerProductSpace ℂ K] [CompleteSpace K]
18
+
19
+ lemma tensorIsometry_compression (f : F →ₗᵢ[ℂ] H) (g : K →ₗᵢ[ℂ] E)
20
+ (A : H →L[ℂ] H) (B : E →L[ℂ] E) (z w : F ⊗[ℂ] K) :
21
+ inner ℂ (TensorProduct.mapIsometry f g z)
22
+ (TensorProduct.mapL A B (TensorProduct.mapIsometry f g w)) =
23
+ inner ℂ z (TensorProduct.mapL
24
+ (f.toContinuousLinearMap.adjoint ∘L A ∘L f.toContinuousLinearMap)
25
+ (g.toContinuousLinearMap.adjoint ∘L B ∘L g.toContinuousLinearMap) w) := by
26
+ induction z using TensorProduct.inductionOn with
27
+ | tmul x y =>
28
+ induction w using TensorProduct.inductionOn with
29
+ | tmul v t =>
30
+ simp only [TensorProduct.mapIsometry_apply, TensorProduct.map_tmul,
31
+ TensorProduct.mapL_tmul, TensorProduct.inner_tmul]
32
+ change inner ℂ (f x) (A (f v)) * inner ℂ (g y) (B (g t)) =
33
+ inner ℂ x (f.toContinuousLinearMap.adjoint (A (f v))) *
34
+ inner ℂ y (g.toContinuousLinearMap.adjoint (B (g t)))
35
+ rw [ContinuousLinearMap.adjoint_inner_right, ContinuousLinearMap.adjoint_inner_right]
36
+ rfl
37
+ | add w₁ w₂ h₁ h₂ =>
38
+ simpa only [map_add, inner_add_right (𝕜 := ℂ)] using congrArg₂ (· + ·) h₁ h₂
39
+ | add z₁ z₂ h₁ h₂ =>
40
+ simpa only [map_add, inner_add_left (𝕜 := ℂ)] using congrArg₂ (· + ·) h₁ h₂
41
+
42
+ lemma finiteTensorDensity_compression (f : F →ₗᵢ[ℂ] H) (z : E ⊗[ℂ] F)
43
+ (A : H →L[ℂ] H) :
44
+ (finiteTensorDensity (TensorProduct.mapIsometry (LinearIsometry.id : E →ₗᵢ[ℂ] E) f z)).val A =
45
+ (finiteTensorDensity z).val (f.toContinuousLinearMap.adjoint ∘L A ∘L f.toContinuousLinearMap) := by
46
+ rw [finiteTensorDensity_apply, finiteTensorDensity_apply]
47
+ have h := tensorIsometry_compression (LinearIsometry.id : E →ₗᵢ[ℂ] E) f
48
+ (ContinuousLinearMap.id ℂ E) A z z
49
+ have hi : (LinearIsometry.id : E →ₗᵢ[ℂ] E).toContinuousLinearMap.adjoint ∘L
50
+ (ContinuousLinearMap.id ℂ E) ∘L (LinearIsometry.id : E →ₗᵢ[ℂ] E).toContinuousLinearMap =
51
+ ContinuousLinearMap.id ℂ E := by
52
+ change (ContinuousLinearMap.id ℂ E).adjoint ∘L (ContinuousLinearMap.id ℂ E) ∘L
53
+ (ContinuousLinearMap.id ℂ E) = ContinuousLinearMap.id ℂ E
54
+ rw [ContinuousLinearMap.adjoint_id]
55
+ simp only [ContinuousLinearMap.comp_id]
56
+ rw [hi] at h
57
+ exact h
58
+
59
+ theorem densityRoot_left_quadratic (z : E ⊗[ℂ] H) (A : H →L[ℂ] H) :
60
+ inner ℂ (NuclearUltrapower.densityRoot z)
61
+ (densityLeftRepresentation A (NuclearUltrapower.densityRoot z)) =
62
+ (finiteTensorDensity z).val A := by
63
+ obtain ⟨F, hF, hFz⟩ := TensorProduct.exists_finite_submodule_right_of_setFinite
64
+ ({z} : Set (E ⊗[ℂ] H)) (Set.finite_singleton z)
65
+ let : FiniteDimensional ℂ F := hF
66
+ let : CompleteSpace F := FiniteDimensional.complete ℂ F
67
+ let : InnerProductSpace ℂ (StrongDual ℂ F) := NuclearUltrapower.strongDualInner
68
+ let : NormedAddCommGroup (F ⊗[ℂ] StrongDual ℂ F) :=
69
+ TensorProduct.instNormedAddCommGroup (𝕜 := ℂ) (E := F) (F := StrongDual ℂ F)
70
+ let : InnerProductSpace ℂ (F ⊗[ℂ] StrongDual ℂ F) :=
71
+ TensorProduct.instInnerProductSpace (𝕜 := ℂ) (E := F) (F := StrongDual ℂ F)
72
+ obtain ⟨w, hw⟩ := hFz (Set.mem_singleton z)
73
+ have hm : TensorProduct.mapIsometry (LinearIsometry.id : E →ₗᵢ[ℂ] E) F.subtypeₗᵢ w = z := hw
74
+ rw [← hm]
75
+ simp only [NuclearUltrapower.densityRoot_mapIsometry, densityLeft_coe,
76
+ UniformSpace.Completion.inner_coe (𝕜 := ℂ) (E := H ⊗[ℂ] StrongDual ℂ H)]
77
+ let f := F.subtypeₗᵢ
78
+ let g := NuclearUltrapower.dualIsometry f
79
+ let t := NuclearUltrapower.finiteOperatorTensor (CFC.sqrt (NuclearUltrapower.reducedDensity w))
80
+ change inner ℂ (TensorProduct.mapIsometry f g t)
81
+ (TensorProduct.mapL A (ContinuousLinearMap.id ℂ (StrongDual ℂ H))
82
+ (TensorProduct.mapIsometry f g t)) = _
83
+ rw [tensorIsometry_compression]
84
+ have hg : g.toContinuousLinearMap.adjoint ∘L (ContinuousLinearMap.id ℂ (StrongDual ℂ H)) ∘L
85
+ g.toContinuousLinearMap = ContinuousLinearMap.id ℂ (StrongDual ℂ F) := by
86
+ apply ContinuousLinearMap.ext
87
+ intro x
88
+ have hx := congrArg (fun T : StrongDual ℂ F →L[ℂ] StrongDual ℂ F => T x)
89
+ g.adjoint_comp_self
90
+ exact hx
91
+ rw [hg]
92
+ have ht := densityRoot_left_quadratic_finite w
93
+ (f.toContinuousLinearMap.adjoint ∘L A ∘L f.toContinuousLinearMap)
94
+ simp only [densityRoot_eq_finiteOperatorTensor, densityLeft_coe,
95
+ UniformSpace.Completion.inner_coe (𝕜 := ℂ) (E := F ⊗[ℂ] StrongDual ℂ F)] at ht
96
+ rw [ht]
97
+ exact (finiteTensorDensity_compression f w A).symm
98
+
99
+ end WeakPureInfiniteness
100
+
101
+ end
102
+
103
+ end OAI
lean/OAI/Analysis/OperatorAlgebra/DensityRootTrace.lean ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Analysis.OperatorAlgebra.DensitySpatialRepresentation
2
+
3
+ namespace OAI
4
+
5
+ /-! The left spatial vector functional of a density root is the original
6
+ finite positive functional. The finite-dimensional computation is the
7
+ trace identity used before passage to a common finite support. -/
8
+
9
+ noncomputable section
10
+ open scoped InnerProductSpace TensorProduct ComplexOrder
11
+
12
+ namespace WeakPureInfiniteness
13
+
14
+ variable {H E : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
15
+ [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E]
16
+
17
+ lemma finiteOperatorTensor_left [FiniteDimensional ℂ H] (A T : H →L[ℂ] H) :
18
+ TensorProduct.mapL A (ContinuousLinearMap.id ℂ (StrongDual ℂ H))
19
+ (NuclearUltrapower.finiteOperatorTensor T) =
20
+ NuclearUltrapower.finiteOperatorTensor (A * T) := by
21
+ classical
22
+ simp only [NuclearUltrapower.finiteOperatorTensor, map_sum, TensorProduct.mapL_tmul,
23
+ ContinuousLinearMap.id_apply, mul_apply_eq_comp]
24
+
25
+ lemma densityRoot_eq_finiteOperatorTensor [FiniteDimensional ℂ H] (z : E ⊗[ℂ] H) :
26
+ NuclearUltrapower.densityRoot z =
27
+ (NuclearUltrapower.finiteOperatorTensor (CFC.sqrt (NuclearUltrapower.reducedDensity z)) :
28
+ NuclearUltrapower.HilbertSchmidt H) := by
29
+ apply NuclearUltrapower.hsOperator_injective
30
+ rw [NuclearUltrapower.hsOperator_densityRoot, NuclearUltrapower.hsOperator_coe,
31
+ NuclearUltrapower.tensorOperator_finiteOperatorTensor]
32
+
33
+ lemma densityRoot_left_quadratic_finite [FiniteDimensional ℂ H]
34
+ (z : E ⊗[ℂ] H) (A : H →L[ℂ] H) :
35
+ inner ℂ (NuclearUltrapower.densityRoot z)
36
+ (densityLeftRepresentation A (NuclearUltrapower.densityRoot z)) =
37
+ (finiteTensorDensity z).val A := by
38
+ rw [densityRoot_eq_finiteOperatorTensor, densityLeft_coe,
39
+ UniformSpace.Completion.inner_coe (𝕜 := ℂ) (E := H ⊗[ℂ] StrongDual ℂ H), finiteOperatorTensor_left,
40
+ NuclearUltrapower.finiteOperatorTensor_inner,
41
+ (CFC.sqrt_nonneg (NuclearUltrapower.reducedDensity z)).isSelfAdjoint.star_eq]
42
+ let r := CFC.sqrt (NuclearUltrapower.reducedDensity z)
43
+ change LinearMap.trace ℂ H ((r * (A * r)).toLinearMap) = _
44
+ have hc : LinearMap.trace ℂ H ((r * (A * r)).toLinearMap) =
45
+ LinearMap.trace ℂ H (((A * r) * r).toLinearMap) :=
46
+ LinearMap.trace_mul_comm ℂ r.toLinearMap (A * r).toLinearMap
47
+ rw [hc, mul_assoc]
48
+ have hr : r * r = NuclearUltrapower.reducedDensity z :=
49
+ CFC.sqrt_mul_sqrt_self _ (NuclearUltrapower.reducedDensity_nonneg z)
50
+ rw [hr, NuclearUltrapower.trace_reducedDensity, finiteTensorDensity_apply]
51
+
52
+ end WeakPureInfiniteness
53
+
54
+ end
55
+
56
+ end OAI
lean/OAI/Analysis/OperatorAlgebra/DensitySpatialRepresentation.lean ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Analysis.OperatorAlgebra.HilbertDualOperators
2
+ import OAI.Analysis.OperatorAlgebra.HilbertSchmidtUnitaryActions
3
+
4
+ namespace OAI
5
+
6
+ /-! The left/right actions used by the finite-density argument are genuine
7
+ spatial star representations on the Hilbert–Schmidt completion. -/
8
+
9
+ noncomputable section
10
+ open scoped TensorProduct InnerProductSpace
11
+
12
+ namespace WeakPureInfiniteness
13
+
14
+ variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
15
+
16
+ instance densityHSNormed : NormedAddCommGroup (NuclearUltrapower.HilbertSchmidt H) := inferInstance
17
+ instance densityHSInner : InnerProductSpace ℂ (NuclearUltrapower.HilbertSchmidt H) := inferInstance
18
+ instance densityHSComplete : CompleteSpace (NuclearUltrapower.HilbertSchmidt H) := inferInstance
19
+ instance densityHSScalar : NormedSpace ℂ (NuclearUltrapower.HilbertSchmidt H) := inferInstance
20
+ instance densityHSBounded : IsBoundedSMul ℂ (NuclearUltrapower.HilbertSchmidt H) :=
21
+ NormedSpace.toIsBoundedSMul
22
+ instance densityHSContinuous : ContinuousSMul ℂ (NuclearUltrapower.HilbertSchmidt H) :=
23
+ IsBoundedSMul.continuousSMul
24
+
25
+ def densityLeftRepresentation : (H →L[ℂ] H) →⋆ₐ[ℂ]
26
+ (NuclearUltrapower.HilbertSchmidt H →L[ℂ] NuclearUltrapower.HilbertSchmidt H) :=
27
+ Pureness.spatialLeftHom (K := StrongDual ℂ H) (StarAlgHom.id ℂ (H →L[ℂ] H))
28
+
29
+ def densityRightRepresentation : (H →L[ℂ] H)ᵐᵒᵖ →⋆ₐ[ℂ]
30
+ (NuclearUltrapower.HilbertSchmidt H →L[ℂ] NuclearUltrapower.HilbertSchmidt H) :=
31
+ Pureness.spatialRightHom (H := H) hilbertDualRepresentation
32
+
33
+ lemma densityLeftRight_commute (T S : H →L[ℂ] H) :
34
+ Commute (densityLeftRepresentation T) (densityRightRepresentation (MulOpposite.op S)) := by
35
+ unfold densityLeftRepresentation densityRightRepresentation
36
+ exact Pureness.spatialLeftRight_commute (StarAlgHom.id ℂ (H →L[ℂ] H))
37
+ (hilbertDualRepresentation (H := H)) T (MulOpposite.op S)
38
+
39
+ lemma densityLeft_coe (T : H →L[ℂ] H) (z : H ⊗[ℂ] StrongDual ℂ H) :
40
+ densityLeftRepresentation T (z : NuclearUltrapower.HilbertSchmidt H) =
41
+ (TensorProduct.mapL T (ContinuousLinearMap.id ℂ (StrongDual ℂ H)) z :
42
+ NuclearUltrapower.HilbertSchmidt H) :=
43
+ UnitalTomsWinter.spatialTensorOp_coe T 1 z
44
+
45
+ lemma densityLeft_unitary (U : H ≃ₗᵢ[ℂ] H) :
46
+ densityLeftRepresentation (U : H →L[ℂ] H) =
47
+ (hsLeftUnitary U : NuclearUltrapower.HilbertSchmidt H →L[ℂ] NuclearUltrapower.HilbertSchmidt H) := by
48
+ apply UnitalTomsWinter.spatialTensorOp_ext (H := H) (K := StrongDual ℂ H)
49
+ intro x f
50
+ change UnitalTomsWinter.spatialTensorOp (U : H →L[ℂ] H) 1
51
+ ((x ⊗ₜ[ℂ] f : H ⊗[ℂ] StrongDual ℂ H) : NuclearUltrapower.HilbertSchmidt H) = _
52
+ rw [UnitalTomsWinter.spatialTensorOp_coe]
53
+ change (TensorProduct.mapL (U : H →L[ℂ] H) (1 : StrongDual ℂ H →L[ℂ] StrongDual ℂ H) (x ⊗ₜ[ℂ] f) :
54
+ NuclearUltrapower.HilbertSchmidt H) = hsLeftUnitary U _
55
+ simp only [TensorProduct.mapL_tmul, one_apply_eq_self, hsLeftUnitary,
56
+ NuclearUltrapower.completionUnitary_coe, TensorProduct.congrIsometry_apply,
57
+ TensorProduct.congr_tmul]
58
+ rfl
59
+
60
+ lemma densityRight_unitary (U : H ≃ₗᵢ[ℂ] H) :
61
+ densityRightRepresentation (MulOpposite.op (U : H →L[ℂ] H)) =
62
+ (hsRightUnitary U : NuclearUltrapower.HilbertSchmidt H →L[ℂ] NuclearUltrapower.HilbertSchmidt H) := by
63
+ apply UnitalTomsWinter.spatialTensorOp_ext (H := H) (K := StrongDual ℂ H)
64
+ intro x f
65
+ change UnitalTomsWinter.spatialTensorOp 1 (hilbertDualOperator (U : H →L[ℂ] H))
66
+ ((x ⊗ₜ[ℂ] f : H ⊗[ℂ] StrongDual ℂ H) : NuclearUltrapower.HilbertSchmidt H) = _
67
+ rw [UnitalTomsWinter.spatialTensorOp_coe]
68
+ change (TensorProduct.mapL (1 : H →L[ℂ] H) (hilbertDualOperator (U : H →L[ℂ] H)) (x ⊗ₜ[ℂ] f) :
69
+ NuclearUltrapower.HilbertSchmidt H) = hsRightUnitary U _
70
+ simp only [TensorProduct.mapL_tmul, one_apply_eq_self, hsRightUnitary,
71
+ NuclearUltrapower.completionUnitary_coe, TensorProduct.congrIsometry_apply,
72
+ TensorProduct.congr_tmul]
73
+ have hf : hilbertDualOperator (U : H →L[ℂ] H) f = NuclearUltrapower.dualUnitary U.symm f := by
74
+ ext y
75
+ rw [hilbertDualOperator_apply, NuclearUltrapower.dualUnitary_apply]
76
+ rfl
77
+ change ((x ⊗ₜ[ℂ] hilbertDualOperator (U : H →L[ℂ] H) f : H ⊗[ℂ] StrongDual ℂ H) :
78
+ NuclearUltrapower.HilbertSchmidt H) = (x ⊗ₜ[ℂ] NuclearUltrapower.dualUnitary U.symm f)
79
+ rw [hf]
80
+
81
+ end WeakPureInfiniteness
82
+
83
+ end
84
+
85
+ end OAI
lean/OAI/Analysis/OperatorAlgebra/DensityUnitaryCoefficients.lean ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Analysis.OperatorAlgebra.DensitySpatialRepresentation
2
+ import OAI.Analysis.Nuclearity.SpatialCoefficientEstimate
3
+
4
+ namespace OAI
5
+
6
+ /-! Pointwise unitary identities for the spatial Hilbert–Schmidt action. -/
7
+
8
+ noncomputable section
9
+ open scoped InnerProductSpace
10
+ namespace WeakPureInfiniteness
11
+
12
+ variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
13
+
14
+ lemma densityLeft_unitary_apply (U : H ≃ₗᵢ[ℂ] H)
15
+ (z : NuclearUltrapower.HilbertSchmidt H) :
16
+ densityLeftRepresentation (U : H →L[ℂ] H) z = hsLeftUnitary U z := by
17
+ exact congrArg (fun V : NuclearUltrapower.HilbertSchmidt H →L[ℂ]
18
+ NuclearUltrapower.HilbertSchmidt H => V z) (densityLeft_unitary U)
19
+
20
+ lemma densityRight_unitary_apply (U : H ≃ₗᵢ[ℂ] H)
21
+ (z : NuclearUltrapower.HilbertSchmidt H) :
22
+ densityRightRepresentation (MulOpposite.op (U : H →L[ℂ] H)) z = hsRightUnitary U z := by
23
+ exact congrArg (fun V : NuclearUltrapower.HilbertSchmidt H →L[ℂ]
24
+ NuclearUltrapower.HilbertSchmidt H => V z) (densityRight_unitary U)
25
+
26
+ lemma densityLeft_unitary_product_apply (T : H →L[ℂ] H) (U : H ≃ₗᵢ[ℂ] H)
27
+ (z : NuclearUltrapower.HilbertSchmidt H) :
28
+ (densityLeftRepresentation T * densityLeftRepresentation (U : H →L[ℂ] H)) z =
29
+ densityLeftRepresentation (T * (U : H →L[ℂ] H)) z :=
30
+ congrArg (fun V : NuclearUltrapower.HilbertSchmidt H →L[ℂ]
31
+ NuclearUltrapower.HilbertSchmidt H => V z)
32
+ (map_mul (densityLeftRepresentation (H := H)) T (U : H →L[ℂ] H)).symm
33
+
34
+ lemma density_unitary_defect_norm (U : H ≃ₗᵢ[ℂ] H)
35
+ (z : NuclearUltrapower.HilbertSchmidt H) :
36
+ ‖densityRightRepresentation (MulOpposite.op (U : H →L[ℂ] H)) z -
37
+ densityLeftRepresentation (U : H →L[ℂ] H) z‖ =
38
+ ‖hsLeftUnitary U z - hsRightUnitary U z‖ := by
39
+ rw [densityRight_unitary_apply, densityLeft_unitary_apply, norm_sub_rev]
40
+
41
+ lemma density_unitary_product_coefficient (T : H →L[ℂ] H) (U : H ≃ₗᵢ[ℂ] H)
42
+ (z : NuclearUltrapower.HilbertSchmidt H) :
43
+ inner ℂ z ((densityLeftRepresentation T *
44
+ densityLeftRepresentation (U : H →L[ℂ] H)) z) =
45
+ inner ℂ z (densityLeftRepresentation (T * (U : H →L[ℂ] H)) z) :=
46
+ congrArg (inner ℂ z) (densityLeft_unitary_product_apply T U z)
47
+
48
+ lemma density_unitary_product_error (T : H →L[ℂ] H) (U : H ≃ₗᵢ[ℂ] H)
49
+ (z : NuclearUltrapower.HilbertSchmidt H) (hzn : ‖z‖ = 1) (α : ℂ) :
50
+ ‖inner ℂ z ((densityLeftRepresentation T *
51
+ densityRightRepresentation (MulOpposite.op (U : H →L[ℂ] H))) z) - α‖ ≤
52
+ ‖densityLeftRepresentation T‖ * ‖hsLeftUnitary U z - hsRightUnitary U z‖ +
53
+ ‖inner ℂ z (densityLeftRepresentation (T * (U : H →L[ℂ] H)) z) - α‖ := by
54
+ have hb := norm_product_coefficient_error_le
55
+ (H := NuclearUltrapower.HilbertSchmidt H) z hzn
56
+ (densityLeftRepresentation (H := H) T)
57
+ (densityRightRepresentation (H := H) (MulOpposite.op (U : H →L[ℂ] H)))
58
+ (densityLeftRepresentation (H := H) (U : H →L[ℂ] H)) α
59
+ exact hb.trans_eq (by rw [density_unitary_defect_norm, density_unitary_product_coefficient])
60
+
61
+ end WeakPureInfiniteness
62
+
63
+ end
64
+
65
+ end OAI
lean/OAI/Analysis/OperatorAlgebra/ExpectationDensityRoots.lean ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Analysis.OperatorAlgebra.FiniteVectorDensityTensor
2
+ import OAI.Analysis.OperatorAlgebra.ExpectationFiniteDensity
3
+
4
+ namespace OAI
5
+
6
+ /-! Application of the hypertrace separation and Powers–Størmer estimates
7
+ to an actual completely positive expectation. -/
8
+
9
+ noncomputable section
10
+ open scoped InnerProductSpace ComplexOrder
11
+
12
+ namespace WeakPureInfiniteness
13
+
14
+ open scoped TensorProduct
15
+
16
+ theorem densityRoot_finite_support {E H : Type*} [NormedAddCommGroup E]
17
+ [InnerProductSpace ℂ E] [CompleteSpace E] [NormedAddCommGroup H]
18
+ [InnerProductSpace ℂ H] [CompleteSpace H] (z : E ⊗[ℂ] H) :
19
+ ∃ F : Submodule ℂ H, FiniteDimensional ℂ F ∧
20
+ ∀ x, NuclearUltrapower.hsOperator (NuclearUltrapower.densityRoot z) x ∈ F := by
21
+ obtain ⟨F, hF, hFz⟩ := TensorProduct.exists_finite_submodule_right_of_setFinite
22
+ ({z} : Set (E ⊗[ℂ] H)) (Set.finite_singleton z)
23
+ let : FiniteDimensional ℂ F := hF
24
+ obtain ⟨w, hw⟩ := hFz (Set.mem_singleton z)
25
+ have hm : TensorProduct.mapIsometry (LinearIsometry.id : E →ₗᵢ[ℂ] E) F.subtypeₗᵢ w = z := hw
26
+ refine ⟨F, hF, ?_⟩
27
+ intro x
28
+ rw [← hm, NuclearUltrapower.densityRoot_mapIsometry, NuclearUltrapower.hsOperator_coe,
29
+ NuclearUltrapower.tensorOperator_liftOperatorTensor]
30
+ exact Subtype.property _
31
+
32
+ variable {H I J : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H]
33
+ [CompleteSpace H] [Fintype I] [Fintype J]
34
+
35
+ /-- A finite tracial expectation supplies positive finite-rank density roots
36
+ of norm at most one, approximately invariant under the prescribed unitaries. -/
37
+ theorem expectation_finite_density_roots (M : VonNeumannAlgebra H)
38
+ [PartialOrder M.toStarSubalgebra] [StarOrderedRing M.toStarSubalgebra]
39
+ (τ : Pureness.TracialState M.toStarSubalgebra)
40
+ (E : (H →L[ℂ] H) →L[ℂ] (H →L[ℂ] H))
41
+ (hE : CompletelyPositive E) (hEr : ∀ T, E T ∈ M)
42
+ (hEf : ∀ T, T ∈ M → E T = T)
43
+ (a : I → selfAdjoint M.toStarSubalgebra) (u : J → unitary M.toStarSubalgebra)
44
+ {ε : ℝ} (hε : 0 < ε) :
45
+ ∃ (n : ℕ) (w : Fin n → ℝ) (x : Fin n → H),
46
+ (∀ k, 0 ≤ w k) ∧ (∑ k, w k = 1) ∧ (∀ k, ‖x k‖ ≤ 1) ∧
47
+ (∀ i, |(τ.functional (a i)).re -
48
+ ∑ k, w k * (inner ℂ (x k) (((a i : M.toStarSubalgebra) : H →L[ℂ] H) (x k))).re| < ε) ∧
49
+ let z := NuclearUltrapower.densityRoot (finiteVectorDensityTensor w x)
50
+ ‖z‖ ≤ 1 ∧ 0 ≤ NuclearUltrapower.hsOperator z ∧
51
+ (∃ F : Submodule ℂ H, FiniteDimensional ℂ F ∧
52
+ ∀ y, NuclearUltrapower.hsOperator z y ∈ F) ∧
53
+ ∀ j, ‖NuclearUltrapower.hsConjugation
54
+ (subalgebraUnitaryIsometry M.toStarSubalgebra (u j)) z - z‖ ^ 2 < ε := by
55
+ obtain ⟨n, w, x, hw, hws, hx, ha, hu⟩ :=
56
+ expectation_finite_density M τ E hE hEr hEf a u hε
57
+ refine ⟨n, w, x, hw, hws, hx, ha, ?_⟩
58
+ dsimp only
59
+ refine ⟨?_, ?_, densityRoot_finite_support _, ?_⟩
60
+ · rw [NuclearUltrapower.densityRoot_norm]
61
+ exact finiteVectorDensityTensor_norm_le_one w hw hws x hx
62
+ · rw [NuclearUltrapower.hsOperator_densityRoot]
63
+ exact CFC.sqrt_nonneg _
64
+ · intro j
65
+ exact (finiteVectorDensity_root_central w hw x
66
+ (subalgebraUnitaryIsometry M.toStarSubalgebra (u j))).trans_lt (hu j)
67
+
68
+ end WeakPureInfiniteness
69
+
70
+ end
71
+
72
+ end OAI
lean/OAI/Analysis/OperatorAlgebra/ExpectationFiniteDensity.lean ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Analysis.OperatorAlgebra.HypertraceFiniteDensity
2
+ import OAI.Analysis.OperatorAlgebra.ExpectationHypertrace
3
+
4
+ namespace OAI
5
+
6
+ /-! The constructed conditional expectation supplies the finite hypertrace
7
+ witness. All conjugations below are the actual unitaries of the represented
8
+ algebra, and the errors are measured in the norm of vector functionals. -/
9
+
10
+ noncomputable section
11
+ open scoped InnerProductSpace ComplexOrder
12
+
13
+ namespace WeakPureInfiniteness
14
+
15
+ variable {H I J : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
16
+
17
+ def subalgebraUnitaryIsometry (M : StarSubalgebra ℂ (H →L[ℂ] H)) (u : unitary M) : H ≃ₗᵢ[ℂ] H :=
18
+ Unitary.linearIsometryEquiv (Unitary.map (StarMonoidHom.ofClass M.subtype) u)
19
+
20
+ lemma conjugatedOperator_subalgebraUnitary (M : StarSubalgebra ℂ (H →L[ℂ] H))
21
+ (u : unitary M) (T : H →L[ℂ] H) :
22
+ conjugatedOperator (subalgebraUnitaryIsometry M u) T =
23
+ star ((u : M) : H →L[ℂ] H) * T * ((u : M) : H →L[ℂ] H) := by
24
+ ext x
25
+ rfl
26
+
27
+ lemma hypertrace_subalgebraUnitary_invariant (M : StarSubalgebra ℂ (H →L[ℂ] H))
28
+ (φ : (H →L[ℂ] H) →ₚ[ℂ] ℂ)
29
+ (hc : ∀ (a : M) (T : H →L[ℂ] H), φ ((a : H →L[ℂ] H) * T) = φ (T * (a : H →L[ℂ] H)))
30
+ (u : unitary M) (T : H →L[ℂ] H) :
31
+ φ (conjugatedOperator (subalgebraUnitaryIsometry M u) T) = φ T := by
32
+ let v := Unitary.map (StarMonoidHom.ofClass M.subtype) u
33
+ rw [conjugatedOperator_subalgebraUnitary]
34
+ change φ (star (v : H →L[ℂ] H) * T * (v : H →L[ℂ] H)) = φ T
35
+ rw [mul_assoc]
36
+ have hh := hc (star (u : M)) (T * (v : H →L[ℂ] H))
37
+ change φ (star (v : H →L[ℂ] H) * (T * (v : H →L[ℂ] H))) =
38
+ φ ((T * (v : H →L[ℂ] H)) * star (v : H →L[ℂ] H)) at hh
39
+ rw [hh, mul_assoc, Unitary.mul_star_self_of_mem v.property, mul_one]
40
+
41
+ variable [Fintype I] [Fintype J]
42
+
43
+ /-- Finite normal positive approximations with norm-small unitary defects,
44
+ obtained from the actual expectation and a tracial state. -/
45
+ theorem expectation_finite_density (M : VonNeumannAlgebra H)
46
+ [PartialOrder M.toStarSubalgebra] [StarOrderedRing M.toStarSubalgebra]
47
+ (τ : Pureness.TracialState M.toStarSubalgebra)
48
+ (E : (H →L[ℂ] H) →L[ℂ] (H →L[ℂ] H))
49
+ (hE : CompletelyPositive E) (hEr : ∀ T, E T ∈ M)
50
+ (hEf : ∀ T, T ∈ M → E T = T)
51
+ (a : I → selfAdjoint M.toStarSubalgebra) (u : J → unitary M.toStarSubalgebra)
52
+ {ε : ℝ} (hε : 0 < ε) :
53
+ ∃ (n : ℕ) (w : Fin n → ℝ) (x : Fin n → H),
54
+ (∀ k, 0 ≤ w k) ∧ (∑ k, w k = 1) ∧ (∀ k, ‖x k‖ ≤ 1) ∧
55
+ (∀ i, |(τ.functional (a i)).re -
56
+ ∑ k, w k * (inner ℂ (x k) (((a i : M.toStarSubalgebra) : H →L[ℂ] H) (x k))).re| < ε) ∧
57
+ ∀ j, ‖finitePredualUnitary (subalgebraUnitaryIsometry M.toStarSubalgebra (u j))
58
+ (finiteVectorDensity w x) - finiteVectorDensity w x‖ < ε := by
59
+ obtain ⟨φ, hφ, hφa, hc⟩ := expectation_hypertrace M τ E hE hEr hEf
60
+ have ha (i : I) : IsSelfAdjoint ((a i : M.toStarSubalgebra) : H →L[ℂ] H) :=
61
+ (a i).property.map M.toStarSubalgebra.subtype
62
+ have hu (j : J) (T : H →L[ℂ] H) :
63
+ φ (conjugatedOperator (subalgebraUnitaryIsometry M.toStarSubalgebra (u j)) T) = φ T :=
64
+ hypertrace_subalgebraUnitary_invariant M.toStarSubalgebra φ hc (u j) T
65
+ simpa only [hφa] using hypertrace_finite_density
66
+ (fun i => ((a i : M.toStarSubalgebra) : H →L[ℂ] H)) ha
67
+ (fun j => subalgebraUnitaryIsometry M.toStarSubalgebra (u j)) φ hφ hu hε
68
+
69
+ end WeakPureInfiniteness
70
+
71
+ end
72
+
73
+ end OAI
lean/OAI/Analysis/OperatorAlgebra/ExpectationHypertrace.lean ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Analysis.ModularTheory.CommutantExpectation
2
+ import OAI.Analysis.Nuclearity.CPFaithfulRestriction
3
+ import OAI.Analysis.TracialSplitting.ChallengeDefinitions
4
+
5
+ namespace OAI
6
+
7
+ /-! The finite part of the injectivity argument starts with a hypertrace.
8
+ Composing a tracial state with the actual cpc expectation gives that
9
+ hypertrace, since the multiplicative-domain calculation is bimodular. -/
10
+
11
+ noncomputable section
12
+ open scoped CStarAlgebra ComplexOrder
13
+
14
+ namespace WeakPureInfiniteness
15
+
16
+ variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
17
+
18
+ theorem expectation_hypertrace (M : VonNeumannAlgebra H)
19
+ [PartialOrder M.toStarSubalgebra] [StarOrderedRing M.toStarSubalgebra]
20
+ (τ : Pureness.TracialState M.toStarSubalgebra)
21
+ (E : (H →L[ℂ] H) →L[ℂ] (H →L[ℂ] H))
22
+ (hE : CompletelyPositive E) (hEr : ∀ T, E T ∈ M)
23
+ (hEf : ∀ T, T ∈ M → E T = T) :
24
+ ∃ φ : (H →L[ℂ] H) →ₚ[ℂ] ℂ, φ 1 = 1 ∧
25
+ (∀ a : M.toStarSubalgebra, φ a = τ.functional a) ∧
26
+ ∀ (a : M.toStarSubalgebra) (T : H →L[ℂ] H),
27
+ φ ((a : H →L[ℂ] H) * T) = φ (T * (a : H →L[ℂ] H)) := by
28
+ let ι := M.toStarSubalgebra.subtype
29
+ let F : (H →L[ℂ] H) →L[ℂ] M.toStarSubalgebra :=
30
+ E.codRestrict M.toStarSubalgebra.toSubalgebra.toSubmodule hEr
31
+ have hF : CompletelyPositive F := by
32
+ apply completelyPositive_of_faithful_postcomp F ι.toNonUnitalStarAlgHom Subtype.val_injective
33
+ exact hE
34
+ have he (a : M.toStarSubalgebra) : F (ι a) = a := by
35
+ apply Subtype.ext
36
+ exact hEf _ a.property
37
+ let φ : (H →L[ℂ] H) →ₚ[ℂ] ℂ :=
38
+ PositiveLinearMap.mk₀ (τ.functional.toLinearMap.comp F.toLinearMap)
39
+ (fun T hT => τ.functional.map_nonneg (completelyPositive_map_nonneg hF hT))
40
+ refine ⟨φ, ?_, ?_, ?_⟩
41
+ · change τ.functional (F 1) = 1
42
+ have h1 : F 1 = 1 := by simpa only [map_one] using he 1
43
+ rw [h1, τ.normalized]
44
+ · intro a
45
+ change τ.functional (F (ι a)) = τ.functional a
46
+ rw [he]
47
+ · intro a T
48
+ change τ.functional (F (ι a * T)) = τ.functional (F (T * ι a))
49
+ rw [cp_extension_representation_mul_left ι (StarAlgHom.id ℂ M.toStarSubalgebra)
50
+ F hF he, cp_extension_representation_mul_right ι (StarAlgHom.id ℂ M.toStarSubalgebra)
51
+ F hF he]
52
+ exact τ.tracial a (F T)
53
+
54
+ end WeakPureInfiniteness
55
+
56
+ end
57
+
58
+ end OAI
lean/OAI/Analysis/OperatorAlgebra/FiniteHilbertCompression.lean ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Analysis.WeakInfiniteness.MatrixRepresentation
2
+ import OAI.Analysis.WeakInfiniteness.CentralState
3
+
4
+ namespace OAI
5
+
6
+ /-! # Completely positive compression to a finite Hilbert space
7
+
8
+ This is the compression used for the finite Fock-space approximations.
9
+ -/
10
+
11
+ noncomputable section
12
+ open scoped CStarAlgebra ComplexOrder InnerProductSpace
13
+
14
+ namespace WeakPureInfiniteness
15
+
16
+ section Amplification
17
+
18
+ variable {E H n : Type*} [Fintype n]
19
+ [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E]
20
+ [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
21
+
22
+ def amplifyHilbertMap (V : E →L[ℂ] H) :
23
+ PiLp 2 (fun _ : n => E) →L[ℂ] PiLp 2 (fun _ : n => H) :=
24
+ (PiLp.continuousLinearEquiv 2 ℂ (fun _ : n => H)).symm.toContinuousLinearMap.comp
25
+ ((ContinuousLinearMap.pi fun i => V.comp (ContinuousLinearMap.proj i)).comp
26
+ (PiLp.continuousLinearEquiv 2 ℂ (fun _ : n => E)).toContinuousLinearMap)
27
+
28
+ omit [Fintype n] [CompleteSpace E] [CompleteSpace H] in
29
+ @[simp] lemma amplifyHilbertMap_apply (V : E →L[ℂ] H)
30
+ (x : PiLp 2 (fun _ : n => E)) (i : n) :
31
+ amplifyHilbertMap V x i = V (x i) := by simp [amplifyHilbertMap]
32
+
33
+ lemma amplifyHilbertMap_adjoint (V : E →L[ℂ] H) :
34
+ amplifyHilbertMap (n := n) V.adjoint = (amplifyHilbertMap (n := n) V).adjoint := by
35
+ rw [ContinuousLinearMap.eq_adjoint_iff]
36
+ intro x y
37
+ simp only [PiLp.inner_apply, amplifyHilbertMap_apply,
38
+ ContinuousLinearMap.adjoint_inner_left]
39
+
40
+ end Amplification
41
+
42
+ section Compression
43
+
44
+ variable {A E H : Type*}
45
+ [NonUnitalCStarAlgebra A] [PartialOrder A] [StarOrderedRing A]
46
+ [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E]
47
+ [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
48
+
49
+ def hilbertCompressionLinear (π : A →⋆ₙₐ[ℂ] (H →L[ℂ] H)) (V : E →L[ℂ] H) :
50
+ A →ₗ[ℂ] (E →L[ℂ] E) where
51
+ toFun a := V.adjoint.comp ((π a).comp V)
52
+ map_add' a b := by ext x; simp
53
+ map_smul' c a := by ext x; simp
54
+
55
+ omit [PartialOrder A] [StarOrderedRing A] in
56
+ lemma hilbertCompressionLinear_bound (π : A →⋆ₙₐ[ℂ] (H →L[ℂ] H))
57
+ (V : E →L[ℂ] H) (a : A) :
58
+ ‖hilbertCompressionLinear π V a‖ ≤ (‖V‖ * ‖V‖) * ‖a‖ := by
59
+ calc
60
+ _ ≤ ‖V.adjoint‖ * (‖π a‖ * ‖V‖) :=
61
+ (ContinuousLinearMap.opNorm_comp_le _ _).trans
62
+ (mul_le_mul_of_nonneg_left (ContinuousLinearMap.opNorm_comp_le _ _) (norm_nonneg _))
63
+ _ ≤ ‖V‖ * (‖a‖ * ‖V‖) := by
64
+ rw [ContinuousLinearMap.adjoint.norm_map]
65
+ gcongr
66
+ exact NonUnitalStarAlgHom.norm_apply_le π a
67
+ _ = _ := by ring
68
+
69
+ def hilbertCompression (π : A →⋆ₙₐ[ℂ] (H →L[ℂ] H)) (V : E →L[ℂ] H) :
70
+ A →L[ℂ] (E →L[ℂ] E) :=
71
+ (hilbertCompressionLinear π V).mkContinuous (‖V‖ * ‖V‖)
72
+ (hilbertCompressionLinear_bound π V)
73
+
74
+ omit [PartialOrder A] [StarOrderedRing A] in
75
+ @[simp] lemma hilbertCompression_apply (π : A →⋆ₙₐ[ℂ] (H →L[ℂ] H))
76
+ (V : E →L[ℂ] H) (a : A) :
77
+ hilbertCompression π V a = V.adjoint.comp ((π a).comp V) := rfl
78
+
79
+ omit [PartialOrder A] [StarOrderedRing A] in
80
+ lemma hilbertCompression_norm_le (π : A →⋆ₙₐ[ℂ] (H →L[ℂ] H))
81
+ (V : E →L[ℂ] H) : ‖hilbertCompression π V‖ ≤ ‖V‖ * ‖V‖ :=
82
+ ContinuousLinearMap.opNorm_le_bound _ (mul_nonneg (norm_nonneg _) (norm_nonneg _))
83
+ (hilbertCompressionLinear_bound π V)
84
+
85
+ lemma hilbertCompression_cp (π : A →⋆ₙₐ[ℂ] (H →L[ℂ] H)) (V : E →L[ℂ] H) :
86
+ CompletelyPositive (hilbertCompression π V) := by
87
+ intro n X hX
88
+ let Y : CStarMatrix (Fin n) (Fin n) (E →L[ℂ] E) :=
89
+ CStarMatrix.ofMatrix (fun i j => hilbertCompression π V (X i j))
90
+ let Z := CStarMatrix.mapₙₐ π X
91
+ have hZ : 0 ≤ matrixOperator Z := by
92
+ change 0 ≤ matrixOperatorHom (n := Fin n) (H := H) Z
93
+ exact map_nonneg (matrixOperatorHom (n := Fin n) (H := H))
94
+ (map_nonneg (CStarMatrix.mapₙₐ π) hX)
95
+ have he : matrixOperator Y = (amplifyHilbertMap (n := Fin n) V).adjoint.comp
96
+ ((matrixOperator Z).comp (amplifyHilbertMap V)) := by
97
+ rw [← amplifyHilbertMap_adjoint]
98
+ ext x i
99
+ simp only [matrixOperator_apply, ContinuousLinearMap.comp_apply,
100
+ amplifyHilbertMap_apply, map_sum]
101
+ rfl
102
+ have hY : 0 ≤ matrixOperator Y := by
103
+ rw [he, ContinuousLinearMap.nonneg_iff_isPositive]
104
+ exact (ContinuousLinearMap.nonneg_iff_isPositive.mp hZ).adjoint_conj
105
+ (amplifyHilbertMap (n := Fin n) V)
106
+ have hreflect := (NonUnitalStarAlgHom.map_le_map_iff
107
+ (matrixOperatorHom (n := Fin n) (H := E)) matrixOperator_injective
108
+ (x := 0) (y := Y)).mp
109
+ apply hreflect
110
+ rw [map_zero]
111
+ change 0 ≤ matrixOperator Y
112
+ exact hY
113
+
114
+ end Compression
115
+
116
+ end WeakPureInfiniteness
117
+
118
+ end
119
+
120
+ end OAI