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.StalkFiber |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Flat.Order |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Divisor.DivisorRestriction |
| 4 | import Mathlib.RingTheory.KrullDimension.Field |
| 5 | |
| 6 | /-! # Order -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Smooth.Order |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! A smooth morphism preserves the native integer order at a |
| 13 | codimension-one point mapping to a codimension-one point. -/ |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.Order |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | theorem maximalIdeal_map (R S : Type u) [CommRing R] [IsLocalRing R] |
| 22 | [CommRing S] [IsLocalRing S] [IsDomain S] [Ring.KrullDimLE 1 S] |
| 23 | (σ : R →+* S) (hR : IsLocalRing.maximalIdeal R ≠ ⊥) (hinj : Function.Injective σ) |
| 24 | [IsDomain (S ⧸ (IsLocalRing.maximalIdeal R).map σ)] : |
| 25 | (IsLocalRing.maximalIdeal R).map σ = IsLocalRing.maximalIdeal S := by |
| 26 | let J := (IsLocalRing.maximalIdeal R).map σ |
| 27 | have hp : J.IsPrime := (Ideal.Quotient.isDomain_iff_prime J).mp inferInstance |
| 28 | have hn : J ≠ ⊥ := by |
| 29 | obtain ⟨a, ha, hane⟩ := (Submodule.ne_bot_iff (IsLocalRing.maximalIdeal R)).mp hR |
| 30 | intro hz |
| 31 | have h : σ a ∈ J := Ideal.mem_map_of_mem σ ha |
| 32 | rw [hz, Ideal.mem_bot] at h |
| 33 | exact hane (hinj (h.trans σ.map_zero.symm)) |
| 34 | exact IsLocalRing.eq_maximalIdeal (hp.isMaximal_of_ne_bot hn) |
| 35 | |
| 36 | theorem ord_smooth {X Y : Scheme.{u}} [IsIntegral X] [IsIntegral Y] |
| 37 | [IsLocallyNoetherian X] [IsLocallyNoetherian Y] |
| 38 | (f : X ⟶ Y) [Smooth f] (hη : f (genericPoint X) = genericPoint Y) |
| 39 | (x : X) (hx : coheight x = 1) (hy : coheight (f x) = 1) (g : Y.functionField) : |
| 40 | X.ord (Cycles.Functoriality.FunctionFields.Construction.genericFieldMap f hη g) x = Y.ord g (f x) := by |
| 41 | let R := Y.presheaf.stalk (f x) |
| 42 | let S := X.presheaf.stalk x |
| 43 | let : Algebra R S := (f.stalkMap x).hom.toAlgebra |
| 44 | let : IsLocalHom (algebraMap R S) := f.toLRSHom.prop x |
| 45 | let : Module.Flat R S := Flat.stalkMap f x |
| 46 | let : Ring.KrullDimLE 1 R := krullDimLE_of_coheight_le hy.le |
| 47 | let : Ring.KrullDimLE 1 S := krullDimLE_of_coheight_le hx.le |
| 48 | let : IsDomain (S ⧸ (IsLocalRing.maximalIdeal R).map (algebraMap R S)) := |
| 49 | StalkFiber.quotient_domain f x |
| 50 | have hinj : Function.Injective (algebraMap R S) := by |
| 51 | intro a b hab |
| 52 | apply IsFractionRing.injective R Y.functionField |
| 53 | apply (Cycles.Functoriality.FunctionFields.Construction.genericFieldMap f hη).hom.injective |
| 54 | rw [Divisor.DivisorRestriction.genericFieldMap_stalk, Divisor.DivisorRestriction.genericFieldMap_stalk] |
| 55 | exact congrArg (algebraMap S X.functionField) hab |
| 56 | have hn : IsLocalRing.maximalIdeal R ≠ ⊥ := by |
| 57 | intro h |
| 58 | have hf : IsField R := IsLocalRing.isField_iff_maximalIdeal_eq.mpr h |
| 59 | have hd := ringKrullDim_eq_zero_of_isField hf |
| 60 | rw [ringKrullDim_stalk_eq_coheight, hy] at hd |
| 61 | exact one_ne_zero hd |
| 62 | have hm := maximalIdeal_map R S (algebraMap R S) hn hinj |
| 63 | rw [Scheme.ord_eq_ordHom_of_coheight_eq_one hx, Scheme.ord_eq_ordHom_of_coheight_eq_one hy] |
| 64 | exact congrArg WithZero.log (ProjectionFormula.Flat.Order.ordFrac_eq R S hm hinj |
| 65 | (Cycles.Functoriality.FunctionFields.Construction.genericFieldMap f hη).hom (Divisor.DivisorRestriction.genericFieldMap_stalk f hη x) g) |
| 66 | |
| 67 | end |
| 68 | |
| 69 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Smooth.Order |