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.Finite.ResolutionDivisor |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.NormalDivisibility |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.PrimeFiltrationMultiplicity |
| 4 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.PrimeQuotientLocalization |
| 5 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Finite.BoundedResolution |
| 6 | |
| 7 | /-! # Projective Prime Principal -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Finite.ProjectivePrimePrincipal |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! A height-one prime whose quotient has finite projective |
| 14 | dimension is principal in a normal Noetherian local domain. The generator comes |
| 15 | from its actual finite free resolution. -/ |
| 16 | |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 20 | open scoped TensorProduct Classical |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | variable (R : Type u) [CommRing R] [IsDomain R] [IsNoetherianRing R] |
| 25 | [IsLocalRing R] [IsIntegrallyClosed R] |
| 26 | |
| 27 | theorem principal (p : Ideal R) [p.IsPrime] (hp : p.height = 1) (d : ℕ) |
| 28 | [HasProjectiveDimensionLE (ModuleCat.of R (R ⧸ p)) d] : p.IsPrincipal := by |
| 29 | have hp₀ : p ≠ ⊥ := by |
| 30 | intro h |
| 31 | rw [h, Ideal.height_bot] at hp |
| 32 | exact zero_ne_one hp |
| 33 | obtain ⟨r, hrp, hr⟩ := Submodule.exists_mem_ne_zero_of_ne_bot hp₀ |
| 34 | let M := ModuleCat.of R (R ⧸ p) |
| 35 | obtain ⟨a, ha, ho⟩ := ResolutionDivisor.exists_equation R M d r hr (PrimeQuotientLocalization.annihilated R p r hrp) |
| 36 | have he : p = Ideal.span {a} := by |
| 37 | apply NormalDivisibility.PrimePrincipalFromOrders.span_eq R p hp a ha |
| 38 | intro q hprime hq |
| 39 | rw [ho q hq] |
| 40 | have hlen := PrimeFiltrationMultiplicity.localized_prime_length R |
| 41 | ⟨q, hprime⟩ ⟨p, inferInstance⟩ hq hp₀ |
| 42 | have heq : (⟨p, inferInstance⟩ : PrimeSpectrum R) = ⟨q, hprime⟩ ↔ q = p := by |
| 43 | constructor |
| 44 | · intro h |
| 45 | exact (congrArg PrimeSpectrum.asIdeal h).symm |
| 46 | · intro h |
| 47 | exact PrimeSpectrum.ext h.symm |
| 48 | change Module.length (Localization.AtPrime q) ((Localization.AtPrime q) ⊗[R] (R ⧸ p)) = _ at hlen |
| 49 | change Module.length (Localization.AtPrime q) ((Localization.AtPrime q) ⊗[R] (R ⧸ p)) = _ |
| 50 | simpa only [heq] using hlen |
| 51 | exact ⟨a, he⟩ |
| 52 | |
| 53 | end |
| 54 | |
| 55 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Finite.ProjectivePrimePrincipal |