Download data/lean/OAI/Analysis/FactorGeneration/LaurentAlgebra.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 10.6 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/FactorGeneration/LaurentAlgebra.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Analysis/FactorGeneration/LaurentAlgebra.lean
-
curl -L -o LaurentAlgebra.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/FactorGeneration/LaurentAlgebra.lean
10.6 kB
| import Mathlib.Algebra.Star.Subalgebra | |
| import Mathlib.Algebra.Star.Unitary | |
| import Mathlib.Analysis.Complex.Basic | |
| import Mathlib.Analysis.Normed.Module.Basic | |
| import Mathlib.Analysis.Normed.Operator.Bilinear | |
| import Mathlib.Topology.Algebra.Module.Spaces.ContinuousLinearMap | |
| import Mathlib.Topology.Algebra.StarSubalgebra | |
| import OAI.Analysis.FactorGeneration.Words | |
| namespace OAI | |
| noncomputable section | |
| namespace Generator | |
| /-! The algebraic star algebra generated by one unitary is exactly the linear | |
| span of all its integer powers. No topology on the ambient algebra is needed. -/ | |
| section | |
| variable {R A : Type*} [CommRing R] [StarRing R] | |
| [Ring A] [StarRing A] [Algebra R A] [StarModule R A] | |
| def unitaryPowerMonoid (v : unitary A) : Submonoid A where | |
| carrier := Set.range (fun n : β€ => (β(v^n) : A)) | |
| one_mem' := β¨0, by simpβ© | |
| mul_mem' := by | |
| rintro a b β¨n,rflβ© β¨m,rflβ© | |
| exact β¨n+m,by simp [zpow_add]β© | |
| theorem unitary_power_mem_adjoin (v : unitary A) (n : β€) : | |
| (β(v^n) : A) β StarAlgebra.adjoin R {(v : A)} := by | |
| have hv := StarAlgebra.self_mem_adjoin_singleton R (v : A) | |
| cases n with | |
| | ofNat n => simpa using (StarAlgebra.adjoin R {(v : A)}).pow_mem hv n | |
| | negSucc n => | |
| have hs : star (v : A) β StarAlgebra.adjoin R {(v : A)} := star_mem hv | |
| have hp := (StarAlgebra.adjoin R {(v : A)}).pow_mem hs (n+1) | |
| change (β(v ^ (-(βn + 1) : β€)) : A) β _ | |
| rw [zpow_neg, β Int.natCast_add_one, zpow_natCast] | |
| change star ((v : A)^(n+1)) β _ | |
| rw [star_pow] | |
| exact hp | |
| theorem unitary_adjoin_eq_span (v : unitary A) : | |
| (StarAlgebra.adjoin R {(v : A)}).toSubalgebra.toSubmodule = | |
| Submodule.span R (Set.range (fun n : β€ => (β(v^n) : A))) := by | |
| apply le_antisymm | |
| Β· rw [StarAlgebra.adjoin_eq_span] | |
| apply Submodule.span_mono | |
| change Submonoid.closure _ β€ unitaryPowerMonoid v | |
| apply Submonoid.closure_le.mpr | |
| intro x hx | |
| rcases hx with hx | hx | |
| Β· obtain rfl := Set.mem_singleton_iff.mp hx | |
| exact β¨1,by simpβ© | |
| Β· have hx' : x = star (v : A) := by | |
| have he : star x = (v : A) := by simpa using hx | |
| exact (star_star x).symm.trans (congrArg star he) | |
| subst x | |
| exact β¨-1,by change (β(v ^ (-1 : β€)) : A) = _; rw [zpow_neg_one]; rflβ© | |
| Β· apply Submodule.span_le.mpr | |
| rintro x β¨n,rflβ© | |
| exact unitary_power_mem_adjoin v n | |
| end | |
| /-! Centered Laurent polynomials and their norm closure. -/ | |
| open scoped Topology | |
| section Algebraic | |
| variable {A : Type*} [Ring A] [StarRing A] [Algebra β A] [StarModule β A] | |
| def nonzeroUnitaryPowers (v : unitary A) : Set A := | |
| {x | β n : β€,n β 0 β§ x=(β(v^n) : A)} | |
| def centerLinear (Ο : A ββ[β] β) : A ββ[β] A := | |
| LinearMap.id - Ο.smulRight (1 : A) | |
| omit [StarRing A] [StarModule β A] in | |
| @[simp] theorem centerLinear_apply (Ο : A ββ[β] β) (x : A) : | |
| centerLinear Ο x = x-Ο x β’ (1 : A) := rfl | |
| theorem center_adjoin_mem_span (v : unitary A) (Ο : A ββ[β] β) | |
| (h1 : Ο 1=1) (hhaar : β n : β€,n β 0 β Ο (β(v^n) : A)=0) | |
| (x : A) (hx : x β StarAlgebra.adjoin β {(v : A)}) : | |
| centerLinear Ο x β Submodule.span β (nonzeroUnitaryPowers v) := by | |
| have hx' : x β Submodule.span β (Set.range (fun n : β€ => (β(v^n) : A))) := by | |
| rw [β unitary_adjoin_eq_span]; exact hx | |
| clear hx | |
| induction hx' using Submodule.span_induction with | |
| | mem x hx => | |
| obtain β¨n,rflβ© := hx | |
| by_cases hn : n=0 | |
| Β· simp [hn,h1] | |
| Β· rw [centerLinear_apply,hhaar n hn,zero_smul,sub_zero] | |
| exact Submodule.subset_span β¨n,hn,rflβ© | |
| | zero => simpa only [map_zero] using (Submodule.span β (nonzeroUnitaryPowers v)).zero_mem | |
| | add x y hx hy ihx ihy => | |
| rw [map_add]; exact Submodule.add_mem _ ihx ihy | |
| | smul r x hx ih => | |
| rw [map_smul]; exact Submodule.smul_mem _ r ih | |
| end Algebraic | |
| section | |
| variable {A : Type*} [NormedRing A] [NormedAlgebra β A] | |
| [StarRing A] [StarModule β A] [ContinuousStar A] | |
| /-- Every centered element of the actual norm-closed generated star algebra | |
| is a norm limit of linear combinations of nonzero powers. -/ | |
| theorem centered_elemental_mem_closedSpan (v : unitary A) (Ο : A βL[β] β) | |
| (h1 : Ο 1=1) (hhaar : β n : β€,n β 0 β Ο (β(v^n) : A)=0) | |
| (x : A) (hx : x β StarAlgebra.elemental β (v : A)) (hcenter : Ο x=0) : | |
| x β (Submodule.span β (nonzeroUnitaryPowers v)).topologicalClosure := by | |
| let S := (Submodule.span β (nonzeroUnitaryPowers v)).topologicalClosure | |
| let f : A βL[β] A := ContinuousLinearMap.id β A - Ο.smulRight (1 : A) | |
| have hc : IsClosed {y : A | f y β S} := (Submodule.span β (nonzeroUnitaryPowers v)).isClosed_topologicalClosure.preimage f.continuous | |
| have hp : β y β StarAlgebra.adjoin β {(v : A)},f y β S := by | |
| intro y hy | |
| exact Submodule.le_topologicalClosure _ (center_adjoin_mem_span v Ο.toLinearMap h1 hhaar y hy) | |
| have hh : f x β S := closure_minimal hp hc hx | |
| change x-Ο x β’ (1 : A) β S at hh | |
| simpa only [hcenter,zero_smul,sub_zero] using hh | |
| end | |
| /-! A continuous functional on a normed algebra extends zero product moments | |
| separately to the closed linear span in each slot. -/ | |
| open scoped Topology | |
| section | |
| variable {A : Type*} [NormedRing A] [NormedAlgebra β A] | |
| def sandwichFunctional (Ο : A βL[β] β) (a b : A) : A βL[β] β where | |
| toFun x := Ο (a*x*b) | |
| map_add' x y := by simp only [mul_add,add_mul,map_add] | |
| map_smul' c x := by simp only [mul_smul_comm,smul_mul_assoc,map_smul,RingHom.id_apply] | |
| cont := by fun_prop | |
| theorem functional_sandwich_closedSpan (Ο : A βL[β] β) (S : Set A) (a b x : A) | |
| (hx : x β (Submodule.span β S).topologicalClosure) | |
| (hm : β y β S,Ο (a*y*b)=0) : Ο (a*x*b)=0 := by | |
| let f := sandwichFunctional Ο a b | |
| have hs : Submodule.span β S β€ LinearMap.ker f.toLinearMap := by | |
| apply Submodule.span_le.mpr | |
| intro y hy | |
| exact hm y hy | |
| exact (Submodule.span β S).topologicalClosure_minimal hs f.isClosed_ker hx | |
| theorem functional_product_closedSpan (Ο : A βL[β] β) | |
| (sets : List (Set A)) (xs : List A) (a : A) | |
| (hxs : List.Forallβ (fun S x => x β (Submodule.span β S).topologicalClosure) sets xs) | |
| (hm : β ys,List.Forallβ (fun S y => y β S) sets ys β Ο (a*ys.prod)=0) : | |
| Ο (a*xs.prod)=0 := by | |
| induction xs generalizing sets a with | |
| | nil => cases hxs; exact hm [] .nil | |
| | cons x xs ih => | |
| cases hxs with | |
| | @cons S x sets xs hx hxs => | |
| have hh := functional_sandwich_closedSpan Ο S a xs.prod x hx (by | |
| intro y hy | |
| apply ih sets (a*y) hxs | |
| intro ys hys | |
| simpa only [List.prod_cons,mul_assoc] using hm (y::ys) (.cons hy hys)) | |
| simpa only [List.prod_cons,mul_assoc] using hh | |
| theorem alternatingFrom_closedSpan_slots (S T : Set A) (b : Bool) (xs : List A) | |
| (hx : alternatingFrom ((Submodule.span β S).topologicalClosure : Set A) | |
| ((Submodule.span β T).topologicalClosure : Set A) b xs) : | |
| List.Forallβ (fun s x => x β (Submodule.span β s).topologicalClosure) | |
| (alternatingSlotSets S T b xs.length) xs := by | |
| induction xs generalizing b with | |
| | nil => exact .nil | |
| | cons x xs ih => | |
| cases b <;> exact .cons hx.1 (ih _ hx.2) | |
| theorem alternatingMomentsZero_closedSpan (Ο : A βL[β] β) (S T : Set A) | |
| (hm : alternatingMomentsZero Ο S T) : | |
| alternatingMomentsZero Ο ((Submodule.span β S).topologicalClosure : Set A) | |
| ((Submodule.span β T).topologicalClosure : Set A) := by | |
| intro b xs hn hx | |
| have hh := functional_product_closedSpan Ο (alternatingSlotSets S T b xs.length) xs 1 | |
| (alternatingFrom_closedSpan_slots S T b xs hx) (by | |
| intro ys hys | |
| have hl : ys.length=xs.length := by | |
| rw [β hys.length_eq,alternatingSlotSets_length] | |
| have hy : ys β [] := by | |
| intro he | |
| have hz : xs.length=0 := by simpa [he] using hl.symm | |
| exact hn (List.length_eq_zero_iff.mp hz) | |
| have ha : alternatingFrom S T b ys := by | |
| apply (alternatingFrom_slots S T b ys).mpr | |
| simpa only [hl] using hys | |
| simpa only [one_mul] using hm b ys hy ha) | |
| simpa only [one_mul] using hh | |
| /-- Standard freeness: every nonempty alternating product of centered elements | |
| vanishes, starting with either algebra and with no restriction on length parity. -/ | |
| def freeSets (Ο : A β β) (S T : Set A) : Prop := | |
| alternatingMomentsZero Ο {x | x β S β§ Ο x=0} {x | x β T β§ Ο x=0} | |
| end | |
| /-! Norm completion of algebraic mixed moments gives full freeness of the | |
| actual generated C*-algebra from the closed base algebra. -/ | |
| variable {A : Type*} [NormedRing A] [NormedAlgebra β A] | |
| /-- Centering commutes with norm approximation in a unital subalgebra. -/ | |
| theorem centered_subalgebra_closure_mem (Ο : A βL[β] β) (h1 : Ο 1=1) | |
| (D : Subalgebra β A) (x : A) (hx : x β D.topologicalClosure) (hcenter : Ο x=0) : | |
| x β (Submodule.span β {d | d β D β§ Ο d=0}).topologicalClosure := by | |
| let S := Submodule.span β {d | d β D β§ Ο d=0} | |
| let f : A βL[β] A := ContinuousLinearMap.id β A - Ο.smulRight (1 : A) | |
| have hc : IsClosed {y : A | f y β S.topologicalClosure} := | |
| S.isClosed_topologicalClosure.preimage f.continuous | |
| have hp : β y β D,f y β S.topologicalClosure := by | |
| intro y hy | |
| apply Submodule.le_topologicalClosure | |
| apply Submodule.subset_span | |
| change y-Ο y β’ (1 : A) β D β§ Ο (y-Ο y β’ (1 : A))=0 | |
| refine β¨D.sub_mem hy (D.smul_mem D.one_mem _),?_β© | |
| simp only [map_sub,map_smul,h1,smul_eq_mul,mul_one,sub_self] | |
| have hh : f x β S.topologicalClosure := closure_minimal hp hc hx | |
| change x-Ο x β’ (1 : A) β S.topologicalClosure at hh | |
| simpa only [hcenter,zero_smul,sub_zero] using hh | |
| variable [StarRing A] [StarModule β A] [ContinuousStar A] | |
| theorem unitary_generated_free_of_power_moments (Ο : A βL[β] β) (h1 : Ο 1=1) | |
| (v : unitary A) (D : Subalgebra β A) | |
| (hhaar : β n : β€,n β 0 β Ο (β(v^n) : A)=0) | |
| (hm : alternatingMomentsZero Ο (nonzeroUnitaryPowers v) {d | d β D β§ Ο d=0}) : | |
| freeSets Ο (StarAlgebra.elemental β (v : A)) D.topologicalClosure := by | |
| have hclosed := alternatingMomentsZero_closedSpan Ο _ _ hm | |
| intro b xs hn hx | |
| apply hclosed b xs hn | |
| clear hn | |
| induction xs generalizing b with | |
| | nil => trivial | |
| | cons x xs ih => | |
| cases b with | |
| | true => | |
| exact β¨centered_elemental_mem_closedSpan v Ο h1 hhaar x hx.1.1 hx.1.2,ih _ hx.2β© | |
| | false => | |
| exact β¨centered_subalgebra_closure_mem Ο h1 D x hx.1.1 hx.1.2,ih _ hx.2β© | |
| end Generator | |
| end | |
| end OAI | |