import Mathlib import OAI.Geometry.SmoothYau.DifferentialEq.SphericalOpenFormNorm import OAI.Geometry.SmoothYau.Geometry.ChartTensorNeighborhoodInst1 import OAI.Geometry.SmoothYau.Geometry.FixedMetricDiagonal import OAI.Geometry.SmoothYau.Smoothness.CompactSmoothJetMap import OAI.Geometry.SmoothYau.Spectrum.InverseFrequencyWeightedZero namespace OAI noncomputable section namespace YauCounterexamples section open Set Filter Function Manifold Bundle TopologicalSpace BoxIntegral open scoped Topology ContDiff Distributions ENNReal NNReal local instance sphericalStageFormNorm : NormedAddCommGroup (MetricForm (Euclidean 3)) := inferInstanceAs (NormedAddCommGroup (Euclidean 3 →L[ℝ] Euclidean 3 →L[ℝ] ℝ)) local instance sphericalStageFormSpace : NormedSpace ℝ (MetricForm (Euclidean 3)) := inferInstanceAs (NormedSpace ℝ (Euclidean 3 →L[ℝ] Euclidean 3 →L[ℝ] ℝ)) theorem exists_spherical_simple_stage (g₀ : SmoothMetric (Euclidean 3) (Sphere 3)) (hg₀ : IsRound g₀) (g : SmoothMetric (Euclidean 3) (Sphere 3)) (hg : g ∈ sphericalProfileMetricNeighborhood) {R t s r a b c : ℝ} (hR : (1/5:ℝ) ≤ R) (hRt : R (show sphericalRadius sourceAxisOne sourceAxisTwo q≤R from hq).trans_lt hRt) (fun q hq v w => congrArg (fun T => T v w) (hext q (lt_of_not_ge hq))) hmetric A N hN obtain ⟨k,⟨hkpacket,hkM⟩,hk3⟩ := (hpacket.and (eventually_ge_atTop M) |>.and (eventually_ge_atTop 3)).exists obtain ⟨ĝ,hĝN,u,hu,hue,hreg,hout,hscore⟩ := hkpacket have hb0 : 0 < b := by linarith have hc0 : 0 < c := by linarith have heĝ : sphericalExterior g₀ ĝ b := by intro q hq ext v w exact ((hout q hq).1 v w).trans (congrArg (fun T => T v w) (hext q (by linarith))) let eĝ := sphericalExterior_support (hbc.trans hc).le heĝ have hĝU := hĝN eĝ have hu0 : u ≠ 0 := spherical_regular_nonzero u hreg obtain ⟨h,he,hhU,hhe,hsimple⟩ := spherical_pin_near g₀ hg₀ ĝ hb0 hbc hc heĝ k hk3 u hu hu0 hue (fun q hq => (hout q hq).2) U hU hĝU refine ⟨k,hkM,hk3,h,he,hhU,u,hu,hu0,hhe,hreg,hsimple,partition,hpart,(fun j => ε/((k:ℝ)*ell j.val)),?_,hscore⟩ intro j exact div_pos hε (mul_pos (by exact_mod_cast (show 0 {H | ∃ g : SmoothMetric (Euclidean 3) (Sphere 3), ∃ he : sphericalExterior g₀ g (sphericalStageRadius n), H=sphericalTensorOf g₀ g (sphericalExterior_mono ((sphericalStageRadius_bounds n).2.1.trans (sphericalStageRadius_bounds n).2.2).le he) ∧ H∈O} let W : ℕ → Set SphericalTensor := fun n => {H | ∃ hp : H∈sphericalPositiveSet g₀, SphericalLargeWitness (sphericalTensorMetric g₀ ⟨H,hp⟩) ((n:ℝ)+1) ((n:ℝ)+1)} have hstep : ∀ n, ∀ H ∈ P n, ∀ U : Set SphericalTensor, IsOpen U → H∈U → ∃ K∈P (n+1), K∈U ∧ ∃ V : Set SphericalTensor, IsOpen V ∧ K∈V ∧ V⊆W n := by intro n H hH U hU hHU obtain ⟨g,he,rfl,hgO⟩ := hH let e := sphericalExterior_mono ((sphericalStageRadius_bounds n).2.1.trans (sphericalStageRadius_bounds n).2.2).le he obtain ⟨hp,hgN,hgood⟩ := hON _ hgO have hmetric : sphericalTensorMetric g₀ ⟨sphericalTensorOf g₀ g e,hp⟩=g := sphericalTensorMetric_of g₀ g e rw [hmetric] at hgood let R := sphericalStageRadius n let C := sphericalStageRadius (n+1) have hR := (sphericalStageRadius_bounds n).1 have hRC : R rfl),?_,h0O⟩ exact (sphericalTensorOf_zero g₀).symm obtain ⟨H,hHO,hHW⟩ := fixed_metric_diagonal P W hstep 0 hzP hO h0O obtain ⟨hp,hgN,hgood⟩ := hON H hHO refine ⟨sphericalTensorMetric g₀ ⟨H,hp⟩,hgN,?_⟩ intro n exact (hHW n).choose_spec end YauCounterexamples end end OAI