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.AbelianModuli.HilbertConstruction.Projective.ProjectivePresentations |
| 2 | |
| 3 | /-! # Parameter Loci -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Projective |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | Projective presentations pass to closed parameter loci. Quasi-compact open |
| 11 | parts of these loci have actual quasi-projective presentations over the base. |
| 12 | -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | variable {S : Scheme.{u}} {X Y : Over S} |
| 19 | |
| 20 | def ProjectivePresentations.ProjectivePresentation.ofClosedImmersion (P : ProjectivePresentations.ProjectivePresentation X) |
| 21 | (j : Y ⟶ X) [IsClosedImmersion j.left] : ProjectivePresentations.ProjectivePresentation Y where |
| 22 | dimension := P.dimension |
| 23 | embedding := j ≫ P.embedding |
| 24 | closedImmersion := IsClosedImmersion.comp j.left P.embedding.left |
| 25 | |
| 26 | def ProjectivePresentations.ProjectivePresentation.quasiProjectiveOpen (P : ProjectivePresentations.ProjectivePresentation X) |
| 27 | (j : Y ⟶ X) [IsOpenImmersion j.left] [QuasiCompact j.left] : |
| 28 | ProjectivePresentations.QuasiProjectivePresentation Y where |
| 29 | locallyFiniteType := by |
| 30 | have : IsProper X.hom := P.proper |
| 31 | rw [← j.w] |
| 32 | infer_instance |
| 33 | quasiCompact := by |
| 34 | have : IsProper X.hom := P.proper |
| 35 | rw [← j.w] |
| 36 | infer_instance |
| 37 | compactification := X |
| 38 | projective := P |
| 39 | embedding := j |
| 40 | openImmersion := inferInstance |
| 41 | |
| 42 | def ProjectivePresentations.ProjectivePresentation.quasiProjective (P : ProjectivePresentations.ProjectivePresentation X) : |
| 43 | ProjectivePresentations.QuasiProjectivePresentation X := by |
| 44 | have : IsOpenImmersion (𝟙 X : X ⟶ X).left := |
| 45 | inferInstanceAs (IsOpenImmersion (𝟙 X.left)) |
| 46 | have : QuasiCompact (𝟙 X : X ⟶ X).left := |
| 47 | inferInstanceAs (QuasiCompact (𝟙 X.left)) |
| 48 | exact P.quasiProjectiveOpen (𝟙 X) |
| 49 | |
| 50 | end |
| 51 | |
| 52 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Projective |