Download lean/OAI/NumberTheory/DukePrimeDegree/Geometry/EmbeddingMatrix.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
- Browser
- Download file 3.22 kB
-
https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/NumberTheory/DukePrimeDegree/Geometry/EmbeddingMatrix.lean
- Command line
-
hf download hf://datasets/roseking/openAI-math-dataset/lean/OAI/NumberTheory/DukePrimeDegree/Geometry/EmbeddingMatrix.lean
-
curl -L -o EmbeddingMatrix.lean https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/NumberTheory/DukePrimeDegree/Geometry/EmbeddingMatrix.lean
3.22 kB
Lean 4 · 7
declarations statementsfull
21An ordering of all embeddings; total reality makes their values real.
abbrev EmbeddingOrder (K : Type*) [Field K] [NumberField K] (n : ℕ) := body · 1 line
Fin n ≃ (K →ₐ[ℚ] ℂ)25The real ring embedding at one place of the ordering.
noncomputable def orderedRealEmbedding (σ : EmbeddingOrder K n) (j : Fin n) : K →+* ℝ := body · 1 line
(NumberField.IsTotallyReal.complexEmbedding_isReal (σ j).toRingHom).embedding@[simp] lemma orderedRealEmbedding_complex (σ : EmbeddingOrder K n)
(j : Fin n) (x : K) : (orderedRealEmbedding σ j x : ℂ) = σ j x := proof · 1 line
NumberField.ComplexEmbedding.IsReal.coe_embedding_apply _ _33Rows are basis vectors and columns are ordered real embeddings.
noncomputable def realEmbeddingMatrix (b : Fin n → K) (σ : EmbeddingOrder K n) :
Matrix (Fin n) (Fin n) ℝ := fun i j => orderedRealEmbedding σ j (b i) lemma realEmbeddingMatrix_complex (b : Fin n → K) (σ : EmbeddingOrder K n) :
(realEmbeddingMatrix b σ).map Complex.ofRealHom =
Algebra.embeddingsMatrixReindex ℚ ℂ b σ := by proof · 2 lines
ext i j
simp [realEmbeddingMatrix, Algebra.embeddingsMatrixReindex, Algebra.embeddingsMatrix]44The field trace discriminant proves the embedded lattice basis is linearly independent over the real numbers.
theorem det_realEmbeddingMatrix_ne_zero (b : Module.Basis (Fin n) ℚ K)
(σ : EmbeddingOrder K n) : (realEmbeddingMatrix b σ).det ≠ 0 := by proof · 15 lines
have hdisc : (algebraMap ℚ ℂ) (Algebra.discr ℚ b) ≠ 0 := by
intro h
apply Algebra.discr_not_zero_of_basis ℚ b
apply (algebraMap ℚ ℂ).injective
simpa only [map_zero] using h
have heq := Algebra.discr_eq_det_embeddingsMatrixReindex_pow_two ℚ ℂ b σ
have hdet : (Algebra.embeddingsMatrixReindex ℚ ℂ b σ).det ≠ 0 := by
intro h
apply hdisc
rw [heq, h, zero_pow (by decide : (2 : ℕ) ≠ 0)]
intro hreal
apply hdet
rw [← realEmbeddingMatrix_complex]
change (Complex.ofRealHom.mapMatrix (realEmbeddingMatrix b σ)).det = 0
rw [← RingHom.map_det, hreal, map_zero]63In particular this applies to the chosen integer basis of a full lattice.
theorem FullLattice.det_embeddingMatrix_ne_zero (M : FullLattice K)
(σ : EmbeddingOrder K (Module.finrank ℚ K)) :
(realEmbeddingMatrix (fun i => (M.integralBasis i : K)) σ).det ≠ 0 := by proof · 6 lines
have h := det_realEmbeddingMatrix_ne_zero (M.rationalBasis M.integralBasis) σ
have hb : (M.rationalBasis M.integralBasis : Fin (Module.finrank ℚ K) → K) =
fun i => (M.integralBasis i : K) := by
funext i
exact M.rationalBasis_apply M.integralBasis i
rwa [hb] at hOutline