Download data/lean/OAI/RepresentationTheory/SignedTensor/Overlap.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 25.6 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/RepresentationTheory/SignedTensor/Overlap.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/RepresentationTheory/SignedTensor/Overlap.lean
-
curl -L -o Overlap.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/RepresentationTheory/SignedTensor/Overlap.lean
25.6 kB
| import Mathlib | |
| import OAI.RepresentationTheory.SignedTensor.Blocks | |
| import OAI.RepresentationTheory.Unitary.Spectral | |
| namespace OAI | |
| noncomputable section | |
| open scoped BigOperators Matrix.Norms.L2Operator ComplexOrder | |
| attribute [local instance] Classical.propDecidable | |
| noncomputable section | |
| open scoped BigOperators ComplexConjugate Matrix.Norms.L2Operator | |
| attribute [local instance] Classical.propDecidable | |
| noncomputable section | |
| open scoped BigOperators ComplexOrder MatrixOrder | |
| attribute [local instance] Classical.propDecidable | |
| noncomputable section | |
| open scoped BigOperators ENNReal | |
| open MeasureTheory | |
| noncomputable section | |
| open scoped BigOperators Matrix.Norms.L2Operator ComplexOrder | |
| noncomputable section | |
| open scoped BigOperators | |
| attribute [local instance] Classical.propDecidable | |
| noncomputable section | |
| open scoped BigOperators Matrix.Norms.L2Operator ComplexOrder | |
| attribute [local instance] Classical.propDecidable | |
| noncomputable section | |
| attribute [local instance] Classical.propDecidable | |
| namespace CoordinateSweeps.TensorBoard | |
| variable {R C J : Type*} [Fintype R] [DecidableEq R] [Nonempty R] | |
| [Fintype C] [DecidableEq C] [Fintype J] [DecidableEq J] | |
| omit [Nonempty R] in | |
| lemma board_trace_le_reindexed {l : β} (F : Finset (R Γ C)) (e : Fin l β F) | |
| (r : R β Matrix J J β) (v : C β Matrix J J β) | |
| (hr : β i, (r i).PosSemidef) (hv : β j, (v j).PosSemidef) | |
| (ht : β j, Matrix.trace (v j)=1) (A : Matrix J J β) (hA : A.IsHermitian) | |
| (hw : ((Fintype.card R : β) β’ (1 : Matrix J J β)-β i, A*r i*A).PosSemidef) : | |
| (Matrix.trace (tensor (fun _ : Fin l => A)*tensor (fun x => r (e x).val.1)* | |
| tensor (fun _ : Fin l => A)*tensor (fun x => v (e x).val.2))).re β€ | |
| Real.exp (Fintype.card R*Fintype.card C-F.card) := by | |
| have hh := board_trace_le F r v hr hv ht A hA hw | |
| rw [β tensor_mul,tensor_trace] at hh | |
| rw [β tensor_mul,β tensor_mul,β tensor_mul,tensor_trace] | |
| have he := Equiv.prod_comp e (fun x : F => Matrix.trace (A*r x.val.1*A*v x.val.2)) | |
| simpa only [he] using hh | |
| end CoordinateSweeps.TensorBoard | |
| namespace CoordinateSweeps.UnitaryIrrep | |
| variable {Ξ n : Type*} [Group Ξ] [Fintype Ξ] [Fintype n] [DecidableEq n] | |
| lemma projector_commute_lift (Ο : UnitaryIrrep Ξ) (Ο : Ξ β* Matrix n n β) | |
| (x : MonoidAlgebra β Ξ) : | |
| Ο.projector Ο*MonoidAlgebra.lift β _ _ Ο x=MonoidAlgebra.lift β _ _ Ο x*Ο.projector Ο := by | |
| induction x using MonoidAlgebra.induction_on with | |
| | of g => simpa using (Ο.projector_commute Ο g).symm | |
| | add x y hx hy => simp only [map_add,add_mul,mul_add,hx,hy] | |
| | smul c x hx => simp only [map_smul,smul_mul_assoc,mul_smul_comm,hx] | |
| end CoordinateSweeps.UnitaryIrrep | |
| namespace CoordinateSweeps.SignedTensor | |
| lemma densityPower_commute_projector {p l : β} (r : Matrix (Letter p) (Letter p) β) | |
| (hr : IsEven r) (Ο : UnitaryIrrep (Equiv.Perm (Fin l))) : | |
| densityPower l r*Ο.projector (action p l)=Ο.projector (action p l)*densityPower l r := by | |
| simp only [UnitaryIrrep.projector,Matrix.mul_sum,Matrix.sum_mul,Matrix.mul_smul,Matrix.smul_mul] | |
| apply Finset.sum_congr rfl | |
| intro Ο hΟ | |
| exact congrArg (fun A => Ο.coefficient Ο β’ A) (densityPower_commute_of_even r hr Ο).symm | |
| lemma even_average_trace {R : Type*} [Fintype R] [Nonempty R] {p : β} | |
| (r : R β EvenDensity p) (Ξ΅ : β) : | |
| Matrix.trace ((Fintype.card R : β)β»ΒΉ β’ (β i, (r i).val)+ | |
| (Ξ΅ : β) β’ (1 : Matrix (Letter p) (Letter p) β)) = 1+Ξ΅*(2*p) := by | |
| rw [Matrix.trace_add,Matrix.trace_smul,Matrix.trace_sum,Matrix.trace_smul,Matrix.trace_one] | |
| simp only [(r _).property.2.1,Finset.sum_const,Finset.card_univ,nsmul_eq_mul,mul_one, | |
| smul_eq_mul,Fintype.card_fin] | |
| have hc : (Fintype.card R : β) β 0 := Nat.cast_ne_zero.mpr Fintype.card_ne_zero | |
| rw [inv_mul_cancelβ hc] | |
| push_cast | |
| rfl | |
| end CoordinateSweeps.SignedTensor | |
| namespace CoordinateSweeps.SignedTensor | |
| open TensorBoard Overlap | |
| variable {R C I J : Type*} [Fintype R] [DecidableEq R] [Nonempty R] | |
| [Fintype C] [DecidableEq C] [Fintype I] [Fintype J] | |
| abbrev groupOperator {p l : β} (x : MonoidAlgebra β (Equiv.Perm (Fin l))) : | |
| Matrix (Word p l) (Word p l) β := MonoidAlgebra.lift β _ _ (action p l) x | |
| def rowProduct {p l : β} {F : Finset (R Γ C)} (e : Fin l β F) (r : R β EvenDensity p) : | |
| Matrix (Word p l) (Word p l) β := TensorBoard.tensor (fun x => (r (e x).val.1).val) | |
| def columnProduct {p l : β} {F : Finset (R Γ C)} (e : Fin l β F) (r : C β EvenDensity p) : | |
| Matrix (Word p l) (Word p l) β := TensorBoard.tensor (fun x => (r (e x).val.2).val) | |
| /- Literal deleted-board overlap with actual signed tensor action. The two | |
| mixture dominations will be obtained by tensoring the local density theorem; | |
| the whitening and the full-group dimension loss are constructed here. -/ | |
| theorem board_overlap_regularized {p l : β} (hp : 0 < p) | |
| (F : Finset (R Γ C)) (e : Fin l β F) | |
| (Ο : UnitaryIrrep (Equiv.Perm (Fin l))) | |
| (PR : Matrix (Word p l) (Word p l) β) (xC : MonoidAlgebra β (Equiv.Perm (Fin l))) | |
| (hPR : PR.IsHermitian) (hPR2 : PR*PR=PR) | |
| (hPC : (groupOperator (p := p) xC).IsHermitian) | |
| (hPC2 : groupOperator (p := p) xC*groupOperator (p := p) xC=groupOperator (p := p) xC) | |
| (u : I β β) (v : J β β) (hu : β i, 0 β€ u i) (hv : β j, 0 β€ v j) | |
| (hsu : β i, u i=1) (hsv : β j, v j=1) | |
| (r : I β R β EvenDensity p) (c : J β C β EvenDensity p) | |
| (cr cc : β) (hcr : 0 β€ cr) (hcc : 0 β€ cc) | |
| (hrow : ((cr : β) β’ (β i, (u i : β) β’ rowProduct e (r i))-PR).PosSemidef) | |
| (hcol : ((cc : β) β’ (β j, (v j : β) β’ columnProduct e (c j))-groupOperator xC).PosSemidef) | |
| {Ξ΅ : β} (hΞ΅ : 0 < Ξ΅) : | |
| (Ο.dimension : β)*βgroupOperator (p := p) xC*Ο.projector (action p l)*PRβ^2 β€ | |
| cr*cc*(1+Ξ΅*(2*p : β))^l*Real.exp (Fintype.card R*Fintype.card C-F.card) := by | |
| let : NeZero (2*p) := β¨by omegaβ© | |
| let Ο := action p l | |
| let PC := groupOperator (p := p) xC | |
| let B (i : I) : Matrix (Letter p) (Letter p) β := | |
| (Fintype.card R : β)β»ΒΉ β’ (β k, (r i k).val)+(Ξ΅ : β) β’ 1 | |
| choose A hA hAe hABA hAw using fun i => exists_even_whitening (r i) hΞ΅ | |
| have hb (i : I) : (B i).PosSemidef := | |
| (average_regularization_posDef (fun k => (r i k).val) (fun k => (r i k).property.1) hΞ΅).posSemidef | |
| have he (i : I) : IsEven (B i) := isEven_add | |
| (isEven_smul _ (isEven_sum _ (fun k => (r i k).property.2.2))) (isEven_smul _ isEven_one) | |
| have htau (g : Equiv.Perm (Fin l)) : (Ο g).conjTranspose=Ο gβ»ΒΉ := (matrix_inv g).symm | |
| have hpq : Ο.projector Ο*PC=PC*Ο.projector Ο := Ο.projector_commute_lift Ο xC | |
| have htt : 0 β€ (1+Ξ΅*(2*p : β))^l := pow_nonneg (by positivity) _ | |
| have hwhite (i : I) : | |
| (((1+Ξ΅*(2*p : β))^l : β) : β) β’ (densityPower l (A i)*PC*densityPower l (A i)) - | |
| (Ο.dimension : β) β’ (PC*Ο.projector Ο) |>.PosSemidef := by | |
| have hWA : (densityPower l (A i)).IsHermitian := (densityPower_posSemidef l (A i) (hA i)).isHermitian | |
| have hWABA : densityPower l (A i)*densityPower l (B i)*densityPower l (A i)=1 := by | |
| rw [β densityPower_mul,β densityPower_mul,hABA i,densityPower_one] | |
| have hh := Overlap.whitened_projector_domination Ο Ο htau | |
| (densityPower l (B i)) (densityPower l (A i)) PC (densityPower_posSemidef l (B i) (hb i)) | |
| (fun g => densityPower_commute_of_even (B i) (he i) g) hWA hWABA | |
| (densityPower_commute_projector (A i) (hAe i) Ο) | |
| (densityPower_commute_lift (A i) (hAe i) xC).symm hPC hPC2 hpq | |
| have ht : Matrix.trace (densityPower l (B i))=(((1+Ξ΅*(2*p : β))^l : β) : β) := by | |
| rw [densityPower_trace,even_average_trace] | |
| push_cast | |
| rfl | |
| rwa [ht] at hh | |
| apply Overlap.finite_mixture_overlap PR PC (Ο.projector Ο) hPR hPR2 hPC hPC2 | |
| (Ο.projector_hermitian Ο htau) (Ο.projector_idempotent Ο) hpq u v hu hv hsu hsv | |
| (fun i => rowProduct e (r i)) (fun j => columnProduct e (c j)) (fun i => densityPower l (A i)) | |
| (fun i => TensorBoard.tensor_posSemidef _ (fun x => (r i (e x).val.1).property.1)) | |
| (fun i => (densityPower_posSemidef l (A i) (hA i)).isHermitian) | |
| cr cc Ο.dimension ((1+Ξ΅*(2*p : β))^l) _ hcr hcc (Nat.cast_nonneg _) htt hrow hcol hwhite | |
| intro i j | |
| exact board_trace_le_reindexed F e (fun k => (r i k).val) (fun k => (c j k).val) | |
| (fun k => (r i k).property.1) (fun k => (c j k).property.1) (fun k => (c j k).property.2.1) | |
| (A i) (hA i).isHermitian (hAw i) | |
| end CoordinateSweeps.SignedTensor | |
| namespace CoordinateSweeps.SignedTensor | |
| open TensorBoard Overlap | |
| variable {R C I J : Type*} [Fintype R] [DecidableEq R] [Nonempty R] | |
| [Fintype C] [DecidableEq C] [Fintype I] [Fintype J] | |
| theorem board_overlap {p l : β} (hp : 0 < p) | |
| (F : Finset (R Γ C)) (e : Fin l β F) | |
| (Ο : UnitaryIrrep (Equiv.Perm (Fin l))) | |
| (PR : Matrix (Word p l) (Word p l) β) (xC : MonoidAlgebra β (Equiv.Perm (Fin l))) | |
| (hPR : PR.IsHermitian) (hPR2 : PR*PR=PR) | |
| (hPC : (groupOperator (p := p) xC).IsHermitian) | |
| (hPC2 : groupOperator (p := p) xC*groupOperator (p := p) xC=groupOperator (p := p) xC) | |
| (u : I β β) (v : J β β) (hu : β i, 0 β€ u i) (hv : β j, 0 β€ v j) | |
| (hsu : β i, u i=1) (hsv : β j, v j=1) | |
| (r : I β R β EvenDensity p) (c : J β C β EvenDensity p) | |
| (cr cc : β) (hcr : 0 β€ cr) (hcc : 0 β€ cc) | |
| (hrow : ((cr : β) β’ (β i, (u i : β) β’ rowProduct e (r i))-PR).PosSemidef) | |
| (hcol : ((cc : β) β’ (β j, (v j : β) β’ columnProduct e (c j))-groupOperator xC).PosSemidef) | |
| : | |
| (Ο.dimension : β)*βgroupOperator (p := p) xC*Ο.projector (action p l)*PRβ^2 β€ | |
| cr*cc*Real.exp (Fintype.card R*Fintype.card C-F.card) := by | |
| let f (Ξ΅ : β) := cr*cc*(1+Ξ΅*(2*p : β))^l*Real.exp (Fintype.card R*Fintype.card C-F.card) | |
| have hf : Continuous f := by fun_prop | |
| have hh : βαΆ Ξ΅ : β in nhdsWithin 0 (Set.Ioi 0), | |
| (Ο.dimension : β)*βgroupOperator (p := p) xC*Ο.projector (action p l)*PRβ^2 β€ f Ξ΅ := by | |
| filter_upwards [self_mem_nhdsWithin] with Ξ΅ hΞ΅ | |
| exact board_overlap_regularized hp F e Ο PR xC hPR hPR2 hPC hPC2 | |
| u v hu hv hsu hsv r c cr cc hcr hcc hrow hcol hΞ΅ | |
| have hh' := ge_of_tendsto (hf.continuousAt.tendsto.mono_left | |
| (nhdsWithin_le_nhds : nhdsWithin (0 : β) (Set.Ioi 0) β€ nhds 0)) hh | |
| simpa [f] using hh' | |
| end CoordinateSweeps.SignedTensor | |
| namespace CoordinateSweeps.SignedTensor | |
| open TensorBoard | |
| variable {p r c : β} [NeZero r] | |
| /- Source 06:eq19 for literal row and column subgroup projectors on an | |
| arbitrary board with holes. The mixtures and signed regroupings are constructed. -/ | |
| theorem actual_board_overlap (F : Finset (Fin r Γ Fin c)) | |
| (e : Fin (Fintype.card F) β F) (s : β) (hp : 0 < p) (hps : p β€ s) | |
| (hnR : β i, FiberBlocks.size (fun x : F => x.val.1) i β€ s) | |
| (hnC : β j, FiberBlocks.size (fun x : F => x.val.2) j β€ s) | |
| (ΟR : β i, UnitaryIrrep (Equiv.Perm (Fin (FiberBlocks.size (fun x : F => x.val.1) i)))) | |
| (ΟC : β j, UnitaryIrrep (Equiv.Perm (Fin (FiberBlocks.size (fun x : F => x.val.2) j)))) | |
| (Ο : UnitaryIrrep (Equiv.Perm (Fin (Fintype.card F)))) : | |
| (Ο.dimension : β)*βfiberProjector (p := p) (fun x : F => x.val.2) e ΟC* | |
| Ο.projector (action p (Fintype.card F))*fiberProjector (fun x : F => x.val.1) e ΟRβ^2 β€ | |
| ((β i, ((ΟR i).dimension : β))*(s+1 : β)^(r*(41*p^2)))* | |
| ((β j, ((ΟC j).dimension : β))*(s+1 : β)^(c*(41*p^2)))* | |
| Real.exp (r*c-F.card) := by | |
| obtain β¨I,hI,nI,a,haβ© := finite_fiber_density_domination (fun x : F => x.val.1) e s hp hps hnR ΟR | |
| obtain β¨J,hJ,nJ,b,hbβ© := finite_fiber_density_domination (fun x : F => x.val.2) e s hp hps hnC ΟC | |
| let := hI | |
| let := hJ | |
| let := nI | |
| let := nJ | |
| have hI0 : (Fintype.card I : β) β 0 := Nat.cast_ne_zero.mpr Fintype.card_ne_zero | |
| have hJ0 : (Fintype.card J : β) β 0 := Nat.cast_ne_zero.mpr Fintype.card_ne_zero | |
| have hu : β _ : I, (Fintype.card I : β)β»ΒΉ=1 := by | |
| rw [Finset.sum_const,Finset.card_univ,nsmul_eq_mul,mul_inv_cancelβ hI0] | |
| have hv : β _ : J, (Fintype.card J : β)β»ΒΉ=1 := by | |
| rw [Finset.sum_const,Finset.card_univ,nsmul_eq_mul,mul_inv_cancelβ hJ0] | |
| have hr := fiberProjector_posSemidef (p := p) (fun x : F => x.val.1) e ΟR | |
| have hc := fiberProjector_posSemidef (p := p) (fun x : F => x.val.2) e ΟC | |
| have hr2 := fiberProjector_idempotent (p := p) (fun x : F => x.val.1) e ΟR | |
| have hc2 := fiberProjector_idempotent (p := p) (fun x : F => x.val.2) e ΟC | |
| let xC := fiberProjectorAlgebra (fun x : F => x.val.2) e ΟC | |
| have hx : groupOperator (p := p) xC=fiberProjector (p := p) (fun x : F => x.val.2) e ΟC := | |
| fiberProjectorAlgebra_lift _ _ _ | |
| have hrow : (((β i, ((ΟR i).dimension : β))*(s+1 : β)^(r*(41*p^2)) : β) : β) β’ | |
| (β i : I, (((Fintype.card I : β)β»ΒΉ : β) : β) β’ rowProduct e (a i))- | |
| fiberProjector (p := p) (fun x : F => x.val.1) e ΟR |>.PosSemidef := by | |
| simpa only [Complex.ofReal_mul,Complex.ofReal_prod,Complex.ofReal_natCast,Complex.ofReal_pow, | |
| Complex.ofReal_inv,β Finset.smul_sum,rowProduct] using ha | |
| have hcol : (((β j, ((ΟC j).dimension : β))*(s+1 : β)^(c*(41*p^2)) : β) : β) β’ | |
| (β j : J, (((Fintype.card J : β)β»ΒΉ : β) : β) β’ columnProduct e (b j))- | |
| groupOperator (p := p) xC |>.PosSemidef := by | |
| rw [hx] | |
| simpa only [Complex.ofReal_mul,Complex.ofReal_prod,Complex.ofReal_natCast,Complex.ofReal_pow, | |
| Complex.ofReal_inv,β Finset.smul_sum,columnProduct] using hb | |
| have hh := board_overlap hp F e Ο _ xC hr.isHermitian hr2 (hx βΈ hc.isHermitian) | |
| (by rw [hx]; exact hc2) (fun _ : I => (Fintype.card I : β)β»ΒΉ) | |
| (fun _ : J => (Fintype.card J : β)β»ΒΉ) (fun _ => by positivity) (fun _ => by positivity) | |
| hu hv a b ((β i, ((ΟR i).dimension : β))*(s+1 : β)^(r*(41*p^2))) | |
| ((β j, ((ΟC j).dimension : β))*(s+1 : β)^(c*(41*p^2))) (by positivity) (by positivity) hrow hcol | |
| simpa only [hx,Fintype.card_fin] using hh | |
| end CoordinateSweeps.SignedTensor | |
| namespace CoordinateSweeps.TensorBoard | |
| variable {R C J : Type*} [Fintype R] [DecidableEq R] [Nonempty R] | |
| [Fintype C] [DecidableEq C] [Fintype J] [DecidableEq J] | |
| omit [Nonempty R] in | |
| lemma board_trace_le_labels {l : β} (e : Fin l β R Γ C) (he : Function.Injective e) | |
| (r : R β Matrix J J β) (v : C β Matrix J J β) | |
| (hr : β i, (r i).PosSemidef) (hv : β j, (v j).PosSemidef) | |
| (ht : β j, Matrix.trace (v j)=1) (A : Matrix J J β) (hA : A.IsHermitian) | |
| (hw : ((Fintype.card R : β) β’ (1 : Matrix J J β)-β i, A*r i*A).PosSemidef) : | |
| (Matrix.trace (tensor (fun _ : Fin l => A)*tensor (fun x => r (e x).1)* | |
| tensor (fun _ : Fin l => A)*tensor (fun x => v (e x).2))).re β€ | |
| Real.exp (Fintype.card R*Fintype.card C-l) := by | |
| let F : Finset (R Γ C) := Finset.univ.image e | |
| let E : Fin l β F := Equiv.ofBijective (fun x => β¨e x,by simp [F]β©) (by | |
| constructor | |
| Β· intro x y h; exact he (congrArg Subtype.val h) | |
| Β· intro y | |
| obtain β¨x,_,hxβ© := Finset.mem_image.mp y.property | |
| exact β¨x,Subtype.ext hxβ©) | |
| have hc : F.card=l := by | |
| dsimp [F] | |
| rw [Finset.card_image_of_injective _ he,Finset.card_univ,Fintype.card_fin] | |
| have hh := board_trace_le_reindexed F E r v hr hv ht A hA hw | |
| have hE (x : Fin l) : (E x).val=e x := rfl | |
| simpa only [hE,hc] using hh | |
| end CoordinateSweeps.TensorBoard | |
| namespace CoordinateSweeps.SignedTensor | |
| open TensorBoard | |
| variable {R C I J : Type*} [Fintype R] [DecidableEq R] [Nonempty R] | |
| [Fintype C] [DecidableEq C] [Fintype I] [Fintype J] | |
| def labelRowProduct {p l : β} (e : Fin l β R Γ C) (r : R β EvenDensity p) : | |
| Matrix (Word p l) (Word p l) β := TensorBoard.tensor (fun x => (r (e x).1).val) | |
| def labelColumnProduct {p l : β} (e : Fin l β R Γ C) (r : C β EvenDensity p) : | |
| Matrix (Word p l) (Word p l) β := TensorBoard.tensor (fun x => (r (e x).2).val) | |
| /- Literal deleted-board overlap with actual signed tensor action. The two | |
| mixture dominations will be obtained by tensoring the local density theorem; | |
| the whitening and the full-group dimension loss are constructed here. -/ | |
| theorem label_board_overlap_regularized {p l : β} (hp : 0 < p) | |
| (e : Fin l β R Γ C) (hinj : Function.Injective e) | |
| (Ο : UnitaryIrrep (Equiv.Perm (Fin l))) | |
| (PR : Matrix (Word p l) (Word p l) β) (xC : MonoidAlgebra β (Equiv.Perm (Fin l))) | |
| (hPR : PR.IsHermitian) (hPR2 : PR*PR=PR) | |
| (hPC : (groupOperator (p := p) xC).IsHermitian) | |
| (hPC2 : groupOperator (p := p) xC*groupOperator (p := p) xC=groupOperator (p := p) xC) | |
| (u : I β β) (v : J β β) (hu : β i, 0 β€ u i) (hv : β j, 0 β€ v j) | |
| (hsu : β i, u i=1) (hsv : β j, v j=1) | |
| (r : I β R β EvenDensity p) (c : J β C β EvenDensity p) | |
| (cr cc : β) (hcr : 0 β€ cr) (hcc : 0 β€ cc) | |
| (hrow : ((cr : β) β’ (β i, (u i : β) β’ labelRowProduct e (r i))-PR).PosSemidef) | |
| (hcol : ((cc : β) β’ (β j, (v j : β) β’ labelColumnProduct e (c j))-groupOperator xC).PosSemidef) | |
| {Ξ΅ : β} (hΞ΅ : 0 < Ξ΅) : | |
| (Ο.dimension : β)*βgroupOperator (p := p) xC*Ο.projector (action p l)*PRβ^2 β€ | |
| cr*cc*(1+Ξ΅*(2*p : β))^l*Real.exp (Fintype.card R*Fintype.card C-l) := by | |
| let : NeZero (2*p) := β¨by omegaβ© | |
| let Ο := action p l | |
| let PC := groupOperator (p := p) xC | |
| let B (i : I) : Matrix (Letter p) (Letter p) β := | |
| (Fintype.card R : β)β»ΒΉ β’ (β k, (r i k).val)+(Ξ΅ : β) β’ 1 | |
| choose A hA hAe hABA hAw using fun i => exists_even_whitening (r i) hΞ΅ | |
| have hb (i : I) : (B i).PosSemidef := | |
| (average_regularization_posDef (fun k => (r i k).val) (fun k => (r i k).property.1) hΞ΅).posSemidef | |
| have he (i : I) : IsEven (B i) := isEven_add | |
| (isEven_smul _ (isEven_sum _ (fun k => (r i k).property.2.2))) (isEven_smul _ isEven_one) | |
| have htau (g : Equiv.Perm (Fin l)) : (Ο g).conjTranspose=Ο gβ»ΒΉ := (matrix_inv g).symm | |
| have hpq : Ο.projector Ο*PC=PC*Ο.projector Ο := Ο.projector_commute_lift Ο xC | |
| have htt : 0 β€ (1+Ξ΅*(2*p : β))^l := pow_nonneg (by positivity) _ | |
| have hwhite (i : I) : | |
| (((1+Ξ΅*(2*p : β))^l : β) : β) β’ (densityPower l (A i)*PC*densityPower l (A i)) - | |
| (Ο.dimension : β) β’ (PC*Ο.projector Ο) |>.PosSemidef := by | |
| have hWA : (densityPower l (A i)).IsHermitian := (densityPower_posSemidef l (A i) (hA i)).isHermitian | |
| have hWABA : densityPower l (A i)*densityPower l (B i)*densityPower l (A i)=1 := by | |
| rw [β densityPower_mul,β densityPower_mul,hABA i,densityPower_one] | |
| have hh := Overlap.whitened_projector_domination Ο Ο htau | |
| (densityPower l (B i)) (densityPower l (A i)) PC (densityPower_posSemidef l (B i) (hb i)) | |
| (fun g => densityPower_commute_of_even (B i) (he i) g) hWA hWABA | |
| (densityPower_commute_projector (A i) (hAe i) Ο) | |
| (densityPower_commute_lift (A i) (hAe i) xC).symm hPC hPC2 hpq | |
| have ht : Matrix.trace (densityPower l (B i))=(((1+Ξ΅*(2*p : β))^l : β) : β) := by | |
| rw [densityPower_trace,even_average_trace] | |
| push_cast | |
| rfl | |
| rwa [ht] at hh | |
| apply Overlap.finite_mixture_overlap PR PC (Ο.projector Ο) hPR hPR2 hPC hPC2 | |
| (Ο.projector_hermitian Ο htau) (Ο.projector_idempotent Ο) hpq u v hu hv hsu hsv | |
| (fun i => labelRowProduct e (r i)) (fun j => labelColumnProduct e (c j)) (fun i => densityPower l (A i)) | |
| (fun i => TensorBoard.tensor_posSemidef _ (fun x => (r i (e x).1).property.1)) | |
| (fun i => (densityPower_posSemidef l (A i) (hA i)).isHermitian) | |
| cr cc Ο.dimension ((1+Ξ΅*(2*p : β))^l) _ hcr hcc (Nat.cast_nonneg _) htt hrow hcol hwhite | |
| intro i j | |
| exact board_trace_le_labels e hinj (fun k => (r i k).val) (fun k => (c j k).val) | |
| (fun k => (r i k).property.1) (fun k => (c j k).property.1) (fun k => (c j k).property.2.1) | |
| (A i) (hA i).isHermitian (hAw i) | |
| end CoordinateSweeps.SignedTensor | |
| namespace CoordinateSweeps.SignedTensor | |
| open TensorBoard Overlap | |
| variable {R C I J : Type*} [Fintype R] [DecidableEq R] [Nonempty R] | |
| [Fintype C] [DecidableEq C] [Fintype I] [Fintype J] | |
| theorem label_board_overlap {p l : β} (hp : 0 < p) | |
| (e : Fin l β R Γ C) (hinj : Function.Injective e) | |
| (Ο : UnitaryIrrep (Equiv.Perm (Fin l))) | |
| (PR : Matrix (Word p l) (Word p l) β) (xC : MonoidAlgebra β (Equiv.Perm (Fin l))) | |
| (hPR : PR.IsHermitian) (hPR2 : PR*PR=PR) | |
| (hPC : (groupOperator (p := p) xC).IsHermitian) | |
| (hPC2 : groupOperator (p := p) xC*groupOperator (p := p) xC=groupOperator (p := p) xC) | |
| (u : I β β) (v : J β β) (hu : β i, 0 β€ u i) (hv : β j, 0 β€ v j) | |
| (hsu : β i, u i=1) (hsv : β j, v j=1) | |
| (r : I β R β EvenDensity p) (c : J β C β EvenDensity p) | |
| (cr cc : β) (hcr : 0 β€ cr) (hcc : 0 β€ cc) | |
| (hrow : ((cr : β) β’ (β i, (u i : β) β’ labelRowProduct e (r i))-PR).PosSemidef) | |
| (hcol : ((cc : β) β’ (β j, (v j : β) β’ labelColumnProduct e (c j))-groupOperator xC).PosSemidef) | |
| : | |
| (Ο.dimension : β)*βgroupOperator (p := p) xC*Ο.projector (action p l)*PRβ^2 β€ | |
| cr*cc*Real.exp (Fintype.card R*Fintype.card C-l) := by | |
| let f (Ξ΅ : β) := cr*cc*(1+Ξ΅*(2*p : β))^l*Real.exp (Fintype.card R*Fintype.card C-l) | |
| have hf : Continuous f := by fun_prop | |
| have hh : βαΆ Ξ΅ : β in nhdsWithin 0 (Set.Ioi 0), | |
| (Ο.dimension : β)*βgroupOperator (p := p) xC*Ο.projector (action p l)*PRβ^2 β€ f Ξ΅ := by | |
| filter_upwards [self_mem_nhdsWithin] with Ξ΅ hΞ΅ | |
| exact label_board_overlap_regularized hp e hinj Ο PR xC hPR hPR2 hPC hPC2 | |
| u v hu hv hsu hsv r c cr cc hcr hcc hrow hcol hΞ΅ | |
| have hh' := ge_of_tendsto (hf.continuousAt.tendsto.mono_left | |
| (nhdsWithin_le_nhds : nhdsWithin (0 : β) (Set.Ioi 0) β€ nhds 0)) hh | |
| simpa [f] using hh' | |
| end CoordinateSweeps.SignedTensor | |
| namespace CoordinateSweeps.SignedTensor | |
| open TensorBoard | |
| variable {p r c : β} [NeZero r] | |
| {L : Type*} [Fintype L] [DecidableEq L] | |
| /- Source 06:eq19 for literal row and column subgroup projectors on an | |
| arbitrary board with holes. The mixtures and signed regroupings are constructed. -/ | |
| omit [DecidableEq L] in | |
| theorem actual_label_overlap (f : L β Fin r) (g : L β Fin c) | |
| (hinj : Function.Injective (fun x => (f x,g x))) | |
| (e : Fin (Fintype.card L) β L) (s : β) (hp : 0 < p) (hps : p β€ s) | |
| (hnR : β i, FiberBlocks.size f i β€ s) | |
| (hnC : β j, FiberBlocks.size g j β€ s) | |
| (ΟR : β i, UnitaryIrrep (Equiv.Perm (Fin (FiberBlocks.size f i)))) | |
| (ΟC : β j, UnitaryIrrep (Equiv.Perm (Fin (FiberBlocks.size g j)))) | |
| (Ο : UnitaryIrrep (Equiv.Perm (Fin (Fintype.card L)))) : | |
| (Ο.dimension : β)*βfiberProjector (p := p) g e ΟC* | |
| Ο.projector (action p (Fintype.card L))*fiberProjector f e ΟRβ^2 β€ | |
| ((β i, ((ΟR i).dimension : β))*(s+1 : β)^(r*(41*p^2)))* | |
| ((β j, ((ΟC j).dimension : β))*(s+1 : β)^(c*(41*p^2)))* | |
| Real.exp (r*c-Fintype.card L) := by | |
| obtain β¨I,hI,nI,a,haβ© := finite_fiber_density_domination f e s hp hps hnR ΟR | |
| obtain β¨J,hJ,nJ,b,hbβ© := finite_fiber_density_domination g e s hp hps hnC ΟC | |
| let := hI | |
| let := hJ | |
| let := nI | |
| let := nJ | |
| have hI0 : (Fintype.card I : β) β 0 := Nat.cast_ne_zero.mpr Fintype.card_ne_zero | |
| have hJ0 : (Fintype.card J : β) β 0 := Nat.cast_ne_zero.mpr Fintype.card_ne_zero | |
| have hu : β _ : I, (Fintype.card I : β)β»ΒΉ=1 := by | |
| rw [Finset.sum_const,Finset.card_univ,nsmul_eq_mul,mul_inv_cancelβ hI0] | |
| have hv : β _ : J, (Fintype.card J : β)β»ΒΉ=1 := by | |
| rw [Finset.sum_const,Finset.card_univ,nsmul_eq_mul,mul_inv_cancelβ hJ0] | |
| have hr := fiberProjector_posSemidef (p := p) f e ΟR | |
| have hc := fiberProjector_posSemidef (p := p) g e ΟC | |
| have hr2 := fiberProjector_idempotent (p := p) f e ΟR | |
| have hc2 := fiberProjector_idempotent (p := p) g e ΟC | |
| let xC := fiberProjectorAlgebra g e ΟC | |
| have hx : groupOperator (p := p) xC=fiberProjector (p := p) g e ΟC := | |
| fiberProjectorAlgebra_lift _ _ _ | |
| have hrow : (((β i, ((ΟR i).dimension : β))*(s+1 : β)^(r*(41*p^2)) : β) : β) β’ | |
| (β i : I, (((Fintype.card I : β)β»ΒΉ : β) : β) β’ labelRowProduct (fun x => (f (e x),g (e x))) (a i))- | |
| fiberProjector (p := p) f e ΟR |>.PosSemidef := by | |
| simpa only [Complex.ofReal_mul,Complex.ofReal_prod,Complex.ofReal_natCast,Complex.ofReal_pow, | |
| Complex.ofReal_inv,β Finset.smul_sum,labelRowProduct] using ha | |
| have hcol : (((β j, ((ΟC j).dimension : β))*(s+1 : β)^(c*(41*p^2)) : β) : β) β’ | |
| (β j : J, (((Fintype.card J : β)β»ΒΉ : β) : β) β’ labelColumnProduct (fun x => (f (e x),g (e x))) (b j))- | |
| groupOperator (p := p) xC |>.PosSemidef := by | |
| rw [hx] | |
| simpa only [Complex.ofReal_mul,Complex.ofReal_prod,Complex.ofReal_natCast,Complex.ofReal_pow, | |
| Complex.ofReal_inv,β Finset.smul_sum,labelColumnProduct] using hb | |
| have hh := label_board_overlap hp (fun x => (f (e x),g (e x))) (hinj.comp e.injective) Ο _ xC hr.isHermitian hr2 (hx βΈ hc.isHermitian) | |
| (by rw [hx]; exact hc2) (fun _ : I => (Fintype.card I : β)β»ΒΉ) | |
| (fun _ : J => (Fintype.card J : β)β»ΒΉ) (fun _ => by positivity) (fun _ => by positivity) | |
| hu hv a b ((β i, ((ΟR i).dimension : β))*(s+1 : β)^(r*(41*p^2))) | |
| ((β j, ((ΟC j).dimension : β))*(s+1 : β)^(c*(41*p^2))) (by positivity) (by positivity) hrow hcol | |
| simpa only [hx,Fintype.card_fin] using hh | |
| end CoordinateSweeps.SignedTensor | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| open scoped Matrix.Norms.L2Operator | |
| end OAI | |