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.Quotients.FiniteDescent.ProperIntegral |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.SchemeTheoreticallyDominant |
| 3 | import Mathlib.RingTheory.IntegralClosure.IntegrallyClosed |
| 4 | |
| 5 | /-! # Proper Birational -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.ProperBirational.Construction.ProperBirationalFunctions |
| 8 | |
| 9 | /-! A proper reduced scheme with a dense rational lift of the generic |
| 10 | point of a normal affine base has exactly the functions of that base. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | open OAI.AlgebraicGeometry.Quotients.FiniteDescent.ProperIntegral.Construction.ProperIntegralFunctions |
| 17 | |
| 18 | theorem isIso_scalarMap |
| 19 | {R : Type u} [CommRing R] [IsDomain R] [IsIntegrallyClosed R] |
| 20 | {K : Type u} [Field K] [Algebra R K] [IsFractionRing R K] |
| 21 | {X : Scheme.{u}} [IsReduced X] |
| 22 | (f : X ⟶ Spec (.of R)) [IsProper f] |
| 23 | (g : Spec (.of K) ⟶ X) [IsDominant g] |
| 24 | (hg : g ≫ f = Spec.map (CommRingCat.ofHom (algebraMap R K))) : |
| 25 | IsIso (ProperIntegral.Construction.ProperIntegralFunctions.scalarMap f) := by |
| 26 | let e : Γ(X, ⊤) ⟶ CommRingCat.of K := |
| 27 | g.appTop ≫ (Scheme.ΓSpecIso (.of K)).hom |
| 28 | have hce : ProperIntegral.Construction.ProperIntegralFunctions.scalarMap f ≫ e = CommRingCat.ofHom (algebraMap R K) := by |
| 29 | calc |
| 30 | ProperIntegral.Construction.ProperIntegralFunctions.scalarMap f ≫ e = (Scheme.ΓSpecIso (.of R)).inv ≫ |
| 31 | (g ≫ f).appTop ≫ (Scheme.ΓSpecIso (.of K)).hom := by |
| 32 | simp only [ProperIntegral.Construction.ProperIntegralFunctions.scalarMap, e, Scheme.Hom.comp_appTop, Category.assoc] |
| 33 | _ = _ := by |
| 34 | rw [hg, Scheme.ΓSpecIso_naturality, Iso.inv_hom_id_assoc] |
| 35 | have : IsSchemeTheoreticallyDominant g := .of_isDominant g |
| 36 | have : X.IsSeparated := ⟨by |
| 37 | rw [← Limits.terminal.comp_from f] |
| 38 | infer_instance⟩ |
| 39 | have he : Function.Injective e := |
| 40 | (ConcreteCategory.bijective_of_isIso (Scheme.ΓSpecIso (.of K)).hom).1.comp |
| 41 | (g.app_injective ⊤) |
| 42 | have hc : Function.Injective (ProperIntegral.Construction.ProperIntegralFunctions.scalarMap f) := by |
| 43 | intro a b hab |
| 44 | apply IsFractionRing.injective R K |
| 45 | have hh := congrArg (fun t : CommRingCat.of R ⟶ CommRingCat.of K => t a) hce |
| 46 | have hh' := congrArg (fun t : CommRingCat.of R ⟶ CommRingCat.of K => t b) hce |
| 47 | exact hh.symm.trans ((congrArg e hab).trans hh') |
| 48 | have hs : Function.Surjective (ProperIntegral.Construction.ProperIntegralFunctions.scalarMap f) := by |
| 49 | intro a |
| 50 | have ha := (ProperIntegral.Construction.ProperIntegralFunctions.isIntegral f a).map e.hom |
| 51 | have hc' : e.hom.comp (ProperIntegral.Construction.ProperIntegralFunctions.scalarMap f).hom = algebraMap R K := |
| 52 | congrArg CommRingCat.Hom.hom hce |
| 53 | rw [hc'] at ha |
| 54 | obtain ⟨r, hr⟩ := (isIntegrallyClosed_iff K).mp ‹IsIntegrallyClosed R› ha |
| 55 | refine ⟨r, he ?_⟩ |
| 56 | exact (congrArg (fun t : CommRingCat.of R ⟶ CommRingCat.of K => t r) hce).trans hr |
| 57 | exact (ConcreteCategory.isIso_iff_bijective (ProperIntegral.Construction.ProperIntegralFunctions.scalarMap f)).mpr ⟨hc, hs⟩ |
| 58 | |
| 59 | theorem isIso_appTop |
| 60 | {R : Type u} [CommRing R] [IsDomain R] [IsIntegrallyClosed R] |
| 61 | {K : Type u} [Field K] [Algebra R K] [IsFractionRing R K] |
| 62 | {X : Scheme.{u}} [IsReduced X] |
| 63 | (f : X ⟶ Spec (.of R)) [IsProper f] |
| 64 | (g : Spec (.of K) ⟶ X) [IsDominant g] |
| 65 | (hg : g ≫ f = Spec.map (CommRingCat.ofHom (algebraMap R K))) : |
| 66 | IsIso f.appTop := by |
| 67 | have hi := isIso_scalarMap f g hg |
| 68 | change IsIso ((Scheme.ΓSpecIso (.of R)).inv ≫ f.appTop) at hi |
| 69 | exact IsIso.of_isIso_comp_left (Scheme.ΓSpecIso (.of R)).inv f.appTop |
| 70 | |
| 71 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.ProperBirational.Construction.ProperBirationalFunctions |