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.SegreClosed |
| 2 | import OAI.AlgebraicGeometry.CycleClass.Thom.Scheme.ProductDimension |
| 3 | import OAI.AlgebraicGeometry.CycleClass.Thom.Closed.Image |
| 4 | import OAI.AlgebraicGeometry.CycleClass.Thom.Integral.ProductSupport |
| 5 | |
| 6 | /-! # Ambient -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.Diagonal.Ambient.Constructions |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The genuine smooth projective self-product and diagonal, together |
| 13 | with the original reduced diagonal images of cycle supports. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 16 | open MonoidalCategory CartesianMonoidalCategory |
| 17 | |
| 18 | open OAI.AlgebraicGeometry.CycleClass.Thom.SegreClosed.Constructions.ProjectiveProducts OAI.AlgebraicGeometry.CycleClass.Thom.Scheme.ProductDimension.Constructions OAI.AlgebraicGeometry.CycleClass.Thom.Closed.Image.Constructions OAI.AlgebraicGeometry.CycleClass.Thom.ProperImage.Reduction.Constructions |
| 19 | open OAI.AlgebraicGeometry.CycleClass.Thom.Integral.ProductSupport.Constructions OAI.AlgebraicGeometry.CycleClass.Thom.Product.SupportScheme.Constructions |
| 20 | |
| 21 | set_option backward.isDefEq.respectTransparency false |
| 22 | set_option backward.isDefEq.respectTransparency.types false |
| 23 | |
| 24 | abbrev productVariety (V W : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety := |
| 25 | SegreClosed.Constructions.ProjectiveProducts.tensorIntegralProjectiveVariety V W |
| 26 | |
| 27 | def first (V W : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) : (productVariety V W).toOver ⟶ V.toOver := fst V.toOver W.toOver |
| 28 | def second (V W : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) : (productVariety V W).toOver ⟶ W.toOver := snd V.toOver W.toOver |
| 29 | |
| 30 | def productLimit (V W : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) : IsLimit (BinaryFan.mk (first V W) (second V W)) := |
| 31 | tensorProductIsBinaryProduct V.toOver W.toOver |
| 32 | |
| 33 | theorem product_dimension (V W : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) : |
| 34 | (productVariety V W).complexDimension = V.complexDimension + W.complexDimension := by |
| 35 | simp only [Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety.complexDimension_eq_transcendenceDimension] |
| 36 | let : IsIntegral V.toOver.left := inferInstanceAs (IsIntegral V.carrier) |
| 37 | let : IsIntegral W.toOver.left := inferInstanceAs (IsIntegral W.carrier) |
| 38 | let : LocallyOfFiniteType V.toOver.hom := inferInstanceAs (LocallyOfFiniteType V.structureMap) |
| 39 | let : LocallyOfFiniteType W.toOver.hom := inferInstanceAs (LocallyOfFiniteType W.structureMap) |
| 40 | exact Scheme.ProductDimension.Constructions.schemeProduct_dimension V.toOver W.toOver |
| 41 | |
| 42 | def diagonal (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) : V.toOver ⟶ (productVariety V V).toOver := |
| 43 | Over.homMk (pullback.diagonal V.structureMap) (by |
| 44 | change pullback.diagonal V.structureMap ≫ (pullback.fst V.structureMap V.structureMap ≫ V.structureMap) = _ |
| 45 | simp only [← Category.assoc, pullback.diagonal_fst, Category.id_comp] |
| 46 | rfl) |
| 47 | |
| 48 | instance diagonal_closed (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) : IsClosedImmersion (Constructions.diagonal V).left := |
| 49 | inferInstanceAs (IsClosedImmersion (pullback.diagonal V.structureMap)) |
| 50 | |
| 51 | @[reassoc] |
| 52 | theorem diagonal_first (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) : Constructions.diagonal V ≫ first V V = 𝟙 V.toOver := by |
| 53 | apply Over.OverMorphism.ext |
| 54 | exact pullback.diagonal_fst V.structureMap |
| 55 | |
| 56 | @[reassoc] |
| 57 | theorem diagonal_second (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) : Constructions.diagonal V ≫ second V V = 𝟙 V.toOver := by |
| 58 | apply Over.OverMorphism.ext |
| 59 | exact pullback.diagonal_snd V.structureMap |
| 60 | |
| 61 | theorem diagonal_degree (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) (p : ℕ) : |
| 62 | p + (productVariety V V).complexDimension = (p + V.complexDimension) + V.complexDimension := by |
| 63 | rw [product_dimension] |
| 64 | omega |
| 65 | |
| 66 | def diagonalSupport (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) (p : ℕ) (Z : Geometric.DimensionCycles.DimensionCycleSupport V p) : |
| 67 | Geometric.DimensionCycles.DimensionCycleSupport (productVariety V V) (p + V.complexDimension) := |
| 68 | Closed.Image.Constructions.closedImageCycleSupport (Constructions.diagonal V) p (p + V.complexDimension) (diagonal_degree V p) Z |
| 69 | |
| 70 | theorem diagonalSupport_coe (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) (p : ℕ) (Z : Geometric.DimensionCycles.DimensionCycleSupport V p) : |
| 71 | ((diagonalSupport V p Z).val : Set (productVariety V V).carrier) = (Constructions.diagonal V).left '' (Z.val : Set V.carrier) := |
| 72 | ProperImage.Reduction.Constructions.imageSupport_eq_image (Constructions.diagonal V) (inferInstance : IsProper (Constructions.diagonal V).left) Z |
| 73 | |
| 74 | theorem diagonalSupport_genericPoint (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) (p : ℕ) (Z : Geometric.DimensionCycles.DimensionCycleSupport V p) : |
| 75 | (diagonalSupport V p Z).genericPoint = (Constructions.diagonal V).left Z.genericPoint := |
| 76 | Closed.Image.Constructions.closedImageCycleSupport_genericPoint (Constructions.diagonal V) p (p + V.complexDimension) (diagonal_degree V p) Z |
| 77 | |
| 78 | theorem diagonalSupport_injective (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) (p : ℕ) : |
| 79 | Function.Injective (diagonalSupport V p) := |
| 80 | Closed.Image.Constructions.closedImageCycleSupport_injective (Constructions.diagonal V) p (p + V.complexDimension) (diagonal_degree V p) |
| 81 | |
| 82 | theorem diagonal_product_preimage (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) (p q : ℕ) |
| 83 | (A : Geometric.DimensionCycles.DimensionCycleSupport V p) (B : Geometric.DimensionCycles.DimensionCycleSupport V q) : |
| 84 | (Constructions.diagonal V).left ⁻¹' ((Integral.ProductSupport.Constructions.integralProductSupport V V (productVariety V V) (first V V) (second V V) |
| 85 | (productLimit V V) p q A B).val : Set (productVariety V V).carrier) = |
| 86 | (A.val : Set V.carrier) ∩ (B.val : Set V.carrier) := by |
| 87 | rw [Integral.ProductSupport.Constructions.integralProductSupport, Product.SupportScheme.Constructions.productIrreducibleSupport_coe] |
| 88 | ext x |
| 89 | change ((first V V).left ((Constructions.diagonal V).left x) ∈ (A.val : Set V.carrier) ∧ |
| 90 | (second V V).left ((Constructions.diagonal V).left x) ∈ (B.val : Set V.carrier)) ↔ _ |
| 91 | have h₁ : (first V V).left ((Constructions.diagonal V).left x) = x := |
| 92 | congrArg (fun f : V.toOver ⟶ V.toOver => f.left x) (diagonal_first V) |
| 93 | have h₂ : (second V V).left ((Constructions.diagonal V).left x) = x := |
| 94 | congrArg (fun f : V.toOver ⟶ V.toOver => f.left x) (diagonal_second V) |
| 95 | constructor |
| 96 | · intro hx |
| 97 | exact ⟨h₁ ▸ hx.1, h₂ ▸ hx.2⟩ |
| 98 | · intro hx |
| 99 | exact ⟨h₁.symm ▸ hx.1, h₂.symm ▸ hx.2⟩ |
| 100 | |
| 101 | end |
| 102 | |
| 103 | end OAI.AlgebraicGeometry.CycleClass.Thom.Diagonal.Ambient.Constructions |