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.SpecField |
| 2 | |
| 3 | /-! # Fraction Field -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.FractionField |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Canonical comparison of an affine scheme's native function field with |
| 10 | any specified fraction field, including the actual generic-stalk pullback. -/ |
| 11 | |
| 12 | set_option backward.isDefEq.respectTransparency false |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | variable (A : Type u) [CommRing A] [IsDomain A] |
| 19 | (L : Type u) [Field L] [Algebra A L] [IsFractionRing A L] |
| 20 | |
| 21 | local instance (B : Type u) [CommRing B] [IsDomain B] : |
| 22 | Algebra B (Spec (.of B)).functionField := |
| 23 | (StructureSheaf.toStalk B (genericPoint (Spec (.of B)))).hom.toAlgebra |
| 24 | |
| 25 | local instance : IsFractionRing A (Spec (.of A)).functionField := |
| 26 | functionField_isFractionRing_of_affine (.of A) |
| 27 | |
| 28 | def fieldIso : (Spec (.of A)).functionField ≅ CommRingCat.of L := |
| 29 | (IsLocalization.algEquiv (nonZeroDivisors A) (Spec (.of A)).functionField L).toRingEquiv.toCommRingCatIso |
| 30 | |
| 31 | theorem toStalk_fieldIso : |
| 32 | StructureSheaf.toStalk A (genericPoint (Spec (.of A))) ≫ (fieldIso A L).hom = |
| 33 | CommRingCat.ofHom (algebraMap A L) := by |
| 34 | ext a |
| 35 | exact (IsLocalization.algEquiv (nonZeroDivisors A) (Spec (.of A)).functionField L).commutes a |
| 36 | |
| 37 | theorem genericMap_genericPoint : |
| 38 | (Spec.map (CommRingCat.ofHom (algebraMap A L))) (genericPoint (Spec (.of L))) = |
| 39 | genericPoint (Spec (.of A)) := by |
| 40 | rw [genericPoint_eq_bot_of_affine, genericPoint_eq_bot_of_affine] |
| 41 | apply PrimeSpectrum.ext |
| 42 | exact (RingHom.injective_iff_ker_eq_bot (algebraMap A L)).mp (IsFractionRing.injective A L) |
| 43 | |
| 44 | theorem genericMap_fieldMap : |
| 45 | Cycles.Functoriality.FunctionFields.Construction.genericFieldMap (Spec.map (CommRingCat.ofHom (algebraMap A L))) |
| 46 | (genericMap_genericPoint A L) = (fieldIso A L).hom ≫ (SpecField.fieldIso L).hom := by |
| 47 | apply CommRingCat.hom_ext |
| 48 | apply IsFractionRing.ringHom_ext (A := A) |
| 49 | intro a |
| 50 | have h := Cycles.Functoriality.FunctionFields.Construction.genericFieldMap_germ |
| 51 | (Spec.map (CommRingCat.ofHom (algebraMap A L))) (genericMap_genericPoint A L) |
| 52 | have hs : StructureSheaf.toStalk A (genericPoint (Spec (.of A))) ≫ |
| 53 | Cycles.Functoriality.FunctionFields.Construction.genericFieldMap (Spec.map (CommRingCat.ofHom (algebraMap A L))) |
| 54 | (genericMap_genericPoint A L) = |
| 55 | CommRingCat.ofHom (algebraMap A L) ≫ |
| 56 | StructureSheaf.toStalk L (genericPoint (Spec (.of L))) := by |
| 57 | change (Scheme.ΓSpecIso (.of A)).inv ≫ |
| 58 | (Spec (.of A)).presheaf.germ ⊤ (genericPoint (Spec (.of A))) (by trivial) ≫ |
| 59 | Cycles.Functoriality.FunctionFields.Construction.genericFieldMap (Spec.map (CommRingCat.ofHom (algebraMap A L))) |
| 60 | (genericMap_genericPoint A L) = |
| 61 | CommRingCat.ofHom (algebraMap A L) ≫ (Scheme.ΓSpecIso (.of L)).inv ≫ |
| 62 | (Spec (.of L)).presheaf.germ ⊤ (genericPoint (Spec (.of L))) (by trivial) |
| 63 | rw [h, Scheme.ΓSpecIso_inv_naturality_assoc] |
| 64 | have hr : StructureSheaf.toStalk A (genericPoint (Spec (.of A))) ≫ |
| 65 | (fieldIso A L).hom ≫ (SpecField.fieldIso L).hom = |
| 66 | CommRingCat.ofHom (algebraMap A L) ≫ |
| 67 | StructureSheaf.toStalk L (genericPoint (Spec (.of L))) := by |
| 68 | rw [← Category.assoc, toStalk_fieldIso, SpecField.fieldIso_hom] |
| 69 | exact congrArg (fun t : CommRingCat.of A ⟶ (Spec (.of L)).functionField => t a) (hs.trans hr.symm) |
| 70 | |
| 71 | end |
| 72 | |
| 73 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.FractionField |