-- Prove2me | solution 1 for OpenProblems.QEDE011.claim -- status : ACCEPTED (prove) -- author : @Gonçalo Perdigão -- created : 2026-11-30T23:19:05.954521+00:00 -- url : https://prove2.me/submissions/ed6fbc9e-e43a-4dde-affa-cd9dc784a828 -- SPDX-License-Identifier: Apache-2.0 -- Modified for the Qedmarket challenge by reproducing its definitions, restoring the -- challenge theorem name, narrowing the Mathlib imports, and making selected -- proof steps explicit. import Mathlib.Analysis.Convex.SpecificFunctions.Pow import Mathlib.Analysis.MeanInequalitiesPow import Mathlib.Analysis.SpecialFunctions.Pow.Continuity import Mathlib.Analysis.SpecialFunctions.Trigonometric.Basic import Mathlib.Topology.MetricSpace.ProperSpace.Real import Mathlib.Tactic.FunProp import Mathlib.Tactic.FieldSimp import Mathlib.Tactic.Linarith import Mathlib.Tactic.LinearCombination import Mathlib.Tactic.NormNum import Mathlib.Tactic.Positivity import Mathlib.Tactic.Ring import Mathlib.Analysis.InnerProductSpace.PiL2 import Mathlib.Analysis.LocallyConvex.Separation import Mathlib.Analysis.Normed.Operator.Banach import Mathlib.Analysis.MeanInequalities import Mathlib.Tactic.FinCases /- From Prove2Me, definition `QED_E011` by floration (https://prove2.me/definitions/4f476e5a-8528-424c-9c58-d3942f9bd430). Problem source: https://floration.github.io/QED/#QED-E011 Apache-2.0 per Prove2Me's terms. The Mathlib imports were narrowed for Qedmarket. -/ /-! QED-E011: Rupert superballs Informal statement: Let B_p = {x ∈ ℝ³ : |x₁|^p + |x₂|^p + |x₃|^p ≤ 1}. For every p ∈ (2, ∞) there are orthogonal projections π₁, π₂ of ℝ³ onto planes and a rigid motion ρ of the plane with ρ(π₁(B_p)) ⊂ int π₂(B_p), i.e. B_p has Rupert's property. Formalization notes: equivalently (moving the body instead of the plane) there are rigid motions ρ₁, ρ₂ of ℝ³ such that the shadow of ρ₁(B_p) on the xy-plane lies in the interior of the shadow of ρ₂(B_p). The shadow is the coordinate map x ↦ (x₀, x₁) ∈ ℝ × ℝ; only the topology of the target (product topology = Euclidean topology) is used, via `interior`. Rigid motions are `IsometryEquiv`s of `EuclideanSpace ℝ (Fin 3)` (affine by Mazur–Ulam); allowing reflections is harmless since B_p is invariant under coordinate reflections. The dual-norm reformulation of the board text is not used. p = 2 (the ball) fails, so the claim is not vacuous. -/ namespace OpenProblems.QEDE011 noncomputable section abbrev E3 := EuclideanSpace ℝ (Fin 3) /-- The superball `|x₁|^p + |x₂|^p + |x₃|^p ≤ 1`. -/ def superball (p : ℝ) : Set E3 := {x | ∑ i : Fin 3, |x i| ^ p ≤ 1} /-- Orthogonal projection to the `xy`-plane. -/ def shadow (x : E3) : ℝ × ℝ := (x 0, x 1) /-- Rupert's property: one copy can pass through a straight hole in another copy. -/ def IsRupert (K : Set E3) : Prop := ∃ ρ₁ ρ₂ : E3 ≃ᵢ E3, shadow '' (ρ₁ '' K) ⊆ interior (shadow '' (ρ₂ '' K)) def Claim : Prop := ∀ p : ℝ, 2 < p → IsRupert (superball p) end end OpenProblems.QEDE011 namespace RupertSuperballs open Set Filter Topology noncomputable section def f (q s t : ℝ) : ℝ := |s + t| ^ q + |s - t| ^ q def g (q c d s t : ℝ) : ℝ := f q s (c * t) + |d * t| ^ q lemma abs_jensen {q a b x y : ℝ} (hq : 1 ≤ q) (ha : 0 ≤ a) (hb : 0 ≤ b) (hab : a + b = 1) : |a*x+b*y|^q ≤ a*|x|^q + b*|y|^q := by have h := abs_add_le (a*x) (b*y) rw [abs_mul, abs_mul, abs_of_nonneg ha, abs_of_nonneg hb] at h refine (Real.rpow_le_rpow (abs_nonneg _) h (zero_le_one.trans hq)).trans ?_ simpa only [smul_eq_mul] using (convexOn_rpow hq).2 (Set.mem_Ici.mpr (abs_nonneg x)) (Set.mem_Ici.mpr (abs_nonneg y)) ha hb hab lemma f_jensen {q s a b x y : ℝ} (hq : 1 ≤ q) (ha : 0 ≤ a) (hb : 0 ≤ b) (hab : a + b = 1) : f q s (a*x+b*y) ≤ a*f q s x+b*f q s y := by have h₁ : s + (a*x+b*y) = a*(s+x)+b*(s+y) := by linear_combination -s * hab have h₂ : s - (a*x+b*y) = a*(s-x)+b*(s-y) := by linear_combination -s * hab dsimp [f] rw [h₁,h₂] linarith only [abs_jensen hq ha hb hab (x := s+x) (y := s+y), abs_jensen hq ha hb hab (x := s-x) (y := s-y)] lemma f_center {q : ℝ} (hq : 1 ≤ q) (s t : ℝ) : f q s 0 ≤ f q s t := by have h := f_jensen (s := s) (x := t) (y := -t) hq (by norm_num : (0:ℝ) ≤ 1/2) (by norm_num : (0:ℝ) ≤ 1/2) (by norm_num) have h₁ : (1/2:ℝ)*t+(1/2)*(-t) = 0 := by ring have h₂ : f q s (-t) = f q s t := by simp [f, sub_eq_add_neg, add_comm] rw [h₁,h₂] at h linarith only [h] lemma abs_rpow_sq (q x : ℝ) : |x| ^ q = (x^2) ^ (q/2) := by rw [← sq_abs, ← Real.rpow_natCast, ← Real.rpow_mul (abs_nonneg x)] congr 1 ring lemma f_le_sq {q : ℝ} (hq : 0 ≤ q) (hq₂ : q ≤ 2) (s t : ℝ) : f q s t ≤ 2 * (s^2+t^2)^(q/2) := by have hm : (1/2:ℝ)*(s+t)^2+(1/2)*(s-t)^2 = s^2+t^2 := by ring have h := (Real.concaveOn_rpow (div_nonneg hq (by norm_num)) ((div_le_one₀ (by norm_num : (0 : ℝ) < 2)).mpr hq₂)).2 (Set.mem_Ici.mpr (sq_nonneg (s+t))) (Set.mem_Ici.mpr (sq_nonneg (s-t))) (by norm_num : (0:ℝ) ≤ 1/2) (by norm_num : (0:ℝ) ≤ 1/2) (by norm_num) simp only [smul_eq_mul, hm] at h unfold f rw [abs_rpow_sq,abs_rpow_sq] linarith only [h] lemma f_lt_sq {q : ℝ} (hq : 0 < q) (hq₂ : q < 2) {s t : ℝ} (hst : s*t ≠ 0) : f q s t < 2 * (s^2+t^2)^(q/2) := by have hne : (s+t)^2 ≠ (s-t)^2 := by intro h apply hst linarith only [show (s+t)^2 - (s-t)^2 = 4*(s*t) by ring,h] have hm : (1/2:ℝ)*(s+t)^2+(1/2)*(s-t)^2 = s^2+t^2 := by ring have h := (Real.strictConcaveOn_rpow (div_pos hq (by norm_num)) ((div_lt_one₀ (by norm_num : (0 : ℝ) < 2)).mpr hq₂)).2 (Set.mem_Ici.mpr (sq_nonneg (s+t))) (Set.mem_Ici.mpr (sq_nonneg (s-t))) hne (by norm_num : (0:ℝ) < 1/2) (by norm_num : (0:ℝ) < 1/2) (by norm_num) simp only [smul_eq_mul, hm] at h unfold f rw [abs_rpow_sq,abs_rpow_sq] linarith only [h] lemma f_center_eq (q s : ℝ) : f q s 0 = 2*|s|^q := by simp [f]; ring lemma f_double_le {q : ℝ} (hq : 0 ≤ q) (hq₂ : q ≤ 2) (s t : ℝ) : f q s (2*t) ≤ f q s 0 + (2 * (2:ℝ)^q) * |t|^q := by have h := f_le_sq hq hq₂ s (2*t) have hu := Real.rpow_add_le_add_rpow (sq_nonneg s) (sq_nonneg (2*t)) (div_nonneg hq (by norm_num)) ((div_le_one₀ (by norm_num : (0 : ℝ) < 2)).mpr hq₂) rw [← abs_rpow_sq, ← abs_rpow_sq, abs_mul, abs_of_nonneg (by norm_num : (0:ℝ) ≤ 2), Real.mul_rpow (by norm_num : (0:ℝ) ≤ 2) (abs_nonneg t)] at hu rw [f_center_eq] linarith only [h,hu] lemma f_loss {q c : ℝ} (hq : 1 ≤ q) (hq₂ : q ≤ 2) (hc₁ : c ≤ 1) (s t : ℝ) : f q s t - f q s (c*t) ≤ (1-c) * ((2*(2:ℝ)^q) * |t|^q) := by have hpos : 0 < 2-c := by linarith have hab : 1/(2-c)+(1-c)/(2-c)=1 := by field_simp [hpos.ne']; ring have harg : 1/(2-c)*(c*t)+(1-c)/(2-c)*(2*t)=t := by field_simp [hpos.ne']; ring have hv := f_jensen (s := s) (x := c*t) (y := 2*t) hq (one_div_nonneg.mpr hpos.le) (div_nonneg (sub_nonneg.mpr hc₁) hpos.le) hab rw [harg] at hv have hrec : f q s (c*t)/(2-c)+(1-c)*f q s (2*t)/(2-c) = 1/(2-c)*f q s (c*t)+(1-c)/(2-c)*f q s (2*t) := by ring rw [← hrec, ← add_div] at hv have ht := (le_div_iff₀ hpos).mp hv have hd := sub_le_sub (f_double_le (zero_le_one.trans hq) hq₂ s t) (f_center hq s t) have hmul := mul_le_mul_of_nonneg_left hd (sub_nonneg.mpr hc₁) nlinarith only [ht,hmul] lemma little_power {a b A B : ℝ} (hab : b < a) (hB : 0 < B) : ∃ r : ℝ, 0 < r ∧ ∀ x : ℝ, 0 < x → x < r → A*x^a < B*x^b := by have hp : 0 < a-b := sub_pos.mpr hab have hcont : Continuous fun x : ℝ => A * x^(a-b) := continuous_const.mul (Real.continuous_rpow_const hp.le) have he : ∀ᶠ x : ℝ in 𝓝 0, A*x^(a-b) < B := by apply hcont.continuousAt.eventually_lt continuousAt_const simpa [Real.zero_rpow hp.ne'] using hB obtain ⟨r, hr, h⟩ := Metric.eventually_nhds_iff.mp he refine ⟨r,hr,fun x hx hxr => ?_⟩ have hx' := h (show dist x 0 < r by simpa [Real.dist_eq, abs_of_pos hx] using hxr) have hm := mul_lt_mul_of_pos_right hx' (Real.rpow_pos_of_pos hx b) rw [mul_assoc, ← Real.rpow_add hx, sub_add_cancel] at hm exact hm lemma choose_tilt {q : ℝ} (hq : 1 < q) (hq₂ : q < 2) : ∃ c D : ℝ, 0 < c ∧ c < 1 ∧ 0 < D ∧ D^2 = 2*(1-c^2) ∧ (1-c)*(2*(2:ℝ)^q) < D^q := by obtain ⟨r,hr,h⟩ := little_power (A := 2*(2:ℝ)^q) (a := 1) (b := q/2) (by linarith) (show (0:ℝ) < 1 by norm_num) let e := min (r/2) (1/2) have he : 0 < e := by dsimp [e]; positivity have he₁ : e ≤ 1/2 := min_le_right _ _ have her : e < r := (min_le_left _ _).trans_lt (half_lt_self_iff.mpr hr) let c := 1-e have hc : 0 < c := by dsimp [c]; linarith have hc₁ : c < 1 := by dsimp [c]; linarith have hbase : 0 < 2*(1-c^2) := by nlinarith only [sq_nonneg c, mul_pos (sub_pos.mpr hc₁) (show 0 < 1+c by linarith)] let D := Real.sqrt (2*(1-c^2)) have hd : 0 < D := Real.sqrt_pos.2 hbase have hsq : D^2 = 2*(1-c^2) := Real.sq_sqrt hbase.le refine ⟨c,D,hc,hc₁,hd,hsq,?_⟩ have hle : e ≤ D^2 := by rw [hsq] have hh := mul_nonneg he.le (show 0 ≤ 3-2*e by linarith) dsimp [c] nlinarith only [hh] have h₁ := h e he her rw [Real.rpow_one, one_mul] at h₁ have hqHalf : 0 ≤ q / 2 := div_nonneg (zero_le_one.trans hq.le) (by norm_num) have h₂ := Real.rpow_le_rpow he.le hle hqHalf rw [← abs_rpow_sq,abs_of_pos hd] at h₂ have hce : 1-c = e := by dsimp [c]; ring rw [hce,mul_comm] exact h₁.trans_le h₂ lemma g_gt_f {q c D s t : ℝ} (hq : 1 < q) (hq₂ : q < 2) (hc : 0 < c) (hc₁ : c < 1) (hD : 0 < D) (hgain : (1-c)*(2*(2:ℝ)^q) < D^q) (ht : t ≠ 0) : f q s t < g q c D s t := by have hl := f_loss hq.le hq₂.le hc₁.le s t have hh := mul_lt_mul_of_pos_right hgain (Real.rpow_pos_of_pos (abs_pos.mpr ht) q) unfold g rw [abs_mul, abs_of_pos hD, Real.mul_rpow hD.le (abs_nonneg t)] nlinarith only [hl,hh] def rotatedF (q δ : ℝ) (z : ℝ × ℝ) : ℝ := f q (Real.cos δ*z.1-Real.sin δ*z.2) (Real.sin δ*z.1+Real.cos δ*z.2) lemma rotated_norm (δ s t : ℝ) : (Real.cos δ*s-Real.sin δ*t)^2+(Real.sin δ*s+Real.cos δ*t)^2 = s^2+t^2 := by linear_combination (s^2+t^2) * Real.sin_sq_add_cos_sq δ lemma continuous_f {q : ℝ} (hq : 0 ≤ q) : Continuous (fun z : ℝ × ℝ => f q z.1 z.2) := by have ha := (Real.continuous_rpow_const hq).comp continuous_abs exact (ha.comp (continuous_fst.add continuous_snd)).add (ha.comp (continuous_fst.sub continuous_snd)) lemma gap_in_all_directions {q : ℝ} (hq : 1 < q) (hq₂ : q < 2) : ∃ c D δ : ℝ, 0 < c ∧ c < 1 ∧ 0 < D ∧ D^2 = 2*(1-c^2) ∧ ∀ s t : ℝ, s^2+t^2=1 → rotatedF q δ (s,t) < g q c D s t := by obtain ⟨c,D,hc,hc₁,hD,hsq,hgain⟩ := choose_tilt hq hq₂ obtain ⟨r,hr,hnear⟩ := little_power (A:=2) (B:=D^q) (a:=2) (b:=q) hq₂ (Real.rpow_pos_of_pos hD _) let K : Set (ℝ × ℝ) := {z | z.1^2+z.2^2=1 ∧ r ≤ |z.2|} have hclosed : IsClosed K := by apply IsClosed.inter · exact isClosed_eq ((continuous_fst.pow 2).add (continuous_snd.pow 2)) continuous_const · exact isClosed_le continuous_const (continuous_abs.comp continuous_snd) have hK : IsCompact K := by refine (isCompact_Icc.prod isCompact_Icc : IsCompact (Icc (-1:ℝ) 1 ×ˢ Icc (-1:ℝ) 1)).of_isClosed_subset hclosed ?_ intro z hz change z.1^2+z.2^2=1 ∧ r ≤ |z.2| at hz have h₁ : |z.1| ≤ 1 := by apply (sq_le_sq₀ (abs_nonneg _) (by norm_num)).mp rw [sq_abs] nlinarith only [hz.1,sq_nonneg z.2] have h₂ : |z.2| ≤ 1 := by apply (sq_le_sq₀ (abs_nonneg _) (by norm_num)).mp rw [sq_abs] nlinarith only [hz.1,sq_nonneg z.1] exact ⟨abs_le.mp h₁,abs_le.mp h₂⟩ have hq₀ : 0 ≤ q := zero_le_one.trans hq.le let X := ℝ × (ℝ × ℝ) have hs : Continuous (fun z : X => z.2.1) := continuous_fst.comp continuous_snd have ht : Continuous (fun z : X => z.2.2) := continuous_snd.comp continuous_snd have hcos : Continuous (fun z : X => Real.cos z.1) := Real.continuous_cos.comp continuous_fst have hsin : Continuous (fun z : X => Real.sin z.1) := Real.continuous_sin.comp continuous_fst have hcF : Continuous (fun z : X => rotatedF q z.1 z.2) := (continuous_f hq₀).comp (((hcos.mul hs).sub (hsin.mul ht)).prodMk ((hsin.mul hs).add (hcos.mul ht))) have hcG : Continuous (fun z : X => g q c D z.2.1 z.2.2) := ((continuous_f hq₀).comp (hs.prodMk (continuous_const.mul ht))).add ((Real.continuous_rpow_const hq₀).comp (continuous_const.mul ht).abs) have he : ∀ᶠ δ : ℝ in 𝓝 0, ∀ z ∈ K, rotatedF q δ z < g q c D z.1 z.2 := by apply hK.eventually_forall_of_forall_eventually intro z hz change z.1^2+z.2^2=1 ∧ r ≤ |z.2| at hz apply hcF.continuousAt.eventually_lt hcG.continuousAt simpa [rotatedF] using (g_gt_f hq hq₂ hc hc₁ hD hgain (abs_pos.mp (hr.trans_le hz.2)) : f q z.1 z.2 < g q c D z.1 z.2) obtain ⟨η,hη,hδ⟩ := Metric.eventually_nhds_iff.mp he let δ := min (η/2) (Real.pi/4) have hδ₀ : 0 < δ := by dsimp [δ]; positivity have hδη : δ < η := (min_le_left _ _).trans_lt (half_lt_self_iff.mpr hη) have hδπ : δ < Real.pi/2 := (min_le_right _ _).trans_lt (by linarith [Real.pi_pos]) have hcos : 0 < Real.cos δ := Real.cos_pos_of_mem_Ioo ⟨(neg_lt_zero.mpr (half_pos Real.pi_pos)).trans hδ₀, hδπ⟩ have hsin : 0 < Real.sin δ := Real.sin_pos_of_pos_of_lt_pi hδ₀ (hδπ.trans (half_lt_self_iff.mpr Real.pi_pos)) refine ⟨c,D,δ,hc,hc₁,hD,hsq,fun s t hst => ?_⟩ have hR := rotated_norm δ s t rw [hst] at hR by_cases ht : t = 0 · subst t have hs : |s| = 1 := by apply (sq_eq_sq₀ (abs_nonneg _) (by norm_num)).mp rw [sq_abs] simpa using hst have hne : (Real.cos δ*s-Real.sin δ*0)*(Real.sin δ*s+Real.cos δ*0) ≠ 0 := by have hsn : s ≠ 0 := by intro h; simp [h] at hs simpa only [mul_zero, sub_zero, add_zero] using mul_ne_zero (mul_ne_zero hcos.ne' hsn) (mul_ne_zero hsin.ne' hsn) have hh := f_lt_sq (by linarith : 0 < q) hq₂ hne rw [hR,Real.one_rpow,mul_one] at hh simpa [rotatedF,g,f_center_eq,hs,Real.zero_rpow (by linarith : q ≠ 0)] using hh · by_cases htr : r ≤ |t| · exact hδ (by simpa [Real.dist_eq, abs_of_pos hδ₀] using hδη) (s,t) ⟨hst,htr⟩ · have hfull := f_le_sq (by linarith : 0 ≤ q) hq₂.le (Real.cos δ*s-Real.sin δ*t) (Real.sin δ*s+Real.cos δ*t) rw [hR,Real.one_rpow,mul_one] at hfull have hx := hnear |t| (abs_pos.mpr ht) (lt_of_not_ge htr) rw [Real.rpow_two, sq_abs] at hx have hs : s^2 ≤ 1 := by nlinarith only [hst,sq_nonneg t] have hs' := Real.rpow_le_rpow_of_exponent_ge' (sq_nonneg s) hs (by linarith : 0 ≤ q/2) (show q/2 ≤ 1 by linarith) rw [Real.rpow_one, ← abs_rpow_sq] at hs' have hh := f_center hq.le s (c*t) rw [f_center_eq] at hh unfold g rw [abs_mul,abs_of_pos hD,Real.mul_rpow hD.le (abs_nonneg t)] exact hfull.trans_lt (by linarith only [hx,hs',hh,hst]) end end RupertSuperballs namespace RupertSuperballs open Set Matrix WithLp open scoped Matrix NNReal noncomputable section abbrev E := EuclideanSpace ℝ (Fin 3) def project : E →L[ℝ] ℝ × ℝ := (EuclideanSpace.proj (0 : Fin 3)).prod (EuclideanSpace.proj (1 : Fin 3)) lemma project_surj : Function.Surjective project := by intro z exact ⟨toLp 2 ![z.1,z.2,0], rfl⟩ def ball (p : ℝ) : Set E := {x | ∑ i : Fin 3, |x i|^p ≤ 1} def inside (p : ℝ) : Set E := {x | ∑ i : Fin 3, |x i|^p < 1} lemma inside_convex {p : ℝ} (hp : 1 ≤ p) : Convex ℝ (inside p) := by intro x hx y hy a b ha hb hab change ∑ i : Fin 3, |x i|^p < 1 at hx change ∑ i : Fin 3, |y i|^p < 1 at hy change ∑ i : Fin 3, |a*x i+b*y i|^p < 1 have hbnd := Finset.sum_le_sum (s := Finset.univ) fun i _ => abs_jensen (x := x i) (y := y i) hp ha hb hab rw [Finset.sum_add_distrib, ← Finset.mul_sum, ← Finset.mul_sum] at hbnd have hpos : 0 < a*(1-∑ i : Fin 3, |x i|^p)+b*(1-∑ i : Fin 3, |y i|^p) := by by_cases h : 0 < a · exact add_pos_of_pos_of_nonneg (mul_pos h (sub_pos.mpr hx)) (mul_nonneg hb (sub_pos.mpr hy).le) · have h' : 0 < b := by linarith exact add_pos_of_nonneg_of_pos (mul_nonneg ha (sub_pos.mpr hx).le) (mul_pos h' (sub_pos.mpr hy)) nlinarith only [hbnd,hpos,hab] lemma inside_open {p : ℝ} (hp : 0 ≤ p) : IsOpen (inside p) := by apply isOpen_lt _ continuous_const exact continuous_finsetSum _ (fun i _ => (Real.continuous_rpow_const hp).comp (continuous_abs.comp (EuclideanSpace.proj i).continuous)) def isoFromMatrix (M : Matrix (Fin 3) (Fin 3) ℝ) (h : ∀ a b z : ℝ, (∑ i : Fin 3, (M *ᵥ ![a,b,z]) i ^ 2) = a^2+b^2+z^2) : E ≃ₗᵢ[ℝ] E := by let L : E →ₗ[ℝ] E := Matrix.toEuclideanLin M have hn (x : E) : ‖L x‖ = ‖x‖ := by apply (sq_eq_sq₀ (norm_nonneg _) (norm_nonneg _)).mp rw [EuclideanSpace.real_norm_sq_eq,EuclideanSpace.real_norm_sq_eq] have hv : (![x 0,x 1,x 2] : Fin 3 → ℝ) = ofLp x := by funext i fin_cases i <;> rfl have hh := h (x 0) (x 1) (x 2) rw [hv] at hh change (∑ i, (M *ᵥ ofLp x) i ^ 2) = ∑ i, x i ^ 2 simpa only [Fin.sum_univ_three] using hh let L' : E →ₗᵢ[ℝ] E := ⟨L, hn⟩ have hbij : Function.Bijective L := ⟨L'.injective, LinearMap.injective_iff_surjective.mp L'.injective⟩ exact ⟨LinearEquiv.ofBijective L hbij, hn⟩ lemma isoFromMatrix_apply (M h x i) : isoFromMatrix M h x i = (M *ᵥ ofLp x) i := rfl def diagMatrix (k : ℝ) : Matrix (Fin 3) (Fin 3) ℝ := !![k,k,0;k,-k,0;0,0,1] def rotateMatrix (a b : ℝ) : Matrix (Fin 3) (Fin 3) ℝ := !![a,b,0;-b,a,0;0,0,1] def tiltMatrix (c d : ℝ) : Matrix (Fin 3) (Fin 3) ℝ := !![1,0,0;0,c,d;0,-d,c] def diagIso {k : ℝ} (hk : k^2 = 1/2) : E ≃ₗᵢ[ℝ] E := isoFromMatrix (diagMatrix k) (fun a b z => by simp [Fin.sum_univ_three, Matrix.mulVec, dotProduct, diagMatrix] linear_combination (2*a^2+2*b^2)*hk) def rotateIso {a b : ℝ} (hab : a^2+b^2 = 1) : E ≃ₗᵢ[ℝ] E := isoFromMatrix (rotateMatrix a b) (fun x y z => by simp [Fin.sum_univ_three, Matrix.mulVec, dotProduct, rotateMatrix] linear_combination (x^2+y^2)*hab) def tiltIso {c d : ℝ} (hcd : c^2+d^2 = 1) : E ≃ₗᵢ[ℝ] E := isoFromMatrix (tiltMatrix c d) (fun x y z => by simp [Fin.sum_univ_three, Matrix.mulVec, dotProduct, tiltMatrix] linear_combination (y^2+z^2)*hcd) lemma diag_apply {k : ℝ} (hk : k^2 = 1/2) (x : E) : diagIso hk x 0 = k*(x 0+x 1) ∧ diagIso hk x 1 = k*(x 0-x 1) ∧ diagIso hk x 2 = x 2 := by simp [diagIso, isoFromMatrix_apply, Matrix.mulVec, dotProduct, Fin.sum_univ_three, diagMatrix] constructor <;> ring lemma rotate_apply {a b : ℝ} (hab : a^2+b^2 = 1) (x : E) : rotateIso hab x 0 = a*x 0+b*x 1 ∧ rotateIso hab x 1 = -b*x 0+a*x 1 := by simp [rotateIso, isoFromMatrix_apply, Matrix.mulVec, dotProduct, Fin.sum_univ_three, rotateMatrix] lemma tilt_apply {c d : ℝ} (hcd : c^2+d^2 = 1) (x : E) : tiltIso hcd x 0 = x 0 ∧ tiltIso hcd x 1 = c*x 1+d*x 2 := by simp [tiltIso, isoFromMatrix_apply, Matrix.mulVec, dotProduct, Fin.sum_univ_three, tiltMatrix] def moment (q : ℝ) (v : Fin 3 → ℝ) : ℝ := ∑ i, |v i|^q def evalVec (v : Fin 3 → ℝ) (x : E) : ℝ := ∑ i, v i*x i lemma supported {p q : ℝ} (hpq : p.HolderConjugate q) (v : Fin 3 → ℝ) : (∀ x ∈ ball p, evalVec v x ≤ (moment q v)^(1/q)) ∧ ∃ x ∈ ball p, evalVec v x = (moment q v)^(1/q) := by let w : Fin 3 → ℝ≥0 := fun i => ⟨|v i|,abs_nonneg _⟩ obtain ⟨⟨u,hu,he⟩,hmax⟩ := NNReal.isGreatest_Lp Finset.univ w hpq.symm constructor · intro x hx let a : Fin 3 → ℝ≥0 := fun i => ⟨|x i|,abs_nonneg _⟩ have ha : a ∈ {g : Fin 3 → ℝ≥0 | ∑ i ∈ (Finset.univ : Finset (Fin 3)), g i ^ p ≤ 1} := by change (∑ i : Fin 3, a i ^ p) ≤ 1 exact_mod_cast hx have hs := hmax ⟨a,ha,rfl⟩ have hreal : (∑ i : Fin 3, |v i| * |x i|) ≤ (moment q v)^(1/q) := by unfold moment exact_mod_cast hs exact (Finset.sum_le_sum (fun i _ => by rw [← abs_mul]; exact le_abs_self _)).trans hreal · let x : E := toLp 2 (fun i => if v i < 0 then -(u i : ℝ) else (u i : ℝ)) have hx (i : Fin 3) : |x i| = u i := by change |if v i < 0 then -(u i : ℝ) else (u i : ℝ)| = _ split_ifs <;> simp [abs_of_nonneg (u i).coe_nonneg] have hv (i : Fin 3) : v i*x i = |v i| * (u i : ℝ) := by change v i*(if v i < 0 then -(u i : ℝ) else (u i : ℝ)) = _ by_cases h : v i < 0 · rw [if_pos h,abs_of_neg h]; ring · rw [if_neg h,abs_of_nonneg (le_of_not_gt h)] refine ⟨x,?_,?_⟩ · change ∑ i : Fin 3, |x i|^p ≤ 1 simp only [hx] exact_mod_cast hu · unfold evalVec moment simp only [hv] calc _ = ((∑ i : Fin 3, w i * u i : ℝ≥0) : ℝ) := by rw [NNReal.coe_sum] apply Finset.sum_congr rfl intro i _ exact (NNReal.coe_mul (w i) (u i)).symm _ = (((∑ i : Fin 3, w i ^ q : ℝ≥0) ^ (1/q) : ℝ≥0) : ℝ) := congrArg (fun z : ℝ≥0 => (z:ℝ)) he _ = _ := by rw [NNReal.coe_rpow,NNReal.coe_sum] congr 1 lemma functional_coords (L : StrongDual ℝ (ℝ × ℝ)) (z : ℝ × ℝ) : L z = L (1,0)*z.1 + L (0,1)*z.2 := by have hz : z = z.1 • ((1:ℝ),(0:ℝ)) + z.2 • ((0:ℝ),(1:ℝ)) := by ext <;> simp calc L z = L (z.1 • ((1:ℝ),(0:ℝ)) + z.2 • ((0:ℝ),(1:ℝ))) := congrArg L hz _ = _ := by rw [map_add,map_smul,map_smul] simp only [smul_eq_mul] ring lemma interior_of_support {p q : ℝ} (hpq : p.HolderConjugate q) (A B : E ≃ₗᵢ[ℝ] E) (v w : ℝ → ℝ → Fin 3 → ℝ) (hA : ∀ x s t, s*A x 0+t*A x 1 = evalVec (v s t) x) (hB : ∀ x s t, s*B x 0+t*B x 1 = evalVec (w s t) x) (hgap : ∀ s t : ℝ, s ≠ 0 ∨ t ≠ 0 → moment q (v s t) < moment q (w s t)) : (project.comp A.toLinearIsometry.toContinuousLinearMap) '' ball p ⊆ interior ((project.comp B.toLinearIsometry.toContinuousLinearMap) '' ball p) := by let P := project.comp B.toLinearIsometry.toContinuousLinearMap let U := P '' inside p have hU₀ : Convex ℝ U := (inside_convex hpq.lt.le).linear_image P.toLinearMap have hU₁ : IsOpen U := P.isOpenMap (project_surj.comp B.surjective) _ (inside_open hpq.nonneg) have hU : U ⊆ interior (P '' ball p) := by apply interior_maximal _ hU₁ rintro z ⟨x,hx,rfl⟩ exact ⟨x,show (∑ i : Fin 3, |x i|^p) ≤ 1 from le_of_lt hx,rfl⟩ rintro z ⟨x,hx,rfl⟩ apply hU by_contra hn obtain ⟨L,hL⟩ := geometric_hahn_banach_open_point hU₀ hU₁ hn let s := L (1,0) let t := L (0,1) have hL₀ : ∀ y : ℝ × ℝ, L y = s*y.1+t*y.2 := functional_coords L have hnz : s ≠ 0 ∨ t ≠ 0 := by by_contra! h have hz : (0 : ℝ × ℝ) ∈ U := by refine ⟨0, ?_,map_zero P⟩ simp [inside, Real.zero_rpow hpq.ne_zero] have ht := hL _ hz rw [hL₀,hL₀,h.1,h.2] at ht simp at ht have hpow : (moment q (v s t))^(1/q) < (moment q (w s t))^(1/q) := Real.rpow_lt_rpow (Finset.sum_nonneg fun i _ => Real.rpow_nonneg (abs_nonneg _) _) (hgap s t hnz) hpq.symm.one_div_pos have hv := (supported hpq (v s t)).1 x hx obtain ⟨y,hy,hw⟩ := (supported hpq (w s t)).2 let N := (moment q (w s t))^(1/q) have hN : 0 < N := by apply lt_of_le_of_lt _ hpow exact Real.rpow_nonneg (Finset.sum_nonneg fun i _ => Real.rpow_nonneg (abs_nonneg _) _) _ let V := (moment q (v s t))^(1/q) obtain ⟨α,hα,hα'⟩ := exists_between (show max 0 (V/N) < 1 from max_lt (by norm_num) ((div_lt_iff₀ hN).mpr (by simpa [V,N] using hpow))) have hα₀ : 0 < α := (le_max_left _ _).trans_lt hα have hαV : V < α*N := (div_lt_iff₀ hN).mp ((le_max_right _ _).trans_lt hα) have hyα : α • y ∈ inside p := by change ∑ i : Fin 3, |α*y i|^p < 1 have hpw : α^p < 1 := by simpa only [Real.one_rpow] using Real.rpow_lt_rpow hα₀.le hα' hpq.pos simp_rw [abs_mul, abs_of_pos hα₀, Real.mul_rpow hα₀.le (abs_nonneg _)] rw [← Finset.mul_sum] exact (mul_le_mul_of_nonneg_left hy (Real.rpow_nonneg hα₀.le p)).trans_lt (by simpa using hpw) have hh := hL (P (α • y)) ⟨_,hyα,rfl⟩ have hzA : L ((project.comp A.toLinearIsometry.toContinuousLinearMap) x) = evalVec (v s t) x := by rw [hL₀] exact hA x s t have hzB : L (P (α • y)) = α*N := by rw [hL₀] change s*B (α • y) 0+t*B (α • y) 1 = _ rw [hB] unfold evalVec change (∑ i : Fin 3, w s t i * (α*y i)) = _ simp_rw [show ∀ i : Fin 3, w s t i*(α*y i) = α*(w s t i*y i) by intro i; ring] rw [← Finset.mul_sum] change α * evalVec (w s t) y = α*N rw [hw] rw [hzA,hzB] at hh exact (not_lt_of_ge hv) (hαV.trans hh) lemma unit_gap_homogeneous {q : ℝ} (v w : ℝ → ℝ → Fin 3 → ℝ) (hv : ∀ a s t i, v (a*s) (a*t) i = a*v s t i) (hw : ∀ a s t i, w (a*s) (a*t) i = a*w s t i) (hgap : ∀ s t : ℝ, s^2+t^2=1 → moment q (v s t) < moment q (w s t)) : ∀ s t : ℝ, s ≠ 0 ∨ t ≠ 0 → moment q (v s t) < moment q (w s t) := by intro s t hst have hr₂ : 0 < s^2+t^2 := by rcases hst with hs|ht · exact add_pos_of_pos_of_nonneg (sq_pos_of_ne_zero hs) (sq_nonneg _) · exact add_pos_of_nonneg_of_pos (sq_nonneg _) (sq_pos_of_ne_zero ht) let r := Real.sqrt (s^2+t^2) have hr : 0 < r := Real.sqrt_pos.2 hr₂ have he : r^2=s^2+t^2 := Real.sq_sqrt hr₂.le have hn : (s/r)^2+(t/r)^2=1 := by rw [div_pow,div_pow,← add_div,← he,div_self (pow_ne_zero _ hr.ne')] have h₁ : r*(s/r)=s := by field_simp [hr.ne'] have h₂ : r*(t/r)=t := by field_simp [hr.ne'] have hom (u : ℝ → ℝ → Fin 3 → ℝ) (hu : ∀ a s t i, u (a*s) (a*t) i = a*u s t i) : moment q (u s t) = r^q * moment q (u (s/r) (t/r)) := by unfold moment rw [Finset.mul_sum] apply Finset.sum_congr rfl intro i hi calc |u s t i|^q = |u (r*(s/r)) (r*(t/r)) i|^q := by rw [h₁,h₂] _ = _ := by rw [hu,abs_mul,abs_of_pos hr,Real.mul_rpow hr.le (abs_nonneg _)] rw [hom v hv,hom w hw] exact mul_lt_mul_of_pos_left (hgap _ _ hn) (Real.rpow_pos_of_pos hr q) theorem projection_containment (p : ℝ) (hp : 2 < p) : ∃ A B : E ≃ₗᵢ[ℝ] E, (project.comp A.toLinearIsometry.toContinuousLinearMap) '' ball p ⊆ interior ((project.comp B.toLinearIsometry.toContinuousLinearMap) '' ball p) := by have hp₁ : 1 < p := one_lt_two.trans hp let q := p/(p-1) have hpq : p.HolderConjugate q := Real.HolderConjugate.conjExponent hp₁ have hq : 1 < q := hpq.symm.lt have hq₂ : q < 2 := (div_lt_iff₀ (by linarith : 0 < p-1)).2 (by linarith) obtain ⟨c,D,δ,hc,hc₁,hD,hDs,hgap⟩ := gap_in_all_directions hq hq₂ let k := Real.sqrt (1/2) have hk : 0 < k := Real.sqrt_pos.2 (by norm_num) have hks : k^2=(1:ℝ)/2 := Real.sq_sqrt (by norm_num) let d := k*D have hcd : c^2+d^2=1 := by dsimp [d] rw [mul_pow,hks,hDs] ring let a := Real.cos δ let b := Real.sin δ have hab : a^2+b^2=1 := by simpa [a,b,add_comm] using Real.sin_sq_add_cos_sq δ let A := (diagIso hks).trans (rotateIso hab) let B := (diagIso hks).trans (tiltIso hcd) let v : ℝ → ℝ → Fin 3 → ℝ := fun s t => ![k*((a*s-b*t)+(b*s+a*t)),k*((a*s-b*t)-(b*s+a*t)),0] let w : ℝ → ℝ → Fin 3 → ℝ := fun s t => ![k*(s+c*t), k*(s-c*t), d*t] refine ⟨A,B,interior_of_support hpq A B v w ?_ ?_ ?_⟩ · intro x s t change s*rotateIso hab (diagIso hks x) 0+t*rotateIso hab (diagIso hks x) 1 = _ obtain ⟨h0,h1,h2⟩ := diag_apply hks x obtain ⟨r0,r1⟩ := rotate_apply hab (diagIso hks x) rw [r0,r1,h0,h1] simp [evalVec, v, Fin.sum_univ_three] ring · intro x s t change s*tiltIso hcd (diagIso hks x) 0+t*tiltIso hcd (diagIso hks x) 1 = _ obtain ⟨h0,h1,h2⟩ := diag_apply hks x obtain ⟨r0,r1⟩ := tilt_apply hcd (diagIso hks x) rw [r0,r1,h0,h1,h2] simp [evalVec,w,Fin.sum_univ_three] ring · apply unit_gap_homogeneous v w · intro a' s t i fin_cases i <;> simp [v] <;> ring · intro a' s t i fin_cases i <;> simp [w] <;> ring · intro s t hst have h := hgap s t hst have hq₀ : q ≠ 0 := by linarith simp [-abs_mul,moment,Fin.sum_univ_three,v,w,Real.zero_rpow hq₀] have habs (z : ℝ) : |k*z|^q = k^q*|z|^q := by rw [abs_mul,abs_of_pos hk,Real.mul_rpow hk.le (abs_nonneg _)] rw [show d*t=k*(D*t) by dsimp [d]; ring] simp_rw [habs] simp only [rotatedF,f,g] at h have hh := mul_lt_mul_of_pos_left h (Real.rpow_pos_of_pos hk q) dsimp [a,b] nlinarith only [hh] end end RupertSuperballs namespace OpenProblems.QEDE011 theorem claim : Claim := fun p hp => match RupertSuperballs.projection_containment p hp with | ⟨A, B, h⟩ => ⟨A.toIsometryEquiv, B.toIsometryEquiv, Eq.mpr (congrArg₂ (fun s t : Set (ℝ × ℝ) => s ⊆ interior t) (Set.image_image shadow A.toIsometryEquiv (superball p)) (Set.image_image shadow B.toIsometryEquiv (superball p))) h⟩ end OpenProblems.QEDE011