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.CycleClass.Geometric.SupportFiniteType |
| 2 | import OAI.AlgebraicGeometry.Foundations.Scheme.ClosedImmersionDimension |
| 3 | import OAI.AlgebraicGeometry.Foundations.Scheme.SpecScalarTransport |
| 4 | import Mathlib.AlgebraicGeometry.FunctionField |
| 5 | |
| 6 | /-! # Support Affine Quotient -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Foundations.Scheme.SupportAffineQuotient |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! |
| 13 | # Affine coordinate rings of actual reduced irreducible supports |
| 14 | |
| 15 | An ambient affine open meets a reduced irreducible support in the spectrum of |
| 16 | the quotient by its vanishing ideal. The actual support function field is the |
| 17 | fraction field of this quotient. All maps below come from the closed immersion |
| 18 | and from the structure sheaf, rather than from extra algebraic data. |
| 19 | -/ |
| 20 | |
| 21 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.TopologicalSpace |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | variable {X : Scheme.{u}} |
| 26 | |
| 27 | /-- The open part of a support lying over an ambient affine open. -/ |
| 28 | abbrev supportAffineOpen (Z : IrreducibleCloseds X) (U : X.affineOpens) : |
| 29 | (CycleClass.Geometric.GenericPoint.reducedSupportScheme Z).Opens := |
| 30 | CycleClass.Geometric.GenericPoint.reducedSupportι Z ⁻¹ᵁ U |
| 31 | |
| 32 | /-- The actual quotient coordinate ring of the support on an ambient affine open. -/ |
| 33 | abbrev supportAffineQuotient (Z : IrreducibleCloseds X) (U : X.affineOpens) := |
| 34 | Γ(X, U) ⧸ (CycleClass.Geometric.GenericPoint.reducedSupportIdeal Z).ideal U |
| 35 | |
| 36 | /-- A closed immersion has affine inverse image of an affine open. -/ |
| 37 | theorem supportAffineOpen_isAffine (Z : IrreducibleCloseds X) (U : X.affineOpens) : |
| 38 | IsAffineOpen (supportAffineOpen Z U) := |
| 39 | U.2.preimage (CycleClass.Geometric.GenericPoint.reducedSupportι Z) |
| 40 | |
| 41 | /-- The sheaf-theoretic sections are exactly the quotient by the support ideal. -/ |
| 42 | def supportAffineSectionsEquiv (Z : IrreducibleCloseds X) (U : X.affineOpens) : |
| 43 | Γ(CycleClass.Geometric.GenericPoint.reducedSupportScheme Z, supportAffineOpen Z U) ≃+* supportAffineQuotient Z U := |
| 44 | ((CycleClass.Geometric.GenericPoint.reducedSupportIdeal Z).subschemeObjIso U).commRingCatIsoToRingEquiv |
| 45 | |
| 46 | /-- Pullback of an ambient regular function is its quotient class. -/ |
| 47 | theorem supportAffineSectionsEquiv_app (Z : IrreducibleCloseds X) (U : X.affineOpens) |
| 48 | (a : Γ(X, U)) : |
| 49 | supportAffineSectionsEquiv Z U ((CycleClass.Geometric.GenericPoint.reducedSupportι Z).app U a) = |
| 50 | Ideal.Quotient.mk ((CycleClass.Geometric.GenericPoint.reducedSupportIdeal Z).ideal U) a := by |
| 51 | change ((CycleClass.Geometric.GenericPoint.reducedSupportIdeal Z).subschemeObjIso U).hom |
| 52 | ((CycleClass.Geometric.GenericPoint.reducedSupportIdeal Z).subschemeι.app U a) = _ |
| 53 | rw [(CycleClass.Geometric.GenericPoint.reducedSupportIdeal Z).subschemeι_app U] |
| 54 | simp |
| 55 | |
| 56 | /-- A nonempty open of the integral support has an integral coordinate ring. -/ |
| 57 | instance supportAffineQuotient_isDomain (Z : IrreducibleCloseds X) (U : X.affineOpens) |
| 58 | [Nonempty (supportAffineOpen Z U)] : IsDomain (supportAffineQuotient Z U) := |
| 59 | (supportAffineSectionsEquiv Z U).symm.injective.isDomain |
| 60 | (supportAffineSectionsEquiv Z U).symm |
| 61 | |
| 62 | /-- In particular the affine vanishing ideal is prime whenever the open meets |
| 63 | the support. -/ |
| 64 | theorem supportAffineIdeal_isPrime (Z : IrreducibleCloseds X) (U : X.affineOpens) |
| 65 | [Nonempty (supportAffineOpen Z U)] : ((CycleClass.Geometric.GenericPoint.reducedSupportIdeal Z).ideal U).IsPrime := |
| 66 | (Ideal.Quotient.isDomain_iff_prime _).mp inferInstance |
| 67 | |
| 68 | /-- The quotient maps to the actual function field by its section isomorphism |
| 69 | and the germ at the generic point. -/ |
| 70 | abbrev supportAffineQuotientFunctionFieldAlgebra |
| 71 | (Z : IrreducibleCloseds X) (U : X.affineOpens) [Nonempty (supportAffineOpen Z U)] : |
| 72 | Algebra (supportAffineQuotient Z U) (CycleClass.Geometric.GenericPoint.reducedSupportScheme Z).functionField := |
| 73 | ((algebraMap Γ(CycleClass.Geometric.GenericPoint.reducedSupportScheme Z, supportAffineOpen Z U) |
| 74 | (CycleClass.Geometric.GenericPoint.reducedSupportScheme Z).functionField).comp |
| 75 | (supportAffineSectionsEquiv Z U).symm.toRingHom).toAlgebra |
| 76 | |
| 77 | /-- The actual function field of the support is the fraction field of its |
| 78 | affine quotient coordinate ring. -/ |
| 79 | theorem supportAffineQuotient_isFractionRing |
| 80 | (Z : IrreducibleCloseds X) (U : X.affineOpens) [Nonempty (supportAffineOpen Z U)] : |
| 81 | letI := supportAffineQuotientFunctionFieldAlgebra Z U |
| 82 | IsFractionRing (supportAffineQuotient Z U) (CycleClass.Geometric.GenericPoint.reducedSupportScheme Z).functionField := by |
| 83 | let := supportAffineQuotientFunctionFieldAlgebra Z U |
| 84 | let := functionField_isFractionRing_of_isAffineOpen (CycleClass.Geometric.GenericPoint.reducedSupportScheme Z) |
| 85 | (supportAffineOpen Z U) (supportAffineOpen_isAffine Z U) |
| 86 | exact IsFractionRing.of_ringEquiv_left (supportAffineSectionsEquiv Z U).symm |
| 87 | (fun _ => rfl) |
| 88 | |
| 89 | variable {K : Type u} [CommRing K] |
| 90 | |
| 91 | /-- The base algebra on the quotient is induced by the ambient structure map. -/ |
| 92 | abbrev supportAffineQuotientScalarAlgebra (Z : IrreducibleCloseds X) |
| 93 | (f : X ⟶ Spec (.of K)) (U : X.affineOpens) : Algebra K (supportAffineQuotient Z U) := |
| 94 | letI := SpecScalarTransport.specSectionScalarAlgebra f U |
| 95 | inferInstance |
| 96 | |
| 97 | /-- The affine quotient identification respects the actual base scalar map. -/ |
| 98 | def supportAffineSectionsAlgEquiv (Z : IrreducibleCloseds X) |
| 99 | (f : X ⟶ Spec (.of K)) (U : X.affineOpens) : |
| 100 | letI := SpecScalarTransport.specSectionScalarAlgebra (CycleClass.Geometric.SupportFiniteType.supportStructureMap Z f) (supportAffineOpen Z U) |
| 101 | letI := supportAffineQuotientScalarAlgebra Z f U |
| 102 | Γ(CycleClass.Geometric.GenericPoint.reducedSupportScheme Z, supportAffineOpen Z U) ≃ₐ[K] supportAffineQuotient Z U := by |
| 103 | letI := SpecScalarTransport.specSectionScalarAlgebra f U |
| 104 | letI := SpecScalarTransport.specSectionScalarAlgebra (CycleClass.Geometric.SupportFiniteType.supportStructureMap Z f) (supportAffineOpen Z U) |
| 105 | letI := supportAffineQuotientScalarAlgebra Z f U |
| 106 | refine { supportAffineSectionsEquiv Z U with commutes' := ?_ } |
| 107 | intro r |
| 108 | calc |
| 109 | supportAffineSectionsEquiv Z U |
| 110 | (algebraMap K Γ(CycleClass.Geometric.GenericPoint.reducedSupportScheme Z, supportAffineOpen Z U) r) = |
| 111 | supportAffineSectionsEquiv Z U ((CycleClass.Geometric.GenericPoint.reducedSupportι Z).app U |
| 112 | (algebraMap K Γ(X, U) r)) := by |
| 113 | exact congrArg (supportAffineSectionsEquiv Z U) |
| 114 | ((ClosedImmersionDimension.sectionPullbackAlgHom (CycleClass.Geometric.GenericPoint.reducedSupportι Z) f U).commutes r).symm |
| 115 | _ = Ideal.Quotient.mk ((CycleClass.Geometric.GenericPoint.reducedSupportIdeal Z).ideal U) |
| 116 | (algebraMap K Γ(X, U) r) := supportAffineSectionsEquiv_app Z U _ |
| 117 | _ = algebraMap K (supportAffineQuotient Z U) r := rfl |
| 118 | |
| 119 | end |
| 120 | |
| 121 | end OAI.AlgebraicGeometry.Foundations.Scheme.SupportAffineQuotient |