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.Smooth.FiniteCoverModels |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.Separated |
| 3 | |
| 4 | /-! # Affine Intersections -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.AffineIntersections |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A smooth separated quasi-compact scheme has a finite collection of affine intersections. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | variable {R : Type u} [CommRing R] (X : Over (Spec (.of R))) |
| 17 | |
| 18 | theorem overSpec_schemeSeparated [IsSeparated X.hom] : X.left.IsSeparated := by |
| 19 | constructor |
| 20 | have h : IsSeparated (X.hom ≫ terminal.from (Spec (.of R))) := inferInstance |
| 21 | simpa only [terminal.comp_from] using h |
| 22 | |
| 23 | variable [CompactSpace X.left] |
| 24 | |
| 25 | abbrev finiteAffineCoverIndex := X.left.affineCover.finiteSubcover.I₀ |
| 26 | |
| 27 | def finiteAffineChartOpen (i : finiteAffineCoverIndex X) : X.left.Opens := |
| 28 | (X.left.affineCover.finiteSubcover.f i).opensRange |
| 29 | |
| 30 | theorem finiteAffineChartOpen_affine (i : finiteAffineCoverIndex X) : |
| 31 | IsAffineOpen (finiteAffineChartOpen X i) := by |
| 32 | have : IsAffine (X.left.affineCover.finiteSubcover.X i) := by |
| 33 | change IsAffine (Spec _) |
| 34 | infer_instance |
| 35 | exact isAffineOpen_opensRange (X.left.affineCover.finiteSubcover.f i) |
| 36 | |
| 37 | theorem finiteAffineChartOpen_cover (x : X.left) : ∃ i, x ∈ finiteAffineChartOpen X i := by |
| 38 | obtain ⟨i, y, hy⟩ := X.left.affineCover.finiteSubcover.exists_eq x |
| 39 | exact ⟨i, y, hy⟩ |
| 40 | |
| 41 | abbrev finiteIntersectionIndex := {S : Finset (finiteAffineCoverIndex X) // S.Nonempty} |
| 42 | |
| 43 | instance finiteIntersectionIndex_finite : Finite (finiteIntersectionIndex X) := by |
| 44 | classical |
| 45 | infer_instance |
| 46 | |
| 47 | def finiteIntersectionOpen (S : finiteIntersectionIndex X) : X.left.Opens := |
| 48 | ⨅ i : S.val, finiteAffineChartOpen X i.val |
| 49 | |
| 50 | theorem finiteIntersectionOpen_affine [IsSeparated X.hom] (S : finiteIntersectionIndex X) : |
| 51 | IsAffineOpen (finiteIntersectionOpen X S) := by |
| 52 | have : X.left.IsSeparated := overSpec_schemeSeparated X |
| 53 | have : Nonempty S.val := by |
| 54 | obtain ⟨i, hi⟩ := S.property |
| 55 | exact ⟨⟨i, hi⟩⟩ |
| 56 | exact IsAffineOpen.iInf (fun i : S.val => finiteAffineChartOpen_affine X i.val) |
| 57 | |
| 58 | abbrev finiteIntersectionChart (S : finiteIntersectionIndex X) : Over (Spec (.of R)) := |
| 59 | Over.mk ((finiteIntersectionOpen X S).ι ≫ X.hom) |
| 60 | |
| 61 | instance finiteIntersectionChart_affine [IsSeparated X.hom] (S : finiteIntersectionIndex X) : |
| 62 | IsAffine (finiteIntersectionChart X S).left := finiteIntersectionOpen_affine X S |
| 63 | |
| 64 | instance finiteIntersectionChart_smooth [Smooth X.hom] (S : finiteIntersectionIndex X) : |
| 65 | Smooth (finiteIntersectionChart X S).hom := |
| 66 | inferInstanceAs (Smooth ((finiteIntersectionOpen X S).ι ≫ X.hom)) |
| 67 | |
| 68 | end |
| 69 | |
| 70 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.AffineIntersections |