math / data /lean /OAI /Geometry /ProjectionBody /UnitSupport.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
1.32 kB
import Mathlib.Analysis.InnerProductSpace.Basic
namespace OAI
noncomputable section
open Set
open scoped RealInnerProductSpace
namespace ProjectionCounterexample
/-- For a positively homogeneous support bound, unit directions determine all
directions. This connects the unit-sphere definition with an
explicit zonotope's halfspace description. -/
theorem unit_support_halfspaces_eq
{V : Type*} [NormedAddCommGroup V] [InnerProductSpace ℝ V]
(f : V β†’ ℝ) (hzero : 0 ≀ f 0)
(hscale : βˆ€ (a : ℝ), 0 ≀ a β†’ βˆ€ u, f (a β€’ u) = a * f u) :
{x : V | βˆ€ u, β€–uβ€– = 1 β†’ βŸͺu, x⟫ ≀ f u} =
{x : V | βˆ€ u, βŸͺu, x⟫ ≀ f u} := by
ext x
constructor
Β· intro hx u
by_cases hu : u = 0
Β· simpa [hu] using hzero
have hnorm : β€–uβ€– β‰  0 := norm_ne_zero_iff.mpr hu
let v : V := β€–u‖⁻¹ β€’ u
have hv : β€–vβ€– = 1 := by
simp [v, norm_smul, hnorm]
have huv : β€–uβ€– β€’ v = u := by
simp [v, smul_smul, hnorm]
calc
βŸͺu, x⟫ = β€–uβ€– * βŸͺv, x⟫ := by
rw [← real_inner_smul_left, huv]
_ ≀ β€–uβ€– * f v := mul_le_mul_of_nonneg_left (hx v hv) (norm_nonneg u)
_ = f u := by rw [← hscale β€–uβ€– (norm_nonneg u) v, huv]
Β· intro hx u _
exact hx u
end ProjectionCounterexample
end
end OAI