math / data /lean /OAI /Geometry /ProjectionVolume /Brightness.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
5.69 kB
import OAI.Geometry.ProjectionVolume.Basic
namespace OAI
open Set MeasureTheory
open scoped RealInnerProductSpace Pointwise
namespace Paper092
theorem normalHyperplane_smul {n : β„•} (u : Euclidean n) {c : ℝ} (hc : c β‰  0) :
normalHyperplane (c β€’ u) = normalHyperplane u := by
unfold normalHyperplane
rw [Submodule.span_singleton_smul_eq (isUnit_iff_ne_zero.mpr hc)]
theorem projectionVolume_smul {n : β„•} (K : Set (Euclidean n)) (u : Euclidean n)
{c : ℝ} (hc : c β‰  0) : projectionVolume K (c β€’ u) = projectionVolume K u := by
exact congrArg (fun V : Submodule ℝ (Euclidean n) =>
(volume : Measure V) (V.orthogonalProjectionOnto '' K)) (normalHyperplane_smul u hc)
theorem brightness_smul {n : β„•} (K : Set (Euclidean n)) (u : Euclidean n) (c : ℝ) :
brightness K (c β€’ u) = |c| * brightness K u := by
by_cases hc : c = 0
Β· simp [hc, brightness]
Β· rw [brightness, projectionVolume_smul K u hc, norm_smul, Real.norm_eq_abs, brightness]
ring
theorem brightness_neg {n : β„•} (K : Set (Euclidean n)) (u : Euclidean n) :
brightness K (-u) = brightness K u := by
simpa using brightness_smul K u (-1)
theorem brightness_nonneg {n : β„•} (K : Set (Euclidean n)) (u : Euclidean n) :
0 ≀ brightness K u := mul_nonneg (norm_nonneg u) ENNReal.toReal_nonneg
theorem zero_mem_projectionBody {n : β„•} (K : Set (Euclidean n)) :
0 ∈ projectionBody K := by
intro u
simpa using brightness_nonneg K u
theorem neg_mem_projectionBody_iff {n : β„•} (K : Set (Euclidean n)) (y : Euclidean n) :
-y ∈ projectionBody K ↔ y ∈ projectionBody K := by
constructor
Β· intro h u
simpa [brightness_neg] using h (-u)
Β· intro h u
simpa [brightness_neg] using h (-u)
theorem projectionBody_neg_eq {n : β„•} (K : Set (Euclidean n)) :
-projectionBody K = projectionBody K := by
ext y
simp [neg_mem_projectionBody_iff]
theorem projectionVolume_lt_top {n : β„•} {K : Set (Euclidean n)} (hK : IsCompact K)
(u : Euclidean n) : projectionVolume K u < ⊀ := by
exact (hK.image (normalHyperplane u).orthogonalProjectionOnto.continuous).measure_lt_top
theorem projectionVolume_mono {n : β„•} {A B : Set (Euclidean n)} (h : A βŠ† B)
(u : Euclidean n) : projectionVolume A u ≀ projectionVolume B u :=
measure_mono (image_mono h)
theorem brightness_mono {n : β„•} {A B : Set (Euclidean n)} (h : A βŠ† B)
(hB : IsCompact B) (u : Euclidean n) : brightness A u ≀ brightness B u :=
mul_le_mul_of_nonneg_left
(ENNReal.toReal_mono (projectionVolume_lt_top hB u).ne (projectionVolume_mono h u))
(norm_nonneg u)
theorem projectionBody_mono {n : β„•} {A B : Set (Euclidean n)} (h : A βŠ† B)
(hB : IsCompact B) : projectionBody A βŠ† projectionBody B :=
fun _ hy u => (hy u).trans (brightness_mono h hB u)
theorem projectionBody_isClosed {n : β„•} (K : Set (Euclidean n)) :
IsClosed (projectionBody K) := by
rw [projectionBody, ofPred_forall]
exact isClosed_iInter fun u => isClosed_le (innerSL ℝ u).continuous continuous_const
theorem projectionBody_convex {n : β„•} (K : Set (Euclidean n)) :
Convex ℝ (projectionBody K) := by
rw [projectionBody, ofPred_forall]
exact convex_iInter fun u => (convex_Iic (brightness K u)).linear_preimage (innerSL ℝ u).toLinearMap
theorem projectionBody_norm_le {n : β„•} (K : Set (Euclidean n))
{y : Euclidean n} (hy : y ∈ projectionBody K) :
β€–yβ€– ≀ βˆ‘ i : Fin n, brightness K (EuclideanSpace.basisFun (Fin n) ℝ i) := by
let b := EuclideanSpace.basisFun (Fin n) ℝ
calc
β€–yβ€– = β€–βˆ‘ i : Fin n, inner ℝ (b i) y β€’ b iβ€– := by rw [b.sum_repr']
_ ≀ βˆ‘ i : Fin n, β€–inner ℝ (b i) y β€’ b iβ€– := norm_sum_le _ _
_ = βˆ‘ i : Fin n, |inner ℝ (b i) y| := by simp [norm_smul, Real.norm_eq_abs]
_ ≀ βˆ‘ i : Fin n, brightness K (b i) := by
apply Finset.sum_le_sum
intro i _
apply abs_le.mpr
constructor
Β· have h := hy (-b i)
simpa [brightness_neg] using neg_le_neg h
Β· exact hy (b i)
theorem projectionBody_isCompact {n : β„•} (K : Set (Euclidean n)) :
IsCompact (projectionBody K) := by
apply Metric.isCompact_iff_isClosed_bounded.mpr
refine ⟨projectionBody_isClosed K, isBounded_iff_forall_norm_le.mpr ?_⟩
exact ⟨_, fun _ hy => projectionBody_norm_le K hy⟩
theorem projectionVolume_body_smul {n : β„•} (K : Set (Euclidean n)) (u : Euclidean n)
(hu : u β‰  0) (c : ℝ) :
projectionVolume (c β€’ K) u = ENNReal.ofReal (|c| ^ (n - 1)) * projectionVolume K u := by
unfold projectionVolume
rw [image_smul_comm _ c K (fun x => map_smul _ c x),
Measure.addHaar_smul, normalHyperplane_finrank u hu, abs_pow]
theorem brightness_body_smul {n : β„•} (K : Set (Euclidean n)) (u : Euclidean n) (c : ℝ) :
brightness (c β€’ K) u = |c| ^ (n - 1) * brightness K u := by
by_cases hu : u = 0
Β· simp [hu, brightness]
Β· rw [brightness, projectionVolume_body_smul K u hu c, ENNReal.toReal_mul,
ENNReal.toReal_ofReal (pow_nonneg (abs_nonneg c) _), brightness]
ring
theorem projectionBody_body_smul {n : β„•} (K : Set (Euclidean n)) (c : ℝ) (hc : c β‰  0) :
projectionBody (c β€’ K) = |c| ^ (n - 1) β€’ projectionBody K := by
have hq : 0 < |c| ^ (n - 1) := pow_pos (abs_pos.mpr hc) _
ext y
rw [mem_smul_set_iff_inv_smul_memβ‚€ hq.ne']
constructor
Β· intro h u
have hh := mul_le_mul_of_nonneg_left (h u) (inv_nonneg.mpr hq.le)
simpa [brightness_body_smul, inner_smul_right, mul_assoc, hq.ne'] using hh
Β· intro h u
have hh := mul_le_mul_of_nonneg_left (h u) hq.le
simpa [brightness_body_smul, inner_smul_right, mul_assoc, hq.ne'] using hh
end Paper092
end OAI