Formalism/HermitianCurvature/HermitianCurvatureProofs/CutMainCpt.lean
651have hmeas : AEStronglyMeasurable (fun c : ℂ => Vec ((h ++ [(s - 1, x⁻¹)]) ++ [(1, c)])) volume := by652have h2 := (hcont1 x⁻¹ (inv_ne_zero hx)).aestronglyMeasurable (μ := volume) hmeas0653rwa [Measure.restrict_eq_self_of_ae_mem hae] at h2654refine (memLp_two_iff_integrable_sq_norm hmeas).2 ?_655obtain ⟨hint, -⟩ := hFi hA Wp Wq P p nn F Y N Cb hCb hF hnn (b + s - 2) (by omega) w hw hN' _ _656(hloc _ (inv_ne_zero hx)) (hloc _ (inv_ne_zero hx))657rw [hj] at hint658refine (Complex.reCLM.integrable_comp hint).congr (Eventually.of_forall fun c => ?_)659simp only [Complex.reCLM_apply]660rw [hVec, gl_inner_self, Complex.ofReal_re]661·662intro _ _ x hx663have e1 := PBK.cvec_inner s ut ut x x hx hx664simp only [div_self (pow_ne_zero _ hx), norm_one, Complex.ofReal_one, one_smul, one_mul] at e1665have e2 : ∫ D, ⟪ut x D, ut x D⟫_ℂ = ((∫ D, ‖ut x D‖ ^ 2 : ℝ) : ℂ) := by666simp_rw [gl_inner_self]; exact integral_ofReal667rw [e2, hgram x x hx hx] at e1668have e3 := congrArg Complex.re e1669rw [Complex.ofReal_re, Complex.re_ofReal_mul] at e3670rw [← e3]671have hE : (TBB.NP p nn F (b + s - 2) w (h ++ [(s - 1, x⁻¹)]) (h ++ [(s - 1, x⁻¹)])).re ≤ B0 :=672hB0 ⟨⟨x⁻¹, inv_ne_zero hx⟩, rfl⟩673exact mul_le_mul_of_nonneg_left hE (mul_self_nonneg κ)674·675intro _ _676let _ : MeasurableSpace H := borel H677have _ : BorelSpace H := ⟨rfl⟩678let g : ℂ → H := fun z => ((((s : ℝ) * ‖z‖ ^ (s - 1))⁻¹ : ℝ) : ℂ) • Vec (h ++ [(s, z)])679have hgc : ContinuousOn g {0}ᶜ := by680refine ContinuousOn.smul ?_ hcontS681refine Complex.continuous_ofReal.comp_continuousOn ?_682refine ContinuousOn.inv₀ (Continuous.continuousOn (by fun_prop)) fun z hz => ?_683have : (0 : ℝ) < ‖z‖ ^ (s - 1) := pow_pos (norm_pos_iff.mpr hz) _684have hs' : (0 : ℝ) < s := by exact_mod_cast Nat.pos_of_ne_zero hs0685positivity686have hbt' : bt = ({0}ᶜ : Set ℂ).piecewise g (fun _ => 0) := by687funext z688by_cases hz : z = 0689· simp [bt, hz]690· simp [bt, hz, Set.piecewise, g]691show StronglyMeasurable bt692rw [stronglyMeasurable_iff_measurable_separable, hbt']693refine ⟨ContinuousOn.measurable_piecewise hgc continuousOn_const hmeas0, ?_⟩694refine TopologicalSpace.IsSeparable.mono (s := g '' {0}ᶜ ∪ {0}) ?_ (Set.range_subset_iff.2 fun z => ?_)695· exact (hgc.isSeparable_image (TopologicalSpace.IsSeparable.of_separableSpace _)).union696(Set.finite_singleton (0 : H)).isSeparable697· by_cases hz : z ∈ ({0}ᶜ : Set ℂ)698· left; rw [Set.piecewise_eq_of_mem _ _ _ hz]; exact ⟨z, hz, rfl⟩699· right; rw [Set.piecewise_eq_of_notMem _ _ _ hz]; rfl700·