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.AlgebraicGeometry.HodgeConjecture.CMExtraction.CoefficientVectorCoordinates |
| 2 | import Mathlib.Algebra.Module.Lattice |
| 3 | |
| 4 | /-! # Lattice Coordinates -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HodgeConjecture.CMExtraction.LatticeCoordinates.TestTransport |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! Extend the specified integral lattice basis to rational coordinates. |
| 13 | The same coordinates characterize the original lattice exactly. -/ |
| 14 | |
| 15 | open scoped Classical |
| 16 | |
| 17 | open _root_.Module |
| 18 | |
| 19 | variable {V J : Type*} [AddCommGroup V] [Module ℚ V] |
| 20 | [Fintype J] (L : Submodule ℤ V) [Submodule.IsLattice ℚ L] (b : Basis J ℤ L) |
| 21 | |
| 22 | theorem latticeBasis_rational_coordinates (x : L) : |
| 23 | (b.extendOfIsLattice ℚ).equivFun x.val = fun j => (b.equivFun x j : ℚ) := by |
| 24 | apply (b.extendOfIsLattice ℚ).equivFun.symm.injective |
| 25 | rw [LinearEquiv.symm_apply_apply, Basis.equivFun_symm_apply] |
| 26 | have h := congrArg (fun y : L => y.val) (b.sum_equivFun x) |
| 27 | simpa only [Basis.extendOfIsLattice_apply, Submodule.coe_sum, Submodule.coe_smul, |
| 28 | Int.cast_smul_eq_zsmul] using h.symm |
| 29 | |
| 30 | theorem lattice_mem_iff_integer_coordinates (x : V) : |
| 31 | x ∈ L ↔ ∀ j, ∃ z : ℤ, (z : ℚ) = (b.extendOfIsLattice ℚ).equivFun x j := by |
| 32 | constructor |
| 33 | · intro hx j |
| 34 | exact ⟨b.equivFun ⟨x, hx⟩ j, (congr_fun (latticeBasis_rational_coordinates L b ⟨x, hx⟩) j).symm⟩ |
| 35 | · intro hx |
| 36 | choose z hz using hx |
| 37 | let y := b.equivFun.symm z |
| 38 | have hy : y.val = x := by |
| 39 | apply (b.extendOfIsLattice ℚ).equivFun.injective |
| 40 | rw [latticeBasis_rational_coordinates] |
| 41 | funext j |
| 42 | change (b.equivFun (b.equivFun.symm z) j : ℚ) = _ |
| 43 | rw [LinearEquiv.apply_symm_apply] |
| 44 | exact hz j |
| 45 | exact hy ▸ y.property |
| 46 | |
| 47 | end |
| 48 | |
| 49 | /-! The completion of the original integral lattice is exactly the |
| 50 | integral finite-adele lattice in the extended basis coordinates. -/ |
| 51 | |
| 52 | open scoped Classical |
| 53 | |
| 54 | open _root_.Module |
| 55 | |
| 56 | variable (E : Type) [Field E] [NumberField E] |
| 57 | {I J : Type*} [Fintype I] [DecidableEq I] [Fintype J] [DecidableEq J] |
| 58 | (L : Submodule ℤ (I → E)) [Submodule.IsLattice ℚ L] (b : Basis J ℤ L) |
| 59 | |
| 60 | def completedVectorLattice : Submodule AbelianModuli.ReferenceFamily.AdelicData.integralFiniteAdeles (I → AbelianModuli.ReferenceFamily.AdelicData.FiniteCoefficients E) := |
| 61 | Submodule.span AbelianModuli.ReferenceFamily.AdelicData.integralFiniteAdeles |
| 62 | ((fun x : I → E => fun i => AbelianModuli.ReferenceFamily.AdelicData.finiteCoefficientEmbedding E (x i)) '' (L : Set (I → E))) |
| 63 | |
| 64 | theorem coefficientVectorCoordinates_lattice_basis (j : J) : |
| 65 | CoefficientVectorCoordinates.TestTransport.coefficientVectorCoordinates E (b.extendOfIsLattice ℚ).equivFun |
| 66 | (fun i => AbelianModuli.ReferenceFamily.AdelicData.finiteCoefficientEmbedding E ((b j).val i)) = Pi.single j 1 := by |
| 67 | rw [CoefficientVectorCoordinates.TestTransport.coefficientVectorCoordinates_rational] |
| 68 | funext k |
| 69 | have h := (b.extendOfIsLattice ℚ).equivFun_self j k |
| 70 | rw [Basis.extendOfIsLattice_apply] at h |
| 71 | rw [h] |
| 72 | by_cases hjk : j = k |
| 73 | · subst k |
| 74 | simp |
| 75 | · simp [hjk, Ne.symm hjk] |
| 76 | |
| 77 | theorem completedVectorLattice_coordinates (x : I → AbelianModuli.ReferenceFamily.AdelicData.FiniteCoefficients E) : |
| 78 | x ∈ completedVectorLattice E L ↔ |
| 79 | ∀ j, CoefficientVectorCoordinates.TestTransport.coefficientVectorCoordinates E (b.extendOfIsLattice ℚ).equivFun x j ∈ AbelianModuli.ReferenceFamily.AdelicData.integralFiniteAdeles := by |
| 80 | let e := CoefficientVectorCoordinates.TestTransport.coefficientVectorCoordinates E (b.extendOfIsLattice ℚ).equivFun |
| 81 | change x ∈ completedVectorLattice E L ↔ ∀ j, e x j ∈ AbelianModuli.ReferenceFamily.AdelicData.integralFiniteAdeles |
| 82 | constructor |
| 83 | · intro hx |
| 84 | induction hx using Submodule.span_induction with |
| 85 | | mem y hy => |
| 86 | obtain ⟨z, hz, rfl⟩ := hy |
| 87 | intro j |
| 88 | change CoefficientVectorCoordinates.TestTransport.coefficientVectorCoordinates E (b.extendOfIsLattice ℚ).equivFun |
| 89 | (fun i => AbelianModuli.ReferenceFamily.AdelicData.finiteCoefficientEmbedding E (z i)) j ∈ AbelianModuli.ReferenceFamily.AdelicData.integralFiniteAdeles |
| 90 | rw [CoefficientVectorCoordinates.TestTransport.coefficientVectorCoordinates_rational] |
| 91 | change algebraMap ℚ AbelianModuli.ReferenceFamily.AdelicData.RationalFiniteAdeles ((b.extendOfIsLattice ℚ).equivFun z j) ∈ AbelianModuli.ReferenceFamily.AdelicData.integralFiniteAdeles |
| 92 | obtain ⟨a, ha⟩ := (lattice_mem_iff_integer_coordinates L b z).mp hz j |
| 93 | rw [← ha] |
| 94 | simpa only [map_intCast] using intCast_mem AbelianModuli.ReferenceFamily.AdelicData.integralFiniteAdeles a |
| 95 | | zero => intro j; simpa only [map_zero, Pi.zero_apply] using AbelianModuli.ReferenceFamily.AdelicData.integralFiniteAdeles.zero_mem |
| 96 | | add y z _ _ hy hz => |
| 97 | intro j |
| 98 | rw [map_add, Pi.add_apply] |
| 99 | exact AbelianModuli.ReferenceFamily.AdelicData.integralFiniteAdeles.add_mem (hy j) (hz j) |
| 100 | | smul c y _ hy => |
| 101 | intro j |
| 102 | change e ((c : AbelianModuli.ReferenceFamily.AdelicData.RationalFiniteAdeles) • y) j ∈ AbelianModuli.ReferenceFamily.AdelicData.integralFiniteAdeles |
| 103 | rw [map_smul, Pi.smul_apply, smul_eq_mul] |
| 104 | exact AbelianModuli.ReferenceFamily.AdelicData.integralFiniteAdeles.mul_mem c.property (hy j) |
| 105 | · intro hx |
| 106 | let c : J → AbelianModuli.ReferenceFamily.AdelicData.integralFiniteAdeles := fun j => ⟨e x j, hx j⟩ |
| 107 | have hgen (j : J) : (fun i => AbelianModuli.ReferenceFamily.AdelicData.finiteCoefficientEmbedding E ((b j).val i)) ∈ |
| 108 | completedVectorLattice E L := |
| 109 | Submodule.subset_span ⟨(b j).val, (b j).property, rfl⟩ |
| 110 | have he : (∑ j, c j • (fun i => AbelianModuli.ReferenceFamily.AdelicData.finiteCoefficientEmbedding E ((b j).val i))) = x := by |
| 111 | apply e.injective |
| 112 | rw [map_sum] |
| 113 | have hmap (j : J) : e (c j • (fun i => AbelianModuli.ReferenceFamily.AdelicData.finiteCoefficientEmbedding E ((b j).val i))) = |
| 114 | (c j : AbelianModuli.ReferenceFamily.AdelicData.RationalFiniteAdeles) • Pi.single j 1 := by |
| 115 | change e ((c j : AbelianModuli.ReferenceFamily.AdelicData.RationalFiniteAdeles) • (fun i => AbelianModuli.ReferenceFamily.AdelicData.finiteCoefficientEmbedding E ((b j).val i))) = _ |
| 116 | rw [map_smul] |
| 117 | exact congrArg (fun y => (c j : AbelianModuli.ReferenceFamily.AdelicData.RationalFiniteAdeles) • y) |
| 118 | (coefficientVectorCoordinates_lattice_basis E L b j) |
| 119 | simp_rw [hmap] |
| 120 | funext j |
| 121 | simp [Pi.single_apply, c] |
| 122 | rw [← he] |
| 123 | exact Submodule.sum_mem _ (fun j _ => (completedVectorLattice E L).smul_mem (c j) (hgen j)) |
| 124 | |
| 125 | end |
| 126 | |
| 127 | end OAI.AlgebraicGeometry.HodgeConjecture.CMExtraction.LatticeCoordinates.TestTransport |