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.DiagonalTor |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ExternalTensorFinite |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ExternalTensorSupport |
| 4 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.SplitSurjectiveSpectrum |
| 5 | |
| 6 | /-! # Diagonal Support -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.DiagonalSupport |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Finite inputs with isolated intersection give an isolated pairing |
| 13 | of their external product with the native diagonal, at the corresponding |
| 14 | maximal prime of the product ring. -/ |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | set_option backward.isDefEq.respectTransparency.types false |
| 18 | |
| 19 | open _root_.CategoryTheory |
| 20 | open scoped TensorProduct |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.DiagonalTensor OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.DiagonalTensorNaturality OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.DiagonalTor |
| 25 | |
| 26 | variable (K R : Type u) [Field K] [CommRing R] [Algebra K R] |
| 27 | |
| 28 | attribute [local instance] DiagonalTensor.diagonalAlgebra ExternalTensorFunctor.scalar ExternalTensorFunctor.tower |
| 29 | |
| 30 | abbrev second : R →+* DiagonalTensor.Ring K R := (Algebra.TensorProduct.includeRight : R →ₐ[K] R ⊗[K] R).toRingHom |
| 31 | |
| 32 | theorem multiplication_surjective : Function.Surjective (DiagonalTensor.multiplication K R) := |
| 33 | fun r => ⟨DiagonalTensorNaturality.first K R r, mul_one r⟩ |
| 34 | |
| 35 | theorem first_section : (DiagonalTensor.multiplication K R).comp (DiagonalTensorNaturality.first K R) = RingHom.id R := by |
| 36 | ext r |
| 37 | exact mul_one r |
| 38 | |
| 39 | theorem finite_external (M N : ModuleCat.{u} R) [Module.Finite R M] [Module.Finite R N] : |
| 40 | Module.Finite (DiagonalTensor.Ring K R) (DiagonalTor.external K R M N) := ExternalTensorFinite.finite K R R M N |
| 41 | |
| 42 | theorem finite_diagonal : Module.Finite (DiagonalTensor.Ring K R) (DiagonalTensorNaturality.diagonal K R) := |
| 43 | Module.Finite.of_surjective (Algebra.linearMap (DiagonalTensor.Ring K R) R) (multiplication_surjective K R) |
| 44 | |
| 45 | theorem kernel_le (p : PrimeSpectrum (DiagonalTensor.Ring K R)) (hp : p ∈ Module.support (DiagonalTensor.Ring K R) (DiagonalTensorNaturality.diagonal K R)) : |
| 46 | RingHom.ker (DiagonalTensor.multiplication K R) ≤ p.asIdeal := by |
| 47 | change p ∈ Module.support (DiagonalTensor.Ring K R) R at hp |
| 48 | rw [Module.support_of_algebra] at hp |
| 49 | exact hp |
| 50 | |
| 51 | theorem comaps_eq (p : PrimeSpectrum (DiagonalTensor.Ring K R)) (hp : p ∈ Module.support (DiagonalTensor.Ring K R) (DiagonalTensorNaturality.diagonal K R)) : |
| 52 | PrimeSpectrum.comap (DiagonalTensorNaturality.first K R) p = PrimeSpectrum.comap (second K R) p := by |
| 53 | apply PrimeSpectrum.ext |
| 54 | ext r |
| 55 | change DiagonalTensorNaturality.first K R r ∈ p.asIdeal ↔ second K R r ∈ p.asIdeal |
| 56 | have hd : DiagonalTensorNaturality.first K R r - second K R r ∈ p.asIdeal := kernel_le K R p hp (by |
| 57 | change DiagonalTensor.multiplication K R (DiagonalTensorNaturality.first K R r - second K R r) = 0 |
| 58 | rw [map_sub] |
| 59 | change r * 1 - 1 * r = 0 |
| 60 | rw [mul_one, one_mul, sub_self]) |
| 61 | constructor |
| 62 | · intro hr |
| 63 | simpa only [sub_sub_cancel] using p.asIdeal.sub_mem hr hd |
| 64 | · intro hr |
| 65 | simpa only [sub_add_cancel] using p.asIdeal.add_mem hd hr |
| 66 | |
| 67 | variable [IsLocalRing R] |
| 68 | |
| 69 | def point : PrimeSpectrum (DiagonalTensor.Ring K R) := PrimeSpectrum.comap (DiagonalTensor.multiplication K R) (IsLocalRing.closedPoint R) |
| 70 | |
| 71 | theorem maximal : (point K R).asIdeal.IsMaximal := by |
| 72 | let : (IsLocalRing.closedPoint R).asIdeal.IsMaximal := inferInstanceAs (IsLocalRing.maximalIdeal R).IsMaximal |
| 73 | exact Ideal.comap_isMaximal_of_surjective (DiagonalTensor.multiplication K R) (multiplication_surjective K R) |
| 74 | |
| 75 | theorem isolated (M N : ModuleCat.{u} R) [Module.Finite R M] [Module.Finite R N] |
| 76 | (hp : Module.support R M ∩ Module.support R N ⊆ {IsLocalRing.closedPoint R}) : |
| 77 | Module.support (DiagonalTensor.Ring K R) (DiagonalTor.external K R M N) ∩ Module.support (DiagonalTensor.Ring K R) (DiagonalTensorNaturality.diagonal K R) ⊆ {point K R} := by |
| 78 | intro p h |
| 79 | have hm := ExternalTensorSupport.left K R R M N p h.1 |
| 80 | have hn := ExternalTensorSupport.right K R R M N p h.1 |
| 81 | change PrimeSpectrum.comap (second K R) p ∈ Module.support R N at hn |
| 82 | rw [← comaps_eq K R p h.2] at hn |
| 83 | have he : PrimeSpectrum.comap (DiagonalTensorNaturality.first K R) p = IsLocalRing.closedPoint R := Set.mem_singleton_iff.mp (hp ⟨hm, hn⟩) |
| 84 | have hpoint := SplitSurjectiveSpectrum.comap R (DiagonalTensor.Ring K R) (DiagonalTensor.multiplication K R) (DiagonalTensorNaturality.first K R) |
| 85 | (first_section K R) p (kernel_le K R p h.2) |
| 86 | rw [he] at hpoint |
| 87 | exact Set.mem_singleton_iff.mpr hpoint.symm |
| 88 | |
| 89 | end |
| 90 | |
| 91 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.DiagonalSupport |