openAI-math-dataset / lean /OAI /NumberTheory /DirichletL /Inversion /InitialEnergyCallerAssigned.lean
Download lean/OAI/NumberTheory/DirichletL/Inversion/InitialEnergyCallerAssigned.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
- Browser
- Download file 6.83 kB
-
https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/NumberTheory/DirichletL/Inversion/InitialEnergyCallerAssigned.lean
- Command line
-
hf download hf://datasets/roseking/openAI-math-dataset/lean/OAI/NumberTheory/DirichletL/Inversion/InitialEnergyCallerAssigned.lean
-
curl -L -o InitialEnergyCallerAssigned.lean https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/NumberTheory/DirichletL/Inversion/InitialEnergyCallerAssigned.lean
6.83 kB
Lean 4 · 14
declarations statementsfull
def attach {J : ℕ} (x : Source (ι:=ι) 0) (q : Fin J→ι) : Source (ι:=ι) J where body · 5 lines
common := x.common
divisor := x.divisor
overlap := x.overlap
frequency := x.frequency
assigned := qdef erase {J : ℕ} (x : Source (ι:=ι) J) : Source (ι:=ι) 0 where body · 5 lines
common := x.common
divisor := x.divisor
overlap := x.overlap
frequency := x.frequency
assigned := Fin.elim0@[simp] theorem erase_attach {J : ℕ} (x : Source (ι:=ι) 0) (q : Fin J→ι) :
erase (attach x q) = x := by proof · 3 lines
apply Source.ext <;> try rfl
funext i
exact Fin.elim0 itheorem attach_injective {J : ℕ} :
Function.Injective (fun z : Source (ι:=ι) 0 × (Fin J→ι) => attach z.1 z.2) := by proof · 4 lines
intro x y h
apply Prod.ext
· simpa only [erase_attach] using congrArg erase h
· exact congrArg Source.assigned hdef attachPair (J₁ J₂ : Finset σ)
(z : Source (ι:=ι) 0 × ((∀ i∈J₁,ι) × (∀ i∈J₂,ι))) :
Source (ι:=ι) (J₁.card+J₂.card) := body · 1 line
attach z.1 (pairedSlotAssignment J₁ J₂ z.2)theorem attachPair_injective (J₁ J₂ : Finset σ) :
Function.Injective (attachPair (ι:=ι) J₁ J₂) := by proof · 6 lines
intro x y h
have he := @attach_injective ι (J₁.card + J₂.card)
(x.1,pairedSlotAssignment J₁ J₂ x.2) (y.1,pairedSlotAssignment J₁ J₂ y.2) h
exact Prod.ext (congrArg (fun z : Source (ι:=ι) 0 × (Fin (J₁.card+J₂.card)→ι)=>z.1) he)
(pairedSlotAssignment_injective J₁ J₂
(congrArg (fun z : Source (ι:=ι) 0 × (Fin (J₁.card+J₂.card)→ι)=>z.2) he))def assignedSource (S : Finset (Source (ι:=ι) 0)) (J₁ J₂ : Finset σ)
(L₁ L₂ : σ→Finset ι) : Finset (Source (ι:=ι) (J₁.card+J₂.card)) := body · 3 lines
((S ×ˢ ((J₁.pi L₁) ×ˢ (J₂.pi L₂))).filter
(fun z=>∀ i,pairedSlotAssignment J₁ J₂ z.2 i∈z.1.common∪z.1.overlap)).image
(attachPair J₁ J₂)def coefficient (J₁ J₂ : Finset σ) (a₁ a₂ : σ→ι→ℂ)
(x : Source (ι:=ι) (J₁.card+J₂.card)) : ℂ := body · 4 lines
star (slotAssignmentWeight J₁ a₁
(fun i hi=>x.assigned (Fin.castAdd J₂.card (J₁.equivFin ⟨i,hi⟩)))) *
slotAssignmentWeight J₂ a₂
(fun i hi=>x.assigned (Fin.natAdd J₁.card (J₂.equivFin ⟨i,hi⟩)))@[simp] theorem coefficient_attach (J₁ J₂ : Finset σ) (a₁ a₂ : σ→ι→ℂ)
(x : Source (ι:=ι) 0) (q : (∀ i∈J₁,ι) × (∀ i∈J₂,ι)) :
coefficient J₁ J₂ a₁ a₂ (attachPair J₁ J₂ (x,q)) = pairedSlotWeight J₁ J₂ a₁ a₂ q := by proof · 2 lines
simp only [coefficient,attachPair,attach,pairedSlotAssignment,
Fin.addCases_left,Fin.addCases_right,indexedSlotAssignment_apply,pairedSlotWeight]theorem assignedSource_sum (S : Finset (Source (ι:=ι) 0)) (J₁ J₂ : Finset σ)
(L₁ L₂ : σ→Finset ι) (F : Source (ι:=ι) (J₁.card+J₂.card)→ℂ) :
∑ x∈assignedSource S J₁ J₂ L₁ L₂,F x =
∑ y∈S,∑ q∈(J₁.pi (fun i=>L₁ i∩(y.common∪y.overlap))) ×ˢ
(J₂.pi (fun i=>L₂ i∩(y.common∪y.overlap))),F (attachPair J₁ J₂ (y,q)) := by proof · 7 lines
rw [assignedSource,Finset.sum_image (fun x _ y _ he=>attachPair_injective J₁ J₂ he),
Finset.sum_filter,Finset.sum_product]
apply Finset.sum_congr rfl
intro y hy
rw [←Finset.sum_filter]
dsimp only
rw [paired_assignment_filter]theorem original_marks_eq_assigned (S : Finset (Source (ι:=ι) 0))
(J₁ J₂ : Finset σ) (L₁ L₂ : σ→Finset ι) (a₁ a₂ : σ→ι→ℂ)
(w P : Source (ι:=ι) 0→ℂ) :
(∑ y∈S,w y*(star (primeMark J₁ L₁ a₁ (y.common∪y.overlap))*
primeMark J₂ L₂ a₂ (y.common∪y.overlap))*P y) =
∑ x∈assignedSource S J₁ J₂ L₁ L₂,
(w (erase x)*coefficient J₁ J₂ a₁ a₂ x)*P (erase x) := by proof · 9 lines
rw [assignedSource_sum]
apply Finset.sum_congr rfl
intro y hy
rw [paired_primeMark_assignments]
simp only [Finset.mul_sum,Finset.sum_mul]
apply Finset.sum_congr rfl
intro q hq
rw [coefficient_attach]
simp only [attachPair,erase_attach]theorem assignedSource_support (S : Finset (Source (ι:=ι) 0))
(J₁ J₂ : Finset σ) (L₁ L₂ : σ→Finset ι)
(hdiv : ∀ x∈S,x.divisor⊆x.common)
{x : Source (ι:=ι) (J₁.card+J₂.card)} (hx : x∈assignedSource S J₁ J₂ L₁ L₂) :
erase x∈S ∧ x.divisor⊆x.common ∧ ∀ i,x.assigned i∈x.common∪x.overlap := by proof · 4 lines
obtain ⟨⟨y,q⟩,hy,rfl⟩ := Finset.mem_image.mp hx
obtain ⟨hmem,hq⟩ := Finset.mem_filter.mp hy
have hyS := (Finset.mem_product.mp hmem).1
exact ⟨by simpa only [attachPair,erase_attach] using hyS,hdiv y hyS,hq⟩theorem coefficient_norm_le_one (S : Finset (Source (ι:=ι) 0))
(J₁ J₂ : Finset σ) (L₁ L₂ : σ→Finset ι) (a₁ a₂ : σ→ι→ℂ)
(ha₁ : ∀ i∈J₁,∀ q∈L₁ i,‖a₁ i q‖≤1)
(ha₂ : ∀ i∈J₂,∀ q∈L₂ i,‖a₂ i q‖≤1)
{x : Source (ι:=ι) (J₁.card+J₂.card)} (hx : x∈assignedSource S J₁ J₂ L₁ L₂) :
‖coefficient J₁ J₂ a₁ a₂ x‖≤1 := by proof · 8 lines
obtain ⟨⟨y,q⟩,hy,rfl⟩ := Finset.mem_image.mp hx
obtain ⟨hmem,hq⟩ := Finset.mem_filter.mp hy
have hq' : q∈(J₁.pi L₁ ×ˢ J₂.pi L₂).filter
(fun q=>∀ i,pairedSlotAssignment J₁ J₂ q i∈y.common∪y.overlap) :=
Finset.mem_filter.mpr ⟨(Finset.mem_product.mp hmem).2,hq⟩
rw [paired_assignment_filter] at hq'
rw [coefficient_attach]
exact pairedSlotWeight_norm_le_one J₁ J₂ L₁ L₂ a₁ a₂ _ q hq' ha₁ ha₂theorem assigned_tuple_valid
(p : ι→ActualEisensteinCubic.O) (hp : ∀ i,p i≠0)
[∀ i,(Ideal.span {p i}).IsMaximal]
(hpr : ∀ i,ConcretePrimeRowBridge.goodLambda^2∣p i-1)
(S : Finset (Source (ι:=ι) 0))
(J₁ J₂ : Finset σ) (L₁ L₂ : σ→Finset ι)
(hdiv : ∀ x∈S,x.divisor⊆x.common) (u : ActualEisensteinCubic.Oˣ)
{x : Source (ι:=ι) (J₁.card+J₂.card)} (hx : x∈assignedSource S J₁ J₂ L₁ L₂) :
InitialSourceValid (toTuple p (sectorSource u x)) := by proof · 3 lines
obtain ⟨_,hdivx,hassigned⟩ := assignedSource_support S J₁ J₂ L₁ L₂ hdiv hx
exact sourceTuple_valid p hp hpr x.common x.divisor x.overlap
((u:ActualEisensteinCubic.O)^5*x.frequency) x.assigned hdivx hassignedOutline
- def
attach13 - def
erase20 - theorem
erase_attach28 - theorem
attach_injective35 - def
attachPair42 - theorem
attachPair_injective48 - def
assignedSource57 - def
coefficient63 - theorem
coefficient_attach71 - theorem
assignedSource_sum77 - theorem
original_marks_eq_assigned90 - theorem
assignedSource_support107 - theorem
coefficient_norm_le_one117 - theorem
assigned_tuple_valid132