cfahlgren1/math / lean /OAI /NumberTheory /DirichletL /Inversion /InitialEnergyCallerSource.lean
cfahlgren1's picture
download
raw
7.86 kB
import OAI.NumberTheory.DirichletL.Inversion.InitialEnergyCallerModes
namespace OAI
noncomputable section
open scoped BigOperators Classical SchwartzMap
open MeasureTheory JointLogSeparation
open ActualEisensteinCubic CompletedGauss FirstPassCubeLabels SecondPassArithmetic
open SevenEighths.InverseMoment SevenEighths.InverseInitialProfile
open SevenEighths.InverseInitialArithmetic SevenEighths.InverseInitialPhysicalMeasure
open SevenEighths.InverseInitialEnergyCallerModes
namespace SevenEighths.InverseInitialEnergyCallerSource
variable {ι : Type*} [DecidableEq ι]
def erasePoint (x : Point ι) : Source (ι:=ι) 0 where
common := x.common
divisor := x.divisor
overlap := x.overlap
frequency := x.frequency
assigned := Fin.elim0
omit [DecidableEq ι] in
@[simp] theorem erase_sourcePoint (x : Source (ι:=ι) 0) (N M : Finset ι) :
erasePoint (sourcePoint x N M)=x := by
apply Source.ext <;> try rfl
funext i
exact Fin.elim0 i
omit [DecidableEq ι] in
theorem point_pair_injective (x : Source (ι:=ι) 0) :
Function.Injective (fun q : Finset ι × Finset ι=>sourcePoint x q.1 q.2) := by
intro q r h
exact Prod.ext (congrArg Point.left h) (congrArg Point.right h)
def rectangle (F : Finset ι) (x : Source (ι:=ι) 0) : Finset (Point ι) :=
((F\x.overlap).powerset ×ˢ (F\x.overlap).powerset).image
(fun q=>sourcePoint x q.1 q.2)
def pointSource (F : Finset ι) (S : Finset (Source (ι:=ι) 0)) : Finset (Point ι) :=
S.biUnion (rectangle F)
theorem rectangles_disjoint (F : Finset ι) {x y : Source (ι:=ι) 0} (hne : x≠y) :
Disjoint (rectangle F x) (rectangle F y) := by
apply Finset.disjoint_left.mpr
intro z hz₁ hz₂
obtain ⟨a,ha,hea⟩ := Finset.mem_image.mp hz₁
obtain ⟨b,hb,heb⟩ := Finset.mem_image.mp hz₂
have he := congrArg erasePoint (hea.trans heb.symm)
simp only [erase_sourcePoint] at he
exact hne he
theorem pointSource_sum {A : Type*} [AddCommMonoid A]
(F : Finset ι) (S : Finset (Source (ι:=ι) 0)) (f : Point ι→A) :
(∑ x∈pointSource F S,f x) =
∑ y∈S,∑ N∈(F\y.overlap).powerset,∑ M∈(F\y.overlap).powerset,
f (sourcePoint y N M) := by
rw [pointSource,Finset.sum_biUnion (fun x hx y hy hne=>rectangles_disjoint F hne)]
apply Finset.sum_congr rfl
intro y hy
rw [rectangle,Finset.sum_image (fun x _ z _ he=>point_pair_injective y he),Finset.sum_product]
theorem pointSource_valid (F : Finset ι) (S : Finset (Source (ι:=ι) 0))
(hdiv : ∀ x∈S,x.divisor⊆x.common)
(hfreq : ∀ x∈S,x.frequency≠0) : ∀ y∈pointSource F S,Valid y := by
intro y hy
obtain ⟨x,hx,hy⟩ := Finset.mem_biUnion.mp hy
obtain ⟨⟨N,M⟩,hNM,rfl⟩ := Finset.mem_image.mp hy
have hd (U : Finset ι) (hU : U∈(F\x.overlap).powerset) : Disjoint x.overlap U := by
apply Finset.disjoint_left.mpr
intro i hi hiU
exact (Finset.mem_sdiff.mp (Finset.mem_powerset.mp hU hiU)).2 hi
exact ⟨hdiv x hx,hd N (Finset.mem_product.mp hNM).1,
hd M (Finset.mem_product.mp hNM).2,hfreq x hx⟩
variable {σ : Type*} [DecidableEq σ]
(p : ι→ActualEisensteinCubic.O) (hp : ∀ i,p i≠0)
[∀ i,(Ideal.span {p i}).IsMaximal]
(hcop : Pairwise (Function.onFun IsCoprime (fun i=>Ideal.span {p i})))
(hg : ∀ i,ConcretePrimeRowBridge.goodLambda∉Ideal.span {p i})
def rowMode (hpr : ∀ i,ConcretePrimeRowBridge.goodLambda^2∣p i-1)
(F : Finset ι) (Ψ : ActualEisensteinCubic.O →* ℂ) (j : ActualEisensteinCubic.O)
(slots : Finset σ) (lists : σ→Finset ι) (a : σ→ι→ℂ)
(ω₁ ω₂ : ℝ→ℂ) (Z D B v θ H : ℝ)
(x : Source (ι:=ι) 0) (ρ : SecondRayIndex)
(z : JointLogSeparation.Frequency × (Fin 6→ℝ)) : ℂ :=
let height := profileHeight secondLeftSlope secondRightSlope secondKernelSlope z.1 z.2
(outerCoefficient p hp hcop hg Ψ j (sourcePoint x ∅ ∅) ρ *
secondOuterPhase height (relativeLog (coordinates p (sourcePoint x ∅ ∅)) Z D B v θ H)) *
(star (markedModeColumn p hp hcop hg hpr F (secondRayMinus Ψ ρ) j x.frequency x
slots lists a (childLogTest ω₁ (-height 4)) Z D B v) *
markedModeColumn p hp hcop hg hpr F (secondRayPlus Ψ ρ) j (-x.frequency) x
slots lists a (childLogTest ω₂ (height 5)) Z D B v)
theorem canonicalBlock_rows
(hpr : ∀ i,ConcretePrimeRowBridge.goodLambda^2∣p i-1)
(F : Finset ι) (S : Finset (Source (ι:=ι) 0))
(hE : ∀ x∈S,x.divisor⊆x.common) (w : Source (ι:=ι) 0→ℂ)
(Ψ : ActualEisensteinCubic.O →* ℂ) (j : ActualEisensteinCubic.O)
(slots : Finset σ) (lists : σ→Finset ι) (a : σ→ι→ℂ)
(ω₁ ω₂ : ℝ→ℂ) (Z D B v θ H : ℝ)
(z : JointLogSeparation.Frequency × (Fin 6→ℝ)) :
canonicalBlock p hp hcop hg hpr (pointSource F S) (w ∘ erasePoint) Ψ j
(primeMark slots lists a) ω₁ ω₂ Z D B v θ H z =
∑ x∈S,∑ ρ : SecondRayIndex,w x*rowMode p hp hcop hg hpr F Ψ j
slots lists a ω₁ ω₂ Z D B v θ H x ρ z := by
unfold canonicalBlock
rw [pointSource_sum]
apply Finset.sum_congr rfl
intro x hx
simp only [Function.comp_apply,erase_sourcePoint]
calc
_ = ∑ N∈(F\x.overlap).powerset,∑ ρ : SecondRayIndex,∑ M∈(F\x.overlap).powerset,
w x*InverseInitialPhysicalMeasure.canonicalPairMode p hp hcop hg hpr Ψ j
(primeMark slots lists a) ω₁ ω₂ Z D B v θ H (sourcePoint x N M) ρ z := by
apply Finset.sum_congr rfl
intro N hN
exact Finset.sum_comm
_ = ∑ ρ : SecondRayIndex,∑ N∈(F\x.overlap).powerset,∑ M∈(F\x.overlap).powerset,
w x*InverseInitialPhysicalMeasure.canonicalPairMode p hp hcop hg hpr Ψ j
(primeMark slots lists a) ω₁ ω₂ Z D B v θ H (sourcePoint x N M) ρ z := Finset.sum_comm
_ = _ := by
apply Finset.sum_congr rfl
intro ρ hρ
simp_rw [←Finset.mul_sum]
rw [canonicalPairMode_rectangle p hp hcop hg hpr x (hE x hx) F Ψ j
slots lists a ω₁ ω₂ Z D B v θ H ρ z]
rfl
theorem physicalBlock_rectangular_common_measure
(hpr : ∀ i,ConcretePrimeRowBridge.goodLambda^2∣p i-1)
(W₁ W₂ : ℝ→ℂ) (Φ : 𝓢(ℝ,ℂ)) (V : Fin 6→ℝ→ℂ)
(g : Fin 6→𝓢(ℝ,ℂ)) (g₁ g₂ b₃ : 𝓢(ℝ,ℂ))
(Z D B v m θ H η c₁ c₂ θ₁ θ₂ : ℝ)
(hid : PhysicalIdentityAt W₁ W₂ Φ V g g₁ g₂ b₃ Z D B v m θ H η c₁ c₂ θ₁ θ₂)
(F : Finset ι) (S : Finset (Source (ι:=ι) 0))
(hE : ∀ x∈S,x.divisor⊆x.common) (hf : ∀ x∈S,x.frequency≠0)
(w : Source (ι:=ι) 0→ℂ) (Ψ : ActualEisensteinCubic.O →* ℂ) (j : ActualEisensteinCubic.O)
(slots : Finset σ) (lists : σ→Finset ι) (a : σ→ι→ℂ) (ω₁ ω₂ : ℝ→ℂ)
(hsupport : BlockSupport p (pointSource F S) W₁ W₂ ω₁ ω₂ V Z D B v θ H c₁ c₂ θ₁ θ₂) :
physicalBlock p hp hcop hg (pointSource F S) (w ∘ erasePoint) Ψ j (primeMark slots lists a)
(clippedSource W₁ c₁ θ₁) (clippedSource W₂ c₂ θ₂) Φ Z D m =
(Z^(prefactorCenter m D B θ+3*η):ℝ)*
∫ z : Frequency × (Fin 6→ℝ),familyDensity g g₁ g₂ b₃ c₁ c₂ θ₁ θ₂ (η*Real.log Z) z *
(∑ x∈S,∑ ρ : SecondRayIndex,w x*rowMode p hp hcop hg hpr F Ψ j
slots lists a ω₁ ω₂ Z D B v θ H x ρ z) := by
rw [physicalBlock_integral p hp hcop hg hpr W₁ W₂ Φ V g g₁ g₂ b₃
Z D B v m θ H η c₁ c₂ θ₁ θ₂ hid (pointSource F S) (pointSource_valid F S hE hf)
(w ∘ erasePoint) Ψ j (primeMark slots lists a) ω₁ ω₂
hsupport.1 hsupport.2.1 hsupport.2.2]
congr 1
apply integral_congr_ae
filter_upwards with z
rw [canonicalBlock_rows p hp hcop hg hpr F S hE w Ψ j slots lists a ω₁ ω₂ Z D B v θ H z]
end SevenEighths.InverseInitialEnergyCallerSource
end
end OAI

Xet Storage Details

Size:
7.86 kB
·
Xet hash:
f44271fd3629a316ea2c6257619742a026ffa4716dfee24f8918b3420916ab27

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.