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.PELModuli.IntegralModel.CM.ActionGeneratorFaithfulness |
| 2 | import Mathlib.FieldTheory.Minpoly.IsIntegrallyClosed |
| 3 | |
| 4 | /-! # Action From Generator -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.CM |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! A root of the integral primitive generator's minimal polynomial satisfies |
| 13 | all its integral polynomial relations. In particular the fixed reconstruction |
| 14 | polynomials satisfy the unit, product, and generator identities needed to |
| 15 | recover an integral action after division by the fixed conductor. -/ |
| 16 | |
| 17 | open _root_.Polynomial |
| 18 | |
| 19 | variable {E : Type} [Field E] [NumberField E] [Algebra ℚ E] [NumberField.IsCMField E] |
| 20 | (D : GeneratorReconstruction.CMIntegralGeneratorData E) {R : Type*} [Ring R] (u : R) |
| 21 | (hu : aeval u (minpoly ℤ (D.generator : E)) = 0) |
| 22 | |
| 23 | include hu |
| 24 | |
| 25 | theorem GeneratorReconstruction.CMIntegralGeneratorData.polynomial_relation_transfer |
| 26 | {p q : ℤ[X]} (h : aeval (D.generator : E) p = aeval (D.generator : E) q) : |
| 27 | aeval u p = aeval u q := by |
| 28 | have hz : aeval (D.generator : E) (p - q) = 0 := by rw [map_sub, h, sub_self] |
| 29 | have hd := minpoly.isIntegrallyClosed_dvd D.generator.isIntegral_coe hz |
| 30 | have he := aeval_eq_zero_of_dvd_aeval_eq_zero hd hu |
| 31 | rwa [map_sub, sub_eq_zero] at he |
| 32 | |
| 33 | theorem GeneratorReconstruction.CMIntegralGeneratorData.reconstruction_unit_at_root : |
| 34 | aeval u (D.polynomial 1) = (D.conductor : R) := by |
| 35 | have h := D.polynomial_relation_transfer u hu |
| 36 | (p := D.polynomial 1) (q := C (D.conductor : ℤ)) (by |
| 37 | rw [D.reconstruction, aeval_C] |
| 38 | simp) |
| 39 | simpa only [aeval_C, Int.cast_natCast, map_natCast] using h |
| 40 | |
| 41 | theorem GeneratorReconstruction.CMIntegralGeneratorData.reconstruction_mul_at_root |
| 42 | (a b : NumberField.RingOfIntegers E) : |
| 43 | (D.conductor : R) * aeval u (D.polynomial (a * b)) = |
| 44 | aeval u (D.polynomial a) * aeval u (D.polynomial b) := by |
| 45 | have h := D.polynomial_relation_transfer u hu |
| 46 | (p := C (D.conductor : ℤ) * D.polynomial (a * b)) |
| 47 | (q := D.polynomial a * D.polynomial b) (by |
| 48 | simp only [map_mul, map_natCast, D.reconstruction] |
| 49 | ring) |
| 50 | simpa only [map_mul, aeval_C, map_natCast, Int.cast_natCast] using h |
| 51 | |
| 52 | theorem GeneratorReconstruction.CMIntegralGeneratorData.reconstruction_generator_at_root : |
| 53 | aeval u (D.polynomial D.generator) = (D.conductor : R) * u := by |
| 54 | have h := D.polynomial_relation_transfer u hu |
| 55 | (p := D.polynomial D.generator) (q := C (D.conductor : ℤ) * X) (by |
| 56 | simp only [D.reconstruction, map_mul, aeval_X, map_natCast]) |
| 57 | simpa only [map_mul, aeval_C, aeval_X, map_natCast, Int.cast_natCast] using h |
| 58 | |
| 59 | end |
| 60 | |
| 61 | /-! Reconstruct the entire integral CM action from one primitive generator. |
| 62 | Only its minimal-polynomial equation and division of finitely many fixed |
| 63 | polynomials by the conductor are required. Ring identities are proved. -/ |
| 64 | |
| 65 | open _root_.Polynomial _root_.Module |
| 66 | |
| 67 | variable {E : Type} [Field E] [NumberField E] [Algebra ℚ E] [NumberField.IsCMField E] |
| 68 | (D : GeneratorReconstruction.CMIntegralGeneratorData E) {R : Type*} [Ring R] (u : R) |
| 69 | (hu : aeval u (minpoly ℤ (D.generator : E)) = 0) |
| 70 | (hc : Function.Injective (fun r : R => (D.conductor : R) * r)) |
| 71 | |
| 72 | def GeneratorReconstruction.CMIntegralGeneratorData.ringActionOfPolynomialDivision |
| 73 | (v : NumberField.RingOfIntegers E →ₗ[ℤ] R) |
| 74 | (hv : ∀ a, (D.conductor : R) * v a = aeval u (D.polynomial a)) : |
| 75 | NumberField.RingOfIntegers E →+* R where |
| 76 | toFun := v |
| 77 | map_zero' := map_zero v |
| 78 | map_add' := map_add v |
| 79 | map_one' := by |
| 80 | apply hc |
| 81 | change (D.conductor : R) * v 1 = (D.conductor : R) * 1 |
| 82 | rw [hv, D.reconstruction_unit_at_root u hu, mul_one] |
| 83 | map_mul' a b := by |
| 84 | apply hc |
| 85 | apply hc |
| 86 | change (D.conductor : R) * ((D.conductor : R) * v (a * b)) = |
| 87 | (D.conductor : R) * ((D.conductor : R) * (v a * v b)) |
| 88 | rw [hv, D.reconstruction_mul_at_root u hu, ← hv a, ← hv b] |
| 89 | calc |
| 90 | (D.conductor : R) * v a * ((D.conductor : R) * v b) = |
| 91 | (D.conductor : R) * (v a * ((D.conductor : R) * v b)) := mul_assoc _ _ _ |
| 92 | _ = (D.conductor : R) * ((v a * (D.conductor : R)) * v b) := |
| 93 | congrArg (fun z => (D.conductor : R) * z) (mul_assoc _ _ _).symm |
| 94 | _ = (D.conductor : R) * (((D.conductor : R) * v a) * v b) := by |
| 95 | rw [← Nat.cast_comm D.conductor (v a)] |
| 96 | _ = (D.conductor : R) * ((D.conductor : R) * (v a * v b)) := by rw [mul_assoc] |
| 97 | |
| 98 | theorem GeneratorReconstruction.CMIntegralGeneratorData.ringActionOfPolynomialDivision_generator |
| 99 | (v : NumberField.RingOfIntegers E →ₗ[ℤ] R) |
| 100 | (hv : ∀ a, (D.conductor : R) * v a = aeval u (D.polynomial a)) : |
| 101 | D.ringActionOfPolynomialDivision u hu hc v hv D.generator = u := by |
| 102 | apply hc |
| 103 | exact (hv D.generator).trans (D.reconstruction_generator_at_root u hu) |
| 104 | |
| 105 | theorem GeneratorReconstruction.CMIntegralGeneratorData.basis_division_extends |
| 106 | {ι : Type*} (b : Basis ι ℤ (NumberField.RingOfIntegers E)) (v : ι → R) |
| 107 | (hv : ∀ i, (D.conductor : R) * v i = aeval u (D.polynomial (b i))) : |
| 108 | ∀ a, (D.conductor : R) * Finite.Actions.basisExtension b v a = aeval u (D.polynomial a) := by |
| 109 | let L := Finite.Actions.basisExtension b v |
| 110 | have he : (D.conductor : ℤ) • L = (aeval u : ℤ[X] →ₐ[ℤ] R).toLinearMap.comp D.polynomial := by |
| 111 | apply b.ext |
| 112 | intro i |
| 113 | simpa only [L, LinearMap.smul_apply, Finite.Actions.basisExtension_basis, zsmul_eq_mul, |
| 114 | Int.cast_natCast, LinearMap.comp_apply, AlgHom.toLinearMap_apply] using hv i |
| 115 | intro a |
| 116 | have h := LinearMap.congr_fun he a |
| 117 | simpa only [LinearMap.smul_apply, zsmul_eq_mul, Int.cast_natCast, |
| 118 | LinearMap.comp_apply, AlgHom.toLinearMap_apply] using h |
| 119 | |
| 120 | include hu hc in |
| 121 | theorem GeneratorReconstruction.CMIntegralGeneratorData.existsUnique_ring_action_of_basis_division |
| 122 | {ι : Type*} (b : Basis ι ℤ (NumberField.RingOfIntegers E)) (v : ι → R) |
| 123 | (hv : ∀ i, (D.conductor : R) * v i = aeval u (D.polynomial (b i))) : |
| 124 | ∃! ρ : NumberField.RingOfIntegers E →+* R, ρ D.generator = u := by |
| 125 | let h := D.basis_division_extends u b v hv |
| 126 | let ρ := D.ringActionOfPolynomialDivision u hu hc (Finite.Actions.basisExtension b v) h |
| 127 | have hρ : ρ D.generator = u := D.ringActionOfPolynomialDivision_generator u hu hc _ h |
| 128 | refine ⟨ρ, hρ, fun σ hσ => ?_⟩ |
| 129 | exact D.ring_action_eq_of_generator σ ρ hc (hσ.trans hρ.symm) |
| 130 | |
| 131 | end |
| 132 | |
| 133 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.CM |