Download data/lean/OAI/Analysis/CharacterCriterion/MinimalFunctoriality.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 11 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/CharacterCriterion/MinimalFunctoriality.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Analysis/CharacterCriterion/MinimalFunctoriality.lean
-
curl -L -o MinimalFunctoriality.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/CharacterCriterion/MinimalFunctoriality.lean
11 kB
| import OAI.Analysis.CharacterCriterion.GeneralSystem | |
| namespace OAI | |
| noncomputable section | |
| open scoped TensorProduct | |
| open scoped InnerProductSpace | |
| open scoped BigOperators | |
| open Set Module | |
| open Topology | |
| open NormedSpace | |
| open scoped ComplexOrder | |
| open scoped ComplexOrder | |
| open scoped InnerProductSpace | |
| open scoped InnerProductSpace | |
| open NormedSpace | |
| open scoped TensorProduct InnerProductSpace | |
| open UniformSpace | |
| variable [KirchbergRordam.GenericRW.Size] | |
| local notation "rankNum" => KirchbergRordam.GenericRW.Size.n | |
| variable [KirchbergRordam.GenericRW.PauliData] | |
| omit [KirchbergRordam.GenericRW.Size] [KirchbergRordam.GenericRW.PauliData] | |
| open Filter Topology BoundedContinuousFunction | |
| open Filter Topology | |
| open Topology | |
| open scoped TensorProduct CStarAlgebra | |
| open scoped CStarAlgebra ComplexOrder | |
| open NormedSpace | |
| open scoped ComplexOrder | |
| open scoped ComplexOrder | |
| open scoped InnerProductSpace | |
| open scoped CStarAlgebra ComplexOrder | |
| open scoped TensorProduct InnerProductSpace | |
| open UniformSpace | |
| namespace KirchbergRordam.Spatial | |
| open scoped TensorProduct | |
| open UniformSpace | |
| variable {H K : Type*} [NormedAddCommGroup H] [InnerProductSpace β H] | |
| [NormedAddCommGroup K] [InnerProductSpace β K] | |
| def flipL : Hilbert H K βL[β] Hilbert K H := | |
| (TensorProduct.commIsometry β H K).toContinuousLinearEquiv.toContinuousLinearMap.completion | |
| lemma flipL_coe (x : H β[β] K) : | |
| flipL (x : Hilbert H K) = (TensorProduct.comm β H K x : Hilbert K H) := by | |
| simp [flipL] | |
| lemma flipL_flipL (x : Hilbert H K) : flipL (flipL x) = x := by | |
| induction x using Completion.induction_on with | |
| | hp => exact isClosed_eq (flipL.continuous.comp flipL.continuous) continuous_id | |
| | ih x => simp | |
| lemma norm_flipL (x : Hilbert H K) : βflipL xβ = βxβ := by | |
| induction x using Completion.induction_on with | |
| | hp => exact isClosed_eq (continuous_norm.comp flipL.continuous) continuous_norm | |
| | ih x => simp [TensorProduct.norm_comm] | |
| def flip : Hilbert H K ββα΅’[β] Hilbert K H where | |
| __ := flipL.toLinearMap | |
| invFun := flipL | |
| left_inv := flipL_flipL | |
| right_inv := flipL_flipL | |
| norm_map' := norm_flipL | |
| lemma flip_coe (x : H β[β] K) : | |
| flip (x : Hilbert H K) = (TensorProduct.comm β H K x : Hilbert K H) := flipL_coe x | |
| lemma flip_symm : (flip (H:=H) (K:=K)).symm = flip := rfl | |
| lemma flip_map (T : H βL[β] H) (S : K βL[β] K) : | |
| flip.conjStarAlgEquiv (map T S) = map S T := by | |
| apply ext | |
| intro x | |
| simp only [LinearIsometryEquiv.conjStarAlgEquiv_apply_apply, flip_symm, | |
| flip_coe, map_coe] | |
| congr 1 | |
| induction x using TensorProduct.inductionOn with | |
| | add x y hx hy => simp only [map_add, hx, hy] | |
| | tmul k h => simp | |
| lemma norm_flip_conjugate (T : Hilbert H K βL[β] Hilbert H K) : | |
| β(flip (H:=H) (K:=K)).conjStarAlgEquiv Tβ=βTβ := by | |
| rw [LinearIsometryEquiv.conjStarAlgEquiv_apply] | |
| rw [ContinuousLinearMap.opNorm_linearIsometryEquiv_comp, | |
| ContinuousLinearMap.opNorm_comp_linearIsometryEquiv] | |
| end KirchbergRordam.Spatial | |
| namespace KirchbergRordam.MinTensor | |
| open scoped TensorProduct CStarAlgebra | |
| universe u | |
| variable {A B : Type u} [CStarAlgebra A] [CStarAlgebra B] | |
| def algebraicFlip : (A β[β] B) βββ[β] (B β[β] A) := | |
| StarAlgEquiv.ofAlgEquiv (_root_.Algebra.TensorProduct.comm β A B) fun x => by | |
| induction x using TensorProduct.inductionOn with | |
| | add x y hx hy => simp only [map_add, star_add, hx, hy] | |
| | tmul a b => simp | |
| lemma algebraicFlip_tmul (a : A) (b : B) : algebraicFlip (a ββ[β] b) = b ββ[β] a := rfl | |
| lemma algebraicFlip_flip (x : A β[β] B) : algebraicFlip (algebraicFlip x) = x := by | |
| exact (_root_.Algebra.TensorProduct.comm β A B).symm_apply_apply x | |
| def RepresentationPair.rawMap (Ο : RepresentationPair A B) : | |
| (A β[β] B) βββ[β] (Spatial.Hilbert Ο.H Ο.K βL[β] Spatial.Hilbert Ο.H Ο.K) := | |
| MaxTensor.liftRaw (C := (Spatial.Hilbert Ο.H Ο.K βL[β] Spatial.Hilbert Ο.H Ο.K)) Ο.left Ο.right Ο.commute | |
| lemma RepresentationPair.rawMap_tmul (Ο : RepresentationPair A B) (a : A) (b : B) : | |
| Ο.rawMap (a ββ[β] b) = Ο.left a * Ο.right b := rfl | |
| def RepresentationPair.swap (Ο : RepresentationPair A B) : RepresentationPair B A where | |
| H := Ο.K | |
| K := Ο.H | |
| normH := inferInstance | |
| innerH := inferInstance | |
| completeH := inferInstance | |
| normK := inferInstance | |
| innerK := inferInstance | |
| completeK := inferInstance | |
| leftRep := Ο.rightRep | |
| rightRep := Ο.leftRep | |
| lemma liftRaw_conjugate_swap {C E : Type*} [CStarAlgebra C] [CStarAlgebra E] | |
| (Ο : A βββ[β] C) (Ο : B βββ[β] C) (h : β a b, Commute (Ο a) (Ο b)) | |
| (Ο' : B βββ[β] E) (Ο' : A βββ[β] E) (h' : β b a, Commute (Ο' b) (Ο' a)) | |
| (e : C βββ[β] E) (heβ : β b, Ο' b=e (Ο b)) (heβ : β a, Ο' a=e (Ο a)) | |
| (x : A β[β] B) : | |
| MaxTensor.liftRaw Ο' Ο' h' (algebraicFlip x) = e (MaxTensor.liftRaw Ο Ο h x) := by | |
| change MaxTensor.liftRaw Ο' Ο' h' (MaxTensor.rawEquiv (algebraicFlip x)) = | |
| e (MaxTensor.liftRaw Ο Ο h (MaxTensor.rawEquiv x)) | |
| induction x using TensorProduct.inductionOn with | |
| | add x y hx hy => simp only [map_add,hx,hy] | |
| | tmul a b => | |
| change MaxTensor.liftRaw Ο' Ο' h' (algebraicFlip (a ββ[β] b)) = | |
| e (MaxTensor.liftRaw Ο Ο h (a ββ[β] b)) | |
| simp only [algebraicFlip_tmul,MaxTensor.liftRaw_tmul,heβ,heβ,βmap_mul] | |
| exact congrArg e (h a b).symm.eq | |
| lemma swap_left_flip (Ο : RepresentationPair A B) (b : B) : | |
| Ο.swap.left b=(Spatial.flip (H:=Ο.H) (K:=Ο.K)).conjStarAlgEquiv (Ο.right b) := by | |
| exact (Spatial.flip_map 1 (Ο.rightRep b)).symm | |
| lemma swap_right_flip (Ο : RepresentationPair A B) (a : A) : | |
| Ο.swap.right a=(Spatial.flip (H:=Ο.H) (K:=Ο.K)).conjStarAlgEquiv (Ο.left a) := by | |
| exact (Spatial.flip_map (Ο.leftRep a) 1).symm | |
| lemma liftRaw_swap (Ο : RepresentationPair A B) (x : A β[β] B) : | |
| Ο.swap.rawMap (algebraicFlip x) = | |
| (Spatial.flip (H:=Ο.H) (K:=Ο.K)).conjStarAlgEquiv (Ο.rawMap x) := by | |
| let e := (Spatial.flip (H:=Ο.H) (K:=Ο.K)).conjStarAlgEquiv | |
| have he0 : e 0=0 := map_zero (M:=Spatial.Hilbert Ο.H Ο.K βL[β] Spatial.Hilbert Ο.H Ο.K) | |
| (N:=Spatial.Hilbert Ο.K Ο.H βL[β] Spatial.Hilbert Ο.K Ο.H) e | |
| have headd (s t : Spatial.Hilbert Ο.H Ο.K βL[β] Spatial.Hilbert Ο.H Ο.K) : e (s+t)=e s+e t := | |
| e.toStarRingEquiv.toRingEquiv.map_add' s t | |
| have hemul (s t : Spatial.Hilbert Ο.H Ο.K βL[β] Spatial.Hilbert Ο.H Ο.K) : e (s*t)=e s*e t := | |
| e.toStarRingEquiv.toRingEquiv.map_mul' s t | |
| change Ο.swap.rawMap (algebraicFlip x) = e (Ο.rawMap x) | |
| induction x using TensorProduct.inductionOn with | |
| | add x y hx hy => rw [map_add,map_add,map_add,headd,hx,hy]; rfl | |
| | tmul a b => | |
| simp only [algebraicFlip_tmul,RepresentationPair.rawMap_tmul,swap_left_flip,swap_right_flip] | |
| change e (Ο.right b)*e (Ο.left a)=e (Ο.left a*Ο.right b) | |
| rw [βhemul,(Ο.commute a b).symm.eq] | |
| lemma crossSeminorm_apply (Ο : RepresentationPair A B) (x : A β[β] B) : | |
| Ο.crossSeminorm.toSeminorm x = βΟ.rawMap xβ := rfl | |
| lemma crossSeminorm_swap (Ο : RepresentationPair A B) (x : A β[β] B) : | |
| Ο.swap.crossSeminorm.toSeminorm (algebraicFlip x) = Ο.crossSeminorm.toSeminorm x := by | |
| rw [crossSeminorm_apply,crossSeminorm_apply,liftRaw_swap] | |
| exact Spatial.norm_flip_conjugate _ | |
| lemma seminorm_algebraicFlip_le (x : A β[β] B) : seminorm (algebraicFlip x) β€ seminorm x := by | |
| apply seminorm_le | |
| rintro (_|Ο) | |
| Β· exact apply_nonneg _ _ | |
| Β· have h := crossSeminorm_swap Ο (algebraicFlip x) | |
| rw [algebraicFlip_flip] at h | |
| exact h.symm.le.trans (le_seminorm (some Ο.swap) x) | |
| lemma seminorm_algebraicFlip (x : A β[β] B) : seminorm (algebraicFlip x) = seminorm x := | |
| le_antisymm (seminorm_algebraicFlip_le x) | |
| (by simpa only [algebraicFlip_flip] using seminorm_algebraicFlip_le (algebraicFlip x)) | |
| def flipRaw : Raw A B βββ[β] Algebra B A := | |
| of.comp ((rawEquiv.symm.trans (algebraicFlip.trans rawEquiv)).toStarAlgHom) | |
| lemma norm_flipRaw (x : Raw A B) : βflipRaw xβ = βxβ := by | |
| change βof (rawEquiv (algebraicFlip (rawEquiv.symm x)))β=βxβ | |
| rw [norm_of] | |
| exact seminorm_algebraicFlip x | |
| lemma continuous_flipRaw : Continuous (flipRaw (A:=A) (B:=B)) := by | |
| apply LipschitzWith.continuous (K:=1) | |
| apply LipschitzWith.of_dist_le_mul | |
| intro x y | |
| simp only [NNReal.coe_one, one_mul, dist_eq_norm, β map_sub, norm_flipRaw, le_refl] | |
| def flipHom : Algebra A B βββ[β] Algebra B A where | |
| __ := UniformSpace.Completion.extensionHom (flipRaw (A:=A) (B:=B)).toRingHom continuous_flipRaw | |
| commutes' z := by | |
| change UniformSpace.Completion.extensionHom (flipRaw (A:=A) (B:=B)).toRingHom continuous_flipRaw | |
| ((algebraMap β (Raw A B) z) : Algebra A B) = _ | |
| rw [UniformSpace.Completion.extensionHom_coe] | |
| exact flipRaw.commutes z | |
| map_star' x := by | |
| induction x using UniformSpace.Completion.induction_on with | |
| | hp => | |
| exact isClosed_eq | |
| (UniformSpace.Completion.continuous_extension.comp continuous_star) | |
| (continuous_star.comp UniformSpace.Completion.continuous_extension) | |
| | ih x => | |
| change UniformSpace.Completion.extensionHom (flipRaw (A:=A) (B:=B)).toRingHom continuous_flipRaw | |
| (star (x : Algebra A B)) = | |
| star (UniformSpace.Completion.extensionHom (flipRaw (A:=A) (B:=B)).toRingHom continuous_flipRaw (x : Algebra A B)) | |
| simp only [StarCompletion.star_coe, UniformSpace.Completion.extensionHom_coe] | |
| exact map_star flipRaw x | |
| lemma flipHom_of (x : Raw A B) : flipHom (of x) = flipRaw x := | |
| UniformSpace.Completion.extensionHom_coe _ continuous_flipRaw x | |
| lemma flipHom_includeLeft (a : A) : flipHom (includeLeft (B:=B) a) = includeRight a := by | |
| change flipHom (of (rawEquiv (a ββ[β] (1 : B)))) = _ | |
| rw [flipHom_of] | |
| rfl | |
| lemma flipHom_includeRight (b : B) : flipHom (includeRight (A:=A) b) = includeLeft b := by | |
| change flipHom (of (rawEquiv ((1 : A) ββ[β] b))) = _ | |
| rw [flipHom_of] | |
| rfl | |
| lemma flipHom_flipHom (x : Algebra A B) : flipHom (flipHom x) = x := by | |
| induction x using UniformSpace.Completion.induction_on with | |
| | hp => exact isClosed_eq ((map_continuous flipHom).comp (map_continuous flipHom)) continuous_id | |
| | ih y => | |
| change flipHom (flipHom (of y))=of y | |
| rw [flipHom_of] | |
| change flipHom (of (rawEquiv (algebraicFlip (rawEquiv.symm y)))) = of y | |
| rw [flipHom_of] | |
| change of (rawEquiv (algebraicFlip (algebraicFlip (rawEquiv.symm y))))=of y | |
| simp only [algebraicFlip_flip, StarAlgEquiv.apply_symm_apply] | |
| def flip : Algebra A B βββ[β] Algebra B A := | |
| StarAlgEquiv.ofStarAlgHom flipHom flipHom | |
| (by ext x; exact flipHom_flipHom x) (by ext x; exact flipHom_flipHom x) | |
| lemma flip_includeLeft (a : A) : flip (includeLeft (B:=B) a)=includeRight a := | |
| flipHom_includeLeft a | |
| lemma flip_includeRight (b : B) : flip (includeRight (A:=A) b)=includeLeft b := | |
| flipHom_includeRight b | |
| end KirchbergRordam.MinTensor | |
| end | |
| end OAI | |