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.Quotients.FiniteDescent.DenominatorIdealEq |
| 2 | import Mathlib.RingTheory.Flat.EquationalCriterion |
| 3 | import Mathlib.RingTheory.Ideal.Maps |
| 4 | |
| 5 | /-! # Denominator Base -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.DenominatorBase.Construction.DenominatorBaseChange |
| 8 | |
| 9 | /-! Denominator ideals commute with flat extension inside a common fraction field. -/ |
| 10 | |
| 11 | variable {R S F : Type*} [CommRing R] [CommRing S] [Field F] |
| 12 | variable [IsDomain R] [IsDomain S] [Algebra R S] [Algebra R F] [Algebra S F] |
| 13 | variable [IsScalarTower R S F] [IsFractionRing R F] [IsFractionRing S F] [Module.Flat R S] |
| 14 | |
| 15 | omit [IsDomain S] in |
| 16 | theorem map (x : F) : |
| 17 | (DenominatorIdealEq.Construction.DenominatorIdeal.ideal (R := R) x).map (algebraMap R S) = |
| 18 | DenominatorIdealEq.Construction.DenominatorIdeal.ideal (R := S) x := by |
| 19 | classical |
| 20 | apply le_antisymm |
| 21 | · rw [Ideal.map_le_iff_le_comap] |
| 22 | rintro r ⟨s, hs⟩ |
| 23 | refine ⟨algebraMap R S s, ?_⟩ |
| 24 | simpa only [← IsScalarTower.algebraMap_apply R S F] using hs |
| 25 | obtain ⟨a, b, hab⟩ := IsLocalization.exists_mk'_eq (nonZeroDivisors R) x |
| 26 | have hb : (b : R) ≠ 0 := nonZeroDivisors.ne_zero b.2 |
| 27 | have hx : x = algebraMap R F a / algebraMap R F b := by |
| 28 | rw [← hab, IsFractionRing.mk'_eq_div] |
| 29 | have hbS : algebraMap R S b ≠ 0 := by |
| 30 | intro h |
| 31 | apply hb |
| 32 | apply IsFractionRing.injective R F |
| 33 | rw [map_zero, IsScalarTower.algebraMap_apply R S F, h, map_zero] |
| 34 | have hxS : x = algebraMap S F (algebraMap R S a) / |
| 35 | algebraMap S F (algebraMap R S b) := by |
| 36 | simpa only [← IsScalarTower.algebraMap_apply R S F] using hx |
| 37 | intro r hr |
| 38 | obtain ⟨s, hs⟩ := (DenominatorIdealEq.Construction.DenominatorIdeal.mem_iff_dvd _ _ r hbS hxS).mp hr |
| 39 | have hrel : ∑ i : Fin 2, (![a, -(b : R)] i) • (![r, s] i) = 0 := by |
| 40 | simp only [Fin.sum_univ_two, Matrix.cons_val_zero, Matrix.cons_val_one, |
| 41 | Algebra.smul_def, map_neg, neg_mul, ← sub_eq_add_neg, sub_eq_zero] |
| 42 | exact hs |
| 43 | obtain ⟨k, c, y, hxy, hc⟩ := Module.Flat.isTrivialRelation_of_sum_smul_eq_zero hrel |
| 44 | have h0 : r = ∑ j, algebraMap R S (c 0 j) * y j := by |
| 45 | simpa only [Algebra.smul_def, Matrix.cons_val_zero] using hxy 0 |
| 46 | rw [h0] |
| 47 | apply Submodule.sum_mem |
| 48 | intro j _ |
| 49 | apply Ideal.mul_mem_right |
| 50 | apply Ideal.mem_map_of_mem |
| 51 | apply (DenominatorIdealEq.Construction.DenominatorIdeal.mem_iff_dvd a b (c 0 j) hb hx).mpr |
| 52 | refine ⟨c 1 j, ?_⟩ |
| 53 | have h := hc j |
| 54 | simpa only [Fin.sum_univ_two, Matrix.cons_val_zero, Matrix.cons_val_one, |
| 55 | neg_mul, ← sub_eq_add_neg, sub_eq_zero] using h |
| 56 | |
| 57 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.DenominatorBase.Construction.DenominatorBaseChange |