math / data /lean /OAI /Probability /InvariantIsing /Haar /HaarDirectionBound.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
2.84 kB
import OAI.Probability.InvariantIsing.Haar.HaarPolynomialCurvature
namespace OAI
/-! Directional control by coordinate-plane derivatives. -/
noncomputable section
open Matrix MvPolynomial
open scoped BigOperators
namespace InvariantIsing
lemma plane_functional_abs_bound {N : β„•}
(ell : Matrix (Fin N) (Fin N) ℝ β†’β‚—[ℝ] ℝ)
(A : Matrix (Fin N) (Fin N) ℝ) (hA : A.transpose = -A)
(Ξ΄ : ℝ) (hΞ΄ : βˆ€ i j, |ell (planeGenerator i j)| ≀ Ξ΄) :
2*|ell A| ≀ (βˆ‘ i, βˆ‘ j, |A i j|)*Ξ΄ := by
have hr := plane_functional_representation ell A hA
rw [matrixFrobeniusPair_eq_sum] at hr
change (βˆ‘ i, βˆ‘ j, ell (planeGenerator i j)*A i j) = 2*ell A at hr
have hs : |βˆ‘ i, βˆ‘ j, ell (planeGenerator i j)*A i j| ≀
(βˆ‘ i, βˆ‘ j, |A i j|)*Ξ΄ := by
calc
|βˆ‘ i, βˆ‘ j, ell (planeGenerator i j)*A i j| ≀
βˆ‘ i, |βˆ‘ j, ell (planeGenerator i j)*A i j| := Finset.abs_sum_le_sum_abs _ _
_ ≀ βˆ‘ i, βˆ‘ j, |ell (planeGenerator i j)*A i j| := by
apply Finset.sum_le_sum; intro i _
exact Finset.abs_sum_le_sum_abs _ _
_ ≀ βˆ‘ i, βˆ‘ j, |A i j| * Ξ΄ := by
apply Finset.sum_le_sum; intro i _
apply Finset.sum_le_sum; intro j _
rw [abs_mul,mul_comm]
exact mul_le_mul_of_nonneg_left (hΞ΄ i j) (abs_nonneg _)
_ = (βˆ‘ i, βˆ‘ j, |A i j|)*Ξ΄ := by simp only [Finset.sum_mul]
rw [hr,abs_mul,abs_of_nonneg (by norm_num : (0:ℝ) ≀ 2)] at hs
exact hs
lemma matrixPolynomial_direction_bound {N : β„•}
(p : MatrixPolynomial N) (M A : Matrix (Fin N) (Fin N) ℝ)
(hA : A.transpose = -A) (Ξ΄ : ℝ) (hΞ΄ : 0 ≀ Ξ΄)
(hp : matrixPolynomialEval M (haarPolynomialGamma p p) ≀ Ξ΄^2) :
2*|matrixPolynomialEval M (matrixPolynomialDerivation A p)| ≀
(βˆ‘ i, βˆ‘ j, |A i j|)*Ξ΄ := by
apply plane_functional_abs_bound (matrixPolynomialDifferential p M) A hA Ξ΄
intro i j
change |matrixPolynomialEval M (matrixPolynomialDerivation (planeGenerator i j) p)| ≀ Ξ΄
have hpos (i j : Fin N) :
0 ≀ (matrixPolynomialEval M (matrixPolynomialDerivation (planeGenerator i j) p))^2 :=
sq_nonneg _
have htotal : matrixPolynomialEval M (haarPolynomialGamma p p) =
βˆ‘ i : Fin N, βˆ‘ j : Fin N,
(matrixPolynomialEval M (matrixPolynomialDerivation (planeGenerator i j) p))^2 := by
simp only [haarPolynomialGamma,map_sum,map_mul,pow_two]
have hs : (matrixPolynomialEval M (matrixPolynomialDerivation (planeGenerator i j) p))^2 ≀ Ξ΄^2 := by
apply le_trans _ hp
rw [htotal]
exact (Finset.single_le_sum (fun k _ => hpos i k) (Finset.mem_univ j)).trans
(Finset.single_le_sum (fun k _ => Finset.sum_nonneg (fun l _ => hpos k l)) (Finset.mem_univ i))
exact (sq_le_sqβ‚€ (abs_nonneg _) hΞ΄).mp (by simpa only [sq_abs] using hs)
end InvariantIsing
end
end OAI