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.Diagonal.OpenNeighborhood |
| 2 | import OAI.AlgebraicGeometry.CycleClass.Thom.Open.RangeSectionPullback |
| 3 | import OAI.AlgebraicGeometry.CycleClass.Thom.Section.StalkMap |
| 4 | |
| 5 | /-! # Open Equations -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.Diagonal.OpenEquations.Constructions |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Coordinate differences as actual sections on a literal open of |
| 12 | the smooth projective self-product. Their native germs are regular, |
| 13 | lie in the maximal ideal, and generate the original diagonal ideal. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.TopologicalSpace RingTheory.Sequence |
| 16 | open scoped TensorProduct |
| 17 | |
| 18 | open OAI.AlgebraicGeometry.CycleClass.Thom.Diagonal.Ambient.Constructions OAI.AlgebraicGeometry.CycleClass.Thom.Diagonal.Support.Constructions OAI.AlgebraicGeometry.CycleClass.Thom.Diagonal.OpenNeighborhood.Constructions OAI.AlgebraicGeometry.CycleClass.Thom.Open.RangeSectionPullback.Constructions.Sections |
| 19 | open OAI.AlgebraicGeometry.CycleClass.Thom.Affine.DiagonalEquations.Constructions OAI.AlgebraicGeometry.CycleClass.Thom.Affine.DiagonalSupportKernel.Constructions OAI.AlgebraicGeometry.CycleClass.Thom.Section.StalkMap.Constructions.VectorGerms OAI.AlgebraicGeometry.CycleClass.Thom.Section.StalkMap.Constructions |
| 20 | open OAI.AlgebraicGeometry.CycleClass.Thom.Normalization.GoodSmoothMap.Constructions.AffineOpen OAI.AlgebraicGeometry.CycleClass.Thom.StalkPrimeQuotient.Constructions |
| 21 | |
| 22 | set_option backward.isDefEq.respectTransparency false |
| 23 | set_option backward.isDefEq.respectTransparency.types false |
| 24 | |
| 25 | variable (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) (j : X ⟶ V.toOver) |
| 26 | [IsAffine X.left] [IsIntegral X.left] [IsOpenImmersion j.left] |
| 27 | |
| 28 | def productOpen : (Ambient.Constructions.productVariety V V).carrier.Opens := (OpenNeighborhood.Constructions.productOpenMap V X j).opensRange |
| 29 | |
| 30 | abbrev center (x : X.left) : (Ambient.Constructions.productVariety V V).carrier := OpenNeighborhood.Constructions.productOpenMap V X j (pullback.diagonal X.hom x) |
| 31 | |
| 32 | omit [IsAffine X.left] [IsIntegral X.left] in |
| 33 | theorem center_mem (x : X.left) : center V X j x ∈ productOpen V X j := ⟨_, rfl⟩ |
| 34 | |
| 35 | abbrev ambientLocalRing (x : X.left) : CommRingCat := (Ambient.Constructions.productVariety V V).carrier.presheaf.stalk (center V X j x) |
| 36 | |
| 37 | variable (n : ℕ) [Algebra (MvPolynomial (Fin n) ℂ) Γ(X.left, ⊤)] |
| 38 | [IsScalarTower ℂ (MvPolynomial (Fin n) ℂ) Γ(X.left, ⊤)] |
| 39 | |
| 40 | def diagonalSection (i : Fin n) : Γ((Normalization.GoodSmoothMap.Constructions.AffineOpen.affineBase (productOpen V X j)).left, ⊤) := |
| 41 | Open.RangeSectionPullback.Constructions.Sections.rangeSection (OpenNeighborhood.Constructions.productOpenMap V X j) (Affine.DiagonalEquations.Constructions.coordinateDifferenceSection X n i) |
| 42 | |
| 43 | def diagonalGerms (x : X.left) : List (ambientLocalRing V X j x) := |
| 44 | Section.StalkMap.Constructions.VectorGerms.vectorGerms (Ambient.Constructions.productVariety V V) (productOpen V X j) (center V X j x) (center_mem V X j x) |
| 45 | n (diagonalSection V X j n) |
| 46 | |
| 47 | omit [IsIntegral X.left] [IsScalarTower ℂ (MvPolynomial (Fin n) ℂ) Γ(X.left, ⊤)] in |
| 48 | theorem diagonalGerms_map (x : X.left) : |
| 49 | (diagonalGerms V X j n x).map ((OpenNeighborhood.Constructions.productOpenMap V X j).stalkMap (pullback.diagonal X.hom x)).hom = |
| 50 | Affine.DiagonalEquations.Constructions.coordinateDifferenceGerms X n x := by |
| 51 | simp only [diagonalGerms, Section.StalkMap.Constructions.VectorGerms.vectorGerms, List.map_ofFn, Function.comp_def, Affine.DiagonalEquations.Constructions.coordinateDifferenceGerms] |
| 52 | apply congrArg List.ofFn |
| 53 | funext i |
| 54 | exact Open.RangeSectionPullback.Constructions.Sections.rangeSection_germ (OpenNeighborhood.Constructions.productOpenMap V X j) (pullback.diagonal X.hom x) (Affine.DiagonalEquations.Constructions.coordinateDifferenceSection X n i) |
| 55 | |
| 56 | omit [IsIntegral X.left] [IsScalarTower ℂ (MvPolynomial (Fin n) ℂ) Γ(X.left, ⊤)] in |
| 57 | theorem diagonalGerms_length (x : X.left) : (diagonalGerms V X j n x).length = n := by |
| 58 | simp only [diagonalGerms, Section.StalkMap.Constructions.VectorGerms.vectorGerms, List.length_map, List.length_ofFn] |
| 59 | |
| 60 | omit [IsIntegral X.left] in |
| 61 | theorem diagonalGerms_regular [Module.Flat (MvPolynomial (Fin n) ℂ) Γ(X.left, ⊤)] (x : X.left) : |
| 62 | IsWeaklyRegular (ambientLocalRing V X j x) (diagonalGerms V X j n x) := by |
| 63 | let e := (asIso ((OpenNeighborhood.Constructions.productOpenMap V X j).stalkMap (pullback.diagonal X.hom x))).commRingCatIsoToRingEquiv |
| 64 | have hmap : (diagonalGerms V X j n x).map e = Affine.DiagonalEquations.Constructions.coordinateDifferenceGerms X n x := diagonalGerms_map V X j n x |
| 65 | have he : IsWeaklyRegular (ambientLocalRing V X j x) (diagonalGerms V X j n x) ↔ |
| 66 | IsWeaklyRegular (Affine.DiagonalEquations.Constructions.productLocalRing X x) ((diagonalGerms V X j n x).map e) := |
| 67 | e.toAddEquiv.isWeaklyRegular_congr (List.forall₂_map_right_iff.mpr |
| 68 | (List.forall₂_same.mpr (fun r _ y => e.map_mul r y))) |
| 69 | apply he.mpr |
| 70 | rw [hmap] |
| 71 | exact Affine.DiagonalEquations.Constructions.coordinateDifferenceGerms_regular X n x |
| 72 | |
| 73 | omit [IsIntegral X.left] [IsScalarTower ℂ (MvPolynomial (Fin n) ℂ) Γ(X.left, ⊤)] in |
| 74 | theorem diagonalGerms_maximal (x : X.left) : |
| 75 | ∀ a ∈ diagonalGerms V X j n x, a ∈ IsLocalRing.maximalIdeal (ambientLocalRing V X j x) := by |
| 76 | intro a ha |
| 77 | let f := ((OpenNeighborhood.Constructions.productOpenMap V X j).stalkMap (pullback.diagonal X.hom x)).hom |
| 78 | have hm : f a ∈ Affine.DiagonalEquations.Constructions.coordinateDifferenceGerms X n x := |
| 79 | diagonalGerms_map V X j n x ▸ List.mem_map.mpr ⟨a, ha, rfl⟩ |
| 80 | have h := Affine.DiagonalEquations.Constructions.coordinateDifferenceGerms_maximal X n x (f a) hm |
| 81 | exact (congrArg (fun I : Ideal (ambientLocalRing V X j x) => a ∈ I) (IsLocalRing.maximalIdeal_comap f)).mp h |
| 82 | |
| 83 | theorem diagonalGerms_ideal |
| 84 | [Algebra.FormallyUnramified (MvPolynomial (Fin n) ℂ) Γ(X.left, ⊤)] |
| 85 | [IsNoetherianRing (Γ(X.left, ⊤) ⊗[MvPolynomial (Fin n) ℂ] Γ(X.left, ⊤))] (x : X.left) : |
| 86 | Ideal.ofList (diagonalGerms V X j n x) = |
| 87 | (StalkPrimeQuotient.Constructions.kernelPrime (Ambient.Constructions.productVariety V V).carrier (Support.Constructions.diagonalClosedSupport V) |
| 88 | (center V X j x) (OpenNeighborhood.Constructions.diagonal_mem V X j x)).asIdeal := by |
| 89 | let f := ((OpenNeighborhood.Constructions.productOpenMap V X j).stalkMap (pullback.diagonal X.hom x)).hom |
| 90 | have hm : (Ideal.ofList (diagonalGerms V X j n x)).map f = |
| 91 | (StalkPrimeQuotient.Constructions.kernelPrime (Ambient.Constructions.productVariety V V).carrier (Support.Constructions.diagonalClosedSupport V) |
| 92 | (center V X j x) (OpenNeighborhood.Constructions.diagonal_mem V X j x)).asIdeal.map f := by |
| 93 | rw [Ideal.map_ofList, diagonalGerms_map, OpenNeighborhood.Constructions.diagonal_kernel_map] |
| 94 | exact Affine.DiagonalSupportKernel.Constructions.coordinateDifferenceGerms_support_ideal X n x |
| 95 | exact (Ideal.relIsoOfBijective f |
| 96 | (ConcreteCategory.bijective_of_isIso ((OpenNeighborhood.Constructions.productOpenMap V X j).stalkMap (pullback.diagonal X.hom x)))).symm.injective hm |
| 97 | |
| 98 | end |
| 99 | |
| 100 | end OAI.AlgebraicGeometry.CycleClass.Thom.Diagonal.OpenEquations.Constructions |