Download lean/OAI/NumberTheory/DukePrimeDegree/Arithmetic/MultiplierOrder.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
- Browser
- Download file 3.54 kB
-
https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/NumberTheory/DukePrimeDegree/Arithmetic/MultiplierOrder.lean
- Command line
-
hf download hf://datasets/roseking/openAI-math-dataset/lean/OAI/NumberTheory/DukePrimeDegree/Arithmetic/MultiplierOrder.lean
-
curl -L -o MultiplierOrder.lean https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/NumberTheory/DukePrimeDegree/Arithmetic/MultiplierOrder.lean
24Elements of the field preserving the given integer lattice.
def multiplierOrder (M : Submodule ℤ K) : Subalgebra ℤ K where body · 12 lines
carrier := {a | ∀ x ∈ M, a * x ∈ M}
zero_mem' := by intro x _; simp
one_mem' := by intro x hx; simpa using hx
add_mem' := by
intro a b ha hb x hx
simpa only [add_mul] using M.add_mem (ha x hx) (hb x hx)
mul_mem' := by
intro a b ha hb x hx
simpa only [mul_assoc] using ha (b * x) (hb x hx)
algebraMap_mem' := by
intro a x hx
simpa only [Algebra.smul_def] using M.smul_mem a hx@[simp] theorem mem_multiplierOrder (M : Submodule ℤ K) (a : K) :
a ∈ multiplierOrder M ↔ ∀ x ∈ M, a * x ∈ M := Iff.rfl 44A multiplier of a nonzero finitely generated lattice is integral. This proves the upper inclusion in the manuscript's discriminant-scale reduction directly from the library's determinant trick.
theorem multiplierOrder_le_integralClosure (M : Submodule ℤ K)
(hne : M ≠ ⊥) (hfg : M.FG) :
multiplierOrder M ≤ integralClosure ℤ K := by proof · 2 lines
intro a ha
exact isIntegral_of_smul_mem_submodule M hne hfg a ha51The maximal-order span of an integer lattice.
def maximalOrderSpan (M : Submodule ℤ K) : Submodule (𝓞 K) K := body · 1 line
Submodule.span (𝓞 K) (M : Set K)55The maximal-order span, viewed again as an integer lattice.
def saturationLattice (M : Submodule ℤ K) : Submodule ℤ K := body · 1 line
(maximalOrderSpan M).restrictScalars ℤlemma le_saturationLattice (M : Submodule ℤ K) : M ≤ saturationLattice M := by proof · 2 lines
intro x hx
exact Submodule.subset_span hx63The original lattice inside its maximal-order span.
def latticeInSaturation (M : Submodule ℤ K) : Submodule ℤ (saturationLattice M) := body · 1 line
M.comap (saturationLattice M).subtype68The additive index
[O_K M : M]. For a full lattice this is finite. As usual, the index is zero if the quotient is infinite.
noncomputable def saturationIndex (M : Submodule ℤ K) : ℕ := body · 1 line
(latticeInSaturation M).toAddSubgroup.index72Multiplication by the index sends the saturation into the lattice.
lemma saturationIndex_nsmul_mem (M : Submodule ℤ K) {x : K}
(hx : x ∈ saturationLattice M) : saturationIndex M • x ∈ M := by proof · 2 lines
exact (latticeInSaturation M).toAddSubgroup.nsmul_index_mem
(⟨x, hx⟩ : saturationLattice M)80The conductor inclusion
q O_K ⊆ O(M)withq = [O_K M : M]. Together with integrality of multipliers, this gives the two order inclusions used in the manuscript.
theorem saturationIndex_mul_integer_mem_multiplierOrder
(M : Submodule ℤ K) (r : 𝓞 K) :
(saturationIndex M : K) * (r : K) ∈ multiplierOrder M := by proof · 4 lines
intro x hx
have hspan : (r : K) * x ∈ saturationLattice M := by
exact (maximalOrderSpan M).smul_mem r (Submodule.subset_span hx)
simpa only [nsmul_eq_mul, mul_assoc] using saturationIndex_nsmul_mem M hspanOutline