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.Affine.ProductDimension |
| 2 | import OAI.AlgebraicGeometry.CycleClass.Thom.Scheme.ProductIntegral |
| 3 | |
| 4 | /-! # Product Dimension -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.Scheme.ProductDimension.Constructions |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The dimension sum for genuine products of integral complex schemes, |
| 11 | proved by restricting the actual structure morphism to nonempty affine opens. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 14 | |
| 15 | open OAI.AlgebraicGeometry.CycleClass.Thom.Affine.ProductDimension.Constructions OAI.AlgebraicGeometry.CycleClass.Thom.Scheme.ProductIntegral.Constructions |
| 16 | |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | set_option backward.isDefEq.respectTransparency.types false |
| 19 | |
| 20 | theorem schemeProduct_dimension (X Y : Over Foundations.Scheme.ProjectiveSpace.complexBase) |
| 21 | [IsIntegral X.left] [IsIntegral Y.left] |
| 22 | [LocallyOfFiniteType X.hom] [LocallyOfFiniteType Y.hom] : |
| 23 | letI := ProductIntegral.Constructions.schemeProduct_isIntegral X Y |
| 24 | Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension (pullback.fst X.hom Y.hom ≫ X.hom) = |
| 25 | Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension X.hom + Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension Y.hom := by |
| 26 | classical |
| 27 | let := ProductIntegral.Constructions.schemeProduct_isIntegral X Y |
| 28 | obtain ⟨i, xi, _⟩ := X.left.affineCover.exists_eq (Classical.choice (inferInstance : Nonempty X.left)) |
| 29 | obtain ⟨j, yj, _⟩ := Y.left.affineCover.exists_eq (Classical.choice (inferInstance : Nonempty Y.left)) |
| 30 | let : Nonempty (X.left.affineCover.X i) := ⟨xi⟩ |
| 31 | let : Nonempty (Y.left.affineCover.X j) := ⟨yj⟩ |
| 32 | let : IsIntegral (X.left.affineCover.X i) := isIntegral_of_isOpenImmersion (X.left.affineCover.f i) |
| 33 | let : IsIntegral (Y.left.affineCover.X j) := isIntegral_of_isOpenImmersion (Y.left.affineCover.f j) |
| 34 | let A := Over.mk (X.left.affineCover.f i ≫ X.hom) |
| 35 | let B := Over.mk (Y.left.affineCover.f j ≫ Y.hom) |
| 36 | let : IsAffine A.left := Scheme.isAffine_affineCover X.left i |
| 37 | let : IsAffine B.left := Scheme.isAffine_affineCover Y.left j |
| 38 | let : LocallyOfFiniteType A.hom := inferInstanceAs (LocallyOfFiniteType (X.left.affineCover.f i ≫ X.hom)) |
| 39 | let : LocallyOfFiniteType B.hom := inferInstanceAs (LocallyOfFiniteType (Y.left.affineCover.f j ≫ Y.hom)) |
| 40 | let : IsIntegral A.left := inferInstanceAs (IsIntegral (X.left.affineCover.X i)) |
| 41 | let : IsIntegral B.left := inferInstanceAs (IsIntegral (Y.left.affineCover.X j)) |
| 42 | let := Affine.ProductIs.Constructions.affineProduct_isIntegral A B |
| 43 | let d : pullback A.hom B.hom ⟶ pullback X.hom Y.hom := |
| 44 | pullback.map A.hom B.hom X.hom Y.hom (X.left.affineCover.f i) (Y.left.affineCover.f j) |
| 45 | (𝟙 Foundations.Scheme.ProjectiveSpace.complexBase) (Category.comp_id _) (Category.comp_id _) |
| 46 | let : IsOpenImmersion d := MorphismProperty.pullbackMap (P := @IsOpenImmersion) |
| 47 | (inferInstance : IsOpenImmersion (X.left.affineCover.f i)) |
| 48 | (inferInstance : IsOpenImmersion (Y.left.affineCover.f j)) rfl rfl |
| 49 | have hd : d ≫ (pullback.fst X.hom Y.hom ≫ X.hom) = pullback.fst A.hom B.hom ≫ A.hom := by |
| 50 | dsimp only [d] |
| 51 | rw [← Category.assoc, pullback.map, pullback.lift_fst, Category.assoc] |
| 52 | rfl |
| 53 | have h := Foundations.Scheme.OpenFunctionField.schemeTranscendenceDimension_openImmersion d (pullback.fst X.hom Y.hom ≫ X.hom) |
| 54 | rw [hd] at h |
| 55 | rw [← h, Affine.ProductDimension.Constructions.affineProduct_dimension A B] |
| 56 | exact congrArg₂ (· + ·) |
| 57 | (Foundations.Scheme.OpenFunctionField.schemeTranscendenceDimension_openImmersion (X.left.affineCover.f i) X.hom) |
| 58 | (Foundations.Scheme.OpenFunctionField.schemeTranscendenceDimension_openImmersion (Y.left.affineCover.f j) Y.hom) |
| 59 | |
| 60 | end |
| 61 | |
| 62 | end OAI.AlgebraicGeometry.CycleClass.Thom.Scheme.ProductDimension.Constructions |