Hodge conjecture: the CM case in Lean, read and discussed
OpenAI's Lean proof of the Hodge conjecture for CM abelian varieties: rerun it, read its statement, and keep the open questions with their sources. The conjecture is open

| 1 | import OAI.NumberTheory.Quaternion.Arithmetic.StandardMinkowskiFrames |
| 2 | import OAI.NumberTheory.Quaternion.Arithmetic.AdelicGap |
| 3 | |
| 4 | /-! # Adelic Lattice Mahler -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.Quaternion.Arithmetic.AdelicLatticeMahler |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! The adelic lattice gap and determinant-one frames give compact |
| 13 | real matrix representatives by Mahler's theorem. -/ |
| 14 | |
| 15 | open scoped Classical _root_.NumberField |
| 16 | open _root_.NumberField _root_.NumberField.mixedEmbedding _root_.Module Set |
| 17 | |
| 18 | variable {F : Type} [Field F] [NumberField F] {n : ℕ} [Nontrivial (Fin n)] |
| 19 | |
| 20 | theorem adelic_lattice_compact_real_frames (G : ArithmeticGroups.Lattices.Algebraic.MatrixAlgebraicGroup F n) (ε : ℝ) (hε : 0 < ε) |
| 21 | (hgap : ∀ (g : FiniteAdelicMatrices.FiniteAdelicGroupPoints G) (h : G.ArchimedeanProduct Set.univ), |
| 22 | ∀ x ∈ FiniteAdelicLattice.finiteAdelicMatrixLattice (FiniteAdelicMatrices.finiteAdelicMatrix G g), x ≠ 0 → |
| 23 | ε ≤ ‖ArithmeticGroups.Lattices.Archimedean.Quotient.Construction.archimedeanRealRepresentation F n (ArithmeticGroups.Lattices.Archimedean.Quotient.Construction.fullArchimedeanPointsEquiv G h).val |
| 24 | (fun i => mixedEmbedding F (x i))‖) : |
| 25 | ∃ K : Set (Matrix.GeneralLinearGroup (Fin (finrank ℝ (Fin n → mixedSpace F))) ℝ), |
| 26 | IsCompact K ∧ ∀ (g : FiniteAdelicMatrices.FiniteAdelicGroupPoints G) (h : G.ArchimedeanProduct Set.univ), |
| 27 | ∃ e : (Fin n → mixedSpace F) ≃ₗ[ℝ] (Fin n → mixedSpace F), |
| 28 | e.toLinearMap.det = 1 ∧ |
| 29 | ArithmeticGroups.Lattices.IntegralLattice.Construction.vectorLatticeImage (FiniteAdelicLattice.finiteAdelicMatrixLattice (FiniteAdelicMatrices.finiteAdelicMatrix G g)) = |
| 30 | (StandardMinkowskiFrames.standardMinkowskiLattice F n).map (e.toLinearMap.restrictScalars ℤ) ∧ |
| 31 | ∃ γ ∈ StandardMinkowskiFrames.standardMinkowskiIntegralMatrices F n, StandardMinkowskiFrames.adelicMinkowskiFrameMatrix G h e * γ ∈ K := by |
| 32 | obtain ⟨K, hK, hrep⟩ := ArithmeticGroups.Lattices.MahlerFrameNormed.Construction.exists_compact_matrix_lattice_representatives_normed |
| 33 | (StandardMinkowskiFrames.standardMinkowskiLattice F n) (StandardMinkowskiFrames.standardMinkowskiIntegralBasis F n) ε hε |
| 34 | refine ⟨K, hK, ?_⟩ |
| 35 | intro g h |
| 36 | obtain ⟨e, he, hL⟩ := MinkowskiLatticeFrames.finiteAdelicGroupLattice_minkowski_frame G g |
| 37 | refine ⟨e, he, hL, ?_⟩ |
| 38 | apply hrep (StandardMinkowskiFrames.adelicMinkowskiFrameMatrix G h e) |
| 39 | · rw [StandardMinkowskiFrames.adelicMinkowskiFrameMatrix_det G h e he, abs_one] |
| 40 | · intro z hz hz0 |
| 41 | have hey : e z ∈ ArithmeticGroups.Lattices.IntegralLattice.Construction.vectorLatticeImage (FiniteAdelicLattice.finiteAdelicMatrixLattice (FiniteAdelicMatrices.finiteAdelicMatrix G g)) := by |
| 42 | rw [hL] |
| 43 | exact ⟨z, hz, rfl⟩ |
| 44 | obtain ⟨x, hx, hxe⟩ := hey |
| 45 | have hx0 : x ≠ 0 := by |
| 46 | intro hx0 |
| 47 | subst x |
| 48 | have hez : e z = 0 := hxe.symm.trans (map_zero (ArithmeticGroups.Lattices.IntegralLattice.Construction.vectorMixedEmbedding (k := F) n)) |
| 49 | exact hz0 (e.injective (hez.trans (map_zero e).symm)) |
| 50 | change ε ≤ ‖ArithmeticGroups.Lattices.LatticeFrameAction.Construction.matrixFrameAction (StandardMinkowskiFrames.standardMinkowskiRealBasis F n) |
| 51 | (StandardMinkowskiFrames.adelicMinkowskiFrameMatrix G h e) z‖ |
| 52 | rw [StandardMinkowskiFrames.adelicMinkowskiFrameMatrix_action] |
| 53 | change ε ≤ ‖ArithmeticGroups.Lattices.Archimedean.Quotient.Construction.archimedeanRealRepresentation F n (ArithmeticGroups.Lattices.Archimedean.Quotient.Construction.fullArchimedeanPointsEquiv G h).val (e z)‖ |
| 54 | rw [← hxe] |
| 55 | exact hgap g h x hx hx0 |
| 56 | |
| 57 | theorem quaternion_nonsplit_compact_adelic_frames (a b : F) (ha : a ≠ 0) |
| 58 | (hs : ¬ ∃ x y : F, x ^ 2 - a * y ^ 2 = b) : |
| 59 | ∃ K : Set (Matrix.GeneralLinearGroup (Fin (finrank ℝ (Fin 4 → mixedSpace F))) ℝ), |
| 60 | IsCompact K ∧ |
| 61 | ∀ (g : FiniteAdelicMatrices.FiniteAdelicGroupPoints (MatrixGroup.quaternionNormOneMatrixGroup a b)) |
| 62 | (h : (MatrixGroup.quaternionNormOneMatrixGroup a b).ArchimedeanProduct Set.univ), |
| 63 | ∃ e : (Fin 4 → mixedSpace F) ≃ₗ[ℝ] (Fin 4 → mixedSpace F), |
| 64 | e.toLinearMap.det = 1 ∧ |
| 65 | ArithmeticGroups.Lattices.IntegralLattice.Construction.vectorLatticeImage (FiniteAdelicLattice.finiteAdelicMatrixLattice (FiniteAdelicMatrices.finiteAdelicMatrix (MatrixGroup.quaternionNormOneMatrixGroup a b) g)) = |
| 66 | (StandardMinkowskiFrames.standardMinkowskiLattice F 4).map (e.toLinearMap.restrictScalars ℤ) ∧ |
| 67 | ∃ γ ∈ StandardMinkowskiFrames.standardMinkowskiIntegralMatrices F 4, |
| 68 | StandardMinkowskiFrames.adelicMinkowskiFrameMatrix (MatrixGroup.quaternionNormOneMatrixGroup a b) h e * γ ∈ K := by |
| 69 | obtain ⟨ε, hε, hgap⟩ := AdelicGap.quaternion_nonsplit_uniform_minkowski_gap a b ha hs |
| 70 | exact adelic_lattice_compact_real_frames (MatrixGroup.quaternionNormOneMatrixGroup a b) ε hε hgap |
| 71 | |
| 72 | end |
| 73 | |
| 74 | /-! A compact set of lattice frames supplies a nonzero rational lattice |
| 75 | vector whose archimedean translate stays in a fixed compact set. -/ |
| 76 | |
| 77 | open scoped Classical _root_.NumberField |
| 78 | open _root_.NumberField _root_.NumberField.mixedEmbedding Set |
| 79 | |
| 80 | variable {F : Type} [Field F] [NumberField F] {n : ℕ} |
| 81 | |
| 82 | theorem compact_adelic_vectors_of_compact_frames (G : ArithmeticGroups.Lattices.Algebraic.MatrixAlgebraicGroup F n) |
| 83 | (z : Fin n → mixedSpace F) (hz : z ∈ StandardMinkowskiFrames.standardMinkowskiLattice F n) (hz0 : z ≠ 0) |
| 84 | (K : Set (Matrix.GeneralLinearGroup (Fin (Module.finrank ℝ (Fin n → mixedSpace F))) ℝ)) |
| 85 | (hK : IsCompact K) |
| 86 | (hframes : ∀ (g : FiniteAdelicMatrices.FiniteAdelicGroupPoints G) (h : G.ArchimedeanProduct Set.univ), |
| 87 | ∃ e : (Fin n → mixedSpace F) ≃ₗ[ℝ] (Fin n → mixedSpace F), |
| 88 | e.toLinearMap.det = 1 ∧ |
| 89 | ArithmeticGroups.Lattices.IntegralLattice.Construction.vectorLatticeImage (FiniteAdelicLattice.finiteAdelicMatrixLattice (FiniteAdelicMatrices.finiteAdelicMatrix G g)) = |
| 90 | (StandardMinkowskiFrames.standardMinkowskiLattice F n).map (e.toLinearMap.restrictScalars ℤ) ∧ |
| 91 | ∃ γ ∈ StandardMinkowskiFrames.standardMinkowskiIntegralMatrices F n, StandardMinkowskiFrames.adelicMinkowskiFrameMatrix G h e * γ ∈ K) : |
| 92 | ∃ C : Set (Fin n → mixedSpace F), IsCompact C ∧ |
| 93 | ∀ (g : FiniteAdelicMatrices.FiniteAdelicGroupPoints G) (h : G.ArchimedeanProduct Set.univ), |
| 94 | ∃ x ∈ FiniteAdelicLattice.finiteAdelicMatrixLattice (FiniteAdelicMatrices.finiteAdelicMatrix G g), x ≠ 0 ∧ |
| 95 | ArithmeticGroups.Lattices.Archimedean.Quotient.Construction.archimedeanRealRepresentation F n (ArithmeticGroups.Lattices.Archimedean.Quotient.Construction.fullArchimedeanPointsEquiv G h).val |
| 96 | (fun i => mixedEmbedding F (x i)) ∈ C := by |
| 97 | let B := StandardMinkowskiFrames.standardMinkowskiRealBasis F n |
| 98 | refine ⟨(fun M => ArithmeticGroups.Lattices.LatticeFrameAction.Construction.matrixFrameAction B M z) '' K, |
| 99 | hK.image (ArithmeticGroups.Lattices.MahlerFrameOf.Construction.continuous_matrixFrameAction B z), ?_⟩ |
| 100 | intro g h |
| 101 | obtain ⟨e, _, hL, γ, hγ, hM⟩ := hframes g h |
| 102 | have hγz : ArithmeticGroups.Lattices.LatticeFrameAction.Construction.matrixFrameAction B γ z ∈ StandardMinkowskiFrames.standardMinkowskiLattice F n := |
| 103 | ((ArithmeticGroups.Lattices.StabilizerRestriction.Construction.submoduleImageStabilizer_mem_iff (ArithmeticGroups.Lattices.LatticeFrameAction.Construction.matrixFrameIntegralAction B) |
| 104 | (StandardMinkowskiFrames.standardMinkowskiLattice F n) γ).mp hγ z).mpr hz |
| 105 | have hey : e (ArithmeticGroups.Lattices.LatticeFrameAction.Construction.matrixFrameAction B γ z) ∈ |
| 106 | ArithmeticGroups.Lattices.IntegralLattice.Construction.vectorLatticeImage (FiniteAdelicLattice.finiteAdelicMatrixLattice (FiniteAdelicMatrices.finiteAdelicMatrix G g)) := by |
| 107 | rw [hL] |
| 108 | exact ⟨_, hγz, rfl⟩ |
| 109 | obtain ⟨x, hx, hxe⟩ := hey |
| 110 | refine ⟨x, hx, ?_, StandardMinkowskiFrames.adelicMinkowskiFrameMatrix G h e * γ, hM, ?_⟩ |
| 111 | · intro hx0 |
| 112 | subst x |
| 113 | have hy0 : e (ArithmeticGroups.Lattices.LatticeFrameAction.Construction.matrixFrameAction B γ z) = 0 := |
| 114 | hxe.symm.trans (map_zero (ArithmeticGroups.Lattices.IntegralLattice.Construction.vectorMixedEmbedding (k := F) n)) |
| 115 | have hγ0 := e.injective (hy0.trans (map_zero e).symm) |
| 116 | exact hz0 ((ArithmeticGroups.Lattices.LatticeFrameAction.Construction.matrixFrameAction B γ).injective (hγ0.trans (map_zero _).symm)) |
| 117 | · change ArithmeticGroups.Lattices.LatticeFrameAction.Construction.matrixFrameAction B (StandardMinkowskiFrames.adelicMinkowskiFrameMatrix G h e * γ) z = _ |
| 118 | rw [map_mul] |
| 119 | change (ArithmeticGroups.Lattices.LatticeFrameAction.Construction.matrixFrameAction B (StandardMinkowskiFrames.adelicMinkowskiFrameMatrix G h e)) |
| 120 | (ArithmeticGroups.Lattices.LatticeFrameAction.Construction.matrixFrameAction B γ z) = _ |
| 121 | rw [StandardMinkowskiFrames.adelicMinkowskiFrameMatrix_action] |
| 122 | change ArithmeticGroups.Lattices.Archimedean.Quotient.Construction.archimedeanRealRepresentation F n (ArithmeticGroups.Lattices.Archimedean.Quotient.Construction.fullArchimedeanPointsEquiv G h).val |
| 123 | (e (ArithmeticGroups.Lattices.LatticeFrameAction.Construction.matrixFrameAction B γ z)) = _ |
| 124 | rw [← hxe] |
| 125 | rfl |
| 126 | |
| 127 | theorem quaternion_nonsplit_compact_adelic_vectors (a b : F) (ha : a ≠ 0) |
| 128 | (hs : ¬ ∃ x y : F, x ^ 2 - a * y ^ 2 = b) : |
| 129 | ∃ C : Set (Fin 4 → mixedSpace F), IsCompact C ∧ |
| 130 | ∀ (g : FiniteAdelicMatrices.FiniteAdelicGroupPoints (MatrixGroup.quaternionNormOneMatrixGroup a b)) |
| 131 | (h : (MatrixGroup.quaternionNormOneMatrixGroup a b).ArchimedeanProduct Set.univ), |
| 132 | ∃ x ∈ FiniteAdelicLattice.finiteAdelicMatrixLattice (FiniteAdelicMatrices.finiteAdelicMatrix (MatrixGroup.quaternionNormOneMatrixGroup a b) g), |
| 133 | x ≠ 0 ∧ ArithmeticGroups.Lattices.Archimedean.Quotient.Construction.archimedeanRealRepresentation F 4 |
| 134 | (ArithmeticGroups.Lattices.Archimedean.Quotient.Construction.fullArchimedeanPointsEquiv (MatrixGroup.quaternionNormOneMatrixGroup a b) h).val |
| 135 | (fun i => mixedEmbedding F (x i)) ∈ C := by |
| 136 | obtain ⟨K, hK, hframes⟩ := quaternion_nonsplit_compact_adelic_frames a b ha hs |
| 137 | let x : Fin 4 → F := Pi.basisFun F (Fin 4) 0 |
| 138 | let z := ArithmeticGroups.Lattices.IntegralLattice.Construction.vectorMixedEmbedding (k := F) 4 x |
| 139 | have hx : x ∈ (ArithmeticGroups.Lattices.IntegralLattice.FullLattice.standard F 4).module := |
| 140 | Submodule.subset_span (Set.mem_range_self 0) |
| 141 | have hz : z ∈ StandardMinkowskiFrames.standardMinkowskiLattice F 4 := ⟨x, hx, rfl⟩ |
| 142 | have hz0 : z ≠ 0 := by |
| 143 | intro he |
| 144 | have h0 := congrFun he 0 |
| 145 | change mixedEmbedding F (x 0) = 0 at h0 |
| 146 | have hx0 : x 0 = 1 := by simp [x, Pi.basisFun_apply] |
| 147 | rw [hx0, map_one] at h0 |
| 148 | exact one_ne_zero h0 |
| 149 | exact compact_adelic_vectors_of_compact_frames (MatrixGroup.quaternionNormOneMatrixGroup a b) z hz hz0 K hK hframes |
| 150 | |
| 151 | end |
| 152 | |
| 153 | end OAI.NumberTheory.Quaternion.Arithmetic.AdelicLatticeMahler |