import OAI.NumberTheory.DirichletL.Inversion.InitialCommonCutoff namespace OAI noncomputable section open scoped BigOperators Classical SchwartzMap FourierTransform ContDiff open MeasureTheory FourierBridge ActualEisensteinCubic CompletedGauss CanonicalQuadraticSieve open ConcretePrimeRowBridge FirstCauchyArithmetic SecondPassArithmetic FirstPassCubeLabels namespace SevenEighths.InverseInitialCommonTransform open InverseMoment InverseInitialCommonLists InverseInitialCommonRatios InverseInitialCommonProfile open InverseInitialCommonCutoff InverseInitialCommonTuples InverseInitialOverlapFourier open InverseInitialOverlapInputFourier InverseInitialRayAttachment InverseInitialArithmetic open InverseInitialOverlap InverseInitialPoissonBridge InverseInitialKernelBridge open InverseInitialEnergyCallerWindow local notation "Eis"=>ActualEisensteinCubic.O variable {σ:Type*} [DecidableEq σ] theorem original_profile_point (W wFresh:ℝ→ℂ)(a₀ b₀:ℝ)(ha₀:0q i.val i.property))) (Z:ℝ)(hZ:0poolList F (L i)) (fun i q=>a i q.val*logPhase (-t) (Real.log (slotRatio Z ell i q.val))) A* childLogTest wFresh t yc) := by have he := common_profile_separation W a₀ b₀ ha₀ hs hW F I L hL a hcop Z hZ ell A yj yc hjpos hc have hcut := tupleProfile_insert_fresh I L a hcop Z ell lo hi W wFresh a₀ b₀ jlo jhi hs ha hFresh yj yc hj hc (∏i∈A,i.val) rw [←hcut] unfold tupleProfile rw [he,←integral_const_mul] apply integral_congr_ae filter_upwards with t unfold childLogTest ring theorem original_tuples_fourier (W wFresh:ℝ→ℂ)(a₀ b₀:ℝ)(ha₀:0q i.val i.property))) (η:Ideal Eis→*ℂ)(u:Eis)(Z r z G:ℝ)(hZ:0j*survivingProduct I q let F := tupleColumns S (I.pi L) P j let hF := tupleColumns_admissible S (I.pi L) P j hP (fun q _=>dvd_mul_right j _) (originalSource_supported Z r b₀) letI : ∀i:primePool F,(Ideal.span {poolPrimary F i}).IsMaximal := fun i=>by rw [poolPrimary_span F hF i];infer_instance (∑q∈I.pi L,(∏i∈I.attach,a i.val (q i.val i.property))* residualNormalizedPolynomial S (P q) j η (fun _=>1) W Z r z G u)= ∫t:ℝ,density (CubicReflectionKernel.logSchwartz W a₀ b₀ ha₀ hs hW) (Real.log ((j.absNorm:ℝ)/Z^G)) t* (((Z^(-(r+z-2*G)/2):ℝ):ℂ)*inputConjugateRow (poolPrimary F) (poolPrimary_good F hF) Finset.univ (elementCharacter η) (primaryGenerator j) 1 1 (initialTest (poolPrimary F) (primeMark I (fun i=>poolList F (L i)) (fun i q=>a i q.val*logPhase (-t) (Real.log (slotRatio Z ell i q.val)))) (childLogTest wFresh t) Z (r+z-2*G)) u) := by intro S P F hF let : ∀i:primePool F,(Ideal.span {poolPrimary F i}).IsMaximal := fun i=>by rw [poolPrimary_span F hF i];infer_instance have hjpos : 0<(j.absNorm:ℝ)/Z^G := by apply div_pos _ (Real.rpow_pos_of_pos hZ G) exact_mod_cast Nat.pos_of_ne_zero (fun h=>hj0 (Ideal.absNorm_eq_zero_iff.mp h)) let g := CubicReflectionKernel.logSchwartz W a₀ b₀ ha₀ hs hW let H : Finset (primePool F)→ℝ→ℂ := fun A t=>density g (Real.log ((j.absNorm:ℝ)/Z^G)) t* (primeMark I (fun i=>poolList F (L i)) (fun i q=>a i q.val*logPhase (-t) (Real.log (slotRatio Z ell i q.val))) A* childLogTest wFresh t (((∏i∈A,i.val).absNorm:ℝ)/Z^(r+z-2*G))) have hHi (A:Finset (primePool F)) : Integrable (H A) := by have hh := (common_profile_integrable g F I L a Z ell A ((j.absNorm:ℝ)/Z^G) (((∏i∈A,i.val).absNorm:ℝ)/Z^(r+z-2*G))).const_mul (wFresh (((∏i∈A,i.val).absNorm:ℝ)/Z^(r+z-2*G))) convert hh using 1 funext t dsimp [H,childLogTest] ring have hpoint (A:Finset (primePool F)) : (∑q∈I.pi L,(∏i∈I.attach,a i.val (q i.val i.property))* (if residual (P q) j∣(∏i∈A,i.val) then residualOverlapWindow (P q) j W Z z G (((∏i∈A,i.val).absNorm:ℝ)/Z^(r+z-2*G)) else 0))=∫t:ℝ,H A t := by dsimp only [P] simp_rw [actual_residual_product I _ j hj0,original_residual_window I _ j hj0 ell W Z r z G hZ hell] apply original_profile_point W wFresh a₀ b₀ ha₀ hs hW F I L hL a hcop Z hZ ell lo hi jlo jhi ha hFresh A ((j.absNorm:ℝ)/Z^G) (((∏i∈A,i.val).absNorm:ℝ)/Z^(r+z-2*G)) hj hjpos apply div_pos _ (Real.rpow_pos_of_pos hZ _) exact_mod_cast Nat.pos_of_ne_zero (fun h=>(InitialMeanSquare.poolProduct_admissible F hF A).1 (Ideal.absNorm_eq_zero_iff.mp h)) rw [original_tuples_common_input W Z r z G b₀ hZ (fun x hx=>(hs hx).2) (I.pi L) P j hP (fun q _=>dvd_mul_right j _) η (fun q=>∏i∈I.attach,a i.val (q i.val i.property)) u] change ((Z^(-(r+z-2*G)/2):ℝ):ℂ)*inputConjugateRow (poolPrimary F) (poolPrimary_good F hF) Finset.univ (elementCharacter η) (primaryGenerator j) 1 1 (fun A=>∑q∈I.pi L,(∏i∈I.attach,a i.val (q i.val i.property))* (if residual (P q) j∣(∏i∈A,i.val) then residualOverlapWindow (P q) j W Z z G (((∏i∈A,i.val).absNorm:ℝ)/Z^(r+z-2*G)) else 0)) u = _ rw [show (fun A:Finset (primePool F)=>∑q∈I.pi L, (∏i∈I.attach,a i.val (q i.val i.property))* (if residual (P q) j∣(∏i∈A,i.val) then residualOverlapWindow (P q) j W Z z G (((∏i∈A,i.val).absNorm:ℝ)/Z^(r+z-2*G)) else 0)) = (fun A=>∫t:ℝ,H A t) from funext hpoint] rw [input_integral (poolPrimary F) (poolPrimary_good F hF) Finset.univ (elementCharacter η) (primaryGenerator j) u H (fun A _=>hHi A),←integral_const_mul] apply integral_congr_ae filter_upwards with t dsimp only [H] rw [initial_input_row (poolPrimary F) (poolPrimary_good F hF), initial_input_row (poolPrimary F) (poolPrimary_good F hF)] unfold supportConjugateSum simp only [Finset.mul_sum,initialTest,InitialMeanSquare.poolPrimary_norm F hF] apply Finset.sum_congr rfl intro A hA ring end SevenEighths.InverseInitialCommonTransform end end OAI