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.AbelianModuli.HilbertConstruction.Abelian.Schemes |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.FormallyUnramified |
| 3 | import Mathlib.CategoryTheory.Limits.Constructions.Over.Connected |
| 4 | |
| 5 | /-! # Diagonal Comparison -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Over.DiagonalComparison |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Comparing self-pullbacks and diagonals in the slice category with the underlying scheme constructions. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.CategoryTheory.Limits |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | variable {S : Scheme.{u}} {X Y : Over S} |
| 18 | |
| 19 | def overSelfPullbackIso (f : X ⟶ Y) : |
| 20 | (Limits.pullback f f).left ≅ Limits.pullback f.left f.left := |
| 21 | ((IsPullback.of_hasPullback f f).map (Over.forget S)).isoPullback |
| 22 | |
| 23 | theorem overDiagonal_comparison (f : X ⟶ Y) : |
| 24 | (pullback.diagonal f).left ≫ (overSelfPullbackIso f).hom = pullback.diagonal f.left := by |
| 25 | let H := (IsPullback.of_hasPullback f f).map (Over.forget S) |
| 26 | have hf : (overSelfPullbackIso f).hom ≫ pullback.fst f.left f.left = (pullback.fst f f).left := |
| 27 | H.isoPullback_hom_fst |
| 28 | have hs : (overSelfPullbackIso f).hom ≫ pullback.snd f.left f.left = (pullback.snd f f).left := |
| 29 | H.isoPullback_hom_snd |
| 30 | apply pullback.hom_ext |
| 31 | · rw [Category.assoc, hf] |
| 32 | exact (congrArg (fun a : X ⟶ X => a.left) (pullback.diagonal_fst f)).trans |
| 33 | (pullback.diagonal_fst f.left).symm |
| 34 | · rw [Category.assoc, hs] |
| 35 | exact (congrArg (fun a : X ⟶ X => a.left) (pullback.diagonal_snd f)).trans |
| 36 | (pullback.diagonal_snd f.left).symm |
| 37 | |
| 38 | theorem formallyUnramified_of_overDiagonal (f : X ⟶ Y) |
| 39 | [IsOpenImmersion (pullback.diagonal f).left] : FormallyUnramified f.left := by |
| 40 | have : IsOpenImmersion (pullback.diagonal f.left) := by |
| 41 | rw [← overDiagonal_comparison f] |
| 42 | infer_instance |
| 43 | infer_instance |
| 44 | |
| 45 | end |
| 46 | |
| 47 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Over.DiagonalComparison |