Download data/lean/OAI/MathematicalPhysics/PEPSSubvolume/UnitaryVariation.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 4.59 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/MathematicalPhysics/PEPSSubvolume/UnitaryVariation.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/MathematicalPhysics/PEPSSubvolume/UnitaryVariation.lean
-
curl -L -o UnitaryVariation.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/MathematicalPhysics/PEPSSubvolume/UnitaryVariation.lean
4.59 kB
| import Mathlib | |
| import OAI.MathematicalPhysics.PEPSFilters.LocalOperators | |
| import OAI.MathematicalPhysics.PEPSSubvolume.SpectralPowers | |
| namespace OAI | |
| /-! Left and right unitary first variations. -/ | |
| noncomputable section | |
| open scoped BigOperators ComplexOrder | |
| open scoped BigOperators ComplexOrder Matrix.Norms.L2Operator | |
| open scoped BigOperators | |
| open scoped Topology | |
| open Filter | |
| open PolynomialPEPS.PinnedEntropy | |
| namespace PolynomialPEPS.Subvolume.UnitaryStationarity | |
| open scoped BigOperators ComplexOrder Matrix.Norms.L2Operator | |
| open PolynomialPEPS.Subvolume.SpectralCurve | |
| open Filter | |
| variable {ΞΉ E : Type*} [Fintype ΞΉ] [DecidableEq ΞΉ] | |
| [NormedAddCommGroup E] [InnerProductSpace β E] | |
| theorem real_inner_le_of_norm_le (v w : E) (h : βwβ β€ βvβ) : | |
| (inner β v w).re β€ (inner β v v).re := by | |
| calc | |
| (inner β v w).re β€ βinner β v wβ := Complex.re_le_norm _ | |
| _ β€ βvβ*βwβ := norm_inner_le_norm _ _ | |
| _ β€ βvβ*βvβ := mul_le_mul_of_nonneg_left h (norm_nonneg _) | |
| _ = (inner β v v).re := by | |
| change βvβ*βvβ = RCLike.re (inner β v v) | |
| rw [β pow_two, norm_sq_eq_re_inner (π := β)] | |
| theorem left_moment_real (T : Matrix ΞΉ ΞΉ β ββ[β] E) (F : Matrix ΞΉ ΞΉ β) | |
| (hb : β V : unitary (Matrix ΞΉ ΞΉ β), βT ((V : Matrix ΞΉ ΞΉ β)*F)β β€ βT Fβ) | |
| (H : Matrix ΞΉ ΞΉ β) (hH : H.IsHermitian) : | |
| (inner β (T F) (T (H*F))).im = 0 := by | |
| let U := hH.eigenvectorUnitary | |
| let r := hH.eigenvalues | |
| let l : Matrix ΞΉ ΞΉ β βL[β] β := (innerSL β (T F)).comp T.toContinuousLinearMap | |
| have hrep : spectralHom U (fun i => (r i : β)) = H := hH.spectral_theorem.symm | |
| have hD : HasDerivAt (fun z : β => curve U r (z*Complex.I)*F) | |
| (Complex.I β’ (H*F)) 0 := by | |
| have hz : HasDerivAt (fun z : β => z*Complex.I) Complex.I 0 := by | |
| simpa using (hasDerivAt_id (0 : β)).mul_const Complex.I | |
| have hC := (hasDerivAt_curve_zero U r).scomp_of_eq 0 hz (by simp) | |
| simpa [hrep,smul_mul_assoc] using hC.mul_const F | |
| have hDl : HasDerivAt (fun z : β => l (curve U r (z*Complex.I)*F)) | |
| (Complex.I * l (H*F)) 0 := by | |
| simpa +instances [Function.comp_def] using! l.hasFDerivAt.comp_hasDerivAt 0 hD | |
| have hm : IsLocalMax (fun t : β => (l (curve U r ((t : β)*Complex.I)*F)).re) 0 := by | |
| apply Filter.Eventually.of_forall | |
| intro t | |
| change (inner β (T F) (T (curve U r ((t : β)*Complex.I)*F))).re β€ _ | |
| have h0 : l (curve U r (((0 : β) : β)*Complex.I)*F) = inner β (T F) (T F) := by | |
| simp [l] | |
| change _ β€ (l _).re | |
| rw [h0] | |
| exact real_inner_le_of_norm_le _ _ (hb | |
| β¨curve U r ((t : β)*Complex.I), curve_mem_unitary U r _ (by simp)β©) | |
| have hz := hm.hasDerivAt_eq_zero hDl.real_of_complex | |
| change (Complex.I * inner β (T F) (T (H*F))).re = 0 at hz | |
| simpa using hz | |
| theorem right_moment_real (T : Matrix ΞΉ ΞΉ β ββ[β] E) (F : Matrix ΞΉ ΞΉ β) | |
| (hb : β V : unitary (Matrix ΞΉ ΞΉ β), βT (F*(V : Matrix ΞΉ ΞΉ β))β β€ βT Fβ) | |
| (H : Matrix ΞΉ ΞΉ β) (hH : H.IsHermitian) : | |
| (inner β (T F) (T (F*H))).im = 0 := by | |
| let U := hH.eigenvectorUnitary | |
| let r := hH.eigenvalues | |
| let l : Matrix ΞΉ ΞΉ β βL[β] β := (innerSL β (T F)).comp T.toContinuousLinearMap | |
| have hrep : spectralHom U (fun i => (r i : β)) = H := hH.spectral_theorem.symm | |
| have hD : HasDerivAt (fun z : β => F*curve U r (z*Complex.I)) | |
| (Complex.I β’ (F*H)) 0 := by | |
| have hz : HasDerivAt (fun z : β => z*Complex.I) Complex.I 0 := by | |
| simpa using (hasDerivAt_id (0 : β)).mul_const Complex.I | |
| have hC := (hasDerivAt_curve_zero U r).scomp_of_eq 0 hz (by simp) | |
| simpa [hrep,mul_smul_comm] using hC.const_mul F | |
| have hDl : HasDerivAt (fun z : β => l (F*curve U r (z*Complex.I))) | |
| (Complex.I * l (F*H)) 0 := by | |
| simpa +instances [Function.comp_def] using! l.hasFDerivAt.comp_hasDerivAt 0 hD | |
| have hm : IsLocalMax (fun t : β => (l (F*curve U r ((t : β)*Complex.I))).re) 0 := by | |
| apply Filter.Eventually.of_forall | |
| intro t | |
| change (inner β (T F) (T (F*curve U r ((t : β)*Complex.I)))).re β€ _ | |
| have h0 : l (F*curve U r (((0 : β) : β)*Complex.I)) = inner β (T F) (T F) := by | |
| simp [l] | |
| change _ β€ (l _).re | |
| rw [h0] | |
| exact real_inner_le_of_norm_le _ _ (hb | |
| β¨curve U r ((t : β)*Complex.I), curve_mem_unitary U r _ (by simp)β©) | |
| have hz := hm.hasDerivAt_eq_zero hDl.real_of_complex | |
| change (Complex.I * inner β (T F) (T (F*H))).re = 0 at hz | |
| simpa using hz | |
| end PolynomialPEPS.Subvolume.UnitaryStationarity | |
| end | |
| end OAI | |