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 Mathlib.AlgebraicGeometry.AffineScheme |
| 2 | |
| 3 | /-! # Restriction Hom Ext -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.RestrictionHomExt |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Ring maps out of an affine subopen are determined after the |
| 10 | original affine restriction map, since its spectrum is an open immersion. -/ |
| 11 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 12 | set_option backward.defeqAttrib.useBackward true |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | set_option backward.isDefEq.respectTransparency.types false |
| 15 | universe u |
| 16 | variable {X : Scheme.{u}} (U V : X.Opens) (hU : IsAffineOpen U) (hV : IsAffineOpen V) |
| 17 | (hVU : V ≤ U) |
| 18 | |
| 19 | include hU hV in |
| 20 | theorem hom_ext {T : CommRingCat.{u}} (a b : Γ(X,V) ⟶ T) |
| 21 | (h : X.presheaf.map (homOfLE hVU).op ≫ a = X.presheaf.map (homOfLE hVU).op ≫ b) : a=b := by |
| 22 | let r := Spec.map (X.presheaf.map (homOfLE hVU).op) |
| 23 | have hr : r ≫ hU.fromSpec = hV.fromSpec := hU.map_fromSpec hV (homOfLE hVU).op |
| 24 | let : IsOpenImmersion (r ≫ hU.fromSpec) := hr.symm ▸ inferInstance |
| 25 | let : IsOpenImmersion r := IsOpenImmersion.of_comp r hU.fromSpec |
| 26 | apply Spec.map_injective |
| 27 | apply (cancel_mono r).mp |
| 28 | exact (Spec.map_comp _ _).symm.trans ((congrArg Spec.map h).trans (Spec.map_comp _ _)) |
| 29 | |
| 30 | end |
| 31 | |
| 32 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.RestrictionHomExt |