Download lean/OAI/NumberTheory/CubicGram/Definitions.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
- Browser
- Download file 2.81 kB
-
https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/NumberTheory/CubicGram/Definitions.lean
- Command line
-
hf download hf://datasets/roseking/openAI-math-dataset/lean/OAI/NumberTheory/CubicGram/Definitions.lean
-
curl -L -o Definitions.lean https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/NumberTheory/CubicGram/Definitions.lean
2.81 kB
Lean 4 · 21
declarations statementsfull
def omega : ℂ := Complex.exp (2 * (Real.pi : ℂ) * Complex.I / 3) def eisensteinRing : Subalgebra ℤ ℂ := Algebra.adjoin ℤ {omega} abbrev Eisenstein := eisensteinRing def omegaE : Eisenstein := body · 1 line
⟨omega, Algebra.subset_adjoin (Set.mem_singleton omega)⟩def norm (a : Eisenstein) : ℝ := Complex.normSq (a : ℂ) def normNat (a : Eisenstein) : ℕ := ⌊norm a⌋₊ def primary (a : Eisenstein) : Prop := (3 : Eisenstein) ∣ a - 1 def primaryPrime (a : Eisenstein) : Prop := primary a ∧ Prime a def modulus (a : Eisenstein) : Ideal Eisenstein := Ideal.span {a} abbrev Residues (a : Eisenstein) := Eisenstein ⧸ modulus a def residueRepresentative (a : Eisenstein) (v : Residues a) : Eisenstein := body · 1 line
Classical.choose (Ideal.Quotient.mk_surjective v)def cubicSymbolAtPrime (p v : Eisenstein) : ℂ := body · 7 lines
if IsUnit (Ideal.Quotient.mk (modulus p) v) then
if h : ∃ j : Fin 3,
Ideal.Quotient.mk (modulus p) (v ^ ((normNat p - 1) / 3)) =
Ideal.Quotient.mk (modulus p) (omegaE ^ (j : ℕ)) then
omega ^ ((Classical.choose h : Fin 3) : ℕ)
else 0
else 0def additivePhase (p v : Eisenstein) : ℂ := body · 2 lines
let z : ℂ := (v : ℂ) / (p : ℂ)
Complex.exp (2 * (Real.pi : ℂ) * Complex.I * (z + star z))def gaussAtPrime (p : Eisenstein) : ℂ := body · 4 lines
(Real.sqrt (norm p) : ℂ)⁻¹ *
∑' v : Residues p,
cubicSymbolAtPrime p (residueRepresentative p v) *
additivePhase p (residueRepresentative p v)def cStar : ℝ := (2 * Real.pi) ^ (2 / 3 : ℝ) / (3 * Real.Gamma (2 / 3)) def primeCutoffSum (f : Eisenstein → ℂ) (X : ℝ) : ℂ := body · 1 line
∑' p : Eisenstein, if primaryPrime p ∧ norm p ≤ X then f p else 0def firstMomentScale (X : ℝ) : ℝ := X ^ (5 / 6 : ℝ) / Real.log X def FirstMomentStatement : Prop := body · 4 lines
Asymptotics.IsLittleO Filter.atTop
(fun X : ℝ => primeCutoffSum gaussAtPrime X -
(((6 / 5 : ℝ) * cStar * firstMomentScale X : ℝ) : ℂ))
firstMomentScaledef theta (ℓ : ℤ) (a : Eisenstein) : ℂ := ((a : ℂ) / (‖(a : ℂ)‖ : ℂ)) ^ ℓ def AngularComparisonStatement : Prop := body · 4 lines
∀ ℓ : ℤ, Asymptotics.IsLittleO Filter.atTop
(primeCutoffSum (fun p => theta ℓ p *
(gaussAtPrime p - ((cStar * norm p ^ (-1 / 6 : ℝ) : ℝ) : ℂ))))
firstMomentScaledef AngularCancellationStatement : Prop := body · 2 lines
∀ ℓ : ℤ, ℓ ≠ 0 → Asymptotics.IsLittleO Filter.atTop
(primeCutoffSum (fun p => theta ℓ p * gaussAtPrime p)) firstMomentScaleOutline
- def
omega16 - def
eisensteinRing18 - abbrev
Eisenstein19 - def
omegaE21 - def
norm24 - def
normNat26 - def
primary28 - def
primaryPrime30 - def
modulus32 - abbrev
Residues34 - def
residueRepresentative36 - def
cubicSymbolAtPrime39 - def
additivePhase48 - def
gaussAtPrime52 - def
cStar58 - def
primeCutoffSum60 - def
firstMomentScale63 - def
FirstMomentStatement65 - def
theta71 - def
AngularComparisonStatement73 - def
AngularCancellationStatement79