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.Divisors.LineBundles.Scheme.SchemeIdealModule |
| 2 | import Mathlib.AlgebraicGeometry.IdealSheaf.Functorial |
| 3 | import Mathlib.Algebra.Ring.NonZeroDivisors |
| 4 | |
| 5 | /-! # Open Principal Ideal Restriction -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.Affine.OpenPrincipalIdealRestriction.BundleCycles |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! A regular principal scheme-theoretic image ideal stays regularly |
| 14 | principal on actual affine basic opens. -/ |
| 15 | |
| 16 | open _root_.AlgebraicGeometry _root_.CategoryTheory |
| 17 | |
| 18 | variable {X Z : Scheme.{0}} [IsAffine X] (f : Z ⟶ X) [QuasiCompact f] |
| 19 | (t : Γ(X, ⊤)) (ht : IsRegular t) (hker : RingHom.ker f.appTop.hom = Ideal.span {t}) |
| 20 | |
| 21 | include ht in |
| 22 | theorem affinePrincipal_regular_restriction (r : Γ(X, ⊤)) : |
| 23 | IsRegular (X.presheaf.map (homOfLE (X.basicOpen_le r)).op t) := by |
| 24 | let φ : Γ(X, ⊤) →+* Γ(X, X.basicOpen r) := |
| 25 | (X.presheaf.map (homOfLE (X.basicOpen_le r)).op).hom |
| 26 | let : Algebra Γ(X, ⊤) Γ(X, X.basicOpen r) := φ.toAlgebra |
| 27 | let : IsLocalization.Away r Γ(X, X.basicOpen r) := (isAffineOpen_top X).isLocalization_basicOpen r |
| 28 | have hm : t ∈ nonZeroDivisors Γ(X, ⊤) := isRegular_iff_mem_nonZeroDivisors.mp ht |
| 29 | exact isRegular_iff_mem_nonZeroDivisors.mpr |
| 30 | (IsLocalization.nonZeroDivisors_le_comap (S := Γ(X, X.basicOpen r)) (M := Submonoid.powers r) hm) |
| 31 | |
| 32 | include hker in |
| 33 | theorem affinePrincipal_kernel_restriction (r : Γ(X, ⊤)) : |
| 34 | RingHom.ker (f.app (X.basicOpen r)).hom = |
| 35 | Ideal.span {X.presheaf.map (homOfLE (X.basicOpen_le r)).op t} := by |
| 36 | have h := f.ker.map_ideal_basicOpen ⟨⊤, isAffineOpen_top X⟩ r |
| 37 | have htop : f.ker.ideal ⟨⊤, isAffineOpen_top X⟩ = Ideal.span {t} := |
| 38 | (Scheme.Hom.ker_apply f ⟨⊤, isAffineOpen_top X⟩).trans hker |
| 39 | have he : f.ker.ideal ⟨X.basicOpen r, (isAffineOpen_top X).basicOpen r⟩ = |
| 40 | RingHom.ker (f.app (X.basicOpen r)).hom := |
| 41 | Scheme.Hom.ker_apply f ⟨X.basicOpen r, (isAffineOpen_top X).basicOpen r⟩ |
| 42 | exact he.symm.trans (h.symm.trans |
| 43 | ((congrArg (Ideal.map (X.presheaf.map (homOfLE (X.basicOpen_le r)).op).hom) htop).trans |
| 44 | (by rw [Ideal.map_span, Set.image_singleton]))) |
| 45 | |
| 46 | end |
| 47 | |
| 48 | /-! Regular principal image ideals remain regular and principal on |
| 49 | basic opens inside an arbitrary affine open of the ambient scheme. -/ |
| 50 | |
| 51 | open _root_.AlgebraicGeometry _root_.CategoryTheory |
| 52 | |
| 53 | variable {X Z : Scheme.{0}} (f : Z ⟶ X) [QuasiCompact f] |
| 54 | (U : X.affineOpens) (t : Γ(X, U.1)) (ht : IsRegular t) |
| 55 | (hker : RingHom.ker (f.app U.1).hom = Ideal.span {t}) |
| 56 | |
| 57 | include ht in |
| 58 | theorem affineOpenPrincipal_regular_restriction (r : Γ(X, U.1)) : |
| 59 | IsRegular (X.presheaf.map (homOfLE (X.basicOpen_le r)).op t) := by |
| 60 | let φ : Γ(X, U.1) →+* Γ(X, X.basicOpen r) := (X.presheaf.map (homOfLE (X.basicOpen_le r)).op).hom |
| 61 | let : Algebra Γ(X, U.1) Γ(X, X.basicOpen r) := φ.toAlgebra |
| 62 | let : IsLocalization.Away r Γ(X, X.basicOpen r) := U.2.isLocalization_basicOpen r |
| 63 | have hm : t ∈ nonZeroDivisors Γ(X, U.1) := isRegular_iff_mem_nonZeroDivisors.mp ht |
| 64 | exact isRegular_iff_mem_nonZeroDivisors.mpr |
| 65 | (IsLocalization.nonZeroDivisors_le_comap (S := Γ(X, X.basicOpen r)) (M := Submonoid.powers r) hm) |
| 66 | |
| 67 | include hker in |
| 68 | theorem affineOpenPrincipal_kernel_restriction (r : Γ(X, U.1)) : |
| 69 | RingHom.ker (f.app (X.basicOpen r)).hom = |
| 70 | Ideal.span {X.presheaf.map (homOfLE (X.basicOpen_le r)).op t} := by |
| 71 | have h := f.ker.map_ideal_basicOpen U r |
| 72 | have hU : f.ker.ideal U = Ideal.span {t} := (Scheme.Hom.ker_apply f U).trans hker |
| 73 | have he : f.ker.ideal ⟨X.basicOpen r, U.2.basicOpen r⟩ = RingHom.ker (f.app (X.basicOpen r)).hom := |
| 74 | Scheme.Hom.ker_apply f ⟨X.basicOpen r, U.2.basicOpen r⟩ |
| 75 | exact he.symm.trans (h.symm.trans |
| 76 | ((congrArg (Ideal.map (X.presheaf.map (homOfLE (X.basicOpen_le r)).op).hom) hU).trans |
| 77 | (by rw [Ideal.map_span, Set.image_singleton]))) |
| 78 | |
| 79 | end |
| 80 | |
| 81 | end OAI.AlgebraicGeometry.Divisors.LineBundles.Affine.OpenPrincipalIdealRestriction.BundleCycles |