roseking's picture
Add lean source and binary files (part 72)
cead56f 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