cfahlgren1/math / lean /OAI /Probability /SKRatio /Matrices /GaussianQuadraticSupComparison.lean
cfahlgren1's picture
download
raw
3.07 kB
import Mathlib
import OAI.Probability.SKRatio.Matrices.GaussianCoordinates
import OAI.Probability.SKRatio.Matrices.QuadraticCoeff
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
noncomputable section
open Matrix Set Filter
open scoped Topology Matrix.Norms.Frobenius
noncomputable section
open Matrix NormedSpace ContinuousLinearMap
open scoped Matrix.Norms.Frobenius
noncomputable section
open Matrix
noncomputable section
open MeasureTheory ProbabilityTheory Real Set
open scoped ENNReal NNReal
noncomputable section
open MeasureTheory ProbabilityTheory InformationTheory Real Set
open scoped NNReal ENNReal
noncomputable section
open scoped BigOperators
open MeasureTheory ProbabilityTheory
namespace SKRatioGaussian
section QuadraticComparison
variable {I ι : Type*} [TopologicalSpace I] [CompactSpace I] [Nonempty I]
[Fintype ι] [Nonempty ι]
theorem gaussian_quadraticSup_comparison {m : I → ℝ}
{w : I → EuclideanSpace ℝ ι} (hm : Continuous m) (hw : Continuous w)
{r : ℝ} (hr : 0 ≤ r) (z : ℝ) :
(∫ g, gaussianSup m (fun i k => z * quadraticCoeff r (w i) k) g
∂gaussianCoordinates (MatrixCoordinates ι)) ≤
∫ g, gaussianSup m (fun i k => z * linearCoeff r (w i) k) g
∂gaussianCoordinates (MatrixCoordinates ι) := by
have hc {q : EuclideanSpace ℝ ι → MatrixCoordinates ι → ℝ} (hq : Continuous q) :
Continuous (fun i k => z * q (w i) k) := by
apply continuous_pi
intro k
exact continuous_const.mul ((continuous_apply k).comp (hq.comp hw))
apply gaussianSup_comparison hm (hc (continuous_linearCoeff r))
(hc (continuous_quadraticCoeff r))
· intro i j
simp_rw [← mul_sub]
simp_rw [show ∀ k, (z * (linearCoeff r (w i) k - linearCoeff r (w j) k)) *
(z * (quadraticCoeff r (w i) k - quadraticCoeff r (w j) k)) =
z^2 * ((linearCoeff r (w i) k - linearCoeff r (w j) k) *
(quadraticCoeff r (w i) k - quadraticCoeff r (w j) k)) by intros; ring]
rw [← Finset.mul_sum, quadratic_linear_orthogonal, mul_zero]
· intro i j
simp_rw [← mul_sub, mul_pow, ← Finset.mul_sum]
exact mul_le_mul_of_nonneg_left (quadratic_linear_increment_le r hr (w i) (w j))
(sq_nonneg z)
end QuadraticComparison
end SKRatioGaussian
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end OAI

Xet Storage Details

Size:
3.07 kB
·
Xet hash:
6fadd78dc2f5b8c62437bff7ed25b081ed537337281f62b17b80915637452425

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