import OAI.NumberTheory.DirichletL.Detector.FinalAssemblyChosenData import OAI.NumberTheory.DirichletL.Detector.DetectorInverseFields import OAI.NumberTheory.DirichletL.Detector.DetectorPlainMarkedFineField import OAI.NumberTheory.DirichletL.Detector.DetectorPlainUnmarkedRestrictedField import OAI.NumberTheory.DirichletL.Energy.CappedWidthInduction namespace OAI noncomputable section open scoped Classical BigOperators SchwartzMap ComplexConjugate open Filter namespace SevenEighths.ProbeFinalAssemblyCertifiedBands open HeckeFamily HeckeDyadic HeckeInverseAmplification HeckeDetectorRawFiber HeckeDetectorBatch open ProbeFinalAssembly ProbeHighRowFamily Parameters open CenteredMomentEnergyBands CenteredMomentEnergyState open CenteredMomentEnergyCappedWidthInduction CenteredMomentEnergyWidthRanges open CenteredMomentEnergyWidthSchedule CenteredMomentDetectorPlainMomentParameters open CenteredMomentDetectorEnergyInitialState CenteredMomentNaturalFixedRaySource open ProbeDetectorPlainMarkedFineField ProbeDetectorPlainUnmarkedField local notation "O"=>HeckeFamily.O def detectorMesh (Δ t:ℝ):ℝ:=fineMesh 2 0 1 (3/4+2*Δ) (t/4) lemma detectorMesh_pos {Δ t:ℝ}(hΔ:0<Δ)(ht:0conj (F.W x)) 2 (1/4) (9/4) bΦ 0 1 (33/50) (33/50) 2 (kappaPlain D) (stageError D) (count 2 (stageError D)) theorem plain_inputs {Δ:ℝ}{D:HighData Δ}(F:SourceData D) (hcert:∀bΦ:ℝ,0conj (F.W x)) 2 (1/4) (9/4) bΦ 0 1 (33/50) (33/50) 2 (kappaPlain D) (stageError D) (count 2 (stageError D))): PositiveFineSourceInput F (detectorMesh Δ D.t) ∧ (∃degree:ℕ,∃control:Finset (ℕ×ℕ),∀η₀:Character,∃A:ℝ,0conj (F.W x)) 2 (1/4) (9/4) bΦ 0 1 (33/50) (33/50) 2 (kappaPlain D) (stageError D) (by norm_num) (by norm_num) hp.2.2.2.2.2.le hp.2.2.1 (hcert bΦ hbΦ) have hactual (bΦ:ℝ)(hbΦ:0conj (F.W x)) 2 (1/4) (9/4) bΦ 0 1 (detectorMesh Δ D.t) (33/50) (33/50) 2 (stageError D) (kappaPlain D) U η₀ (sourceFixedIdeal F) degree control Cpositive:=by obtain ⟨degree,control,hbound⟩:=ht bΦ hbΦ refine ⟨degree,control,?_⟩ intro η₀ obtain ⟨Cz,Cp,hCz,hCp,hbound⟩:=hbound η₀ (sourceFixedIdeal F) (sourceFixedIdeal_le_modulus F) (source_fixed_gates F η₀).1 (internalQ_ne_top _ (sourceFixedIdeal_ne_top F) η₀) (source_fixed_gates F η₀).2.2.2 exact ⟨Cz,Cp,hCz,hCp,hbound.mono (fun U h=>⟨h.2.1,h.2.2⟩)⟩ constructor · intro bΦ hbΦ obtain ⟨degree,control,h⟩:=hactual bΦ hbΦ refine ⟨degree,control,?_⟩ intro η₀ obtain ⟨Cz,Cp,hCz,hCp,h⟩:=h η₀ exact ⟨Cp,hCp,h.mono (fun U h=>h.2)⟩ · obtain ⟨degree,control,h⟩:=hactual radialSupportUpper radialSupportUpper_spec.1 refine ⟨degree,control,?_⟩ intro η₀ obtain ⟨Cz,Cp,hCz,hCp,h⟩:=h η₀ exact ⟨Cz,hCz,h.mono (fun U h=>h.1)⟩ theorem source_moments {Δ:ℝ}{D:HighData Δ}(F:SourceData D) (counts:CountParameters F.modulus ⊤ D.t)(mesh:ℝ)(hmesh:0(hrows u hu).2.1 have hext:∀s,(B.external s).re=17/50:=by intro s;rw [hexternal];exact hz have hheight:∀s,|(B.external s).im|≤height:=by intro s;rw [hexternal];exact hzim have hinv:=hi.2 d hd a D.ε _ _ _ i B hdata hprofile hupper hwidth hext bin label left right hne height hh have hmarked:=hm.2 rows hrows' d hd a _ _ _ i B hB hdata hprofile hwidth (fun s=>by rw [hupper]) hext bin label left right hne height hh hheight have hunmarked:=hu.2 rows hrows' d hd a _ _ _ i B hB hdata hprofile hwidth bin label left right hne height hh have hU:0≤Z^d:=Real.rpow_nonneg hZ.le _ constructor · intro n hn σ hσ t ht exact ⟨rawMoment_mono_constant (hinv.1 n hn σ hσ t ht).1 hCi', rawMoment_mono_constant (hinv.1 n hn σ hσ t ht).2 hCi'⟩ · intro selected hselected hfirst hsecond n hn σ hσ t ht exact (hinv.2 selected hselected hfirst hsecond n hn σ hσ t ht).trans (mul_le_mul_of_nonneg_right hCi' (Real.rpow_nonneg hU _)) · intro selected hselected hcap j k hjk σ hσ t ht exact (hmarked selected hselected hcap j k hjk σ hσ t ht).trans (mul_le_mul_of_nonneg_right hCm' (Real.rpow_nonneg hU _)) · intro j k hjk σ hσ t ht exact (hunmarked j k hjk σ hσ t ht).1.trans (mul_le_mul_of_nonneg_right hCu' (Real.rpow_nonneg hU _)) theorem fine_moments_of_certified (h:DetectorCertifiedBands):FineMomentInput:=by intro hβ let Δ:=HeckeZeroSupremum.beta-7/8 have hΔ:0<Δ:=by dsimp [Δ];linarith refine ⟨detectorMesh Δ,fun t ht=>detectorMesh_pos hΔ ht,?_⟩ intro D hfine F counts obtain ⟨hp,hz⟩:=plain_inputs F (h hβ D hfine F) exact source_moments F counts (detectorMesh Δ D.t) (detectorMesh_pos hΔ D.t_pos) hfine hp hz theorem chosen_moments_of_certified (h:DetectorCertifiedBands):ChosenMomentInput:= chosen_input_of_fine (fine_moments_of_certified h) theorem dirichlet_of_certified (h:DetectorCertifiedBands)(q:ℕ)(hq:q≠0) (χ:DirichletCharacter ℂ q)(s:ℂ)(hs:(7/8:ℝ)