Download data/lean/OAI/NumberTheory/DukePrimeDegree/Geometry/EmbeddingMatrix.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 3.22 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/NumberTheory/DukePrimeDegree/Geometry/EmbeddingMatrix.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/NumberTheory/DukePrimeDegree/Geometry/EmbeddingMatrix.lean
-
curl -L -o EmbeddingMatrix.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/NumberTheory/DukePrimeDegree/Geometry/EmbeddingMatrix.lean
3.22 kB
| import OAI.NumberTheory.DukePrimeDegree.Arithmetic.LatticeBasis | |
| import Mathlib.NumberTheory.NumberField.InfinitePlace.TotallyRealComplex | |
| import Mathlib.RingTheory.Discriminant | |
| namespace OAI | |
| /-! | |
| # Ordered real embeddings and lattice basis matrices | |
| An ordering of the complex embeddings of a totally real field gives the | |
| ordered real embeddings used in the manuscript. The matrix of any full | |
| lattice basis under these embeddings has nonzero determinant. | |
| -/ | |
| namespace DukePrimeDegree | |
| variable {K : Type*} [Field K] [NumberField K] [NumberField.IsTotallyReal K] | |
| {n : β} | |
| /-- An ordering of all embeddings; total reality makes their values real. -/ | |
| abbrev EmbeddingOrder (K : Type*) [Field K] [NumberField K] (n : β) := | |
| Fin n β (K ββ[β] β) | |
| /-- The real ring embedding at one place of the ordering. -/ | |
| noncomputable def orderedRealEmbedding (Ο : EmbeddingOrder K n) (j : Fin n) : K β+* β := | |
| (NumberField.IsTotallyReal.complexEmbedding_isReal (Ο j).toRingHom).embedding | |
| lemma orderedRealEmbedding_complex (Ο : EmbeddingOrder K n) | |
| (j : Fin n) (x : K) : (orderedRealEmbedding Ο j x : β) = Ο j x := | |
| NumberField.ComplexEmbedding.IsReal.coe_embedding_apply _ _ | |
| /-- Rows 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 | |
| ext i j | |
| simp [realEmbeddingMatrix, Algebra.embeddingsMatrixReindex, Algebra.embeddingsMatrix] | |
| /-- The 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 | |
| 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] | |
| /-- In 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 | |
| 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 h | |
| end DukePrimeDegree | |
| end OAI | |