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.AlgebraicGeometry.FunctionField |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.Separated |
| 3 | |
| 4 | /-! # Affine Rational Of -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.AffineRationalOf.Construction.AffineRationalDomain |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! An affine open in an integral separated scheme is the domain of its rational coordinate ring. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | theorem lift_ringHom {R S F : Type*} [CommRing R] [CommRing S] [CommRing F] |
| 17 | (α : S →+* F) (hα : Function.Injective α) (γ : R →+* F) |
| 18 | (h : ∀ a : R, ∃ b : S, α b = γ a) : |
| 19 | ∃ ρ : R →+* S, α.comp ρ = γ := by |
| 20 | choose ρ hρ using h |
| 21 | refine ⟨{ toFun := ρ |
| 22 | map_one' := hα (by rw [hρ, map_one, map_one]) |
| 23 | map_mul' := fun a b => hα (by rw [hρ, map_mul, map_mul, hρ, hρ]) |
| 24 | map_zero' := hα (by rw [hρ, map_zero, map_zero]) |
| 25 | map_add' := fun a b => hα (by rw [hρ, map_add, map_add, hρ, hρ]) }, ?_⟩ |
| 26 | ext a |
| 27 | exact hρ a |
| 28 | |
| 29 | theorem mem_of_regular_coordinates {X : Scheme.{u}} [IsIntegral X] [X.IsSeparated] |
| 30 | (U : X.affineOpens) [Nonempty U.1] (x : X) |
| 31 | (h : ∀ a : Γ(X, U), ∃ b : X.presheaf.stalk x, |
| 32 | algebraMap _ X.functionField b = X.germToFunctionField U.1 a) : x ∈ U.1 := by |
| 33 | let α : (X.presheaf.stalk x) →+* X.functionField := algebraMap _ _ |
| 34 | have hα : Function.Injective α := IsFractionRing.injective _ _ |
| 35 | obtain ⟨ρ, hρ⟩ := lift_ringHom α hα (X.germToFunctionField U.1).hom h |
| 36 | let j : Spec X.functionField ⟶ Spec (X.presheaf.stalk x) := Spec.map (CommRingCat.ofHom α) |
| 37 | have : IsDominant j := by |
| 38 | refine ⟨(PrimeSpectrum.denseRange_comap_iff_ker_le_nilRadical α).mpr ?_⟩ |
| 39 | rw [(RingHom.injective_iff_ker_eq_bot α).mp hα] |
| 40 | exact bot_le |
| 41 | let k : Spec (X.presheaf.stalk x) ⟶ X := Spec.map (CommRingCat.ofHom ρ) ≫ U.2.fromSpec |
| 42 | have he : j ≫ k = j ≫ X.fromSpecStalk x := by |
| 43 | have hg : j ≫ X.fromSpecStalk x = X.fromSpecStalk (genericPoint X) := |
| 44 | Scheme.SpecMap_stalkSpecializes_fromSpecStalk ((genericPoint_spec X).specializes (Set.mem_univ x)) |
| 45 | rw [hg] |
| 46 | change Spec.map (CommRingCat.ofHom α) ≫ Spec.map (CommRingCat.ofHom ρ) ≫ U.2.fromSpec = _ |
| 47 | rw [← Spec.map_comp_assoc] |
| 48 | have heq : CommRingCat.ofHom ρ ≫ CommRingCat.ofHom α = X.germToFunctionField U.1 := by |
| 49 | apply CommRingCat.hom_ext |
| 50 | exact hρ |
| 51 | rw [heq] |
| 52 | exact U.2.fromSpecStalk_eq_fromSpecStalk |
| 53 | (((genericPoint_spec X).mem_open_set_iff U.1.isOpen).mpr |
| 54 | ⟨(inferInstance : Nonempty U.1).some.1, Set.mem_univ _, |
| 55 | (inferInstance : Nonempty U.1).some.2⟩) |
| 56 | have hk : k = X.fromSpecStalk x := ext_of_isDominant j he |
| 57 | have hx : k (IsLocalRing.closedPoint (X.presheaf.stalk x)) = x := by |
| 58 | rw [hk, Scheme.fromSpecStalk_closedPoint] |
| 59 | rw [← hx] |
| 60 | change U.2.fromSpec ((Spec.map (CommRingCat.ofHom ρ)) |
| 61 | (IsLocalRing.closedPoint (X.presheaf.stalk x))) ∈ U.1 |
| 62 | exact (Set.ext_iff.mp U.2.range_fromSpec _).mp (Set.mem_range_self _) |
| 63 | |
| 64 | end |
| 65 | |
| 66 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.AffineRationalOf.Construction.AffineRationalDomain |