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.DiagonalStalk |
| 2 | import OAI.AlgebraicGeometry.CycleClass.Thom.Local.PolynomialDiagonalRegular |
| 3 | |
| 4 | /-! # Diagonal Equations -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.Affine.DiagonalEquations.Constructions |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Polynomial coordinate differences are actual global sections on |
| 11 | the affine geometric product. Their genuine germs form a regular |
| 12 | sequence and generate exactly the native localized diagonal ideal. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.TopologicalSpace RingTheory.Sequence |
| 15 | open scoped TensorProduct |
| 16 | |
| 17 | open OAI.AlgebraicGeometry.CycleClass.Thom.Affine.ProductIs.Constructions OAI.AlgebraicGeometry.CycleClass.Thom.Affine.ProductIs.Constructions.CoordinateMaps OAI.AlgebraicGeometry.CycleClass.Thom.Affine.ProductIs.Constructions.StalkCoordinates OAI.AlgebraicGeometry.CycleClass.Thom.Affine.DiagonalStalk.Constructions |
| 18 | open OAI.AlgebraicGeometry.CycleClass.Thom.Tensor.BalanceIdeal.Constructions OAI.AlgebraicGeometry.CycleClass.Thom.Local.PolynomialDiagonalIdeal.Constructions OAI.AlgebraicGeometry.CycleClass.Thom.Local.PolynomialDiagonalRegular.Constructions |
| 19 | |
| 20 | set_option backward.isDefEq.respectTransparency false |
| 21 | set_option backward.isDefEq.respectTransparency.types false |
| 22 | |
| 23 | variable (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) [IsAffine X.left] (n : ℕ) |
| 24 | [Algebra (MvPolynomial (Fin n) ℂ) Γ(X.left, ⊤)] |
| 25 | [IsScalarTower ℂ (MvPolynomial (Fin n) ℂ) Γ(X.left, ⊤)] |
| 26 | |
| 27 | def coordinateDifferenceSection (i : Fin n) : Γ(pullback X.hom X.hom, ⊤) := |
| 28 | ProductIs.Constructions.StalkCoordinates.coordinateSection (CommRingCat.of (Γ(X.left, ⊤) ⊗[ℂ] Γ(X.left, ⊤))) |
| 29 | (pullback X.hom X.hom) (ProductIs.Constructions.affineProductCoordinateIso X X) |
| 30 | (Tensor.BalanceIdeal.Constructions.difference ℂ (MvPolynomial (Fin n) ℂ) Γ(X.left, ⊤) (MvPolynomial.X i)) |
| 31 | |
| 32 | abbrev productLocalRing (x : X.left) : CommRingCat := |
| 33 | (pullback X.hom X.hom).presheaf.stalk (pullback.diagonal X.hom x) |
| 34 | |
| 35 | def coordinateDifferenceGerms (x : X.left) : List (productLocalRing X x) := |
| 36 | List.ofFn (fun i => (pullback X.hom X.hom).presheaf.germ ⊤ (pullback.diagonal X.hom x) trivial |
| 37 | (coordinateDifferenceSection X n i)) |
| 38 | |
| 39 | omit [IsScalarTower ℂ (MvPolynomial (Fin n) ℂ) Γ(X.left, ⊤)] in |
| 40 | theorem coordinateDifferenceGerms_map (x : X.left) : |
| 41 | (coordinateDifferenceGerms X n x).map (DiagonalStalk.Constructions.diagonalStalkIso X x).hom.hom = |
| 42 | Local.PolynomialDiagonalIdeal.Constructions.localEquations ℂ Γ(X.left, ⊤) n (ProductIs.Constructions.CoordinateMaps.affineCoordinateMap X x) := by |
| 43 | simp only [coordinateDifferenceGerms, List.map_ofFn, Function.comp_def, Local.PolynomialDiagonalIdeal.Constructions.localEquations] |
| 44 | apply congrArg List.ofFn |
| 45 | funext i |
| 46 | exact DiagonalStalk.Constructions.diagonalStalkIso_section X x (Tensor.BalanceIdeal.Constructions.difference ℂ (MvPolynomial (Fin n) ℂ) Γ(X.left, ⊤) (MvPolynomial.X i)) |
| 47 | |
| 48 | omit [IsScalarTower ℂ (MvPolynomial (Fin n) ℂ) Γ(X.left, ⊤)] in |
| 49 | theorem coordinateDifferenceGerms_length (x : X.left) : (coordinateDifferenceGerms X n x).length = n := |
| 50 | List.length_ofFn |
| 51 | |
| 52 | variable [Module.Flat (MvPolynomial (Fin n) ℂ) Γ(X.left, ⊤)] |
| 53 | |
| 54 | theorem coordinateDifferenceGerms_regular (x : X.left) : |
| 55 | IsWeaklyRegular (productLocalRing X x) (coordinateDifferenceGerms X n x) := by |
| 56 | let e := (DiagonalStalk.Constructions.diagonalStalkIso X x).commRingCatIsoToRingEquiv |
| 57 | have hmap : (coordinateDifferenceGerms X n x).map e = |
| 58 | Local.PolynomialDiagonalIdeal.Constructions.localEquations ℂ Γ(X.left, ⊤) n (ProductIs.Constructions.CoordinateMaps.affineCoordinateMap X x) := coordinateDifferenceGerms_map X n x |
| 59 | have he : IsWeaklyRegular (productLocalRing X x) (coordinateDifferenceGerms X n x) ↔ |
| 60 | IsWeaklyRegular (Localization.AtPrime (DiagonalStalk.Constructions.diagonalCoordinatePrime X x).asIdeal) |
| 61 | ((coordinateDifferenceGerms X n x).map e) := |
| 62 | e.toAddEquiv.isWeaklyRegular_congr (List.forall₂_map_right_iff.mpr |
| 63 | (List.forall₂_same.mpr (fun r _ y => e.map_mul r y))) |
| 64 | apply he.mpr |
| 65 | rw [hmap] |
| 66 | exact Local.PolynomialDiagonalRegular.Constructions.localEquations_weaklyRegular ℂ Γ(X.left, ⊤) n (ProductIs.Constructions.CoordinateMaps.affineCoordinateMap X x) |
| 67 | |
| 68 | omit [Module.Flat (MvPolynomial (Fin n) ℂ) Γ(X.left, ⊤)] |
| 69 | [IsScalarTower ℂ (MvPolynomial (Fin n) ℂ) Γ(X.left, ⊤)] in |
| 70 | theorem coordinateDifferenceGerms_maximal (x : X.left) : |
| 71 | ∀ a ∈ coordinateDifferenceGerms X n x, a ∈ IsLocalRing.maximalIdeal (productLocalRing X x) := by |
| 72 | intro a ha |
| 73 | let e := (DiagonalStalk.Constructions.diagonalStalkIso X x).commRingCatIsoToRingEquiv |
| 74 | have hmap : (coordinateDifferenceGerms X n x).map e = |
| 75 | Local.PolynomialDiagonalIdeal.Constructions.localEquations ℂ Γ(X.left, ⊤) n (ProductIs.Constructions.CoordinateMaps.affineCoordinateMap X x) := coordinateDifferenceGerms_map X n x |
| 76 | have hmem : e a ∈ Local.PolynomialDiagonalIdeal.Constructions.localEquations ℂ Γ(X.left, ⊤) n (ProductIs.Constructions.CoordinateMaps.affineCoordinateMap X x) := |
| 77 | hmap ▸ List.mem_map.mpr ⟨a, ha, rfl⟩ |
| 78 | have hm := Local.PolynomialDiagonalRegular.Constructions.localEquations_mem_maximal ℂ Γ(X.left, ⊤) n (ProductIs.Constructions.CoordinateMaps.affineCoordinateMap X x) (e a) hmem |
| 79 | let : IsLocalHom e.toRingHom := ⟨fun b hb => by |
| 80 | exact (congrArg IsUnit (e.symm_apply_apply b)).mp (hb.map e.symm.toMonoidHom)⟩ |
| 81 | exact (congrArg (fun I : Ideal (productLocalRing X x) => a ∈ I) |
| 82 | (IsLocalRing.maximalIdeal_comap e.toRingHom)).mp hm |
| 83 | |
| 84 | variable [Algebra.FormallyUnramified (MvPolynomial (Fin n) ℂ) Γ(X.left, ⊤)] |
| 85 | [IsNoetherianRing (Γ(X.left, ⊤) ⊗[MvPolynomial (Fin n) ℂ] Γ(X.left, ⊤))] |
| 86 | |
| 87 | omit [Module.Flat (MvPolynomial (Fin n) ℂ) Γ(X.left, ⊤)] in |
| 88 | theorem coordinateDifferenceGerms_ideal (x : X.left) : |
| 89 | (Ideal.ofList (coordinateDifferenceGerms X n x)).map (DiagonalStalk.Constructions.diagonalStalkIso X x).hom.hom = |
| 90 | (KaehlerDifferential.ideal ℂ Γ(X.left, ⊤)).map |
| 91 | (algebraMap (Γ(X.left, ⊤) ⊗[ℂ] Γ(X.left, ⊤)) |
| 92 | (Localization.AtPrime (DiagonalStalk.Constructions.diagonalCoordinatePrime X x).asIdeal)) := by |
| 93 | rw [Ideal.map_ofList, coordinateDifferenceGerms_map] |
| 94 | exact Local.PolynomialDiagonalIdeal.Constructions.ideal_ofList_localEquations ℂ Γ(X.left, ⊤) n (ProductIs.Constructions.CoordinateMaps.affineCoordinateMap X x) |
| 95 | |
| 96 | end |
| 97 | |
| 98 | end OAI.AlgebraicGeometry.CycleClass.Thom.Affine.DiagonalEquations.Constructions |