cfahlgren1's picture
download
raw
4.53 kB
import Mathlib
import OAI.Probability.SKRatio.Matrices.LinCLM
import OAI.Probability.SKRatio.Matrices.SandShift
import OAI.Probability.SKRatio.Matrices.Vectorize
namespace OAI
section
section
noncomputable section
open MeasureTheory ProbabilityTheory InformationTheory Real Set
open scoped NNReal ENNReal
open Filter
open scoped Topology
noncomputable section
open Matrix Real
open scoped BigOperators Matrix.Norms.Frobenius ENNReal NNReal
noncomputable section
open Matrix Real
open scoped BigOperators Matrix.Norms.Frobenius NNReal
noncomputable section
open MeasureTheory ProbabilityTheory Real Set Filter
open MeasureTheory.Measure
open scoped ENNReal NNReal MeasureTheory Topology
open MeasureTheory
noncomputable section
noncomputable section
open MeasureTheory Set NormedSpace
open scoped Topology
noncomputable section
open Matrix Real
open scoped BigOperators Matrix.Norms.Frobenius
noncomputable section
open Set Real
open scoped Topology
namespace SKRatioGaussian.ComplexMatrix
open scoped FourierTransform SchwartzMap
variable {ι : Type*} [Fintype ι] [DecidableEq ι]
noncomputable def truncatedG (f : 𝓢(ℝ,ℂ)) (R : ℝ) (hR : 0 ≤ R)
(B D M : Matrix ι ι ℂ) : Matrix ι ι ℂ :=
D*schwartzMatrix f (sandShift B D (matrixProject R hR M))*D
lemma matrixProject_sub_norm (R : ℝ) (hR : 0 ≤ R) (M N : Matrix ι ι ℂ) :
‖matrixProject R hR M-matrixProject R hR N‖ ≤ ‖M-N‖ := by
simpa only [dist_eq_norm,NNReal.coe_one,one_mul] using (matrixProject_lipschitz R hR).dist_le_mul M N
lemma truncatedG_opNorm (f : 𝓢(ℝ,ℂ)) (R : ℝ) (hR : 0 ≤ R) (B D M : Matrix ι ι ℂ)
(hB : Bᴴ = B) (hD : Dᴴ = D) :
opNorm (truncatedG f R hR B D M) ≤ opNorm D^2*fourierMoment f 0 := by
have hS := sandShift_hermitian B D (matrixProject R hR M) hB hD (matrixProject_bound R hR M).1
apply (sandwich_opNorm D _).trans
apply mul_le_mul_of_nonneg_left _ (sq_nonneg _)
simpa only [fourierMoment,pow_zero,mul_one] using schwartzMatrix_opNorm f _ hS
lemma truncatedG_sub_norm (f : 𝓢(ℝ,ℂ)) (R : ℝ) (hR : 0 ≤ R) (B D M N : Matrix ι ι ℂ)
(hB : Bᴴ = B) (hD : Dᴴ = D) :
‖truncatedG f R hR B D M-truncatedG f R hR B D N‖ ≤
(2*Real.pi*fourierMoment f 1)*opNorm D^4*‖M-N‖ := by
have hL : 0 ≤ 2*Real.pi*fourierMoment f 1 := by have := fourierMoment_nonneg f 1; positivity
have hM := (matrixProject_bound R hR M).1
have hN := (matrixProject_bound R hR N).1
have hl := schwartzMatrix_sandShift_lipschitz f B D (matrixProject R hR M) (matrixProject R hR N) hB hD hM hN
have he : truncatedG f R hR B D M-truncatedG f R hR B D N =
D*(schwartzMatrix f (sandShift B D (matrixProject R hR M))-
schwartzMatrix f (sandShift B D (matrixProject R hR N)))*D := by dsimp [truncatedG]; noncomm_ring
rw [he]
calc
_ ≤ opNorm D^2*‖schwartzMatrix f (sandShift B D (matrixProject R hR M))-
schwartzMatrix f (sandShift B D (matrixProject R hR N))‖ := sandwich_frobenius _ _
_ ≤ opNorm D^2*((2*Real.pi*fourierMoment f 1)*opNorm D^2*‖matrixProject R hR M-matrixProject R hR N‖) :=
mul_le_mul_of_nonneg_left hl (sq_nonneg _)
_ ≤ opNorm D^2*((2*Real.pi*fourierMoment f 1)*opNorm D^2*‖M-N‖) := by
gcongr
exact matrixProject_sub_norm _ _ _ _
_ = _ := by ring
lemma truncatedG_hermitian (f : 𝓢(ℝ,ℂ)) (hf : ∀ x, star (f x) = f x)
(R : ℝ) (hR : 0 ≤ R) (B D M : Matrix ι ι ℂ) (hB : Bᴴ = B) (hD : Dᴴ = D) :
(truncatedG f R hR B D M)ᴴ = truncatedG f R hR B D M := by
have hs := schwartzMatrix_hermitian f hf (sandShift B D (matrixProject R hR M))
(sandShift_hermitian B D (matrixProject R hR M) hB hD (matrixProject_bound R hR M).1)
change (D*schwartzMatrix f (sandShift B D (matrixProject R hR M))*D)ᴴ = _
simp only [Matrix.conjTranspose_mul,hD,hs.eq,truncatedG,mul_assoc]
lemma truncatedG_eq_inverse (f : 𝓢(ℝ,ℂ)) {lo hi : ℝ} (hlo : 0 < lo)
(hf : ∀ x ∈ Set.Icc lo hi, f x = (x : ℂ)⁻¹)
(R : ℝ) (hR : 0 ≤ R) (B D M : Matrix ι ι ℂ) (hB : Bᴴ = B) (hD : Dᴴ = D)
(hM : Mᴴ = M) (hMR : opNorm M ≤ R)
(hspec : ∀ i, Matrix.IsHermitian.eigenvalues (sandShift_hermitian B D M hB hD hM) i ∈ Set.Icc lo hi) :
truncatedG f R hR B D M = D*(sandShift B D M)⁻¹*D := by
rw [truncatedG,matrixProject_eq_self R hR M hM hMR,
schwartzMatrix_eq_inverse f hlo hf _ (sandShift_hermitian B D M hB hD hM) hspec]
end SKRatioGaussian.ComplexMatrix
end
end
end
end
end
end
end
end
end
end
end OAI

Xet Storage Details

Size:
4.53 kB
·
Xet hash:
415cc91904bf000b82c7ddc9ad7c53cb8af024a8fddf391d22ceb47ea386e7a3

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.