import OAI.Analysis.InterpolatedFactors.Haar namespace OAI noncomputable section universe u_1 u_2 u_3 u_4 u_5 namespace FreeGroupFactorMain.CyclicSpectral open MeasureTheory ProbabilityTheory Set variable {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] variable (A : E →L[ℂ] E) (hA : IsSelfAdjoint A) (ξ : E) variable [IsProbabilityMeasure (measure A hA ξ)] [NullSingletonClass (measure A hA ξ)] abbrev UniformAlgebra := C(Icc (0:ℝ) 1,ℂ) def cdfMap : C(Space A,Icc (0:ℝ) 1) := ⟨fun x => ⟨cdf (realMeasure A hA ξ) x,cdf_nonneg _ _,cdf_le_one _ _⟩, ((ProbabilityTransform.continuous_cdf (realMeasure A hA ξ)).comp continuous_subtype_val).subtype_mk _⟩ def uniformHom : UniformAlgebra →⋆ₐ[ℂ] (E →L[ℂ] E) := (complexHom A hA).comp (ContinuousMap.compStarAlgHom' ℂ ℂ (cdfMap A hA ξ)) def uniformState (f : UniformAlgebra) : ℂ := ∫ x:ℝ, f (projIcc 0 1 (by norm_num) x) ∂volume.restrict (Icc (0:ℝ) 1) theorem uniformHom_state (f : UniformAlgebra) : inner ℂ ξ (uniformHom A hA ξ f ξ)=uniformState f := by let g : ℝ → ℂ := fun x => f (projIcc 0 1 (by norm_num) x) have hg : Continuous g := f.continuous.comp continuous_projIcc have he (x : ℝ) : g (cdf (realMeasure A hA ξ) x)=f ⟨cdf (realMeasure A hA ξ) x, cdf_nonneg _ _,cdf_le_one _ _⟩ := by dsimp only [g] congr 1 exact projIcc_of_mem (by norm_num) ⟨cdf_nonneg _ _,cdf_le_one _ _⟩ have hi := integral_map (μ := measure A hA ξ) measurable_subtype_coe.aemeasurable (hg.comp (ProbabilityTransform.continuous_cdf (realMeasure A hA ξ))).aestronglyMeasurable have hj := integral_map (μ := realMeasure A hA ξ) (ProbabilityTransform.continuous_cdf (realMeasure A hA ξ)).aemeasurable hg.aestronglyMeasurable rw [ProbabilityTransform.map_cdf] at hj rw [uniformHom,StarAlgHom.comp_apply,← integral_complex] calc _ = ∫ x : Space A, g (cdf (realMeasure A hA ξ) x) ∂measure A hA ξ := by apply integral_congr_ae filter_upwards [] with x exact (he x).symm _ = ∫ x : ℝ, g (cdf (realMeasure A hA ξ) x) ∂realMeasure A hA ξ := hi.symm _ = uniformState f := hj.symm def uniformPhase : UniformAlgebra := ⟨fun x => ProbabilityTransform.phase x,ProbabilityTransform.phase_continuous.comp continuous_subtype_val⟩ theorem uniformHom_phase : uniformHom A hA ξ uniformPhase=(haarUnitary A hA ξ : E →L[ℂ] E) := rfl theorem uniformHom_mem (M : StarSubalgebra ℂ (E →L[ℂ] E)) (hM : IsClosed (M : Set (E →L[ℂ] E))) (hAM : A∈M) (f : UniformAlgebra) : uniformHom A hA ξ f∈M := complexHom_mem A hA M hM hAM _ end FreeGroupFactorMain.CyclicSpectral section open scoped ENNReal namespace FreeGroupFactorMain.CyclicSpectral section open MeasureTheory variable {H : Type u_2} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] local instance : InnerProductSpace ℝ H := InnerProductSpace.rclikeToReal ℂ H variable (A : H →L[ℂ] H) (hA : IsSelfAdjoint A) (ξ : H) def evaluate : C(Space A,ℝ) →ₗ[ℝ] H := (((ContinuousLinearMap.apply ℂ H ξ).restrictScalars ℝ).comp (cfcL hA)).toLinearMap theorem evaluate_norm (f : C(Space A,ℝ)) : ‖evaluate A hA ξ f‖=‖ContinuousMap.toLp 2 (measure A hA ξ) ℝ f‖ := by have hs : ‖evaluate A hA ξ f‖^2=‖ContinuousMap.toLp 2 (measure A hA ξ) ℝ f‖^2 := by calc _ = ∫ x, (f x)^2 ∂measure A hA ξ := (integral_sq A hA ξ f).symm _ = inner ℝ (ContinuousMap.toLp 2 (measure A hA ξ) ℝ f) (ContinuousMap.toLp 2 (measure A hA ξ) ℝ f) := by rw [MeasureTheory.ContinuousMap.inner_toLp] congr 1 funext x simp only [pow_two,RCLike.conj_to_real] _ = _ := real_inner_self_eq_norm_sq _ nlinarith [norm_nonneg (evaluate A hA ξ f),norm_nonneg (ContinuousMap.toLp 2 (measure A hA ξ) ℝ f)] def realize : Lp ℝ 2 (measure A hA ξ) →L[ℝ] H := (evaluate A hA ξ).extendOfNorm (ContinuousMap.toLp 2 (measure A hA ξ) ℝ).toLinearMap theorem realize_continuous (f : C(Space A,ℝ)) : realize A hA ξ (ContinuousMap.toLp 2 (measure A hA ξ) ℝ f)=cfcHom hA f ξ := by apply LinearMap.extendOfNorm_eq · exact ContinuousMap.toLp_denseRange ℝ (measure A hA ξ) ℝ (p := 2) (by norm_num) · refine ⟨1,fun g => ?_⟩ change ‖evaluate A hA ξ g‖ ≤ 1 * ‖ContinuousMap.toLp 2 (measure A hA ξ) ℝ g‖ rw [one_mul,evaluate_norm] theorem realize_norm (f : Lp ℝ 2 (measure A hA ξ)) : ‖realize A hA ξ f‖=‖f‖ := by have hd := ContinuousMap.toLp_denseRange ℝ (measure A hA ξ) ℝ (p := 2) (by norm_num : (2:ℝ≥0∞)≠∞) refine hd.induction_on (p := fun f => ‖realize A hA ξ f‖=‖f‖) f (isClosed_eq ((realize A hA ξ).continuous.norm) continuous_norm) ?_ intro q rw [realize_continuous] exact evaluate_norm A hA ξ q def isometry : Lp ℝ 2 (measure A hA ξ) →ₗᵢ[ℝ] H where toLinearMap := (realize A hA ξ).toLinearMap norm_map' := realize_norm A hA ξ end section open MeasureTheory Filter variable {H : Type u_3} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] local instance : InnerProductSpace ℝ H := InnerProductSpace.rclikeToReal ℂ H variable (A : H →L[ℂ] H) (hA : IsSelfAdjoint A) (ξ : H) theorem mul_memLp (g : C(Space A,ℝ)) (f : Lp ℝ 2 (measure A hA ξ)) : MemLp (fun x => g x*f x) 2 (measure A hA ξ) := by apply (Lp.memLp f).of_le_mul (c := ‖g‖) · exact g.continuous.aestronglyMeasurable.mul (Lp.aestronglyMeasurable f) · exact Eventually.of_forall (fun x => by rw [norm_mul];exact mul_le_mul_of_nonneg_right (g.norm_coe_le_norm x) (norm_nonneg _)) def multiply (g : C(Space A,ℝ)) : Lp ℝ 2 (measure A hA ξ) →L[ℝ] Lp ℝ 2 (measure A hA ξ) := LinearMap.mkContinuous { toFun := fun f => (mul_memLp A hA ξ g f).toLp (fun x => g x*f x) map_add' := by intro f k apply Lp.ext filter_upwards [(mul_memLp A hA ξ g (f+k)).coeFn_toLp, (mul_memLp A hA ξ g f).coeFn_toLp,(mul_memLp A hA ξ g k).coeFn_toLp, Lp.coeFn_add f k,Lp.coeFn_add ((mul_memLp A hA ξ g f).toLp _) ((mul_memLp A hA ξ g k).toLp _)] with x h₁ h₂ h₃ h₄ h₅ simp only [h₁,h₅,Pi.add_apply,h₂,h₃,h₄] exact mul_add _ _ _ map_smul' := by intro c f apply Lp.ext filter_upwards [(mul_memLp A hA ξ g (c • f)).coeFn_toLp, (mul_memLp A hA ξ g f).coeFn_toLp,Lp.coeFn_smul c f, Lp.coeFn_smul c ((mul_memLp A hA ξ g f).toLp _)] with x h₁ h₂ h₃ h₄ simp only [RingHom.id_apply,h₁,h₄,Pi.smul_apply,smul_eq_mul,h₂,h₃] ring } ‖g‖ (by intro f change ‖(mul_memLp A hA ξ g f).toLp (fun x => g x*f x)‖ ≤ ‖g‖ * ‖f‖ apply Lp.norm_le_mul_norm_of_ae_le_mul filter_upwards [(mul_memLp A hA ξ g f).coeFn_toLp] with x hx rw [hx,norm_mul] exact mul_le_mul_of_nonneg_right (g.norm_coe_le_norm x) (norm_nonneg _)) theorem multiply_ae (g : C(Space A,ℝ)) (f : Lp ℝ 2 (measure A hA ξ)) : multiply A hA ξ g f =ᵐ[measure A hA ξ] (fun x => g x*f x) := (mul_memLp A hA ξ g f).coeFn_toLp theorem multiply_continuous (g f : C(Space A,ℝ)) : multiply A hA ξ g (ContinuousMap.toLp 2 (measure A hA ξ) ℝ f)= ContinuousMap.toLp 2 (measure A hA ξ) ℝ (g*f) := by apply Lp.ext filter_upwards [multiply_ae A hA ξ g (ContinuousMap.toLp 2 (measure A hA ξ) ℝ f), f.coeFn_toLp (𝕜 := ℝ) (p := 2) (measure A hA ξ), (g*f).coeFn_toLp (𝕜 := ℝ) (p := 2) (measure A hA ξ)] with x h₁ h₂ h₃ rw [h₁,h₂,h₃] rfl theorem realize_multiply (g : C(Space A,ℝ)) (f : Lp ℝ 2 (measure A hA ξ)) : realize A hA ξ (multiply A hA ξ g f)=cfcHom hA g (realize A hA ξ f) := by have hd := ContinuousMap.toLp_denseRange ℝ (measure A hA ξ) ℝ (p := 2) (by norm_num : (2:ℝ≥0∞)≠∞) refine hd.induction_on (p := fun f => realize A hA ξ (multiply A hA ξ g f)=cfcHom hA g (realize A hA ξ f)) f (isClosed_eq ((realize A hA ξ).continuous.comp (multiply A hA ξ g).continuous) ((cfcHom hA g).continuous.comp (realize A hA ξ).continuous)) ?_ intro q rw [multiply_continuous,realize_continuous,realize_continuous,map_mul,mul_apply_eq_comp] theorem realize_coordinate (f : Lp ℝ 2 (measure A hA ξ)) : realize A hA ξ (multiply A hA ξ ((ContinuousMap.id ℝ).restrict (spectrum ℝ A)) f)= A (realize A hA ξ f) := by rw [realize_multiply,cfcHom_id] end open MeasureTheory Filter variable {H : Type u_4} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] local instance : InnerProductSpace ℝ H := InnerProductSpace.rclikeToReal ℂ H variable (A : H →L[ℂ] H) (hA : IsSelfAdjoint A) (ξ : H) def atom (x : Space A) : Lp ℝ 2 (measure A hA ξ) := indicatorConstLp 2 (measurableSet_singleton x) (measure_ne_top _ _) (1:ℝ) theorem atom_ae (x : Space A) : atom A hA ξ x =ᵐ[measure A hA ξ] ({x} : Set (Space A)).indicator (fun _ => (1:ℝ)) := indicatorConstLp_coeFn theorem multiply_atom (x : Space A) : multiply A hA ξ ((ContinuousMap.id ℝ).restrict (spectrum ℝ A)) (atom A hA ξ x)= (x:ℝ) • atom A hA ξ x := by classical apply Lp.ext filter_upwards [multiply_ae A hA ξ ((ContinuousMap.id ℝ).restrict (spectrum ℝ A)) (atom A hA ξ x), atom_ae A hA ξ x,Lp.coeFn_smul (x:ℝ) (atom A hA ξ x)] with y h₁ h₂ h₃ rw [h₁,h₃] change (y:ℝ)*atom A hA ξ x y=(x:ℝ)*atom A hA ξ x y rw [h₂] by_cases hy : y=x · subst y; rfl · simp [Set.indicator_of_notMem,hy] theorem realize_atom_eigen (x : Space A) : A (realize A hA ξ (atom A hA ξ x))=(x:ℝ) • realize A hA ξ (atom A hA ξ x) := by rw [← realize_coordinate,multiply_atom,map_smul] theorem realize_one : realize A hA ξ (ContinuousMap.toLp 2 (measure A hA ξ) ℝ (1:C(Space A,ℝ)))=ξ := by rw [realize_continuous,map_one,one_apply_eq_self] theorem realize_atom_inner (x : Space A) : inner ℝ ξ (realize A hA ξ (atom A hA ξ x))=(measure A hA ξ).real {x} := by have hm := (isometry A hA ξ).inner_map_map (ContinuousMap.toLp 2 (measure A hA ξ) ℝ (1:C(Space A,ℝ))) (atom A hA ξ x) change inner ℝ (realize A hA ξ (ContinuousMap.toLp 2 (measure A hA ξ) ℝ (1:C(Space A,ℝ)))) (realize A hA ξ (atom A hA ξ x))=_ at hm rw [realize_one] at hm rw [hm,real_inner_comm] change inner ℝ (indicatorConstLp 2 (measurableSet_singleton x) (measure_ne_top _ _) (1:ℝ)) (ContinuousMap.toLp 2 (measure A hA ξ) ℝ (1:C(Space A,ℝ)))=_ rw [L2.inner_indicatorConstLp_one] calc _ = ∫ _ in ({x}:Set (Space A)), (1:ℝ) ∂measure A hA ξ := by apply setIntegral_congr_ae (measurableSet_singleton x) exact ((1:C(Space A,ℝ)).coeFn_toLp (𝕜 := ℝ) (p := 2) (measure A hA ξ)).mono (fun y hy _ => hy) _ = _ := by simp [Measure.real] theorem singleton_eq_zero (x : Space A) (he : ∀ η : H, A η=(x:ℝ) • η → inner ℝ ξ η=0) : measure A hA ξ {x}=0 := by have hm : (measure A hA ξ).real {x}=0 := (realize_atom_inner A hA ξ x).symm.trans (he _ (realize_atom_eigen A hA ξ x)) exact (ENNReal.toReal_eq_zero_iff _).mp hm |>.resolve_right (measure_ne_top _ _) theorem noAtoms (he : ∀ (r:ℝ) (η:H), A η=r • η → inner ℝ ξ η=0) : NullSingletonClass (measure A hA ξ) := by constructor intro x exact singleton_eq_zero A hA ξ x (he x) end FreeGroupFactorMain.CyclicSpectral end namespace FreeGroupFactorMain.WeightedFock section open FreeFock Amplification MeasureTheory CyclicSpectral instance oldBaseOp_probability (u v : ℝ) : IsProbabilityMeasure (measure (oldBaseOp u v (0:ℕ) 1) (oldBaseOp_selfAdjoint u v 0 1) pRoot) := probability _ _ _ pRoot_norm theorem oldBaseOp_noAtoms (u v : ℝ) (hv : 0 ((pRepresentation (ι := ℕ)).symm T : Operator ℕ)) := by simp_rw [pRepresentation_symm_val] exact continuous_const.clm_comp (continuous_id.clm_comp continuous_const) theorem representedBase_closed : IsClosed (representedBase u v : Set (PRange ℕ →L[ℂ] PRange ℕ)) := by have hF : IsClosed (filledEdgeAlgebra u v (0:ℕ) 1 : Set (Operator ℕ)) := Set.isClosed_centralizer _ exact hF.preimage pRepresentation_symm_coe_continuous theorem oldBaseOp_mem_representedBase (hv : 0 by simpa only [representedBase, StarSubalgebra.mem_comap, StarAlgHom.comp_apply] using (weightedUniform_mem u v hv hvu a)) theorem weightedUniform_state (hv : 0