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.ComplexDeterminantEffective |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ResolutionLocalCokernel |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ResolutionBaseChangeEndpoints |
| 4 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ResolutionRankBalance |
| 5 | |
| 6 | /-! # Two Step Resolution Divisor -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.TwoStepResolutionDivisor |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! A torsion module with a finite free resolution of length two has an |
| 13 | effective principal divisor with its actual height-one localized lengths. -/ |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open _root_.Module _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 18 | open scoped TensorProduct Classical |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | variable (R : Type u) [CommRing R] [IsDomain R] [IsNoetherianRing R] |
| 23 | [IsLocalRing R] [IsIntegrallyClosed R] |
| 24 | (M : ModuleCat.{u} R) [Module.Finite R M] (P : ProjectiveResolution M) |
| 25 | |
| 26 | theorem exists_equation |
| 27 | (hP : ∀ n, Module.Finite R (P.complex.X n) ∧ Module.Free R (P.complex.X n)) |
| 28 | (hd : IsZero (P.complex.X 3)) (r : R) (hr : r ≠ 0) (hM : ∀ x : M, r • x = 0) : |
| 29 | ∃ a : R, a ≠ 0 ∧ ∀ (p : Ideal R) [p.IsPrime], p.height = 1 → |
| 30 | Ring.ord (Localization.AtPrime p) (algebraMap R (Localization.AtPrime p) a) = |
| 31 | Module.length (Localization.AtPrime p) ((Localization.AtPrime p) ⊗[R] M) := by |
| 32 | let : Module.Free R (P.complex.X 0) := (hP 0).2 |
| 33 | let : Module.Free R (P.complex.X 1) := (hP 1).2 |
| 34 | let : Module.Free R (P.complex.X 2) := (hP 2).2 |
| 35 | let : Module.Finite R (P.complex.X 0) := (hP 0).1 |
| 36 | let : Module.Finite R (P.complex.X 1) := (hP 1).1 |
| 37 | let : Module.Finite R (P.complex.X 2) := (hP 2).1 |
| 38 | let a := Module.finBasis R (P.complex.X 2) |
| 39 | let c := Module.finBasis R (P.complex.X 0) |
| 40 | have hdim := ResolutionRankBalance.rank_eq R M P hP hd r hr hM |
| 41 | let b := (Module.finBasis R (P.complex.X 1)).reindex |
| 42 | ((finCongr hdim).trans finSumFinEquiv.symm) |
| 43 | let t := (ResolutionScalarContraction.lift R M P r hM).hom |
| 44 | have hf : Function.Injective (P.complex.d 2 1).hom := |
| 45 | (ModuleCat.mono_iff_injective _).mp ((P.exact_succ 1).mono_g (hd.eq_of_src _ _)) |
| 46 | have ht : Function.Injective ((P.complex.d 1 0).hom.comp t) := by |
| 47 | have he : (P.complex.d 1 0).hom.comp t = r • LinearMap.id := |
| 48 | ModuleCat.hom_ext_iff.mp (ResolutionScalarContraction.lift_comp R M P r hM) |
| 49 | rw [he] |
| 50 | exact smul_right_injective _ hr |
| 51 | obtain ⟨v, hv, ho⟩ := ComplexDeterminantEffective.exists_equation R |
| 52 | (P.complex.d 2 1).hom (P.complex.d 1 0).hom _ hf t ht a b c |
| 53 | (fun p _ _ => ResolutionLocalCokernel.exact R M P (Localization.AtPrime p)) |
| 54 | refine ⟨v, hv, ?_⟩ |
| 55 | intro p hprime hp |
| 56 | exact (ho p hp).trans (ResolutionLocalCokernel.length R M P (Localization.AtPrime p)) |
| 57 | |
| 58 | end |
| 59 | |
| 60 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.TwoStepResolutionDivisor |