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 Mathlib |
| 2 | |
| 3 | /-! # Integral -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.Splitting.Integral.SplitPrimesConstruction |
| 6 | |
| 7 | open _root_.Polynomial _root_.NumberField |
| 8 | open scoped _root_.NumberField |
| 9 | |
| 10 | /-- A number field admits a power basis generated by an algebraic integer. -/ |
| 11 | theorem exists_integral_powerBasis (L : Type*) [Field L] [NumberField L] : |
| 12 | ∃ B : PowerBasis ℚ L, IsIntegral ℤ B.gen := by |
| 13 | let B := Field.powerBasisOfFiniteOfSeparable ℚ L |
| 14 | obtain ⟨m, hm⟩ := IsIntegral.exists_multiple_integral_of_isLocalization |
| 15 | (nonZeroDivisors ℤ) (Rₘ := ℚ) B.gen B.isIntegral_gen |
| 16 | let x : L := (m : ℤ) • B.gen |
| 17 | have hx : IsIntegral ℤ x := hm |
| 18 | have hm0 : ((m : ℤ) : ℚ) ≠ 0 := by exact_mod_cast nonZeroDivisors.coe_ne_zero m |
| 19 | have htop : Algebra.adjoin ℚ {x} = ⊤ := by |
| 20 | apply B.adjoin_eq_top_of_gen_mem_adjoin |
| 21 | have h := (Algebra.adjoin ℚ {x}).smul_mem |
| 22 | (Algebra.subset_adjoin (Set.mem_singleton x)) (((m : ℤ) : ℚ)⁻¹) |
| 23 | convert h using 1 |
| 24 | dsimp [x] |
| 25 | rw [← Int.cast_smul_eq_zsmul ℚ, smul_smul, inv_mul_cancel₀ hm0, one_smul] |
| 26 | let B' := PowerBasis.ofAdjoinEqTop' (hx.tower_top : IsIntegral ℚ x) htop |
| 27 | exact ⟨B', by simpa [B'] using hx⟩ |
| 28 | |
| 29 | /-- The conductor of an integral primitive element contains a nonzero integer. -/ |
| 30 | theorem exists_integer_mem_conductor |
| 31 | (L : Type*) [Field L] [NumberField L] |
| 32 | (B : PowerBasis ℚ L) (hint : IsIntegral ℤ B.gen) : |
| 33 | ∃ d : ℤ, d ≠ 0 ∧ |
| 34 | (d : 𝓞 L) ∈ conductor ℤ (⟨B.gen, hint⟩ : 𝓞 L) := by |
| 35 | let θ : 𝓞 L := ⟨B.gen, hint⟩ |
| 36 | have hdint : IsIntegral ℤ (Algebra.discr ℚ B.basis) := by |
| 37 | apply Algebra.discr_isIntegral |
| 38 | intro i |
| 39 | rw [B.basis_eq_pow] |
| 40 | exact hint.pow _ |
| 41 | obtain ⟨d, hd⟩ := IsIntegrallyClosed.isIntegral_iff.mp hdint |
| 42 | have hd0 : d ≠ 0 := by |
| 43 | intro h |
| 44 | have hn := (Algebra.discr_isUnit_of_basis ℚ B.basis).ne_zero |
| 45 | apply hn |
| 46 | rw [← hd, h, map_zero] |
| 47 | refine ⟨d, hd0, ?_⟩ |
| 48 | change ∀ z : 𝓞 L, (d : 𝓞 L) * z ∈ Algebra.adjoin ℤ {θ} |
| 49 | intro z |
| 50 | have hz := Algebra.discr_mul_isIntegral_mem_adjoin ℚ hint |
| 51 | (NumberField.RingOfIntegers.isIntegral_coe z) |
| 52 | have hmap : (Algebra.adjoin ℤ {θ}).map (IsScalarTower.toAlgHom ℤ (𝓞 L) L) = |
| 53 | Algebra.adjoin ℤ {B.gen} := by |
| 54 | rw [AlgHom.map_adjoin, Set.image_singleton] |
| 55 | rfl |
| 56 | have hz' : algebraMap (𝓞 L) L ((d : 𝓞 L) * z) ∈ |
| 57 | (Algebra.adjoin ℤ {θ}).map (IsScalarTower.toAlgHom ℤ (𝓞 L) L) := by |
| 58 | rw [hmap] |
| 59 | convert hz using 1 |
| 60 | simp only [map_mul, map_intCast, ← hd, Algebra.smul_def] |
| 61 | simp |
| 62 | obtain ⟨y, hy, heq⟩ := hz' |
| 63 | have heq' : y = (d : 𝓞 L) * z := |
| 64 | (FaithfulSMul.algebraMap_injective (𝓞 L) L) heq |
| 65 | exact heq' ▸ hy |
| 66 | |
| 67 | /-- Only finitely many primes divide the conductor exponent. -/ |
| 68 | theorem integral_generator_exponent_ne_zero |
| 69 | (L : Type*) [Field L] [NumberField L] |
| 70 | (B : PowerBasis ℚ L) (hint : IsIntegral ℤ B.gen) : |
| 71 | RingOfIntegers.exponent (⟨B.gen, hint⟩ : 𝓞 L) ≠ 0 := by |
| 72 | obtain ⟨d, hd0, hd⟩ := exists_integer_mem_conductor L B hint |
| 73 | change Ideal.absNorm (Ideal.under ℤ (conductor ℤ (⟨B.gen, hint⟩ : 𝓞 L))) ≠ 0 |
| 74 | rw [ne_eq, Ideal.absNorm_eq_zero_iff] |
| 75 | intro h |
| 76 | have hm : d ∈ Ideal.under ℤ (conductor ℤ (⟨B.gen, hint⟩ : 𝓞 L)) := hd |
| 77 | rw [h, Ideal.mem_bot] at hm |
| 78 | exact hd0 hm |
| 79 | |
| 80 | /-- Normality implies that the integral minimal polynomial splits already |
| 81 | over the ring of integers. -/ |
| 82 | theorem integral_minpoly_splits |
| 83 | (L : Type*) [Field L] [NumberField L] [IsGalois ℚ L] (θ : 𝓞 L) : |
| 84 | ((minpoly ℤ θ).map (algebraMap ℤ (𝓞 L))).Splits := by |
| 85 | have hfield : ((minpoly ℤ θ).map (algebraMap ℤ L)).Splits := by |
| 86 | have h := Normal.splits (inferInstance : Normal ℚ L) (θ : L) |
| 87 | rw [minpoly.isIntegrallyClosed_eq_field_fractions ℚ L θ.isIntegral, |
| 88 | Polynomial.map_map, ← IsScalarTower.algebraMap_eq] at h |
| 89 | exact h |
| 90 | apply Splits.of_splits_map_of_injective (i := algebraMap (𝓞 L) L) |
| 91 | (FaithfulSMul.algebraMap_injective (𝓞 L) L) |
| 92 | · simpa only [Polynomial.map_map, ← IsScalarTower.algebraMap_eq] using hfield |
| 93 | · intro a ha |
| 94 | have ha' : aeval a (minpoly ℤ θ) = 0 := by |
| 95 | simpa only [Polynomial.map_map, ← IsScalarTower.algebraMap_eq, |
| 96 | IsRoot.def, eval_map_algebraMap] using (isRoot_of_mem_roots ha) |
| 97 | exact ⟨⟨a, ⟨minpoly ℤ θ, minpoly.monic θ.isIntegral, ha'⟩⟩, rfl⟩ |
| 98 | |
| 99 | end OAI.NumberTheory.Splitting.Integral.SplitPrimesConstruction |