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.Closed.DiagramGluedStructure |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.DiagramGluedIsomorphisms |
| 3 | |
| 4 | /-! # Equifibered Glued Isomorphism -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.EquifiberedGluedIsomorphism |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A Cartesian diagram isomorphism glues to an isomorphism over the base. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u v |
| 15 | |
| 16 | variable {C : Type u} [CommRing C] {J : Type v} [Category J] [Quiver.IsThin J] [Small.{u} J] |
| 17 | variable {F G : J ⥤ Over (Spec (.of C))} (q : F ⟶ G) (hq : q.Equifibered) |
| 18 | variable [∀ {i j} (h : i ⟶ j), IsOpenImmersion (G.map h).left] |
| 19 | variable [((G ⋙ Over.forget (Spec (.of C))) ⋙ Scheme.forget).IsLocallyDirected] |
| 20 | variable [∀ {i j} (h : i ⟶ j), IsOpenImmersion (F.map h).left] |
| 21 | variable [((F ⋙ Over.forget (Spec (.of C))) ⋙ Scheme.forget).IsLocallyDirected] |
| 22 | |
| 23 | local instance {i j : J} (h : i ⟶ j) : IsOpenImmersion ((F ⋙ Over.forget (Spec (.of C))).map h) := |
| 24 | inferInstanceAs (IsOpenImmersion (F.map h).left) |
| 25 | |
| 26 | local instance {i j : J} (h : i ⟶ j) : IsOpenImmersion ((G ⋙ Over.forget (Spec (.of C))).map h) := |
| 27 | inferInstanceAs (IsOpenImmersion (G.map h).left) |
| 28 | |
| 29 | theorem equifiberedOverGluedMorphism_isIso [IsIso q] : |
| 30 | IsIso (Closed.DiagramGluedStructure.equifiberedOverGluedMorphism q hq) := by |
| 31 | have he : Closed.DiagramGluedStructure.equifiberedOverGluedMorphism q hq = (DiagramGluedIsomorphisms.diagramGluedOverIso (asIso q)).hom := by |
| 32 | apply Over.OverMorphism.ext |
| 33 | apply colimit.hom_ext |
| 34 | intro i |
| 35 | change colimit.ι (F ⋙ Over.forget _) i ≫ Closed.DiagramGluedStructure.equifiberedOverGluedMap q hq = |
| 36 | colimit.ι (F ⋙ Over.forget _) i ≫ |
| 37 | (HasColimit.isoOfNatIso (Functor.isoWhiskerRight (asIso q) (Over.forget _))).hom |
| 38 | rw [Cartesian.DiagramGluing.cartesianDiagramGluedMap_ι, HasColimit.ι_isoOfNatIso_hom] |
| 39 | rfl |
| 40 | rw [he] |
| 41 | infer_instance |
| 42 | |
| 43 | end |
| 44 | |
| 45 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.EquifiberedGluedIsomorphism |