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.Morphisms.FlatDescent |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.FormallyUnramified |
| 3 | |
| 4 | /-! # Graph Unramified -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.GraphUnramified.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # Completion: an open graph detects an unramified factor |
| 12 | |
| 13 | The graph is a base change of the factor's diagonal. Its openness descends |
| 14 | along a faithfully flat quasi-compact cover of the diagonal target. |
| 15 | -/ |
| 16 | |
| 17 | open _root_.CategoryTheory Limits _root_.AlgebraicGeometry |
| 18 | |
| 19 | set_option backward.defeqAttrib.useBackward true |
| 20 | set_option backward.isDefEq.respectTransparency false |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | /-- Openness of this graph descends to openness of the second map's diagonal. -/ |
| 25 | theorem diagonal_isOpenImmersion_of_open_graph {X N Y : Scheme.{u}} |
| 26 | (h : X ⟶ N) [Surjective h] [Flat h] [QuasiCompact h] (g : N ⟶ Y) |
| 27 | [IsOpenImmersion (pullback.lift (𝟙 X) h (by simp) : X ⟶ pullback (h ≫ g) g)] : |
| 28 | IsOpenImmersion (pullback.diagonal g) := by |
| 29 | let b := pullback.map (h ≫ g) g g g h (𝟙 N) (𝟙 Y) (by simp) (by simp) |
| 30 | have hb : b = (pullbackRightPullbackFstIso g g h).inv ≫ pullback.snd h (pullback.fst g g) := by |
| 31 | apply pullback.hom_ext <;> simp [b] |
| 32 | have : Surjective b := by rw [hb]; infer_instance |
| 33 | have : Flat b := by rw [hb]; infer_instance |
| 34 | have : QuasiCompact b := by rw [hb]; infer_instance |
| 35 | exact MorphismProperty.of_isPullback_of_descendsAlong |
| 36 | (P := @IsOpenImmersion) (Q := @Surjective ⊓ @Flat ⊓ @QuasiCompact) |
| 37 | (pullback_lift_diagonal_isPullback h g).flip |
| 38 | ⟨⟨‹Surjective b›, ‹Flat b›⟩, ‹QuasiCompact b›⟩ inferInstance |
| 39 | |
| 40 | /-- Openness of this graph forces the second map to be formally unramified. -/ |
| 41 | theorem formallyUnramified_of_open_graph {X N Y : Scheme.{u}} |
| 42 | (h : X ⟶ N) [Surjective h] [Flat h] [QuasiCompact h] (g : N ⟶ Y) |
| 43 | [IsOpenImmersion (pullback.lift (𝟙 X) h (by simp) : X ⟶ pullback (h ≫ g) g)] : |
| 44 | FormallyUnramified g := by |
| 45 | have := diagonal_isOpenImmersion_of_open_graph h g |
| 46 | infer_instance |
| 47 | |
| 48 | end |
| 49 | |
| 50 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.GraphUnramified.Construction |