Download lean/OAI/NumberTheory/DukePrimeDegree/Arithmetic/PacketBridge.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
- Browser
- Download file 2.3 kB
-
https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/NumberTheory/DukePrimeDegree/Arithmetic/PacketBridge.lean
- Command line
-
hf download hf://datasets/roseking/openAI-math-dataset/lean/OAI/NumberTheory/DukePrimeDegree/Arithmetic/PacketBridge.lean
-
curl -L -o PacketBridge.lean https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/NumberTheory/DukePrimeDegree/Arithmetic/PacketBridge.lean
2.3 kB
Lean 4 · 5
declarations statementsfull
20Equip a full lattice with the basis expected by the packet model.
noncomputable def FullLattice.toPacket (M : FullLattice K)
(hn : Module.finrank ℚ K = n) : PrimeDegreePackets.FullLattice n K where body · 3 lines
carrier := M.toSubmodule
basis := M.integralBasis.reindex (finCongr hn)
spans := M.span_eq_top@[simp] lemma FullLattice.toPacket_carrier (M : FullLattice K)
(hn : Module.finrank ℚ K = n) : (M.toPacket hn).carrier = M.toSubmodule := rfl @[simp] lemma FullLattice.toPacket_multiplierOrder (M : FullLattice K)
(hn : Module.finrank ℚ K = n) :
PrimeDegreePackets.multiplierOrder (M.toPacket hn) =
(multiplierOrder M.toSubmodule).toSubring.toAddSubgroup := by proof · 2 lines
ext x rfl
38Convert the complex-embedding ordering to the real-embedding ordering used by the row-lattice packet model. Total reality makes this bijective.
noncomputable def EmbeddingOrder.toRealOrder [NumberField.IsTotallyReal K]
(σ : EmbeddingOrder K n) : PrimeDegreePackets.OrderedEmbeddings n K := body · 16 lines
Equiv.ofBijective (orderedRealEmbedding σ) (by
constructor
· intro i j hij
apply σ.injective
apply AlgHom.ext
intro x
have h := congrArg (fun f : K →+* ℝ => (f x : ℂ)) hij
simpa only [orderedRealEmbedding_complex] using h
· intro τ
let τc : K →ₐ[ℚ] ℂ := (Complex.ofRealHom.comp τ).toRatAlgHom
obtain ⟨i, hi⟩ := σ.surjective τc
refine ⟨i, ?_⟩
ext x
apply Complex.ofReal_injective
rw [orderedRealEmbedding_complex, hi]
rfl)@[simp] lemma EmbeddingOrder.toRealOrder_apply [NumberField.IsTotallyReal K]
(σ : EmbeddingOrder K n) (i : Fin n) : σ.toRealOrder i = orderedRealEmbedding σ i := rfl Outline