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.Foundations.Scheme.SpecScalarTransport |
| 2 | import OAI.AlgebraicGeometry.Betti.AffineDimension |
| 3 | |
| 4 | /-! # Function Field Scalar -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Foundations.Scheme.FunctionFieldScalar |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # The canonical scalar structure on a scheme's function field |
| 12 | |
| 13 | For an irreducible scheme over `Spec K`, scalar constants enter its function |
| 14 | field through the actual global-sections map and the germ at the generic point. |
| 15 | The compatibility with sections of every nonempty open is proved from the |
| 16 | sheaf restriction/germ identity. |
| 17 | -/ |
| 18 | |
| 19 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | variable (K : Type u) [CommRing K] |
| 24 | |
| 25 | /-- The established identification of scalars with global functions on `Spec K`. -/ |
| 26 | def specGlobalScalarEquiv : K ≃+* Γ(Spec (.of K), ⊤) := |
| 27 | (Scheme.ΓSpecIso (.of K)).symm.commRingCatIsoToRingEquiv |
| 28 | |
| 29 | @[simp] |
| 30 | theorem specGlobalScalarEquiv_toRingHom : |
| 31 | (specGlobalScalarEquiv K).toRingHom = (Scheme.ΓSpecIso (.of K)).inv.hom := rfl |
| 32 | |
| 33 | /-- The actual scalar algebra structure on global functions of `Spec K`. -/ |
| 34 | abbrev specGlobalScalarAlgebra : Algebra K Γ(Spec (.of K), ⊤) := |
| 35 | (Scheme.ΓSpecIso (.of K)).inv.hom.toAlgebra |
| 36 | |
| 37 | variable {K} {X : Scheme.{u}} [IrreducibleSpace X] |
| 38 | |
| 39 | /-- Scalar constants mapped by the structure morphism and then by the generic germ. -/ |
| 40 | def functionFieldScalarMap (f : X ⟶ Spec (.of K)) : K →+* X.functionField := |
| 41 | (Betti.AffineDimension.Realization.functionFieldBaseMap f).hom.comp (Scheme.ΓSpecIso (.of K)).inv.hom |
| 42 | |
| 43 | /-- The canonical `K`-algebra structure on the actual function field of `X`. -/ |
| 44 | abbrev functionFieldScalarAlgebra (f : X ⟶ Spec (.of K)) : Algebra K X.functionField := |
| 45 | (functionFieldScalarMap f).toAlgebra |
| 46 | |
| 47 | /-- This map is explicitly the structure-map pullback followed by the generic germ. -/ |
| 48 | @[simp] |
| 49 | theorem functionFieldScalarMap_apply (f : X ⟶ Spec (.of K)) (c : K) : |
| 50 | functionFieldScalarMap f c = |
| 51 | X.presheaf.germ ⊤ (genericPoint X) (by trivial) |
| 52 | (f.appTop ((Scheme.ΓSpecIso (.of K)).inv c)) := rfl |
| 53 | |
| 54 | /-- Restricting a scalar section to a nonempty open before taking its generic germ |
| 55 | produces the same element of the function field. -/ |
| 56 | theorem specSectionScalarMap_germ (f : X ⟶ Spec (.of K)) |
| 57 | (U : X.Opens) [Nonempty U] : |
| 58 | (X.germToFunctionField U).hom.comp (SpecScalarTransport.specSectionScalarMap f U) = |
| 59 | functionFieldScalarMap f := by |
| 60 | exact congrArg |
| 61 | (fun g : Γ(Spec (.of K), ⊤) ⟶ X.functionField => |
| 62 | g.hom.comp (Scheme.ΓSpecIso (.of K)).inv.hom) |
| 63 | (Betti.AffineDimension.Realization.sectionBaseMap_germ f U) |
| 64 | |
| 65 | /-- Canonical scalar constants, sections, and the function field form a scalar tower. -/ |
| 66 | theorem functionFieldScalar_isScalarTower (f : X ⟶ Spec (.of K)) |
| 67 | (U : X.Opens) [Nonempty U] : |
| 68 | letI := SpecScalarTransport.specSectionScalarAlgebra f U |
| 69 | letI := functionFieldScalarAlgebra f |
| 70 | IsScalarTower K Γ(X, U) X.functionField := by |
| 71 | let := SpecScalarTransport.specSectionScalarAlgebra f U |
| 72 | let := functionFieldScalarAlgebra f |
| 73 | apply IsScalarTower.of_algebraMap_eq' |
| 74 | exact (specSectionScalarMap_germ f U).symm |
| 75 | |
| 76 | /-- The scalar algebra is compatible with the original global-sections base algebra |
| 77 | used in the affine common-dimension theorem. -/ |
| 78 | theorem functionFieldBaseScalar_isScalarTower (f : X ⟶ Spec (.of K)) : |
| 79 | letI := specGlobalScalarAlgebra K |
| 80 | letI := Betti.AffineDimension.Realization.functionFieldBaseAlgebra f |
| 81 | letI := functionFieldScalarAlgebra f |
| 82 | IsScalarTower K Γ(Spec (.of K), ⊤) X.functionField := by |
| 83 | let := specGlobalScalarAlgebra K |
| 84 | let := Betti.AffineDimension.Realization.functionFieldBaseAlgebra f |
| 85 | let := functionFieldScalarAlgebra f |
| 86 | apply IsScalarTower.of_algebraMap_eq' |
| 87 | rfl |
| 88 | |
| 89 | /-- The base map in this tower is a proved ring isomorphism, hence surjective. -/ |
| 90 | theorem specGlobalScalarAlgebra_surjective : |
| 91 | letI := specGlobalScalarAlgebra K |
| 92 | Function.Surjective (algebraMap K Γ(Spec (.of K), ⊤)) := by |
| 93 | exact (specGlobalScalarEquiv K).surjective |
| 94 | |
| 95 | end |
| 96 | |
| 97 | end OAI.AlgebraicGeometry.Foundations.Scheme.FunctionFieldScalar |