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.Divisors.LineBundles.Proper.ResidueBoundary |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Affine.CartierIntersection |
| 3 | |
| 4 | /-! # Proper Reciprocity -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.Affine.ProperReciprocity.BundleCycles |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # LineBundleCycles: actual residue reciprocity for a proper pair on a normal local surface |
| 12 | |
| 13 | Every codimension-one point sees at least one equation as a unit, by the |
| 14 | proved minimal-prime criterion and the proper-parameter hypothesis. |
| 15 | The full residue boundary is therefore the actual Cartier intersection |
| 16 | difference, which vanishes by the checked geometric surface symmetry. |
| 17 | -/ |
| 18 | |
| 19 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.Order |
| 20 | |
| 21 | variable (R : Type) [CommRing R] [IsDomain R] [IsNoetherianRing R] |
| 22 | |
| 23 | local instance affineProperReciprocity_stalkAlgebra (x : Spec (CommRingCat.of R)) : |
| 24 | Algebra R ((Spec (CommRingCat.of R)).presheaf.stalk x) := StructureSheaf.stalkAlgebra R x |
| 25 | |
| 26 | def affineFunctionUnit (a : R) (ha : a ≠ 0) : (Spec (CommRingCat.of R)).functionFieldˣ := |
| 27 | Units.mk0 (RegularDivisor.BundleCycles.globalFunctionFieldElement (Spec (CommRingCat.of R)) (Divisor.BundleCycles.affineAmbientSection R a)) |
| 28 | (RegularDivisor.BundleCycles.globalFunctionFieldElement_ne_zero (Spec (CommRingCat.of R)) (Divisor.BundleCycles.affineAmbientSection R a) |
| 29 | ((map_ne_zero_iff _ (ConcreteCategory.bijective_of_isIso (Scheme.ΓSpecIso (CommRingCat.of R)).inv).injective).mpr ha)) |
| 30 | |
| 31 | omit [IsNoetherianRing R] in |
| 32 | theorem affineNormal_stalk_integrallyClosed [IsIntegrallyClosed R] (x : Spec (CommRingCat.of R)) : |
| 33 | IsIntegrallyClosed ((Spec (CommRingCat.of R)).presheaf.stalk x) := by |
| 34 | let : x.asIdeal.IsPrime := (show PrimeSpectrum R from x).isPrime |
| 35 | let : IsLocalization x.asIdeal.primeCompl ((Spec (CommRingCat.of R)).presheaf.stalk x) := |
| 36 | StructureSheaf.IsLocalization.to_stalk R (show PrimeSpectrum R from x) |
| 37 | exact isIntegrallyClosed_of_isLocalization ((Spec (CommRingCat.of R)).presheaf.stalk x) |
| 38 | x.asIdeal.primeCompl x.asIdeal.primeCompl_le_nonZeroDivisors |
| 39 | |
| 40 | omit [IsDomain R] [IsNoetherianRing R] in |
| 41 | theorem affineRegularGerm_isUnit (a : R) (x : Spec (CommRingCat.of R)) (ha : a ∉ x.asIdeal) : |
| 42 | IsUnit ((Spec (CommRingCat.of R)).presheaf.germ ⊤ x (by trivial) (Divisor.BundleCycles.affineAmbientSection R a)) := by |
| 43 | have hu : x ∈ (Spec (CommRingCat.of R)).basicOpen (Divisor.BundleCycles.affineAmbientSection R a) := by |
| 44 | unfold Divisor.BundleCycles.affineAmbientSection |
| 45 | rw [basicOpen_eq_of_affine] |
| 46 | exact ha |
| 47 | exact (Scheme.mem_basicOpen (Spec (CommRingCat.of R)) (Divisor.BundleCycles.affineAmbientSection R a) x (by trivial)).mp hu |
| 48 | |
| 49 | variable [IsLocalRing R] |
| 50 | |
| 51 | theorem affineProperPair_unit_at_divisor (a b : R) (hb : b ≠ 0) |
| 52 | (hdim : ringKrullDim R = 2) |
| 53 | (hab : (Ideal.span {a, b}).radical = IsLocalRing.maximalIdeal R) |
| 54 | (x : Spec (CommRingCat.of R)) (hx : coheight x = 1) : |
| 55 | IsUnit ((Spec (CommRingCat.of R)).presheaf.germ ⊤ x (by trivial) (Divisor.BundleCycles.affineAmbientSection R a)) ∨ |
| 56 | IsUnit ((Spec (CommRingCat.of R)).presheaf.germ ⊤ x (by trivial) (Divisor.BundleCycles.affineAmbientSection R b)) := by |
| 57 | by_cases hbP : b ∈ x.asIdeal |
| 58 | · exact Or.inl (affineRegularGerm_isUnit R a x |
| 59 | (SurfaceParameters.BundleCycles.surfaceParameter_not_mem_minimal a b hdim hab x.asIdeal (Divisor.BundleCycles.affineDivisorPoint_mem_minimal b hb x hx hbP))) |
| 60 | · exact Or.inr (affineRegularGerm_isUnit R b x hbP) |
| 61 | |
| 62 | theorem affineProperResidueBoundary_zero [IsIntegrallyClosed R] |
| 63 | (a b : R) (ha : a ≠ 0) (hb : b ≠ 0) (hdim : ringKrullDim R = 2) |
| 64 | (hab : (Ideal.span {a, b}).radical = IsLocalRing.maximalIdeal R) : |
| 65 | Normal.PointResidue.BundleCycles.normalResidueBoundaryCycle (Spec (CommRingCat.of R)) (affineNormal_stalk_integrallyClosed R) |
| 66 | (affineFunctionUnit R a ha) (affineFunctionUnit R b hb) = 0 := by |
| 67 | rw [Proper.ResidueBoundary.BundleCycles.normalResidueBoundaryCycle_proper (Spec (CommRingCat.of R)) (affineNormal_stalk_integrallyClosed R) |
| 68 | (Divisor.BundleCycles.affineAmbientSection R a) (Divisor.BundleCycles.affineAmbientSection R b) |
| 69 | (affineProperPair_unit_at_divisor R a b hb hdim hab) |
| 70 | (affineFunctionUnit R a ha) (affineFunctionUnit R b hb) rfl rfl] |
| 71 | exact sub_eq_zero.mpr (CartierIntersection.BundleCycles.affinePrincipalCartier_intersections_comm a b ha hb hdim hab) |
| 72 | |
| 73 | end |
| 74 | |
| 75 | end OAI.AlgebraicGeometry.Divisors.LineBundles.Affine.ProperReciprocity.BundleCycles |