theoremexists_chart_matrix_determinant_bound {n : ℕ}
{s : Set (EuclideanSpaceℝ (Fin n))} (hs : MeasurableSet s) (hsf : volume s ≠ (⊤ : ℝ≥0∞))
{f : s →X} {KJ : ℝ≥0}
(hf : LipschitzWithK f) (hJ : AntilipschitzWithJ f)
(hQ : ∀a b c d : s,
dist (f a) (f c)^2+dist (f b) (f d)^2≤
dist (f a) (f b)^2+dist (f b) (f c)^2+dist (f c) (f d)^2+dist (f d) (f a)^2) :
∃P : EuclideanSpaceℝ (Fin n) →Matrix (Fin n) (Fin n) ℝ,
(∀ i j, Measurable (fun x =>P x i j)) ∧
(∀ᵐ x ∂volume.restrict s, (P x).PosDef) ∧
(∀ᵐ x ∂volume.restrict s, Real.sqrt (P x).det ≤ (K : ℝ)^n) ∧∀π : Fin n →X→ℝ, (∀ i, LipschitzWith1 (π i)) →∀ᵐ x ∂volume.restrict s,
|(Matrix.of fun i j =>
fderivWithin ℝ (scalarOn f (π i)) s x (EuclideanSpace.single j 1)).det| ≤Real.sqrt (P x).det :=by
proof · 52
lines
let b := (EuclideanSpace.basisFun (Fin n) ℝ).toBasis
obtain ⟨p,hpm,hpLip,hae⟩ := exists_hilbertian_chart_differential volume hs hsf hf hJ hQ
havehzero : ∀ᵐ x ∂volume.restrict s, ∀ v, p x v = 0↔ v = 0:=by
filter_upwards [hae] with x hx v
constructor
· intro hv
have hn := hx.2.2 v
rw [hv,mul_zero] at hn
exact norm_eq_zero.mp (le_antisymm hn (norm_nonneg v))
· rintro rfl
exact map_zero (p x)
refine ⟨fun x => polarizationMatrix (p x) b,measurable_polarizationMatrix p b hpm,?_,?_,?_⟩
· filter_upwards [hae,hzero] with x hx hz
exact polarizationMatrix_posDef b (p x) hz hx.2.1
· filter_upwards [hae,hzero] with x hx hz
apply sqrt_det_le_pow_of_quadratic_bound _
(polarizationMatrix_posDef b (p x) hz hx.2.1).posSemidef K.coe_nonneg
intro v
letw : EuclideanSpaceℝ (Fin n) :=WithLp.toLp 2 v
havehrepr : b.repr w = v :=by ext j; simp [b,w]
havehJ : v ⬝ᵥ (polarizationMatrix (p x) b).mulVec v = (p x w)^2:=by
simpa only [hrepr] using polarizationMatrix_quadratic b (p x) hz hx.2.1 w
rw [hJ,Real.sqrt_sq (apply_nonneg (p x) w)]
simpa only [dist_zero_right,map_zero,Real.norm_eq_abs, abs_of_nonneg (apply_nonneg (p x) w)] using (hpLip x).dist_le_mul w 0
intro π hπ
havehdiff : ∀ᵐ x ∂volume.restrict s, ∀hx : x ∈ s,
HasCenteredMetricDifferentialWithin s f (p x) ⟨x,hx⟩ := hae.mono fun x hx => hx.1havehrows : ∀ᵐ x ∂volume.restrict s, ∀ i v,
|fderivWithin ℝ (scalarOn f (π i)) s x v| ≤ p x v :=by
rw [eventually_all]
intro i
simpa only [NNReal.coe_one,one_mul] using ae_scalarOn_derivative_bound volume hs hf hdiff (hπ i)
filter_upwards [hae,hzero,hrows] with x hx hz hrow
apply abs_det_le_sqrt_det_of_posDef _ _ (polarizationMatrix_posDef b (p x) hz hx.2.1)
intro i v
letw : EuclideanSpaceℝ (Fin n) :=WithLp.toLp 2 v
havehrepr : b.repr w = v :=by
ext j
simp [b,w]
havehJ : v ⬝ᵥ (polarizationMatrix (p x) b).mulVec v = (p x w)^2:=by
simpa only [hrepr] using polarizationMatrix_quadratic b (p x) hz hx.2.1 w
rw [hJ,Real.sqrt_sq (apply_nonneg (p x) w)]
convert hrow i w using1
congr 1havehb : ∑ j, v j • EuclideanSpace.single j (1 : ℝ) = w :=by
convert b.sum_repr w using1
simp only [hrepr]
congr 1
ext j
simp [b]
rw [←hb,map_sum]
simp only [map_smul, smul_eq_mul, Matrix.of_apply, dotProduct, mul_comm]