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.CycleClass.Thom.Scheme.ProductReduced |
| 2 | import Mathlib.AlgebraicGeometry.PullbackCarrier |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.UniversallyOpen |
| 4 | |
| 5 | /-! # Product Integral -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.Scheme.ProductIntegral.Constructions |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Integrality of genuine products of complex schemes. A product of |
| 12 | nonempty affine opens is integral and dense in the actual fiber product; |
| 13 | reducedness has already been proved on the native full affine cover. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 16 | |
| 17 | open OAI.AlgebraicGeometry.CycleClass.Thom.Affine.ProductIs.Constructions OAI.AlgebraicGeometry.CycleClass.Thom.Scheme.ProductReduced.Constructions |
| 18 | |
| 19 | set_option backward.isDefEq.respectTransparency false |
| 20 | set_option backward.isDefEq.respectTransparency.types false |
| 21 | |
| 22 | theorem openProduct_denseRange {U V X Y S : Scheme} |
| 23 | (i : U ⟶ X) (j : V ⟶ Y) (f : X ⟶ S) (g : Y ⟶ S) |
| 24 | [IsOpenImmersion i] [IsOpenImmersion j] [Nonempty U] [Nonempty V] |
| 25 | [PreirreducibleSpace X] [PreirreducibleSpace Y] [UniversallyOpen f] [UniversallyOpen g] : |
| 26 | DenseRange (pullback.map (i ≫ f) (j ≫ g) f g i j (𝟙 S) |
| 27 | (Category.comp_id _) (Category.comp_id _)) := by |
| 28 | change Dense (Set.range (pullback.map (i ≫ f) (j ≫ g) f g i j (𝟙 S) |
| 29 | (Category.comp_id _) (Category.comp_id _))) |
| 30 | rw [Scheme.Pullback.range_map] |
| 31 | have hi := i.isOpenEmbedding.isOpenMap.denseRange_of_isPreirreducibleSpace i |
| 32 | have hj := j.isOpenEmbedding.isOpenMap.denseRange_of_isPreirreducibleSpace j |
| 33 | exact (hi.preimage (pullback.fst f g).isOpenMap).inter_of_isOpen_right |
| 34 | (hj.preimage (pullback.snd f g).isOpenMap) |
| 35 | (j.isOpenEmbedding.isOpenMap.isOpen_range.preimage (pullback.snd f g).continuous) |
| 36 | |
| 37 | theorem schemeProduct_isIntegral (X Y : Over Foundations.Scheme.ProjectiveSpace.complexBase) [LocallyOfFiniteType X.hom] |
| 38 | [IsIntegral X.left] [IsIntegral Y.left] : IsIntegral (pullback X.hom Y.hom) := by |
| 39 | classical |
| 40 | obtain ⟨i, xi, _⟩ := X.left.affineCover.exists_eq (Classical.choice (inferInstance : Nonempty X.left)) |
| 41 | obtain ⟨j, yj, _⟩ := Y.left.affineCover.exists_eq (Classical.choice (inferInstance : Nonempty Y.left)) |
| 42 | let : Nonempty (X.left.affineCover.X i) := ⟨xi⟩ |
| 43 | let : Nonempty (Y.left.affineCover.X j) := ⟨yj⟩ |
| 44 | let : IsIntegral (X.left.affineCover.X i) := isIntegral_of_isOpenImmersion (X.left.affineCover.f i) |
| 45 | let : IsIntegral (Y.left.affineCover.X j) := isIntegral_of_isOpenImmersion (Y.left.affineCover.f j) |
| 46 | let A := Over.mk (X.left.affineCover.f i ≫ X.hom) |
| 47 | let B := Over.mk (Y.left.affineCover.f j ≫ Y.hom) |
| 48 | let : IsAffine A.left := Scheme.isAffine_affineCover X.left i |
| 49 | let : IsAffine B.left := Scheme.isAffine_affineCover Y.left j |
| 50 | let : LocallyOfFiniteType A.hom := inferInstanceAs (LocallyOfFiniteType (X.left.affineCover.f i ≫ X.hom)) |
| 51 | let : IsIntegral A.left := inferInstanceAs (IsIntegral (X.left.affineCover.X i)) |
| 52 | let : IsIntegral B.left := inferInstanceAs (IsIntegral (Y.left.affineCover.X j)) |
| 53 | let : IsIntegral (pullback A.hom B.hom) := Affine.ProductIs.Constructions.affineProduct_isIntegral A B |
| 54 | let d : pullback A.hom B.hom ⟶ pullback X.hom Y.hom := |
| 55 | pullback.map A.hom B.hom X.hom Y.hom (X.left.affineCover.f i) (Y.left.affineCover.f j) |
| 56 | (𝟙 Foundations.Scheme.ProjectiveSpace.complexBase) (Category.comp_id _) (Category.comp_id _) |
| 57 | have hd : DenseRange d := openProduct_denseRange (X.left.affineCover.f i) |
| 58 | (Y.left.affineCover.f j) X.hom Y.hom |
| 59 | have hr : IsIrreducible (Set.range d) := by |
| 60 | simpa only [Set.image_univ] using |
| 61 | (IrreducibleSpace.isIrreducible_univ (pullback A.hom B.hom : Scheme)).image d d.continuous.continuousOn |
| 62 | let : IrreducibleSpace (pullback X.hom Y.hom : Scheme) := by |
| 63 | rw [irreducibleSpace_def] |
| 64 | have h := hr.closure |
| 65 | rw [hd.closure_eq] at h |
| 66 | exact h |
| 67 | let : AlgebraicGeometry.IsReduced (pullback X.hom Y.hom) := ProductReduced.Constructions.schemeProduct_isReduced X Y |
| 68 | exact isIntegral_of_irreducibleSpace_of_isReduced _ |
| 69 | |
| 70 | end |
| 71 | |
| 72 | end OAI.AlgebraicGeometry.CycleClass.Thom.Scheme.ProductIntegral.Constructions |