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.Etale |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.Separated |
| 3 | import Mathlib.Topology.Connected.Clopen |
| 4 | |
| 5 | /-! # Etale Rigidity -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.EtaleRigidity.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # Completion: uniqueness of lifts to a separated étale scheme |
| 13 | |
| 14 | The equalizer of two maps over the base is both open and closed. On a |
| 15 | connected source, agreement after any map from a nonempty scheme therefore |
| 16 | forces equality everywhere. The agreement is equality of scheme maps. |
| 17 | -/ |
| 18 | |
| 19 | open _root_.CategoryTheory Limits _root_.AlgebraicGeometry |
| 20 | |
| 21 | set_option backward.defeqAttrib.useBackward true |
| 22 | set_option backward.isDefEq.respectTransparency false |
| 23 | |
| 24 | universe u |
| 25 | |
| 26 | /-- The equalizer of two maps into an étale scheme over the base is open. -/ |
| 27 | theorem etale_equalizer_isOpenImmersion {S : Scheme.{u}} {X Y : Over S} |
| 28 | [Etale Y.hom] (f g : X ⟶ Y) : IsOpenImmersion (equalizer.ι f g).left := by |
| 29 | refine MorphismProperty.of_isPullback |
| 30 | ((Limits.isPullback_equalizer_prod f g).map (Over.forget _)).flip ?_ |
| 31 | rw [← MorphismProperty.cancel_right_of_respectsIso @IsOpenImmersion _ |
| 32 | (Over.prodLeftIsoPullback Y Y).hom] |
| 33 | convert! (inferInstance : IsOpenImmersion (pullback.diagonal Y.hom)) |
| 34 | ext1 <;> simp [← Over.comp_left] |
| 35 | |
| 36 | /-- A map into a separated étale scheme is determined by its restriction to any nonempty |
| 37 | test scheme when its source is connected. -/ |
| 38 | theorem etale_hom_ext_of_nonempty {S : Scheme.{u}} {X Y W : Over S} |
| 39 | [PreconnectedSpace X.left] [Nonempty W.left] [Etale Y.hom] [IsSeparated Y.hom] |
| 40 | (f g : X ⟶ Y) (a : W ⟶ X) (h : a ≫ f = a ≫ g) : f = g := by |
| 41 | have : IsOpenImmersion (equalizer.ι f g).left := etale_equalizer_isOpenImmersion f g |
| 42 | have hc : IsClopen (Set.range (equalizer.ι f g).left) := |
| 43 | ⟨(Scheme.Hom.isClosedEmbedding _).isClosed_range, |
| 44 | (equalizer.ι f g).left.isOpenEmbedding.isOpen_range⟩ |
| 45 | have hn : (Set.range (equalizer.ι f g).left).Nonempty := |
| 46 | ⟨_, ⟨(equalizer.lift a h).left (Nonempty.some inferInstance), rfl⟩⟩ |
| 47 | have : Surjective (equalizer.ι f g).left := |
| 48 | ⟨Set.range_eq_univ.mp (hc.eq_univ hn)⟩ |
| 49 | have : IsIso (equalizer.ι f g).left := |
| 50 | (isIso_iff_isOpenImmersion_and_surjective _).mpr ⟨inferInstance, inferInstance⟩ |
| 51 | apply Over.OverMorphism.ext |
| 52 | rw [← cancel_epi (equalizer.ι f g).left] |
| 53 | exact congrArg (fun k => k.left) (equalizer.condition f g) |
| 54 | |
| 55 | end |
| 56 | |
| 57 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.EtaleRigidity.Construction |