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.Divisors.LineBundles.Normal.LocalValuation |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.BirationalValuationOf |
| 3 | |
| 4 | /-! # Positive Order Is -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.PositiveOrderIs.BundleCycles.PositiveOrder |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Positive order in a DVR means that the rational function is an |
| 11 | actual element of the maximal ideal. This is the local input for covering |
| 12 | all zeros by the normalized zero-parameter model. -/ |
| 13 | |
| 14 | open _root_.AlgebraicGeometry |
| 15 | |
| 16 | theorem stalk_isDVR {X : Scheme} [IsIntegral X] [IsLocallyNoetherian X] |
| 17 | (x : X) [IsIntegrallyClosed (X.presheaf.stalk x)] (hx : Order.coheight x = 1) : |
| 18 | IsDiscreteValuationRing (X.presheaf.stalk x) := by |
| 19 | let R := X.presheaf.stalk x |
| 20 | let : Ring.KrullDimLE 1 R := krullDimLE_of_coheight_le hx.le |
| 21 | let : Ring.DimensionLEOne R := ⟨fun hn hp => hp.isMaximal_of_ne_bot hn⟩ |
| 22 | let : IsDedekindDomain R := |
| 23 | { toIsDomain := inferInstance |
| 24 | toIsDedekindRing := |
| 25 | { toIsNoetherian := inferInstance |
| 26 | toDimensionLEOne := inferInstance |
| 27 | toIsIntegralClosure := inferInstance } } |
| 28 | have hn : ¬ IsField R := by |
| 29 | intro hf |
| 30 | have hzero := ringKrullDim_eq_zero_of_isField hf |
| 31 | change ringKrullDim (X.presheaf.stalk x) = 0 at hzero |
| 32 | rw [ringKrullDim_stalk_eq_coheight, hx] at hzero |
| 33 | exact (by decide : (1 : WithBot ℕ∞) ≠ 0) hzero |
| 34 | have ht : IsDiscreteValuationRing R ↔ IsDedekindDomain R := |
| 35 | (IsDiscreteValuationRing.TFAE R hn).out 1 3 |
| 36 | exact ht.mpr inferInstance |
| 37 | |
| 38 | theorem exists_maximalIdeal_element (R L : Type*) [CommRing R] [IsDomain R] |
| 39 | [IsDiscreteValuationRing R] [Field L] [Algebra R L] [IsFractionRing R L] |
| 40 | (g : L) (hg : g ≠ 0) (hpos : 0 < WithZero.log (Ring.ordFrac R g)) : |
| 41 | ∃ a : R, a ∈ IsLocalRing.maximalIdeal R ∧ algebraMap R L a = g := by |
| 42 | have ho0 : Ring.ordFrac R g ≠ 0 := (map_ne_zero (Ring.ordFrac R (K := L))).mpr hg |
| 43 | have ho : (1 : WithZero (Multiplicative ℤ)) < Ring.ordFrac R g := by |
| 44 | simpa only [WithZero.exp_zero] using |
| 45 | (WithZero.lt_log_iff_exp_lt ho0).mp hpos |
| 46 | have hv : (IsDiscreteValuationRing.maximalIdeal R).valuation L g ≤ 1 := by |
| 47 | rw [Ring.ordFrac_eq_valuation_inv] at ho |
| 48 | exact ((one_lt_inv₀ (zero_lt_iff.mpr ((map_ne_zero _).mpr hg))).mp ho).le |
| 49 | obtain ⟨a, ha⟩ := IsDiscreteValuationRing.exists_lift_of_le_one hv |
| 50 | refine ⟨a, ?_, ha⟩ |
| 51 | change ¬ IsUnit a |
| 52 | intro hu |
| 53 | have he := Ring.ordFrac_of_isUnit (K := L) hu |
| 54 | rw [ha] at he |
| 55 | exact (ne_of_gt ho) he |
| 56 | |
| 57 | theorem exists_stalk_element {X : Scheme} [IsIntegral X] [IsLocallyNoetherian X] |
| 58 | (x : X) [IsIntegrallyClosed (X.presheaf.stalk x)] |
| 59 | (g : X.functionField) (hg : g ≠ 0) (hpos : 0 < X.ord g x) : |
| 60 | ∃ a : X.presheaf.stalk x, a ∈ IsLocalRing.maximalIdeal (X.presheaf.stalk x) ∧ |
| 61 | algebraMap (X.presheaf.stalk x) X.functionField a = g := by |
| 62 | have hx : Order.coheight x = 1 := by |
| 63 | by_contra h |
| 64 | rw [Scheme.ord_eq_zero_of_coheight_neq_one h] at hpos |
| 65 | exact (lt_irrefl 0) hpos |
| 66 | let := stalk_isDVR x hx |
| 67 | rw [Scheme.ord_eq_ordHom_of_coheight_eq_one hx] at hpos |
| 68 | exact exists_maximalIdeal_element (X.presheaf.stalk x) X.functionField g hg hpos |
| 69 | |
| 70 | end |
| 71 | |
| 72 | end OAI.AlgebraicGeometry.Divisors.LineBundles.PositiveOrderIs.BundleCycles.PositiveOrder |