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.Closed.ImmersionStalkKernel |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Cartier.IdealBundle |
| 3 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Affine.PrincipalPrimeDivisor |
| 4 | |
| 5 | /-! # Cartier Generic Point -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.Integral.CartierGenericPoint.BundleCycles |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! An integral effective Cartier divisor has an actual |
| 12 | codimension-one generic point in its integral ambient scheme. -/ |
| 13 | |
| 14 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.Order |
| 15 | |
| 16 | variable {X Z : Scheme.{0}} [IsIntegral Z] (i : Z ⟶ X) [IsClosedImmersion i] |
| 17 | |
| 18 | theorem integralClosedImmersion_affine_generic_ideal (U : X.Opens) (hU : IsAffineOpen U) |
| 19 | (hη : i (genericPoint Z) ∈ U) : |
| 20 | (hU.primeIdealOf ⟨i (genericPoint Z), hη⟩).asIdeal = RingHom.ker (i.app U).hom := by |
| 21 | let V := i ⁻¹ᵁ U |
| 22 | let hV : IsAffineOpen V := hU.preimage i |
| 23 | let : Nonempty V := ⟨⟨genericPoint Z, hη⟩⟩ |
| 24 | have h := IsAffineOpen.comap_primeIdealOf_appLE U hU V hV le_rfl (x := genericPoint Z) hη |
| 25 | rw [hV.primeIdealOf_genericPoint, genericPoint_eq_bot_of_affine] at h |
| 26 | have h' := congrArg PrimeSpectrum.asIdeal h |
| 27 | change RingHom.ker (i.appLE U (i ⁻¹ᵁ U) le_rfl).hom = _ at h' |
| 28 | rw [Scheme.Hom.appLE_eq_app] at h' |
| 29 | exact h'.symm |
| 30 | |
| 31 | variable [IsIntegral X] [AlgebraicGeometry.IsNoetherian X] |
| 32 | |
| 33 | theorem integralCartier_genericPoint_coheight (hi : Cartier.IdealBundle.Cycles.HasRegularPrincipalImageIdeals i) : |
| 34 | coheight (i (genericPoint Z)) = 1 := by |
| 35 | obtain ⟨U, hη, t, ht, hker⟩ := hi (i (genericPoint Z)) |
| 36 | let : Nonempty U.1 := ⟨⟨i (genericPoint Z), hη⟩⟩ |
| 37 | let : IsNoetherianRing Γ(X, U.1) := IsLocallyNoetherian.component_noetherian U |
| 38 | let q := U.2.primeIdealOf ⟨i (genericPoint Z), hη⟩ |
| 39 | have hq : q.asIdeal = Ideal.span {t} := |
| 40 | (integralClosedImmersion_affine_generic_ideal i U.1 U.2 hη).trans hker |
| 41 | have hc : coheight (show Spec Γ(X, U.1) from q) = 1 := |
| 42 | Affine.PrincipalPrimeDivisor.BundleCycles.affinePrincipalPrime_coheight q t hq ht.ne_zero |
| 43 | have ho : coheight (U.2.fromSpec (show Spec Γ(X, U.1) from q)) = coheight (show Spec Γ(X, U.1) from q) := |
| 44 | coheight_eq_of_isOpenImmersion U.2.fromSpec |
| 45 | rw [U.2.fromSpec_primeIdealOf] at ho |
| 46 | exact ho.trans hc |
| 47 | |
| 48 | end |
| 49 | |
| 50 | end OAI.AlgebraicGeometry.Divisors.LineBundles.Integral.CartierGenericPoint.BundleCycles |