Download data/lean/OAI/Geometry/ProjectionBody/UnitSupport.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 1.32 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/ProjectionBody/UnitSupport.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Geometry/ProjectionBody/UnitSupport.lean
-
curl -L -o UnitSupport.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/ProjectionBody/UnitSupport.lean
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 | |