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.IntersectionTheory.ProjectionFormula.Smooth.Normal |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.CurveSupports |
| 3 | import Mathlib.RingTheory.DiscreteValuationRing.TFAE |
| 4 | import Mathlib.RingTheory.OrderOfVanishing.Noetherian |
| 5 | import Mathlib.RingTheory.KrullDimension.Field |
| 6 | |
| 7 | /-! # Generic Unit -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Divisor.GenericUnit |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! A rational function of order zero at a divisor is represented by an |
| 14 | actual unit of its generic ambient stalk. Smoothness supplies the DVR. -/ |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.Order |
| 19 | |
| 20 | theorem stalk_dvr (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (m : ℕ) |
| 21 | [SmoothOfRelativeDimension m X.structureMap] (A : X.DimensionCycleSupport 1) : |
| 22 | letI := X.stalk_isDomain (CycleClass.Thom.IntersectionGeometry.supportPoint A.val) |
| 23 | IsDiscreteValuationRing (X.carrier.presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPoint A.val)) := by |
| 24 | let R := X.carrier.presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPoint A.val) |
| 25 | let : IsDomain R := X.stalk_isDomain (CycleClass.Thom.IntersectionGeometry.supportPoint A.val) |
| 26 | let : IsIntegrallyClosed R := Smooth.Normal.stalk_integrallyClosed X.structureMap _ |
| 27 | have hx := CurveSupports.coheight_one X m A |
| 28 | let : Ring.KrullDimLE 1 R := krullDimLE_of_coheight_le hx.le |
| 29 | let : Ring.DimensionLEOne R := ⟨fun hn hp => hp.isMaximal_of_ne_bot hn⟩ |
| 30 | let : IsDedekindDomain R := |
| 31 | { toIsDomain := inferInstance |
| 32 | toIsDedekindRing := |
| 33 | { toIsNoetherian := inferInstance |
| 34 | toDimensionLEOne := inferInstance |
| 35 | toIsIntegralClosure := inferInstance } } |
| 36 | have hdim : ringKrullDim R = 1 := by |
| 37 | rw [ringKrullDim_stalk_eq_coheight, hx] |
| 38 | rfl |
| 39 | have hnf : ¬ IsField R := by |
| 40 | intro h |
| 41 | have he := ringKrullDim_eq_zero_of_isField h |
| 42 | rw [hdim] at he |
| 43 | exact one_ne_zero he |
| 44 | exact ((IsDiscreteValuationRing.TFAE R hnf).out 1 3).mpr (inferInstance : IsDedekindDomain R) |
| 45 | |
| 46 | theorem exists_unit_of_order_zero (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (m : ℕ) |
| 47 | [SmoothOfRelativeDimension m X.structureMap] [IsIntegral X.carrier] |
| 48 | (A : X.DimensionCycleSupport 1) (f : X.carrier.functionField) (hf : f ≠ 0) |
| 49 | (hord : X.carrier.ord f (CycleClass.Thom.IntersectionGeometry.supportPoint A.val) = 0) : |
| 50 | ∃ a : X.carrier.presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPoint A.val), IsUnit a ∧ |
| 51 | algebraMap (X.carrier.presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPoint A.val)) X.carrier.functionField a = f := by |
| 52 | let R := X.carrier.presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPoint A.val) |
| 53 | let : IsDiscreteValuationRing R := stalk_dvr X m A |
| 54 | have hx := CurveSupports.coheight_one X m A |
| 55 | have hfrac : Ring.ordFrac R f = 1 := by |
| 56 | exact (Scheme.ord_eq_iff hx hf).mp hord |
| 57 | have hmem : f ∈ MonoidHom.mker (Ring.ordFrac R) := hfrac |
| 58 | rw [Ring.mker_ordFrac_eq_isUnitSubmonoid] at hmem |
| 59 | exact hmem |
| 60 | |
| 61 | end |
| 62 | |
| 63 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Divisor.GenericUnit |