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.ArithmeticGeometry.Models.DiagramBaseChange |
| 2 | |
| 3 | /-! # Diagram Composition -/ |
| 4 | |
| 5 | namespace OAI.ArithmeticGeometry.Models.DiagramComposition.Constructions.Foundations |
| 6 | |
| 7 | /-! Comparing successive changes of base for a whole diagram. -/ |
| 8 | |
| 9 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 10 | |
| 11 | universe u v w |
| 12 | |
| 13 | noncomputable def baseChangeDiagramIso |
| 14 | {J : Type v} [Category.{w} J] {S T U : Scheme.{u}} |
| 15 | (D : J ⥤ Over S) (f : T ⟶ S) (g : U ⟶ T) (h : U ⟶ S) (heq : g ≫ f = h) : |
| 16 | (D ⋙ Over.pullback f) ⋙ Over.pullback g ≅ D ⋙ Over.pullback h := by |
| 17 | let p : (D ⋙ Over.pullback h) ⋙ Over.forget U ⟶ |
| 18 | (D ⋙ Over.pullback f) ⋙ Over.forget T := |
| 19 | { app := fun i ↦ pullback.lift (pullback.fst (D.obj i).hom h) |
| 20 | (pullback.snd (D.obj i).hom h ≫ g) (by |
| 21 | erw [pullback.condition, Category.assoc, heq]) |
| 22 | naturality := by |
| 23 | intro i j a |
| 24 | apply pullback.hom_ext |
| 25 | · erw [Category.assoc, pullback.lift_fst, pullback.lift_fst, |
| 26 | Category.assoc, pullback.lift_fst, ← Category.assoc, pullback.lift_fst] |
| 27 | · erw [Category.assoc, pullback.lift_snd, ← Category.assoc, pullback.lift_snd, |
| 28 | Category.assoc, pullback.lift_snd, pullback.lift_snd] } |
| 29 | apply DiagramBaseChange.Constructions.Foundations.genericDiagramIso g (D ⋙ Over.pullback h) (D ⋙ Over.pullback f) p |
| 30 | intro i |
| 31 | apply IsPullback.of_right ?_ (pullback.lift_snd _ _ _) |
| 32 | (IsPullback.of_hasPullback (D.obj i).hom f) |
| 33 | erw [pullback.lift_fst, heq] |
| 34 | exact IsPullback.of_hasPullback (D.obj i).hom h |
| 35 | |
| 36 | end OAI.ArithmeticGeometry.Models.DiagramComposition.Constructions.Foundations |