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.AffineFunctionUnits |
| 2 | |
| 3 | /-! # Prime Pair Reciprocity -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.PrimePairReciprocity.BundleCycles |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # LineBundleCycles: residue reciprocity for prime elements, including a shared component |
| 11 | |
| 12 | Distinct prime elements have disjoint divisor components, so proper |
| 13 | reciprocity applies. If one divides the other, primality makes the |
| 14 | remaining factor a unit; bilinearity, the diagonal identity, and the |
| 15 | actual unit case prove vanishing on that shared component as well. |
| 16 | -/ |
| 17 | |
| 18 | open _root_.AlgebraicGeometry _root_.CategoryTheory |
| 19 | |
| 20 | variable (R : Type) [CommRing R] [IsDomain R] [IsNoetherianRing R] |
| 21 | variable [IsLocalRing R] [IsIntegrallyClosed R] |
| 22 | |
| 23 | theorem affinePrimePairResidueBoundary_zero (p q : R) (hp : Prime p) (hq : Prime q) |
| 24 | (hdim : ringKrullDim R = 2) : |
| 25 | Normal.PointResidue.BundleCycles.normalResidueBoundaryCycle (Spec (CommRingCat.of R)) (Affine.ProperReciprocity.BundleCycles.affineNormal_stalk_integrallyClosed R) |
| 26 | (Affine.ProperReciprocity.BundleCycles.affineFunctionUnit R p hp.ne_zero) (Affine.ProperReciprocity.BundleCycles.affineFunctionUnit R q hq.ne_zero) = 0 := by |
| 27 | by_cases hdvd : q ∣ p |
| 28 | · obtain ⟨r, hr⟩ := hdvd |
| 29 | have hru : IsUnit r := (hp.irreducible.isUnit_or_isUnit hr).resolve_left hq.not_isUnit |
| 30 | have he : Affine.ProperReciprocity.BundleCycles.affineFunctionUnit R p hp.ne_zero = |
| 31 | Affine.ProperReciprocity.BundleCycles.affineFunctionUnit R q hq.ne_zero * Affine.ProperReciprocity.BundleCycles.affineFunctionUnit R r hru.ne_zero := by |
| 32 | subst p |
| 33 | exact AffineFunctionUnits.BundleCycles.affineFunctionUnit_mul R q r hq.ne_zero hru.ne_zero |
| 34 | rw [he, ResidueBoundaryAddition.BundleCycles.normalResidueBoundaryCycle_mul_left, ResidueBoundaryAddition.BundleCycles.normalResidueBoundaryCycle_self, |
| 35 | AffineFunctionUnits.BundleCycles.affineResidueBoundary_unit_left R r hru, zero_add] |
| 36 | · apply AffineFunctionUnits.BundleCycles.affineDisjointResidueBoundary_zero R p q hp.ne_zero hq.ne_zero hdim |
| 37 | intro P hP |
| 38 | let : (Ideal.span {q}).IsPrime := (Ideal.span_singleton_prime hq.ne_zero).mpr hq |
| 39 | rw [Ideal.minimalPrimes_eq_subsingleton_self, Set.mem_singleton_iff] at hP |
| 40 | subst P |
| 41 | exact fun h => hdvd (Ideal.mem_span_singleton.mp h) |
| 42 | |
| 43 | end |
| 44 | |
| 45 | end OAI.AlgebraicGeometry.Divisors.LineBundles.PrimePairReciprocity.BundleCycles |