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.Generic.Fields |
| 2 | |
| 3 | /-! # Spec Field -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.SpecField |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! The function field of a field spectrum, and a criterion identifying |
| 10 | the function field of an integral scheme from an actual generic map. -/ |
| 11 | |
| 12 | set_option backward.isDefEq.respectTransparency false |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | variable (L : Type u) [Field L] |
| 19 | |
| 20 | local instance : Nonempty (⊤ : (Spec (.of L)).Opens) := |
| 21 | ⟨⟨genericPoint (Spec (.of L)), trivial⟩⟩ |
| 22 | |
| 23 | local instance : Algebra L (Spec (.of L)).functionField := |
| 24 | (StructureSheaf.toStalk L (genericPoint (Spec (.of L)))).hom.toAlgebra |
| 25 | |
| 26 | local instance : IsFractionRing L (Spec (.of L)).functionField := |
| 27 | functionField_isFractionRing_of_affine (.of L) |
| 28 | |
| 29 | def fieldIso : CommRingCat.of L ≅ (Spec (.of L)).functionField := |
| 30 | (IsFractionRing.algEquiv L L (Spec (.of L)).functionField).toRingEquiv.toCommRingCatIso |
| 31 | |
| 32 | theorem fieldIso_hom : |
| 33 | (fieldIso L).hom = StructureSheaf.toStalk L (genericPoint (Spec (.of L))) := by |
| 34 | ext a |
| 35 | exact (IsFractionRing.algEquiv L L (Spec (.of L)).functionField).commutes a |
| 36 | |
| 37 | theorem fieldIso_germ : |
| 38 | (Scheme.ΓSpecIso (.of L)).hom ≫ (fieldIso L).hom = |
| 39 | (Spec (.of L)).germToFunctionField ⊤ := by |
| 40 | rw [fieldIso_hom] |
| 41 | change (Scheme.ΓSpecIso (.of L)).hom ≫ (Scheme.ΓSpecIso (.of L)).inv ≫ _ = _ |
| 42 | simp |
| 43 | rfl |
| 44 | |
| 45 | /-- If the pullback from one nonempty chart has fraction field `L`, the |
| 46 | actual generic-stalk map of `Spec L → X` is an isomorphism. -/ |
| 47 | theorem genericFieldMap_bijective_of_chart |
| 48 | {X : Scheme.{u}} [IsIntegral X] (q : Spec (.of L) ⟶ X) |
| 49 | (hη : q (genericPoint (Spec (.of L))) = genericPoint X) |
| 50 | (U : X.Opens) [Nonempty U] (hTop : ⊤ ≤ q ⁻¹ᵁ U) |
| 51 | (A : Type u) [CommRing A] [Algebra A L] [IsFractionRing A L] |
| 52 | (e : Γ(X, U) ≅ CommRingCat.of A) |
| 53 | (he : q.appLE U ⊤ hTop ≫ (Scheme.ΓSpecIso (.of L)).hom = |
| 54 | e.hom ≫ CommRingCat.ofHom (algebraMap A L)) : |
| 55 | Function.Bijective (Cycles.Functoriality.FunctionFields.Construction.genericFieldMap q hη) := by |
| 56 | refine ⟨(Cycles.Functoriality.FunctionFields.Construction.genericFieldMap q hη).hom.injective, ?_⟩ |
| 57 | intro z |
| 58 | obtain ⟨l, rfl⟩ := (fieldIso L).commRingCatIsoToRingEquiv.surjective z |
| 59 | obtain ⟨a, b, _, rfl⟩ := IsFractionRing.div_surjective A l |
| 60 | have h (a : A) : Cycles.Functoriality.FunctionFields.Construction.genericFieldMap q hη |
| 61 | (X.germToFunctionField U (e.inv a)) = (fieldIso L).hom (algebraMap A L a) := by |
| 62 | have hs := Generic.Fields.genericFieldMap_germ_appLE q hη U ⊤ hTop |
| 63 | rw [← fieldIso_germ L, ← Category.assoc, he] at hs |
| 64 | simpa using congrArg (fun t : Γ(X, U) ⟶ (Spec (.of L)).functionField => t (e.inv a)) hs |
| 65 | refine ⟨X.germToFunctionField U (e.inv a) / X.germToFunctionField U (e.inv b), ?_⟩ |
| 66 | rw [map_div₀, h, h, map_div₀] |
| 67 | rfl |
| 68 | |
| 69 | end |
| 70 | |
| 71 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.SpecField |