import OAI.NumberTheory.DirichletL.Inversion.InitialEnergyCallerWindows import OAI.NumberTheory.DirichletL.Moments.DyadicCount namespace OAI noncomputable section open scoped Classical BigOperators SchwartzMap open ActualEisensteinCubic CompletedGauss FirstPassCubeLabels SecondPassArithmetic namespace SevenEighths.InverseInitialDyadicAssembly local notation "Eis" => ActualEisensteinCubic.O open InverseMoment InverseInitialArithmetic InverseInitialPhysicalMeasure open InverseInitialEnergyCallerModes InverseInitialEnergyCallerSource open InverseInitialEnergyCallerWindows InverseInitialProfile InverseInitialClippedColumns open InverseInitialKernelBridge InverseSecondChildWindows open CenteredMomentSectorLocalization CenteredMomentDyadicCount abbrev Windows (a b : Fin 4→ℝ) := ∀ i:Fin 4,↥(indices (a i) (b i)) def exponent (Z:ℝ) (k:ℤ) : ℝ := Real.logb Z (dyadicScale k) def cutoff : Fin 4→ℝ→ℂ := fun _ y=>(annulus y:ℂ) def weight (k:Fin 4→ℤ) (q:Fin 4→ℝ) : ℂ := ∏i:Fin 4,(dyadicWeight (k i) (q i):ℂ) theorem exponent_scale (Z:ℝ) (hZ:1(k i).val) q)=1 := by unfold weight rw [←Fintype.prod_sum (fun (i:Fin 4) (k:↥(indices (a i) (b i)))=>(dyadicWeight k.val (q i):ℂ))] have he (i:Fin 4) : (∑k:↥(indices (a i) (b i)),(dyadicWeight k.val (q i):ℂ))=1 := by rw [Finset.sum_coe_sort (indices (a i) (b i)) (fun k=>(dyadicWeight k (q i):ℂ))] exact_mod_cast dyadic_partition_on_interval (a i) (b i) (q i) (ha i) (hq i) simp only [he,Finset.prod_const_one] theorem weight_eq_cutoff (Z D:ℝ) (hZ:1q (outerIndex i)) = outerCutoff cutoff (relativeNorm q Z D (exponent Z (k 0)) (exponent Z (k 2)) (exponent Z (k 1)) (exponent Z (k 3))) := by simp [weight,Fin.prod_univ_succ,dyadicWeight,outerIndex,outerCutoff,cutoff, relativeNorm,secondRelativeNorm,exponent_scale Z hZ,mul_assoc] variable {ι:Type*}[DecidableEq ι](p:ι→Eis) def sourceNorms (x:Source (ι:=ι) 0) : Fin 4→ℝ := fun i=>coordinates p (sourcePoint x ∅ ∅) (outerIndex i) omit [DecidableEq ι] in theorem source_weight_cutoff (Z D:ℝ) (hZ:1Ideal.span {p i}))) (hg:∀i,ConcretePrimeRowBridge.goodLambda∉Ideal.span {p i}) theorem physicalBlock_partition (pool:Finset ι)(S:Finset (Source (ι:=ι) 0)) (a b:Fin 4→ℝ)(ha:∀i,0w x*weight (fun i=>(k i).val) (sourceNorms p x))∘erasePoint) Ψ j marks W₁ W₂ Φ Z D m := by unfold physicalBlock conv_rhs => rw [Finset.sum_comm] apply Finset.sum_congr rfl intro x hx obtain ⟨s,hsS,hx⟩:=Finset.mem_biUnion.mp hx obtain ⟨⟨N,M⟩,hNM,rfl⟩:=Finset.mem_image.mp hx conv_rhs => rw [Finset.sum_comm] apply Finset.sum_congr rfl intro ρ hρ simp only [Function.comp_apply,erase_sourcePoint] rw [←Finset.sum_mul,←Finset.mul_sum,weight_partition a b _ ha (hs s hsS),mul_one] theorem physicalBlock_window_partition (pool:Finset ι)(S:Finset (Source (ι:=ι) 0)) (a b:Fin 4→ℝ)(ha:∀i,0w x*outerCutoff cutoff (sourceRelative p x Z D (exponent Z (k 0).val) (exponent Z (k 2).val) (exponent Z (k 1).val) (exponent Z (k 3).val)))∘erasePoint) Ψ j marks W₁ W₂ Φ Z D m := by rw [physicalBlock_partition p hp hcop hg pool S a b ha hs] apply Finset.sum_congr rfl intro k hk simp_rw [source_weight_cutoff p Z D hZ] exact physicalBlock_windowSource p hp hcop hg pool S cutoff Z D _ _ _ _ m w Ψ j marks W₁ W₂ Φ end SevenEighths.InverseInitialDyadicAssembly end end OAI